:root {
    /* PALETA DE COLORES */
    --primary: #00204A;
    /* Azul Marino Actinver */
    --accent: #FFD700;
    /* Amarillo/Dorado vibrante */
    --accent-hover: #e6c200;
    --text-dark: #333333;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --border-default: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
.btn {
    font-family: 'Montserrat', sans-serif;
}

/* --- STICKY MENU MODIFICADO --- */
nav.sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* AUMENTADO: Padding vertical mayor para hacerlo más ancho/alto */
    padding: 25px 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 32, 74, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Estado Oculto */
nav.sticky-menu.nav-hidden {
    transform: translateY(-100%);
}

/* Estado Scrolled (Se hace un poco más compacto pero sigue visible) */
nav.sticky-menu.scrolled {
    padding: 15px 50px;
    background: rgba(0, 32, 74, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ESTILOS DEL LOGO */
nav .logo-container {
    display: flex;
    align-items: center;
}

nav .logo-img {
    /* Control de altura del logo */
    max-height: 60px;
    width: auto;
    display: block;
    transition: max-height 0.3s;
}

/* Ajuste del logo al hacer scroll si quieres que se reduzca un poco */
nav.sticky-menu.scrolled .logo-img {
    max-height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

.nav-cta {
    background-color: var(--accent);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

.nav-cta:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION STYLES --- */
.hero-section {
    position: relative;
    width: 100%;
    /* Mobile First: Take up full viewport height on phone */
    height: 100vh;
    /* Desktop: Cap the height so it doesn't look too stretched on wide screens */
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
    /* Fallback color */
}

/* IMAGE HANDLING */
.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    /* CRITICAL: This crops the sides of a horizontal image to fill the vertical screen
    instead of squishing it. */
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    /* Darken image slightly so text pops */
}

/* OVERLAY & TEXT POSITIONING */
.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center */
    align-items: center;
    /* Horizontally center */
    text-align: center;
    padding: 0 40px;

    /* Gradient to ensure text readability on bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 32, 74, 0.25) 100%);
}

.hero-content {
    max-width: 800px;
    /* Slide up animation */
    animation: fadeInUp 1s ease-out;
}

.hero-overlay h1 {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 2.5rem;
    /* Base size */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.75);
}

.highlight-text {
    color: var(--accent);
    /* Uses your yellow variable */
    display: block;
    /* Forces new line on mobile if needed */
    margin-top: 10px;
}

.hero-date {
    font-size: 1.2rem;
    color: #f4f4f4;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-btn {
    /* Your existing button styles + larger tap target for mobile */
    padding: 15px 40px !important;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* --- MOBILE SPECIFIC ADJUSTMENTS (Media Query) --- */
@media (max-width: 768px) {
    .hero-section {
        height: 85vh;
        /* Slightly smaller on mobile to show content below exists */
    }

    .hero-overlay h1 {
        font-size: 2rem;
        /* Smaller font for mobile */
    }

    .highlight-text {
        font-size: 1.8rem;
    }

    .hero-date {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Ensure the image focuses on the center-right if the subject is there */
    /* .hero-image { object-position: 70% center; } */
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- GENERAL --- */
section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 50%;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* --- CARDS & GRID --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Card Interactiva (Borde Amarillo en Hover) */
.interactive-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-default);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.interactive-card:hover {
    border-color: var(--accent);
    /* Se pinta de amarillo */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.interactive-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.interactive-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

.price {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin: 15px 0;
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.features-list {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    padding-left: 10px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.sponsor-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    background: #000;
    color: #888;
    padding: 50px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav.sticky-menu {
        padding: 15px 20px;
    }

    /* Ajuste padding en móvil */
    .hero-overlay h1 {
        font-size: 2rem;
    }
}

.countdown-section {
    background-color: var(--primary);
    /* Fondo Azul Navy */
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    /* Línea amarilla decorativa */
}

.countdown-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    /* Fondo semitransparente */
    padding: 15px;
    border-radius: 10px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Borde sutil amarillo */
}

.time-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    /* Números Amarillos */
    line-height: 1;
}

.time-label {
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .time-box {
        min-width: 70px;
        padding: 10px;
    }

    .time-number {
        font-size: 1.8rem;
    }

    .time-label {
        font-size: 0.7rem;
    }
}

/* Estilos del Fondo Oscuro */
.modal-overlay {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fondo negro semitransparente */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* Caja del contenido */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

/* Botón de cerrar (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #000;
}

/* Animación de entrada */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
