@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;700&display=swap');

/* --- ESTILOS GENERALES --- */
html { scroll-behavior: smooth; scroll-padding-top: 65px; }
body { font-family: 'Darker Grotesque', sans-serif; line-height: 1.6; margin: 0; padding: 0; background-color: #f8f9fa; color: #343a40; padding-top: 65px; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* --- BARRA DE NAVEGACIÓN --- */
.top-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: #1d2d3c; box-shadow: 0 2px 5px rgba(0,0,0,0.2); padding: 5px 0 0; }
.top-nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { max-width: 140px; height: auto; }

/* ESTILOS DEL MENÚ PARA ESCRITORIO */
.nav-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-menu li a { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1.2em; transition: color 0.3s; }
.nav-menu li a:not(.cta-button):hover { color: #009cff; }
.cta-button { display: inline-block; background-color: #009cff; color: #ffffff; padding: 10px 25px; text-decoration: none; font-weight: 700; font-size: 1em; border-radius: 50px; transition: background-color 0.3s, transform 0.3s; }
.cta-button:hover { background-color: #007ecc; transform: translateY(-3px); color: #ffffff !important; }

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 0; z-index: 10; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: #ffffff; transition: all 0.3s ease-in-out; }

.hero { position: relative; min-height: 80vh; display: flex; overflow: hidden; background-color: #000000; }
/* ... (resto de los estilos del hero, main, footer, etc. se mantienen igual) ... */
.hero-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; justify-content: center; align-items: center; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; padding: 2px 0; }
main { padding: 40px 0; background-color: #ffffff; }
main .container { padding-top: 20px; padding-bottom: 20px; }
section { margin-bottom: 40px; }
h2 { color: #0056b3; border-bottom: 2px solid #007bff; padding-bottom: 10px; margin-bottom: 20px; font-size: 2.5em; font-weight: 700; }
.intro-block { background-color: #e9f7ff; border-left: 5px solid #007bff; padding: 20px; margin-bottom: 30px; border-radius: 5px; font-size: 1.2em; }
details { margin-bottom: 15px; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; }
summary { font-weight: 700; cursor: pointer; color: #343a40; font-size: 1.3em; }
.disclaimer { background-color: #f1f1f1; padding: 20px; border-radius: 5px; font-size: 1em; color: #6c757d; border-left: 5px solid #6c757d; }
.disclaimer h3 { margin-top: 0; color: #343a40; font-weight: 700;}

/* ======================================================= */
/*         ESTILOS RESPONSIVOS CORREGIDOS                  */
/* ======================================================= */
@media (max-width: 992px) {
    .hamburger {
        display: block; /* Hacemos visible el botón hamburguesa */
    }

    .nav-menu {
        position: fixed; /* Lo sacamos del flujo para que sea un overlay */
        left: -100%; /* Lo ocultamos fuera de la pantalla */
        top: 55px; /* Justo debajo de la cabecera más compacta */
        gap: 0;
        flex-direction: column; /* Lo hacemos vertical */
        background-color: #1d2d3c;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 4px 5px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        left: 0; /* Lo traemos a la vista cuando está activo */
    }

    .nav-menu li {
        padding: 10px 0;
    }
    
    .cta-button {
        padding: 15px 30px; /* Hacemos el botón más grande en el menú móvil */
        font-size: 1.2em;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- CARRUSEL --- */
.carousel-controls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 0;
    z-index: 10;
}

.carousel-btn {
    background: #007bff;
    border: 2px solid #007bff;
    color: white;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-indicators {
    display: flex;
    gap: 0.8rem;
    margin: 0 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.indicator.active {
    background: #007bff;
    border-color: #007bff;
}

.indicator:hover {
    background: rgba(0, 123, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.8);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .carousel-controls {
        bottom: 13px;
        padding: 0;
        gap: 0.8rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        background: #007bff;
        border: 2px solid #007bff;
        color: white;
    }

    .indicator {
        width: 10px;
        height: 10px;
        border: 2px solid #007bff;
        background: transparent;
    }
}