/* ========================================
   IMPORTAR DESIGN TOKENS Y SISTEMAS
   ======================================== */
@import url('design-tokens.css');
@import url('forms-unified.css');

/* ========================================
   COMPATIBILIDAD CON TOKENS LEGACY
   ======================================== */
:root {
    /* Mapeo de variables legacy a nuevos tokens */
    --color-primary: var(--COLOR_BRAND_PRIMARY);
    --color-secondary-dark: var(--COLOR_BACKGROUND_PRIMARY);
    --color-highlight: var(--COLOR_HIGHLIGHT);
    --color-text: var(--COLOR_TEXT_PRIMARY);
    --color-text-secondary: var(--COLOR_TEXT_SECONDARY);
    --color-text-light: var(--COLOR_TEXT_LIGHT);
    --color-background: var(--COLOR_BACKGROUND_PRIMARY);
    --color-light-gray: var(--COLOR_BACKGROUND_SECONDARY);
    --color-border: var(--COLOR_BORDER_PRIMARY);
    --color-shadow: var(--COLOR_SHADOW_LIGHT);
    
    /* Card colors */
    --card-background: var(--COLOR_BACKGROUND_CARD);
    --card-border: var(--COLOR_BORDER_SECONDARY);
    --card-shadow: 0 2px 4px var(--COLOR_SHADOW_LIGHT);

    /* Font */
    --font-primary: var(--FONT_FAMILY_PRIMARY);
    --transition-speed: var(--TRANSITION_NORMAL);
    --header-height: 70px;
}

/* Dark Theme - Mapeo automático */
html[data-theme="dark"] {
    --color-primary: var(--COLOR_BRAND_PRIMARY);
    --color-secondary-dark: var(--COLOR_BACKGROUND_PRIMARY);
    --color-secondary-darker: var(--COLOR_BACKGROUND_PRIMARY);
    --color-highlight: var(--COLOR_HIGHLIGHT);
    --color-text: var(--COLOR_TEXT_PRIMARY);
    --color-text-secondary: var(--COLOR_TEXT_SECONDARY);
    --color-text-light: var(--COLOR_TEXT_LIGHT);
    --color-background: var(--COLOR_BACKGROUND_PRIMARY);
    --color-light-gray: var(--COLOR_BACKGROUND_SECONDARY);
    --color-border: var(--COLOR_BORDER_PRIMARY);
    --color-shadow: var(--COLOR_SHADOW_MEDIUM);
    
    /* Card colors for dark theme */
    --card-background: var(--COLOR_BACKGROUND_CARD);
    --card-border: var(--COLOR_BORDER_PRIMARY);
    --card-shadow: 0 4px 20px var(--COLOR_SHADOW_STRONG);
}

/* Ensure body follows the theme */
html[data-theme="dark"] body {
    background-color: var(--color-background) !important;
    color: var(--color-text) !important;
}

/* Enhanced text legibility for dark theme */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--color-text) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span:not(.star),
html[data-theme="dark"] div {
    color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .logo-text {
    color: var(--color-primary) !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--fg);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden; /* Mantener para evitar scroll horizontal inesperado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    display: block;
    padding-top: 65px; /* Compensar header fijo */
}

@media (max-width: 768px) {
    main {
        padding-top: 60px; /* Header más pequeño en móviles */
    }
}

/* === SECTION STYLES === */
section {
    background-color: var(--color-background);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

section:nth-child(even) {
    background-color: var(--color-light-gray);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
}

a:hover {
    opacity: 0.8;
}

.highlight-text {
    color: var(--color-highlight);
    font-weight: 600; 
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}
main .hero-content p,
main .about-content p,
main .service-card p {
     color: var(--color-text);
}
footer .footer-container p,
footer .footer-container a {
    color: var(--color-text-light);
    opacity: 0.8;
}
footer .footer-container a:hover {
    opacity: 1;
}
footer .footer-links h4,
footer .footer-contact h4 {
     color: var(--color-highlight);
     margin-bottom: 1rem;
}

section {
    padding: 60px 0;
    position: relative;
}

.section-title { 
    text-align: center;
    margin-bottom: 1.5rem; 
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    border: 2px solid transparent !important;
    border-radius: var(--BORDER_RADIUS_XS) !important;  
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    font-size: 14px !important;
    text-decoration: none !important;
    font-family: inherit !important;
    background-image: none !important;
}

.btn:hover {
    background-color: var(--COLOR_HIGHLIGHT) !important;
    background-image: none !important;
    color: #000000 !important;                  
    border-color: var(--COLOR_HIGHLIGHT) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--COLOR_BRAND_PRIMARY) !important;
    color: #ffffff !important;
    border-color: var(--COLOR_BRAND_PRIMARY) !important;
}

.btn-primary:hover {
    background-color: var(--COLOR_HIGHLIGHT) !important;
    border-color: var(--COLOR_HIGHLIGHT) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}


/* --- Header --- */
.site-header {
    background-color: var(--color-background);
    padding: 0 15px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}
.logo {
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none; 
}
header .logo a:hover {
    opacity: 1; 
}

.desktop-nav { display: none; } 

/* =======================================
   CTA SECTION - MODERN & ENGAGING
   ======================================== */

.cta-section-new {
    background-color: var(--COLOR_BACKGROUND_SECONDARY);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section-new .container {
    max-width: 1100px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text-content {
    text-align: left;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--COLOR_TEXT_PRIMARY);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--COLOR_TEXT_SECONDARY);
    margin-bottom: 2rem;
    max-width: 450px;
}

.cta-contact-info {
    margin-top: 2rem;
    color: var(--COLOR_TEXT_SECONDARY);
}

.cta-contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-contact-info i {
    color: var(--COLOR_BRAND_PRIMARY);
}

.cta-form-container {
    background: var(--COLOR_BACKGROUND_CARD);
    padding: 40px;
    border-radius: var(--BORDER_RADIUS_MD);
    border: 1px solid var(--COLOR_BORDER_PRIMARY);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.cta-form-new .form-group {
    margin-bottom: 1rem;
}

.cta-form-new .form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.cta-form-new .form-input {
    height: 48px;
}

.cta-form-new .submit-btn {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--COLOR_TEXT_MUTED);
    margin-top: 1rem;
    text-align: center;
}

.privacy-note i {
    margin-right: 5px;
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-text-content {
        text-align: center;
    }
    .cta-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-contact-info {
        justify-content: center;
    }
}

/* ========================================
   HERO MODERNO - FULL SCREEN & RESPONSIVE
   ======================================== */

.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #F8FAFC; /* Off-white background según guía MD */
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 40px 0 80px 0; /* Reducido ya que main tiene padding-top */
    overflow: hidden;
}

/* Hero container */
.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Grid layout 6/6 según guía MD */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

/* Columna principal (izquierda) */
.hero-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: #082135; /* Primary 700 según guía MD */
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #0B1320; /* --fg según guía MD */
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.hero-benefits {
    list-style: none;
    margin: 24px 0 0 0;
    padding: 0;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #0B1320;
}

.hero-benefit i {
    color: #1B828A; /* Accent 500 según guía MD */
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Hero actions */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    background: #1B828A; /* Accent 500 según guía MD */
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-cta-primary:hover {
    background: #43A7AF; /* Accent 300 según guía MD */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 130, 138, 0.25);
}

.hero-cta-secondary {
    background: transparent;
    color: #1B828A; /* Accent 500 */
    border: 2px solid #1B828A;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-cta-secondary:hover {
    background: #1B828A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 130, 138, 0.25);
}

/* Hero proof stats */
.hero-proof {
    margin-top: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1B828A; /* Accent 500 */
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6B7280; /* --muted según guía MD */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 4px;
}

/* Columna secundaria (derecha) */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tools {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB; /* --border según guía MD */
}

/* Tool accordion/tab style */
.tool-section {
    margin-bottom: 16px;
}

.tool-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #082135; /* Primary 700 */
    transition: all 0.3s ease;
    border-bottom: 1px solid #E5E7EB;
}

.tool-toggle:hover {
    color: #1B828A; /* Accent 500 */
}

.tool-toggle i:first-child {
    color: #1B828A; /* Accent 500 */
    font-size: 18px;
}

.tool-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #6B7280;
}

.tool-toggle.active .tool-arrow {
    transform: rotate(180deg);
}

.tool-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tool-content.active {
    max-height: 500px;
}

/* Domain search card */
.domain-search-card {
    padding: 24px 0;
}

.tool-description {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.domain-search-form {
    margin-bottom: 20px;
}

.domain-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.domain-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.domain-input:focus {
    outline: none;
    border-color: #1B828A; /* Accent 500 */
    box-shadow: 0 0 0 3px rgba(27, 130, 138, 0.1);
}

.domain-search-btn {
    background: #1B828A; /* Accent 500 */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.domain-search-btn:hover {
    background: #43A7AF; /* Accent 300 */
    transform: translateY(-1px);
}

.domain-status {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.domain-status.available {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.domain-status.taken {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

.domain-popular {
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.domain-popular-title {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.domain-popular-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.domain-popular-item {
    background: #F8FAFC;
    color: #1B828A;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #E5E7EB;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-modern {
        padding: 100px 0 60px 0;
        min-height: 90vh;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-main {
        order: 1;
    }
    
    .hero-secondary {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 80px 0 40px 0;
        min-height: 85vh;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-grid {
        gap: 32px;
    }
    
    .hero-main {
        gap: 24px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 40px);
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 12px;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
        text-align: center;
    }
    
    .hero-stat {
        align-items: center;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        min-height: 80vh;
        padding: 70px 0 30px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .domain-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .domain-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* ========================================
   FOOTER MODERNO - CORPORATIVO & RESPONSIVE
   ======================================== */

.footer-modern {
    background: #082135; /* Primary 700 - Verde oscuro corporativo */
    background: linear-gradient(135deg, #082135 0%, #0B1320 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.footer-logo-image {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    /* Fallback para logo blanco si no existe, usar filtro */
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    filter: brightness(0) invert(1) brightness(1.1);
    transform: translateY(-1px);
}

.footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #1B828A; /* Accent 500 */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 130, 138, 0.3);
    border-color: #1B828A;
}

.social-link i {
    font-size: 16px;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: block;
}

.footer-link:hover {
    color: #1B828A; /* Accent 500 */
    padding-left: 8px;
}

/* Newsletter Section */
.footer-newsletter-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.newsletter-form {
    margin-bottom: 28px;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #1B828A;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(27, 130, 138, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: #1B828A; /* Accent 500 */
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
    border-radius: 0;
}

.newsletter-btn:hover {
    background: #43A7AF; /* Accent 300 */
    transform: translateX(-2px);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    margin-top: 12px;
}

.newsletter-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.contact-item i {
    color: #1B828A; /* Accent 500 */
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: white;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: #1B828A; /* Accent 500 */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 60px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 60px 16px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        text-align: center;
        grid-column: auto;
        align-items: center;
    }
    
    /* Las secciones de servicios y soporte alineadas a la izquierda en móvil */
    .footer-section {
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-links {
        align-items: flex-start;
    }
    
    /* Solo la sección de newsletter centrada */
    .footer-section:last-child {
        align-items: center;
        text-align: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 0;
        border-radius: 8px;
    }
    
    .newsletter-input {
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-btn {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
    
    .footer-contact-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* Enlaces del bottom en una sola fila en móvil */
    .footer-bottom-links {
        justify-content: center;
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 40px 12px 0;
    }
    
    .footer-grid {
        gap: 28px;
    }
    
    .footer-logo-image {
        height: 40px;
        max-width: 160px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 14px;
    }
    
    /* Mantener alineación izquierda en secciones de contenido */
    .footer-section {
        gap: 12px;
    }
    
    .footer-section:not(:last-child) {
        align-items: flex-start;
        text-align: left;
    }
    
    /* Solo newsletter y brand centrados */
    .footer-section:last-child,
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    /* Enlaces del bottom mantienen fila horizontal */
    .footer-bottom-links {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom-content {
        gap: 16px;
    }
}

/* ========================================
   OCULTAR ELEMENTOS TEMPORALMENTE
   ======================================== */

/* Ocultar botón de scroll - será reemplazado más adelante */
.scroll-progress-button {
    display: none !important;
    visibility: hidden !important;
}

/* Ocultar reCAPTCHA badge si aparece */
.grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   CTA SECTION MODERN
   ======================================== */

.cta-modern {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 50%, #e8eaed 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 300px at 25% 30%, rgba(27, 130, 138, 0.08) 0%, transparent 65%),
        radial-gradient(circle 250px at 75% 25%, rgba(67, 167, 175, 0.06) 0%, transparent 60%),
        radial-gradient(circle 280px at 40% 75%, rgba(27, 130, 138, 0.05) 0%, transparent 62%),
        radial-gradient(circle 320px at 70% 70%, rgba(67, 167, 175, 0.07) 0%, transparent 68%);
    animation: backgroundFluidLights 25s ease-in-out infinite;
    pointer-events: none;
}

/* Movimiento fluido continuo sin saltos para el fondo */
@keyframes backgroundFluidLights {
    0% {
        background: 
            radial-gradient(circle 300px at 25% 30%, rgba(27, 130, 138, 0.08) 0%, transparent 65%),
            radial-gradient(circle 250px at 75% 25%, rgba(67, 167, 175, 0.06) 0%, transparent 60%),
            radial-gradient(circle 280px at 40% 75%, rgba(27, 130, 138, 0.05) 0%, transparent 62%),
            radial-gradient(circle 320px at 70% 70%, rgba(67, 167, 175, 0.07) 0%, transparent 68%);
    }
    20% {
        background: 
            radial-gradient(circle 290px at 35% 25%, rgba(27, 130, 138, 0.09) 0%, transparent 63%),
            radial-gradient(circle 260px at 70% 35%, rgba(67, 167, 175, 0.05) 0%, transparent 62%),
            radial-gradient(circle 270px at 50% 70%, rgba(27, 130, 138, 0.06) 0%, transparent 60%),
            radial-gradient(circle 310px at 65% 75%, rgba(67, 167, 175, 0.08) 0%, transparent 66%);
    }
    40% {
        background: 
            radial-gradient(circle 310px at 45% 20%, rgba(27, 130, 138, 0.06) 0%, transparent 67%),
            radial-gradient(circle 240px at 65% 45%, rgba(67, 167, 175, 0.07) 0%, transparent 58%),
            radial-gradient(circle 290px at 60% 65%, rgba(27, 130, 138, 0.07) 0%, transparent 64%),
            radial-gradient(circle 300px at 60% 80%, rgba(67, 167, 175, 0.05) 0%, transparent 65%);
    }
    60% {
        background: 
            radial-gradient(circle 280px at 55% 15%, rgba(27, 130, 138, 0.10) 0%, transparent 61%),
            radial-gradient(circle 270px at 60% 55%, rgba(67, 167, 175, 0.08) 0%, transparent 61%),
            radial-gradient(circle 320px at 70% 60%, rgba(27, 130, 138, 0.04) 0%, transparent 68%),
            radial-gradient(circle 290px at 55% 85%, rgba(67, 167, 175, 0.06) 0%, transparent 63%);
    }
    80% {
        background: 
            radial-gradient(circle 320px at 65% 10%, rgba(27, 130, 138, 0.07) 0%, transparent 68%),
            radial-gradient(circle 280px at 55% 65%, rgba(67, 167, 175, 0.06) 0%, transparent 63%),
            radial-gradient(circle 260px at 80% 55%, rgba(27, 130, 138, 0.08) 0%, transparent 59%),
            radial-gradient(circle 340px at 50% 90%, rgba(67, 167, 175, 0.09) 0%, transparent 70%);
    }
    100% {
        background: 
            radial-gradient(circle 300px at 25% 30%, rgba(27, 130, 138, 0.08) 0%, transparent 65%),
            radial-gradient(circle 250px at 75% 25%, rgba(67, 167, 175, 0.06) 0%, transparent 60%),
            radial-gradient(circle 280px at 40% 75%, rgba(27, 130, 138, 0.05) 0%, transparent 62%),
            radial-gradient(circle 320px at 70% 70%, rgba(67, 167, 175, 0.07) 0%, transparent 68%);
    }
}

.cta-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cta-main-title {
    color: #082135;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-main-subtitle {
    color: #495057;
    font-size: 1.25rem;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.cta-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Benefits Section */
.cta-benefits {
    color: #212529;
}

/* Form Styles */
.form-group-modern {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-group-modern.full-width {
    grid-column: 1 / -1;
}

.form-input-modern,
.form-select-modern,
.form-textarea-modern {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    backdrop-filter: blur(10px);
}

.form-input-modern:focus,
.form-select-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: #1B828A;
    box-shadow: 0 0 0 3px rgba(27, 130, 138, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-input-modern.error,
.form-select-modern.error,
.form-textarea-modern.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input-modern.success,
.form-select-modern.success,
.form-textarea-modern.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-textarea-modern {
    resize: vertical;
    min-height: 100px;
}

.form-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #dc3545;
}

/* Submit Button */
.btn-submit-modern {
    width: 100%;
    background: linear-gradient(135deg, #1B828A 0%, #43A7AF 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 130, 138, 0.3);
}

.btn-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-modern i {
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Honeypot Field */
.honeypot-field,
.visually-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Container with proper margins */
.cta-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-content {
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Form card styling */
.cta-form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    padding: 1.8rem 1.3rem;
    box-shadow: 
        0 8px 32px rgba(8, 33, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Efecto de cristal nevado sutil que difumina las luces de fondo */
.cta-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 150px at 25% 35%, rgba(27, 130, 138, 0.06) 0%, transparent 70%),
        radial-gradient(circle 120px at 75% 25%, rgba(67, 167, 175, 0.05) 0%, transparent 65%),
        radial-gradient(circle 130px at 45% 75%, rgba(27, 130, 138, 0.04) 0%, transparent 68%),
        radial-gradient(circle 140px at 70% 60%, rgba(67, 167, 175, 0.06) 0%, transparent 72%);
    animation: subtleGlassLights 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* Textura muy sutil de cristal esmerilado */
.cta-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.3) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Movimiento fluido y continuo sin saltos */
@keyframes subtleGlassLights {
    0% {
        background: 
            radial-gradient(circle 150px at 25% 35%, rgba(27, 130, 138, 0.06) 0%, transparent 70%),
            radial-gradient(circle 120px at 75% 25%, rgba(67, 167, 175, 0.05) 0%, transparent 65%),
            radial-gradient(circle 130px at 45% 75%, rgba(27, 130, 138, 0.04) 0%, transparent 68%),
            radial-gradient(circle 140px at 70% 60%, rgba(67, 167, 175, 0.06) 0%, transparent 72%);
    }
    16.66% {
        background: 
            radial-gradient(circle 140px at 30% 30%, rgba(27, 130, 138, 0.07) 0%, transparent 68%),
            radial-gradient(circle 125px at 70% 30%, rgba(67, 167, 175, 0.04) 0%, transparent 67%),
            radial-gradient(circle 135px at 50% 70%, rgba(27, 130, 138, 0.05) 0%, transparent 70%),
            radial-gradient(circle 145px at 65% 65%, rgba(67, 167, 175, 0.07) 0%, transparent 74%);
    }
    33.33% {
        background: 
            radial-gradient(circle 135px at 35% 25%, rgba(27, 130, 138, 0.05) 0%, transparent 66%),
            radial-gradient(circle 130px at 65% 35%, rgba(67, 167, 175, 0.06) 0%, transparent 69%),
            radial-gradient(circle 140px at 55% 65%, rgba(27, 130, 138, 0.06) 0%, transparent 72%),
            radial-gradient(circle 135px at 60% 70%, rgba(67, 167, 175, 0.05) 0%, transparent 70%);
    }
    50% {
        background: 
            radial-gradient(circle 145px at 40% 20%, rgba(27, 130, 138, 0.08) 0%, transparent 72%),
            radial-gradient(circle 115px at 60% 40%, rgba(67, 167, 175, 0.07) 0%, transparent 64%),
            radial-gradient(circle 125px at 60% 60%, rgba(27, 130, 138, 0.04) 0%, transparent 66%),
            radial-gradient(circle 150px at 55% 75%, rgba(67, 167, 175, 0.08) 0%, transparent 75%);
    }
    66.66% {
        background: 
            radial-gradient(circle 130px at 45% 15%, rgba(27, 130, 138, 0.06) 0%, transparent 68%),
            radial-gradient(circle 140px at 55% 45%, rgba(67, 167, 175, 0.05) 0%, transparent 71%),
            radial-gradient(circle 150px at 65% 55%, rgba(27, 130, 138, 0.07) 0%, transparent 75%),
            radial-gradient(circle 125px at 50% 80%, rgba(67, 167, 175, 0.06) 0%, transparent 66%);
    }
    83.33% {
        background: 
            radial-gradient(circle 155px at 50% 10%, rgba(27, 130, 138, 0.09) 0%, transparent 77%),
            radial-gradient(circle 120px at 50% 50%, rgba(67, 167, 175, 0.08) 0%, transparent 65%),
            radial-gradient(circle 135px at 70% 50%, rgba(27, 130, 138, 0.05) 0%, transparent 70%),
            radial-gradient(circle 160px at 45% 85%, rgba(67, 167, 175, 0.07) 0%, transparent 78%);
    }
    100% {
        background: 
            radial-gradient(circle 150px at 25% 35%, rgba(27, 130, 138, 0.06) 0%, transparent 70%),
            radial-gradient(circle 120px at 75% 25%, rgba(67, 167, 175, 0.05) 0%, transparent 65%),
            radial-gradient(circle 130px at 45% 75%, rgba(27, 130, 138, 0.04) 0%, transparent 68%),
            radial-gradient(circle 140px at 70% 60%, rgba(67, 167, 175, 0.06) 0%, transparent 72%);
    }
}

/* Contenido del formulario por encima del efecto */
.cta-form-card > * {
    position: relative;
    z-index: 2;
}

.form-card-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.form-title {
    color: #082135;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
}

/* Form row layout */
.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-label-modern {
    display: block;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

/* Submit button */
.cta-submit-btn {
    width: 100%;
    background: rgba(27, 130, 138, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(27, 130, 138, 0.3);
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(27, 130, 138, 0.15);
}

.cta-submit-btn:hover:not(:disabled) {
    background: rgba(27, 130, 138, 1);
    border-color: rgba(27, 130, 138, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 130, 138, 0.25);
}

.cta-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.cta-submit-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(3px);
}

/* Form response */
.form-response-modern {
    margin-top: 1rem;
}

.form-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
}

.form-privacy-note i {
    color: #1B828A;
    font-size: 0.9rem;
}

/* Benefits styling */
.cta-benefits-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1B828A;
}

.cta-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #1B828A;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(8, 33, 53, 0.05);
}

.cta-benefit-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(8, 33, 53, 0.1);
}

.cta-benefit-item i {
    color: #1B828A;
    font-size: 1.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cta-benefit-item strong {
    display: block;
    color: #082135;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.cta-benefit-item span {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Trust badges simplified */
.cta-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(8, 33, 53, 0.15);
}

.trust-badge {
    text-align: center;
    color: #495057;
    font-size: 0.85rem;
}

.trust-badge i {
    font-size: 1.8rem;
    color: #1B828A;
    margin-bottom: 0.5rem;
    display: block;
}

/* CTA Mobile Responsive */
@media (max-width: 900px) {
    .cta-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cta-container {
        padding: 0 16px;
    }
    
    .cta-modern {
        padding: 60px 0;
    }
    
    .cta-main-title {
        font-size: 2rem;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cta-form-card {
        padding: 1.3rem 0.9rem;
        max-width: 100%;
    }
    
    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-benefit-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cta-container {
        padding: 0 12px;
    }
    
    .cta-modern {
        padding: 40px 0;
    }
    
    .cta-main-title {
        font-size: 1.75rem;
    }
    
    .cta-trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cta-benefit-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cta-container {
        padding: 0 12px;
    }
    
    .cta-modern {
        padding: 40px 0;
    }
    
    .cta-main-title {
        font-size: 1.75rem;
    }
    
    .cta-trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cta-benefit-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}