/* --- 1. PALETA DE COLORES Y VARIABLES --- */
:root {
    --dark-blue: #1D3557;   /* Azul profundo institucional */
    --orange: #F37021;      /* Naranja Sentidos */
    --slate: #455A64;       /* Gris para textos */
    --light-blue: #0288D1;  /* Azul claro para acentos */
    --off-white: #F1FAEE;   /* Fondo de página */
    --white: #FFFFFF;
}

/* --- 2. ESTILOS GENERALES --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--off-white);
    color: var(--slate);
    margin: 0;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

h1, h2, h3, h4, .fw-bold {
    font-weight: 700;
}

/* --- 3. NAVEGACIÓN Y FOOTER --- */
.navbar-sentidos {
    background-color: var(--dark-blue) !important;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.footer {
    background-color: var(--dark-blue) !important;
    color: var(--white);
}

.text-orange {
    color: var(--orange) !important;
}

.text-light-blue {
    color: var(--light-blue) !important;
}

/* --- 4. BOTONES PERSONALIZADOS --- */
.btn-contacto {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background-color: #d95e17;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.4);
}

.btn-outline-light-custom {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--off-white);
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* --- 5. HERO SECTION: INTELIGENCIA VIAL --- */
.hero-section {
    min-height: 90vh; 
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -85px; /* Compensa el navbar fijo */
    overflow: hidden; /* Crucial para que el video no se escape */
    background-color: var(--dark-blue); /* Fallback por si el video no carga */
}

/* [NUEVO] Estilo para el video de fondo */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Mantiene la proporción sin estirar */
}

/* Overlay para asegurar que el texto sea legible y el video se fusione con la marca */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de azul oscuro a transparente hacia la derecha para resaltar el video */
    background: linear-gradient(75deg, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

/* --- 6. SLIDING CONTENT (EFECTO OVERLAP) --- */
.sliding-content {
    position: relative;
    z-index: 10;
    background-color: var(--off-white);
    /* Sube el contenido para que "pise" levemente la sección del video */
    margin-top: -5vh; 
    border-radius: 50px 50px 0 0; 
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.15);
    padding-top: 3rem;
    padding-bottom: 5rem;
}

/* --- 7. TARJETAS (CARDS) NIVEL AGENCIA --- */
.card-sentidos {
    border: none;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-bottom: 5px solid var(--light-blue);
}

.card-sentidos:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-hover:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* --- 8. SECCIÓN NORMATIVA (ACORDEÓN) --- */
.accordion-item {
    border-radius: 12px !important;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.accordion-button {
    color: var(--dark-blue);
    font-weight: 700;
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    color: var(--dark-blue);
    background-color: rgba(243, 112, 33, 0.08); /* Naranja muy suave */
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

/* Flechita del acordeón en naranja cuando está abierto */
.accordion-button:not(.collapsed):after {
    filter: invert(53%) sepia(68%) saturate(3000%) hue-rotate(360deg) brightness(100%) contrast(105%);
}

/* --- 9. ANIMACIONES EXTRAS --- */
.animate-menu {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NEÓN REFINADO --- */
.text-neon-blue {
    color: #fff;
    /* Sombra equilibrada para que la letra fina también se lea bien */
    text-shadow: 0 0 5px #fff, 0 0 10px var(--light-blue);
    animation: neon-flicker 5s infinite alternate; /* Más lento es más elegante */
}

/* Ajuste de margen para que el párrafo no quede pegado */
.hero-section h1 {
    margin-bottom: 2.5rem !important;
}

/* --- ANIMACIÓN DE PARPADEO AJUSTADA --- */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        /* Brillo suave */
        text-shadow: 0 0 3px #fff, 0 0 8px var(--light-blue);
        opacity: 1;
    }
    20%, 24%, 55% {
        /* En el parpadeo no lo apagamos del todo, solo bajamos la intensidad */
        text-shadow: 0 0 1px #fff;
        opacity: 0.7;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    background-color: #128C7E;
}

/* Animación de Pulso para el botón del Hero */
.animate-pulse {
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(243, 112, 33, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}

.bg-orange { background-color: var(--orange); }

/* --- SEPARACIÓN DE SECCIONES --- */

/* Le damos un color de fondo muy suave a la zona de programas 
   para que las tarjetas blancas resalten más */
.bg-programs-light {
    background-color: #fcfcfc; /* Un gris casi blanco, muy elegante */
    border-top: 1px solid rgba(0,0,0,0.03);
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Ajuste para el título de Programas */
.section-title-divider {
    width: 50px;
    height: 3px;
    background-color: var(--orange);
    margin: 15px auto;
    border-radius: 10px;
}