:root {
    /* Colors derived from the image */
    --bg-dark: #0a1118; /* Dark navy background */
    --text-light: #ffffff;
    --text-muted: #9ba4b5;
    --accent-blue: #1276b0;
    --accent-orange: #e76f51; /* Arrow color */
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../assets/hero-bg-new.jpg');
    background-size: cover;
    background-position: 60% 50%; /* lienzo extendido a la izquierda: los cabezales MARS quedan en la zona clara */
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Add a subtle gradient overlay on the left to ensure text readability if needed */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* La foto del hero pasó a ser clara (pedido de Alberto, 14-sep): el scrim sube para que el texto
       blanco y el subtítulo gris sigan >= 4.5:1, medido píxel a píxel sobre la foto real. */
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 17, 24, 0.93) 0%, rgba(10, 17, 24, 0.80) 38%, rgba(10, 17, 24, 0.45) 62%, rgba(10, 17, 24, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 30px;
    transition: all 0.4s ease;
}

.navbar:hover,
.navbar.navbar-solid,
.navbar.navbar-light {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
}

/* Logo oficial Levita (SVG vectorial desde el .ai del cliente, sep-2026):
   versión blanca sobre fondos oscuros, versión a color (azul + gris) sobre fondos claros.
   Ambas apiladas en el mismo lugar y se hace CROSSFADE (opacidad) al pasar
   de hero oscuro a nav sólido — sin saltos ni cortes. */
.logo > a { position: relative; }

.nav-logo-img {
    height: 44px;   /* converge con la altura del botón CTA y el peso de los links (14px) */
    width: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.nav-logo-img.logo-on-light {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.navbar:hover .nav-logo-img.logo-on-light,
.navbar.navbar-solid .nav-logo-img.logo-on-light,
.navbar.navbar-light .nav-logo-img.logo-on-light { opacity: 1; }

.navbar:hover .nav-logo-img.logo-on-dark,
.navbar.navbar-solid .nav-logo-img.logo-on-dark,
.navbar.navbar-light .nav-logo-img.logo-on-dark { opacity: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-item > a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: inline-block;
}

.navbar:hover .nav-item > a,
.navbar.navbar-solid .nav-item > a,
.navbar.navbar-light .nav-item > a {
    color: #475569;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: #ffffff;
    transform: scale(1.05);
}

.navbar:hover .nav-item > a:hover,
.navbar:hover .nav-item > a.active,
.navbar.navbar-solid .nav-item > a:hover,
.navbar.navbar-solid .nav-item > a.active,
.navbar.navbar-light .nav-item > a:hover,
.navbar.navbar-light .nav-item > a.active {
    color: #0f172a;
}

/* --- Selector de idioma (EN/ES) --- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 14px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.lang-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.lang-btn.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}
.navbar:hover .lang-switcher,
.navbar.navbar-solid .lang-switcher,
.navbar.navbar-light .lang-switcher {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}
.navbar:hover .lang-btn,
.navbar.navbar-solid .lang-btn,
.navbar.navbar-light .lang-btn {
    color: #64748b;
}
.navbar:hover .lang-btn.active,
.navbar.navbar-solid .lang-btn.active,
.navbar.navbar-light .lang-btn.active {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    border: 1px solid #e2e8f0;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 10px 24px;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    width: 100%;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease !important;
    transform: none !important;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: var(--accent-blue) !important;
    padding-left: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-outline {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

/* --- HERO CONTENT --- */
.hero-container {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 100px; /* Offset for absolute navbar */
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    display: block;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 24px;
}

.headline {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
}

.subheadline {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 24px;
}

.description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-cta {
    background: #1276b0;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(31, 151, 213, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cta:hover {
    background: #0f6fa8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31, 151, 213, 0.4);
    color: #ffffff;
}

.btn-cta svg {
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

.btn-text {
    color: var(--text-light);
    background: transparent;
    border: none;
    font-size: 16px;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
}

.btn-text:hover::after {
    background-color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .headline {
        font-size: 56px;
    }
    .hero-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: 42px;
    }
    .subheadline {
        font-size: 18px;
    }
    .description {
        font-size: 16px;
    }
    .hero::before {
        width: 100%; /* Darken full background on mobile */
        background: linear-gradient(to right, rgba(10, 17, 24, 0.9) 0%, rgba(10, 17, 24, 0.7) 100%);
    }
}

/* --- SECTION 2 --- */
.section-two {
    background-color: #f2f5f9; /* Light grayish-blue from reference */
    color: #111;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.s2-container {
    max-width: 1400px;
    width: 100%;
}

.s2-header {
    text-align: center;
    margin-bottom: 60px;
}

.indicator-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.indicator-dots span {
    width: 24px;
    height: 2px;
    background-color: #d1d5db;
    border-radius: 2px;
}

.indicator-dots span.active {
    background-color: #1f2937;
}

.s2-eyebrow {
    display: block;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.s2-title {
    font-size: 40px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.s2-subtitle {
    font-size: 18px;
    color: #64748b;
    font-weight: 400;
}

.s2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.s2-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 600px;
}

.s2-card-light {
    background: linear-gradient(180deg, #e3edf6 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.s2-card-dark {
    color: #fff;
    /* We'll use the image as background */
}

.s2-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.s2-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s2-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 17, 24, 0.85) 0%, rgba(10, 17, 24, 0.62) 100%);
}

.s2-card-content {
    padding: 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.s2-card-dark .s2-card-content {
    justify-content: flex-start;
}

.s2-card-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.s2-card-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.s2-card-light .s2-card-title {
    color: #0f172a;
}

.s2-card-dark .s2-card-title {
    color: #ffffff;
}

.s2-card-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.s2-card-light .s2-card-desc {
    color: #475569;
}

.s2-card-dark .s2-card-desc {
    color: #cbd5e1;
}

.s2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.s2-btn-outline {
    border: 1px solid rgba(58, 155, 220, 0.3);
    color: var(--accent-blue);
    background: transparent;
}

.s2-btn-outline:hover {
    background: rgba(58, 155, 220, 0.1);
}

.s2-btn-white {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.s2-btn-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.s2-card-img-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 20px;
    overflow: hidden;
}

.s2-card-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.s2-card-light .s2-card-img {
    max-height: 350px;
}

@media (max-width: 1024px) {
    .s2-grid {
        grid-template-columns: 1fr;
    }
    .s2-card {
        min-height: 500px;
    }
    }
}

/* --- SECTION 3 --- */
.section-three {
    width: 100%;
    background-color: #000;
    display: flex;
}

.s3-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
}

/* --- SECTION 4 --- */
.section-four {
    background-color: #ffffff;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.s4-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: #1f97d5; /* Requested solid color */
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 20px;
    color: #4b5563; /* Dark gray for the label */
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: #e5e7eb;
}

@media (max-width: 768px) {
    .s4-container {
        flex-direction: column;
        gap: 40px;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
    }
}

/* --- SECTION 5: ESCENA WOW MARS (pinned) --- */
.section-five {
    position: relative;
    width: 100%;
    color: #ffffff;
}

/* .mars-pin es el "escenario" que GSAP fija mientras se hace scroll.
   Sin JS, igual se ve como una sección normal a pantalla completa. */
.mars-pin {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;        /* contenido centrado: despega del nav, se ve balanceado */
    padding: 140px 20px 80px;
    overflow: hidden;
}

.s5-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    will-change: transform;
    transform-origin: center center;
}

/* El <video> de Higgsfield (swap futuro) usa el mismo encuadre que la imagen. */
.mars-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.s5-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.s5-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* scrim cinematográfico: oscurece parejo para que el contenido SIEMPRE contraste */
    background:
        radial-gradient(ellipse 62% 52% at 50% 44%, rgba(31, 151, 213, 0.22) 0%, transparent 65%),
        linear-gradient(180deg, rgba(10, 17, 24, 0.94) 0%, rgba(10, 17, 24, 0.72) 45%, rgba(10, 17, 24, 0.42) 78%, rgba(10, 17, 24, 0.55) 100%);
}

.s5-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s5-eyebrow {
    color: #6cc4f5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 34px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* Logo oficial MARS en blanco, con glow azul (factor wow, sin exagerar) */
.s5-logo {
    width: min(66vw, 540px);
    height: auto;
    margin-bottom: 34px;
    filter: drop-shadow(0 0 46px rgba(58, 155, 220, 0.55)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.s5-subtitle {
    font-size: 23px;
    font-weight: 400;
    color: #f1f6fa;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.s5-subtitle-small {
    font-size: 17px;
    font-weight: 300;
    color: #c3d0dc;
    margin-bottom: 44px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.s5-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.s5-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- SECTION 6: NEWS & INSIGHTS --- */
.section-news {
    background-color: #ffffff;
    position: relative;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    color: #0f172a;
    overflow: hidden;
}

.section-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 16% 50%, rgba(58, 155, 220, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(58, 155, 220, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 84% 50%, rgba(58, 155, 220, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 95% 95%, rgba(231, 111, 81, 0.15) 0%, transparent 35%);
    z-index: 0;
    pointer-events: none;
}

.news-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.news-header-text {
    max-width: 600px;
}

.news-eyebrow {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.news-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.news-img-wrapper {
    width: 100%;
    height: 240px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 500;
}

.news-category {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #0f172a;
}

.news-card-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.news-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 12px;
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .news-grid { grid-template-columns: 1fr; }
}

/* --- SECTION 7: CTA --- */
.section-cta {
    background-color: #05090d; /* Even darker than bg-dark for contrast */
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(155, 164, 181, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}



.cta-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-headline {
    font-size: 56px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.cta-headline sup {
    font-size: 24px;
    top: -0.8em;
    font-weight: 400;
}

.cta-subhead {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.cta-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 14px 32px;
    font-size: 16px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .cta-headline {
        font-size: 40px;
    }
    .cta-subhead {
        font-size: 18px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
    }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 80px 20px 40px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-links-grid { gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* --- PASE MOBILE (≤640px): home + secciones compartidas --- */
@media (max-width: 640px) {
    .hero-container {
        padding: 0 22px;
        padding-top: 110px;
    }
    .headline { font-size: 38px; letter-spacing: -1px; }
    .subheadline { font-size: 17px; }
    .description { font-size: 15px; margin-bottom: 36px; }
    .headline br, .subheadline br, .description br { display: none; } /* que el texto fluya, no cortes fijos */
    .hero-buttons { flex-wrap: wrap; gap: 18px; }

    .section-two, .section-four, .section-news { padding: 64px 18px; }
    .s2-title { font-size: 28px; }
    .s2-subtitle { font-size: 16px; }
    .s2-card { min-height: 0; }
    .s2-card-content { padding: 28px; }
    .s2-card-title { font-size: 26px; }
    .s2-card-dark { min-height: 420px; }

    .stat-number { font-size: 44px; }
    .stat-number[style] { font-size: 30px !important; }
    .stat-label { font-size: 16px; }
    .s4-container { gap: 28px; }

    .mars-pin { padding: 110px 18px 64px; min-height: 88vh; }
    .s5-logo { width: min(78vw, 400px); margin-bottom: 26px; }
    .s5-subtitle { font-size: 18px; }
    .s5-subtitle-small { font-size: 15px; margin-bottom: 34px; }
    .s5-eyebrow { font-size: 11px; letter-spacing: 2.2px; }

    .news-title { font-size: 28px; }
    .news-header { margin-bottom: 36px; }
    .news-content { padding: 22px; }
    .news-card-title { font-size: 19px; }

    .section-cta { padding: 80px 20px; }
    .cta-headline { font-size: 32px; }
    .cta-subhead { font-size: 17px; margin-bottom: 36px; }

    .site-footer { padding: 56px 20px 32px; }
    .footer-logo { height: 40px; }
    .footer-top { margin-bottom: 40px; }
}

/* nav -> hamburguesa bajo 1200px (ver unify.css) */
@media (max-width: 1199px) {
    .nav-links { display: none; }
}
