@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Outfit:wght@700;800&family=Roboto+Mono:wght@600;700&display=swap');

:root {
    /* Color Palette - Obsidian & Bright Blue / Gold */
    --primary: #2E5BFF; /* Original Bright Blue Authority */
    --primary-glow: rgba(46, 91, 255, 0.3);
    --secondary: #1a1a1a; 
    --accent: #D4AF37; 
    --bg-dark: #050505; 
    --bg-card: rgba(20, 20, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #2E5BFF 0%, #1a1a1a 100%);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-margin-top: 100px; /* Increased for better title alignment under fixed nav */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes metallicSweep {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 0.1; }
    100% { left: 100%; opacity: 0; }
}

.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0; /* Increased for more breathing room */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-top-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    animation: bounceLogo 3s ease-in-out infinite;
    transform-origin: center center;
    display: block;
}

@keyframes bounceLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    position: relative;
}

@media (min-width: 769px) {
    .nav-links {
        flex: 1;
        justify-content: center;
        margin: 0 !important;
        flex-wrap: nowrap;
        gap: clamp(1rem, 2vw, 2.25rem);
    }

    .nav-links > li > a {
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 1140px) {
    .nav-links a {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Sección del menú actualmente visible (scroll spy) */
.navbar .nav-links > li > a.active {
    color: var(--primary) !important;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(46, 91, 255, 0.55);
}

.nav-btn.nav-active {
    box-shadow: 0 0       0 2px rgba(46, 91, 255, 0.85),
                0 0 28px rgba(46, 91, 255, 0.35);
}

/* Idiomas: desktop centrados bajo la fila del menú */
@media (min-width: 769px) {
    .lang-switcher-li {
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
    }
}

.lang-switcher-inner {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

/* Hero: titular + CTAs + fila de módulos (escritorio) */
.hero-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-headline {
    margin-bottom: 0;
    flex: 1;
    min-width: min(100%, 17.5rem);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.12;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-modules-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hero-modules-row .glass-card {
    flex: 1 1 260px;
    min-width: min(100%, 260px);
}

/* Authority video (hero facade — scoped; does not affect global grid) */
.hero-authority-video {
    margin-top: 2rem;
    max-width: 720px;
    width: 100%;
}

.hero-authority-video__cue {
    margin-bottom: 0.85rem;
}

.hero-authority-video__badge {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 212, 255, 0.06);
}

.hero-authority-video__lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    max-width: 42em;
}

.hero-authority-video__frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.25),
        0 12px 40px rgba(0, 212, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-authority-video__shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0f18;
}

.hero-authority-video__launch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    display: block;
}

.hero-authority-video__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.hero-authority-video__play-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
}

.hero-authority-video__play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #fff;
    filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.55));
    pointer-events: none;
    line-height: 1;
}

.hero-authority-video__launch:hover .hero-authority-video__play-icon {
    color: #00d4ff;
}

.hero-authority-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hero-authority-video__youtube-link {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
}

.hero-authority-video__youtube-link a {
    color: #00d4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-authority-video__youtube-link a:hover {
    color: #5ce9ff;
}

/* Social proof — solo #hero-social-proof (logos; sin tocar resto del hero) */
.hero-social-proof {
    margin-top: 2.25rem;
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.hero-social-proof__title {
    font-family: var(--font-header);
    font-size: clamp(0.72rem, 2.4vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.15rem;
    line-height: 1.35;
}

.hero-social-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.hero-social-proof__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.hero-social-proof__logo img {
    display: block;
    max-height: 72px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6) brightness(1.5);
    transition: filter 0.3s ease;
}

.hero-social-proof__logo:hover img {
    filter: grayscale(1) opacity(1) brightness(1.5) drop-shadow(0 0 8px #00d4ff);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 180px; /* Increased padding top to give breathing room for the tag */
    padding-bottom: 120px;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -20vw;
    right: -10vw;
    filter: blur(120px);
    z-index: -1;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 6vw, 4.2rem); /* Increased size for impact */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: clamp(9.5rem, 28vw, 13rem);
    text-wrap: balance;
}

.hero-sector-tag {
    display: inline-block;
    padding: 0.8rem 1.6rem; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.4);
    color: var(--accent);
    margin-bottom: 3.5rem;
    border-radius: 50px;
    font-size: 0.85rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.arch-text {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2.22rem);
    color: #FFFFFF; /* Authority White */
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.resilience-text {
    color: #ffffff; 
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero p {
    font-size: 1.35rem; /* Slightly larger for better readability */
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
    font-weight: 500;
}

/* Sections */
section[id] {
    scroll-margin-top: 100px; /* Better alignment for fixed navbar */
}

.section {
    padding: 6rem 0 8rem; /* Reduced top padding for more direct impact */
}

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

.section-title h2 {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
    min-height: 2.75em;
    text-wrap: balance;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    line-height: 1.65;
    min-height: 4.95em;
    text-wrap: balance;
}

/* Glass Cards - Industrial Sophistication */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    pointer-events: none;
}

.glass-card:hover::after {
    animation: metallicSweep 2.5s infinite;
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(70, 130, 180, 0.1);
}

.glass-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    transition: 0.4s;
}

.glass-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
}

.glass-card h3 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Pricing Cards */
.sector-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.price-tag {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: var(--primary);
    margin: 2rem 0;
    font-weight: 800;
}

.price-tag span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Mastermind Card Special */
.hero-btn {
    padding: 1.1rem 2.5rem !important; /* Smaller buttons as requested */
    font-size: 0.8rem !important;
}

.mastermind-card {
    border: 1px solid var(--accent);
    background: linear-gradient(145deg, #1A1A1B 0%, #000000 100%);
    position: relative;
    padding: 4rem 3rem !important; /* Move compact and balanced */
    max-width: 800px !important;
}

.mastermind-card i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.mastermind-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    opacity: 0.5;
}

/* Buttons - Ultra Premium Millennial Steel */
.btn {
    display: inline-block;
    padding: 1.4rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary.nav-btn {
    margin-left: 3rem; /* Adjusted spacing */
    padding: 0.7rem 1.5rem; /* Compact size */
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* Form Styles */
.form-container {
    background: #050505;
    padding: 5rem 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1.5rem;
}

.cta-form input {
    background: #000;
    border: 1px solid var(--border);
    padding: 1.4rem;
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: #080a0f;
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.1);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-direction: column; /* Stacked horizontally */
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

/* Redes: pie de página (no compite con hero ni formularios) */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.38rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: var(--primary);
    border-color: rgba(46, 91, 255, 0.5);
    background: rgba(46, 91, 255, 0.09);
    transform: translateY(-2px);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.footer-copy {
    margin: 0;
    max-width: 52ch;
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 0;
    }

    .footer-social-link {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.28rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .cta-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title p {
        min-height: 4em;
    }

    .container { padding: 0 1.5rem; } /* Balanced 24px margins */
    
    .nav-container { 
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
        padding: 1.1rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .logo-link {
        margin: 0 auto;
        display: block;
    }

    .nav-logo { 
        height: 55px; 
        width: auto;
        margin: 0 auto;
    }
    
    .nav-btn {
        display: block !important;
        white-space: nowrap !important;
        padding: 0.62rem 1.1rem !important;
        font-size: 0.74rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: fit-content !important;
        max-width: calc(100% - 0.5rem);
        text-align: center !important;
        border-radius: 50px;
        order: 3; /* Logo (1), Links (2), Button (3) */
        align-self: center;
        box-sizing: border-box;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.5rem;
        justify-content: center;
        align-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-top: 1px solid var(--border);
        padding: 0.65rem 0.15rem;
        margin: 0;
        order: 2;
    }

    .nav-links li {
        list-style: none;
        flex: 0 0 auto;
    }

    .nav-links a {
        display: inline-block;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        padding: 0.2rem 0.15rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        width: 100%;
    }

    /* Hero móvil: sin recorte del titular (nav fijo alto + overflow:hidden cortaba el H1) */
    .hero {
        text-align: center;
        height: auto;
        min-height: unset;
        overflow: visible;
        padding: clamp(175px, 52vw, 265px) 0 2rem !important;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    /* Evita titular invisible si la animación no aplica bien en algunos móviles */
    #home.hero .hero-content.fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero h1,
    .hero .hero-headline {
        font-size: clamp(1.35rem, 5.8vw, 1.95rem) !important;
        margin-bottom: 0.85rem;
        line-height: 1.22;
        min-height: 0 !important;
        text-align: center;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        padding: 0 0.15rem;
        box-sizing: border-box;
    }
    
    .arch-text {
        font-size: 1.2rem; 
        margin-bottom: 0.2rem;
        letter-spacing: 2px;
    }

    .hero p { margin: 0 auto 2.5rem; font-size: 1.05rem; line-height: 1.6; text-align: center; }
    
    .hero-actions a {
        width: 100%;
        max-width: 320px;
        margin: 0 !important;
        text-align: center;
    }
    
    .btn { 
        padding: 1.2rem 1.8rem; 
        font-size: 0.9rem;
    }

    .price-tag { font-size: 2.4rem; }
    .mastermind-card { padding: 3.5rem 1.5rem !important; }
}
/* Dashboard Section */
#diagnostico {
    padding-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Reduced because section has margin now */
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech Stack Banner */
.tech-stack {
    padding: 3rem 0;
    background: rgba(46, 91, 255, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.6;
}

.tech-logos i {
    font-size: 2.5rem;
}

/* Insights Cards */
.insight-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-tag {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.insight-card .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Insights: compacto abajo pero más aire arriba — el nav fijo + idiomas comía el título al cambiar lengua */
#insights.section {
    scroll-margin-top: clamp(130px, 20vh, 195px);
    padding-top: clamp(4.25rem, 7vw, 6rem);
    padding-bottom: 3rem;
    overflow: visible;
}

#insights .section-title {
    margin-top: 0.35rem;
    margin-bottom: 1.35rem;
    position: relative;
    z-index: 1;
}

#insights .section-title h2 {
    min-height: 2.15em;
    margin-bottom: 0.65rem;
    padding-top: 0.15em;
}

#insights .section-title p {
    min-height: 0;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

#insights .card-grid {
    gap: 1.35rem;
    margin-bottom: 0;
}

#insights .glass-card.insight-card {
    padding: 2rem 1.75rem;
}

#insights .insight-card h3 {
    font-size: 1.12rem;
    line-height: 1.28;
}

#insights .insight-card p {
    font-size: 0.92rem;
    line-height: 1.55;
}

#insights .insight-card .btn.btn-outline {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.72rem !important;
    margin-top: 0.35rem;
}

@media (max-width: 768px) {
    #insights .section-title p {
        min-height: 0;
    }

    #insights.section {
        scroll-margin-top: 125px;
        padding-top: 3.75rem;
        padding-bottom: 2.5rem;
    }
}

/* Dos Pilares: título completo bajo el nav + altura ~1 pantalla para no asomar “Áreas de Impacto” */
@media (min-width: 769px) {
    #pilares.section {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }
}

#pilares.section {
    padding-top: clamp(4.75rem, 11vh, 7rem);
    padding-bottom: clamp(4rem, 9vh, 6.5rem);
    scroll-margin-top: clamp(115px, 14vh, 155px);
}

#pilares .container {
    width: 100%;
}

#pilares .section-title {
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

#pilares .section-title h2 {
    min-height: 0;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.8vw, 3.15rem);
    line-height: 1.18;
    text-wrap: balance;
}

#pilares .section-title p {
    min-height: 0;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
    line-height: 1.6;
    text-wrap: balance;
}

#pilares .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.15rem);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

#pilares .glass-card {
    padding: clamp(2.65rem, 4vh, 3.4rem) clamp(2rem, 3vw, 2.65rem);
    min-height: clamp(280px, 32vh, 360px);
    display: flex;
    flex-direction: column;
}

#pilares .glass-card i {
    font-size: 3.15rem;
    margin-bottom: 1.65rem;
}

#pilares .glass-card h3 {
    font-size: 1.42rem;
    margin-bottom: 1.1rem;
}

#pilares .glass-card p {
    font-size: 0.98rem;
    line-height: 1.68;
    margin-bottom: 0;
    flex-grow: 1;
}

#pilares .glass-card:hover {
    transform: translateY(-8px);
}

@media (min-width: 769px) and (max-height: 820px) {
    #pilares.section {
        min-height: unset;
        justify-content: flex-start;
        padding-top: clamp(4rem, 10vh, 5.5rem);
    }

    #pilares .glass-card {
        min-height: 0;
        padding: 2.25rem 1.9rem;
    }

    #pilares .glass-card i {
        font-size: 2.75rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 768px) {
    #pilares.section {
        min-height: unset;
        display: block;
        padding-top: 3.25rem;
        padding-bottom: 3.5rem;
    }

    #pilares .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #pilares .glass-card {
        min-height: 0;
        padding: 2.35rem 1.85rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        margin-top: 2rem;
    }
}

/* ==========================================================================
   SISTEMA DE CAPTACIÓN VIP - PROTOCOLO 2026
   ========================================================================== */
/* Protocolo: bloque dentro de Nexus (#diagnostico) o suelto — mismo estilo */
#protocolo-vip.protocolo-vip-block {
    position: relative;
    scroll-margin-top: 120px;
    margin-top: 2.5rem;
    padding: 3.5rem 0 4.75rem;
    background: radial-gradient(circle at top right, #0a0a0a 0%, #050505 100%) !important;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* Sin doble padding inferior en Nexus cuando el protocolo viene abajo */
#diagnostico.section {
    padding-bottom: 0;
}

#diagnostico .container:first-of-type {
    padding-bottom: 0.5rem;
}

/* Ancla Nexus → Protocolo 2026 */
.nexus-protocol-jump {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.nexus-protocol-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-header);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    text-decoration: none;
    padding: 0.8rem 1.65rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 22px rgba(46, 91, 255, 0.18);
}

.nexus-protocol-anchor:hover {
    background: var(--accent);
    color: #000 !important;
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
}

.nexus-protocol-anchor i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(46, 91, 255, 0.35));
}

.nexus-protocol-anchor:hover i {
    filter: none;
}

.vip-container {
    padding: 0;
    position: relative;
    z-index: 2;
}

.vip-glass-card {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

#vip-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

#vip-form .vip-form-heading {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#vip-form .vip-form-title {
    font-family: var(--font-header);
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin: 0 0 0.65rem;
}

#vip-form .vip-form-lead {
    margin: 0 auto;
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.vip-input-group {
    position: relative;
}

.vip-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.vip-input:focus {
    background: rgba(46, 91, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.1) !important;
    outline: none;
    transform: translateY(-2px);
}

.vip-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5a 100%);
    color: var(--accent) !important;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid var(--accent) !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.vip-btn:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    #protocolo-vip.protocolo-vip-block {
        margin-top: 1.75rem;
        padding: 2.75rem 0 3.5rem;
    }

    .vip-glass-card {
        padding: 3rem 1.5rem;
    }
    #vip-form {
        grid-template-columns: 1fr;
    }
    .vip-btn {
        grid-column: span 1;
        font-size: 0.9rem;
    }
}

/*
 * Contacto: el layout debe vivir en hoja, no solo en style inline.
 * Tras envío + reset (notifications.js quita display:none del inline),
 * sin esto el <form> queda en display por defecto y los campos se contraen.
 */
#contacto #contact-form:not(.glass-card) {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#contacto #contact-form:not(.glass-card) textarea {
    flex: 1 1 100%;
    min-width: 0;
}

#contacto #contact-form.glass-card {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Authority Terminal Styles */
.authority-terminal {
    background: #000;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-container {
    background: #020202;
    border: 1px solid rgba(0, 255, 127, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.05);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    margin-left: 8px;
    letter-spacing: 1px;
}

.terminal-body {
    line-height: 1.5;
}

.typing-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(0, 255, 127, 0.8);
}

.prompt { color: var(--accent); font-weight: bold; }
.status-ok {
    background: rgba(0, 255, 127, 0.1);
    color: #27c93f;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 10px;
}

/* ── PRECISION AESTHETIC PATCH v1.1 ───────────────────────────────────────── */

/* 1. SaaS Module Icons — force Original Bright Blue (#2E5BFF) with full glow */
.hero .glass-card i.bx-terminal,
.hero .glass-card i.bx-mobile-alt,
.hero .glass-card i.bx-network-chart {
    color: #2E5BFF !important;
    filter: drop-shadow(0 0 10px rgba(46, 91, 255, 0.45)) !important;
}

/* 2. Hero "Solicitar Demo" button — black text on golden hover for max legibility */
a.btn.btn-primary.hero-btn:hover,
.hero-btn.btn-primary:hover {
    color: #000000 !important;
    background: var(--accent) !important; /* keeps the gold (#D4AF37) */
    border-color: var(--accent) !important;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* ==========================================================================
   ADAPTIA ELITE SERVICES — SECTION STYLES
   ========================================================================== */

#elite-services {
    position: relative;
    background: radial-gradient(ellipse at bottom left, rgba(46, 91, 255, 0.04) 0%, #050505 60%);
    /* Ancla #elite-services (menú Servicios): el nav fijo no debe comer el título */
    scroll-margin-top: clamp(116px, 16vh, 195px);
    /* Padding vertical moderado: cabecera + 2×2 tarjetas visibles en una sola vista en laptop típica */
    padding: clamp(2.25rem, 5.5vh, 4rem) 0 clamp(2.75rem, 7vh, 4.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#elite-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 91, 255, 0.3), transparent);
}

/* Section Header */
.elite-section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.elite-section-title h2 {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
    text-wrap: balance;
}

.elite-section-title h2 span {
    color: var(--primary);
}

.elite-section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    text-wrap: balance;
}

/* Encabezado Elite: compacto; sin min-height que empuje el bloque hacia abajo */
#elite-services .elite-section-title {
    margin-bottom: 1.25rem;
    padding-top: 0.35rem;
    position: relative;
    z-index: 1;
}

#elite-services .elite-section-title h2 {
    margin-bottom: 0.45rem;
    padding-top: 0.15em;
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    line-height: 1.2;
}

@media (min-width: 520px) {
    #elite-services .elite-section-title h2 {
        white-space: nowrap;
    }
}

#elite-services .elite-section-title p {
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    /* ES/EN suelen ocupar menos renglones que DE/PT/FR: misma “caja” que los otros idiomas */
    min-height: 3.2em;
}

#elite-services .elite-divider {
    margin: 0.5rem auto 0.75rem;
}

.elite-divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 1.5rem auto 2rem;
    border-radius: 2px;
}

/* Elite Cards Grid */
.elite-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

#elite-services .elite-card-grid {
    gap: 0.85rem;
    margin-bottom: 2.25rem;
    align-items: stretch;
}

.elite-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(46, 91, 255, 0.15);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

.elite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.elite-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    pointer-events: none;
}

.elite-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(46, 91, 255, 0.08);
}

.elite-card:hover::before {
    opacity: 1;
}

.elite-card:hover::after {
    animation: metallicSweep 2.5s infinite;
}

.elite-card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 12px rgba(46, 91, 255, 0.5));
    transition: 0.4s;
}

.elite-card:hover .elite-card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px rgba(46, 91, 255, 0.7));
}

#elite-services .elite-card {
    padding: 1.35rem 1.45rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Icono centrado en caja propia + escala suave: evita recorte con overflow:hidden del card */
#elite-services .elite-card-icon {
    font-size: 2rem;
    margin-bottom: 0.55rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    transform-origin: center center;
    box-sizing: border-box;
}

#elite-services .elite-card:hover .elite-card-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(46, 91, 255, 0.65));
}

.elite-card h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.25;
    text-wrap: balance;
}

#elite-services .elite-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    line-height: 1.28;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.elite-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

#elite-services .elite-card p {
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

/* SASE / Cato Networks: acento cyan (#00D4FF); resto hereda .elite-card */
#elite-services .elite-card.elite-card--sase .elite-card-icon {
    color: #00D4FF;
    filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.52));
}

#elite-services .elite-card.elite-card--sase:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 212, 255, 0.1);
}

#elite-services .elite-card.elite-card--sase:hover .elite-card-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.72));
}

#elite-services .elite-card.elite-card--sase:hover::before {
    background: linear-gradient(90deg, #00D4FF, var(--accent));
}

/* Desktop 2×2 + quinta tarjeta SASE centrada; alturas mínimas alineadas */
@media (min-width: 769px) {
    #elite-services .elite-card#elite-card-sase {
        grid-column: 1 / -1;
        max-width: min(100%, 42rem);
        margin-left: auto;
        margin-right: auto;
    }

    #elite-services .elite-card h3 {
        min-height: 2.65em;
    }

    #elite-services .elite-card p {
        min-height: 6.85em;
    }

    #elite-services .elite-card {
        min-height: 11.75rem;
    }
}

/* Elite Form Container */
.elite-form-wrapper {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

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

.elite-form-header h3 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.8rem;
}

.elite-form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

#elite-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.elite-input-group {
    position: relative;
    min-width: 0;
    width: 100%;
}

.elite-input-group.full-width {
    grid-column: span 2;
}

.elite-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.elite-input:focus {
    background: rgba(46, 91, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.1) !important;
    outline: none;
    transform: translateY(-2px);
}

select.elite-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.5rem center !important;
    background-size: 1.2em !important;
    cursor: pointer;
}

select.elite-input option {
    background: #0a0a0a;
    color: #fff;
}

textarea.elite-input {
    resize: vertical;
    min-height: 120px;
}

/* ELITE BUTTON — Fondo Negro, borde Azul, hover Dorado con texto Negro */
.elite-submit-btn {
    grid-column: span 2;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    font-family: var(--font-header) !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    border: 2px solid var(--primary) !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(46, 91, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.elite-submit-btn:hover {
    background: #D4AF37 !important;
    color: #000000 !important;
    border-color: #D4AF37 !important;
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3) !important;
}

.elite-form-note {
    grid-column: span 2;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Elite Success State */
#elite-success {
    text-align: center;
    padding: 3rem;
}

#elite-success i {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

#elite-success h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-header);
    font-size: 2rem;
}

#elite-success p {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Laptop / ventana baja: cabecera + 2×2 tarjetas en menos altura */
@media (min-width: 769px) and (max-height: 900px) {
    #elite-services {
        padding-top: clamp(1.75rem, 4vh, 2.75rem);
        padding-bottom: clamp(2rem, 5vh, 3rem);
        scroll-margin-top: clamp(108px, 14vh, 165px);
    }

    #elite-services .elite-section-title {
        margin-bottom: 0.95rem;
        padding-top: 0.25rem;
    }

    #elite-services .elite-section-title p {
        font-size: 0.91rem;
        min-height: 2.95em;
    }

    #elite-services .elite-card-grid {
        gap: 0.65rem;
        margin-bottom: 1.85rem;
    }

    #elite-services .elite-card {
        padding: 1.1rem 1rem;
        min-height: 10.25rem;
    }

    #elite-services .elite-card-icon {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
        width: 2.55rem;
        height: 2.55rem;
    }

    #elite-services .elite-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        min-height: 2.45em;
    }

    #elite-services .elite-card p {
        font-size: 0.74rem;
        line-height: 1.42;
        min-height: 6.1em;
    }
}

/* ── ELITE RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .elite-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    #elite-services .elite-card-grid {
        gap: 1.15rem;
    }
}

@media (max-width: 768px) {
    #elite-services {
        padding: clamp(3.1rem, 10vw, 4.25rem) 0 70px;
        scroll-margin-top: clamp(105px, 24vw, 150px);
    }

    #elite-services .elite-section-title {
        margin-bottom: 1.35rem;
        padding-top: 0.4rem;
    }

    .elite-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #elite-services .elite-card-grid {
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .elite-card {
        padding: 2.5rem 2rem;
    }

    #elite-services .elite-card {
        padding: 1.85rem 1.5rem;
    }

    .elite-form-wrapper {
        padding: 3rem 1.5rem;
    }

    #elite-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .elite-input-group.full-width,
    .elite-submit-btn,
    .elite-form-note {
        grid-column: 1 / -1;
    }

    .elite-submit-btn {
        font-size: 0.9rem !important;
    }
}

/* =============================================================================
   Móvil (≤768px): ritmo vertical, menú, hero apilado, grillas una columna
   ============================================================================= */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 88px;
    }

    section[id] {
        scroll-margin-top: 86px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .container {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .section {
        padding: 2.75rem 0 3.25rem;
    }

    .section-title {
        margin-bottom: 1.65rem;
    }

    .section-title h2 {
        min-height: 0;
        font-size: clamp(1.55rem, 6.2vw, 2.15rem);
        margin-bottom: 0.85rem;
    }

    .section-title p {
        min-height: 0 !important;
        font-size: 0.95rem;
        line-height: 1.55;
        padding: 0 0.1rem;
    }

    .nav-links > li.lang-switcher-li {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        order: 10;
        padding-top: 0.35rem;
        margin-top: 0.15rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
    }

    .lang-switcher-inner {
        display: flex;
        flex-wrap: wrap;
        white-space: normal;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.25rem 0.45rem;
        padding: 0.32rem 0.35rem;
        box-sizing: border-box;
    }

    .hero-sector-tag {
        margin-bottom: 1.35rem;
        padding: 0.55rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 1px;
        max-width: 100%;
    }

    .hero-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.1rem !important;
    }

    .hero-headline {
        flex: none !important;
        width: 100%;
        min-width: 0;
    }

    .hero-cta-group {
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.7rem !important;
    }

    .hero-cta-group .hero-btn,
    .hero-cta-group .btn {
        width: 100%;
        max-width: none !important;
        text-align: center;
        justify-content: center;
        padding: 1rem 1.15rem !important;
        font-size: 0.78rem !important;
    }

    .hero-modules-row {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        margin-top: 1.5rem !important;
        gap: 1rem !important;
        padding-bottom: 0 !important;
    }

    .hero-modules-row .glass-card {
        flex: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100%;
        padding: 1rem 0.95rem !important;
    }

    .hero-modules-row .glass-card i.bx {
        font-size: 2.15rem !important;
        margin-bottom: 0.65rem !important;
    }

    .hero-modules-row .glass-card h4 {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        line-height: 1.25 !important;
        margin-bottom: 0.45rem !important;
    }

    .hero-modules-row .glass-card p {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
    }

    .hero-authority-video {
        margin-top: 1.25rem !important;
    }

    .hero-authority-video__badge {
        font-size: 0.6rem !important;
        letter-spacing: 0.12em !important;
        padding: 0.3rem 0.5rem !important;
    }

    .hero-authority-video__lead {
        font-size: 0.88rem !important;
    }

    .hero-authority-video__frame {
        border-radius: 12px !important;
    }

    .hero-social-proof {
        margin-top: 1.5rem !important;
    }

    .hero-social-proof__title {
        margin-bottom: 0.95rem !important;
        letter-spacing: 0.12em !important;
    }

    .hero-social-proof__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .hero-social-proof__logo img {
        max-height: 60px !important;
    }

    .hero-content > p {
        font-size: 0.9rem !important;
        margin-top: 0.75rem !important;
        line-height: 1.5 !important;
        padding: 0 0.15rem;
        max-width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    #sectores .glass-card,
    #insights .glass-card.insight-card {
        padding: 1.75rem 1.25rem;
    }

    #sectores .glass-card i {
        font-size: 2.65rem;
        margin-bottom: 1rem;
    }

    .cta-form {
        grid-template-columns: 1fr !important;
    }

    #diagnostico .section-title h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.95rem) !important;
        line-height: 1.18;
    }

    #diagnostico .section-title p {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .stat-card {
        padding: 1.35rem 1.1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .nexus-protocol-anchor {
        font-size: 0.68rem;
        padding: 0.6rem 1rem;
        letter-spacing: 0.08em;
        line-height: 1.3;
        text-align: center;
    }

    #protocolo-vip .section-title p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    #vip-form .vip-form-note {
        grid-column: 1 / -1 !important;
    }

    .elite-form-header h3 {
        font-size: 1.2rem !important;
    }

    .elite-form-header p {
        font-size: 0.88rem !important;
    }

    .footer-copy {
        font-size: 0.78rem;
        letter-spacing: 0.05em;
        line-height: 1.5;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    /* Contacto: formulario en una columna, sin min-width que rompa el ancho */
    #contacto .glass-card {
        padding: 1.75rem 1.15rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #contacto .glass-card h2 {
        font-size: clamp(1.3rem, 5vw, 1.85rem) !important;
        margin-bottom: 1rem !important;
    }

    #contacto #contact-form:not(.glass-card) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    #contacto #contact-form.glass-card {
        grid-template-columns: 1fr !important;
    }

    #contacto #contact-form input {
        min-width: 0 !important;
        width: 100% !important;
        flex: none !important;
    }

    #contacto #contact-form textarea {
        width: 100% !important;
        min-width: 0 !important;
    }

    #contacto #contact-form .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .nav-container {
        gap: 0.72rem;
        padding: 0.8rem 0;
    }

    .navbar .nav-links {
        gap: 0.32rem 0.42rem;
        padding: 0.55rem 0.1rem;
    }

    .navbar .nav-links a {
        font-size: 0.64rem;
        letter-spacing: 0.05em;
    }

    .navbar .lang-switcher-inner {
        gap: 0.22rem 0.38rem;
        padding: 0.28rem 0.28rem;
    }

    .nav-logo {
        height: 48px !important;
    }

    .lang-switcher-inner .lang-btn {
        font-size: 9px !important;
    }

    .tech-logos {
        gap: 1.75rem;
    }

    /* Pantallas estrechas: nav más alto; asegurar que el H1 del hero no quede bajo el menú */
    .hero {
        padding-top: clamp(188px, 56vw, 275px) !important;
    }

    .hero .hero-headline {
        font-size: clamp(1.2rem, 5.5vw, 1.72rem) !important;
    }

    #elite-services .elite-section-title h2 {
        white-space: normal !important;
        word-break: break-word;
    }
}

/* Toast + paneles de éxito (notifications.js: fade coherente) */
#vip-notification {
    transition: opacity 0.35s ease;
}

#contact-success,
#vip-success,
#elite-success {
    transition: opacity 0.35s ease;
}

/* ─────────────────────────────────────────────────────────────────────────── */

