/* =========================================
   STYLES.CSS - JBC GROUP (CLEAN VERSION)
   ========================================= */

/* 1. VARIABLES GLOBALES */
:root {
    --blue-jbc: #193869;
    --gray-jbc: #4A4F55;
    --white: #F4F4F4;
    --black: #050505; /* Negro profundo, no absoluto para mejor contraste */
    
    /* Variables del Header (Por si acaso no carga header.css primero) */
    --header-height: 60px;
}

/* 2. FUENTES */
@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/Acumin-RPro.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Mejora la carga */
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/Acumin-BdPro.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 3. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave entre secciones */
}

body {
    font-family: 'Acumin Pro', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0; /* IMPORTANTE: El header es fixed, no empuja el contenido */
}

/* 4. LAYOUT & UTILIDADES */
.container {
    width: 90%; 
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    position: relative;
    width: 100%;
    padding: 120px 0; /* Espacio generoso */
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Separador muy sutil */
}

/* 5. HERO SECTION (Corrección para Video de Fondo) */
#inicio {
    padding: 0; /* El Hero no lleva padding estándar */
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Oscuro */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(5,5,5,0.8) 100%);
    z-index: 1;
}

/* Contenido del Hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 60px; /* Compensa la altura del header fijo */
}

/* =========================================
   SECCIÓN DE MARCA (REFÁCTORIZADO PREMIUM)
   ========================================= */

.section-padding {
    padding: 140px 0;
    overflow: hidden;
    position: relative;
}

/* FONDO TEMA CLARO */
.bg-light-theme {
    background-color: #f4f4f4;
    color: #000;
}

/* 1. TARJETA SLIDER (CRISTAL Y BORDES) - NO TOCAMOS ESTRUCTURA */
.walkthrough-card {
    --grosor-borde: 11px; 
    --radio-exterior: 24px;    
    --radio-interior: 18px;

    font-family: 'Outfit', sans-serif;
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px; /* Altura original para escritorio */
    margin: 0 auto;
    
    border: var(--grosor-borde) solid #ffffff;
    border-radius: var(--radio-exterior);
    background-color: #ffffff; 
    
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 10;
    color: #fff;
}

/* =========================================
   RESPONSIVE: TARJETA DE MARCAS (Móvil y Tablet)
   ========================================= */
@media (max-width: 992px) {
    .walkthrough-card {
        height: 430px; /* Altura reducida para dejar las flechas a la vista */
    }

    /* Ajustamos los espacios de la sección para aprovechar la pantalla */
    #marca.section-padding {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
}

.wt-body, .wt-screens {
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.wt-screen.active {
    opacity: 1; visibility: visible;
    z-index: 10;
}

.brand-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    border-radius: var(--radio-interior);
    z-index: 1;
}

/* 2. EFECTO CRISTAL (TEXTO DENTRO DE LA TARJETA) */
.brand-content-glass {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 2;
    padding: 120px 30px 50px 30px; 
    overflow: hidden; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.brand-content-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; 
    border-radius: var(--radio-interior);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
}

.brand-content-glass h3 {
    font-size: 2rem; 
    margin-bottom: 20px !important; 
    color: #ffffff;
}

.brand-content-glass p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.6;
    font-size: 1.15rem !important;
}

.wt-badge {
    display: inline-block; 
    background-color: #ffffff; 
    color: #000000; 
    padding: 7px 12px; 
    border-radius: 30px; 
    font-size: 0.75em;
    font-weight: 500; 
    letter-spacing: 1px;
    margin-bottom: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}

/* 3. BOTONES DE NAVEGACIÓN (ACTUALIZADOS A DISEÑO BLANCO GRANDE) */
.nav-adjustment {
    margin-top: 40px; /* Separación del texto */
    position: relative;
}

.wt-btn {
    width: 70px; 
    height: 70px;
    background-color: #ffffff; /* Fondo Blanco Sólido */
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 20;
    /* Eliminamos estilos viejos de texto */
}

.wt-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    background-color: #f8f9fa;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #d6d6d6;
}

/* Estilos para las Flechas SVG */
.arrow-svg {
    width: 28px;
    height: 28px;
    fill: #333333; /* Gris Oscuro Elegante */
    transition: fill 0.3s ease;
}

.wt-btn:hover .arrow-svg {
    fill: #000000; /* Negro al hacer hover */
}

.wt-btn:disabled {
    background-color: #e9ecef !important; /* Círculo Gris Claro */
    border-color: #e9ecef !important;
    cursor: default; /* El mouse no muestra la manita */
    opacity: 0.6;
    box-shadow: none !important; /* Quitamos la sombra */
    transform: none !important; /* Quitamos la animación de movimiento */
}

/* Cambiamos el color de la flecha SVG cuando el botón está gris */
.wt-btn:disabled .arrow-svg {
    fill: #a0a0a0; /* Flecha Gris Oscuro */
}

/* 4. ANIMACIÓN DE TEXTOS (LÓGICA ORIGINAL) */
.wt-text-group {
    position: relative;
    min-height: 50px; 
    display: grid;
    grid-template-areas: "stack";
}

.wt-text-item {
    grid-area: stack; 
    opacity: 0;
    transform: translateY(30px); 
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none; 
}

.wt-text-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}


/* =========================================
   DUPLICADOS POR LIMPIAR LUEGO (EQUIPO Y QUIZ)
   ========================================= */

.bg-custom-light {
    background-color: rgba(244, 244, 244, 1) !important;
}

/* --- SECCIÓN EQUIPO (ACORDEÓN VIEJO) --- */
.team-accordion {
    display: flex;
    width: 100%;
    height: 500px; 
    gap: 20px;
    padding: 0;
}

.team-card {
    position: relative;
    flex: 1; 
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    border: 8px solid #ffffff; /* Borde blanco de 3px */
    background-color: #ffffff; /* Fondo blanco para que el borde se vea sólido */
    
    /* Asegúrate de que el border-radius sea igual o similar al que ya tenías */
    border-radius: 24px;
}

.team-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.team-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.team-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-bio {
    opacity: 0;
    max-height: 0; 
    overflow: hidden;
    margin-bottom: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.team-bio p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #fff;
    border-left: 3px solid #fff; 
    padding-left: 15px;
}

.team-info h3 {
    color: #fff;
    transition: color 0.3s ease;
}
.team-info span {
    color: rgba(255,255,255,0.7);
}

.team-card:hover {
    flex: 3; 
}

.team-card:hover .team-bg {
    filter: grayscale(0%) brightness(1); 
    transform: scale(1.05); 
}

.team-card:hover .team-bio {
    opacity: 1;
    max-height: 200px; 
    margin-bottom: 20px;
    transform: translateY(0);
    transition-delay: 0.2s; 
}

/* Forzar texto negro en el encabezado del equipo */
#equipo .tagline { color: #666666 !important; }
#equipo h2.display-4 { color: #050505 !important; }
#equipo p.opacity-75 { color: #333333 !important; opacity: 1 !important; }
#equipo {
    padding-top: 0 !important;
}

/* Ajuste de botones de pestañas a negro */
.team-tab-btn { color: rgba(0,0,0,0.4); }
.team-tab-btn.active { color: #050505; }
.team-tab-btn::after { background-color: #050505; }



@media (max-width: 992px) {
    .team-accordion {
        flex-direction: column; 
        height: auto; 
        gap: 30px;
    }
    .team-card {
        height: 400px; 
        width: 100%;
        flex: none; 
    }
    .team-bg {
        filter: grayscale(0%) brightness(0.8);
    }
    .team-bio {
        opacity: 1;
        max-height: auto;
        margin-bottom: 15px;
        transform: translateY(0);
    }
}


/* =========================================
   SECCIÓN EQUIPO (ACORDEÓN + PESTAÑAS)
   ========================================= */

/* --- 1. ESTILO DE LAS PESTAÑAS MINIMALISTAS --- */
/* Contenedor que da la línea base */
.team-tabs-wrapper {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Diseño del botón personalizado (No choca con tu menú principal) */
.team-tab-btn {
    background: transparent;
    border: none;
    color: rgb(5, 5, 5); /* Grisáceo inactivo */
    font-weight: 300;
    letter-spacing: 1.5px;
    font-size: 1.2rem;
    padding: 10px 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-tab-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* Estado Activo (Se vuelve blanco) */
.team-tab-btn.active {
    color: #000000;
}

/* Magia CSS: La rayita blanca animada debajo del texto activo */
.team-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -12px; /* Alineado justo encima de la línea del contenedor */
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.team-tab-btn.active::after {
    width: 100%;
}

/* --- 2. CONTENEDOR DEL ACORDEÓN --- */
.team-accordion {
    display: flex;
    justify-content: flex-start; /* MAGIA: Alinea todo a la IZQUIERDA (Cuadrícula perfecta) */
    width: 100%;
    height: 500px; 
    gap: 15px;
}

/* --- 3. LAS TARJETAS (Ajuste Matemático) --- */
.team-card {
    position: relative;
    flex: 1; 
    max-width: 280px; /* Evita que las tarjetas de filas de 2 o 3 se hagan gigantes */
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), max-width 0.5s ease;
}

.team-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%); 
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-info {
    margin-bottom: 0;
    transition: margin-bottom 0.5s ease;
}

.team-bio {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.team-bio p {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 300;
}

/* --- 4. EFECTO HOVER --- */
.team-card:hover { 
    flex: 3; 
    max-width: 600px; /* Permiso para crecer al pasar el mouse */
}
.team-card:hover .team-bg { filter: grayscale(0%); transform: scale(1.05); }
.team-card:hover .team-bio { opacity: 1; max-height: 200px; }

/* --- 5. RESPONSIVE (MÓVIL Y TABLET) --- */
@media (max-width: 992px) {
    /* Ajuste de Tabs con scroll lateral */
    .team-tabs-wrapper {
        overflow-y: hidden !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        flex-wrap: wrap !important;
        row-gap: 15px;
        padding-bottom: 20px !important;
        overflow-x: auto; 
        white-space: nowrap;
        justify-content: flex-start !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; 
    }

    /* Transformamos el contenedor en una cuadrícula 2x2 */
    .team-accordion {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Crea las dos columnas */
        height: auto; 
        gap: 12px;
    }
    
    .team-card { 
        height: 350px; /* Altura fija para que el 2x2 se vea alineado */
        max-width: 100%;
        flex: none; 
        transition: all 0.4s ease;
    }

    /* ESTADO ACTIVO: Cuando se toca la tarjeta */
    /* Usamos una clase .active que pondremos con JavaScript */
    .team-card.active {
        /* En 2x2 no podemos crecer a lo ancho, pero podemos resaltar la tarjeta */
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        transform: scale(1.02);
        z-index: 20;
    }

    .team-card.active .team-bg { 
        filter: grayscale(0%); 
        transform: scale(1.05); 
    }

    .team-card.active .team-bio { 
        opacity: 1; 
        max-height: 200px; 
        margin-top: 10px;
    }

    .team-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para que quepan bien en cuadros pequeños */
    .team-info h4 { font-size: 1rem; }
    .team-info span { font-size: 0.7rem; }
    .team-bio p { font-size: 0.75rem; margin-top: 8px; }
}
/* --- ESTILOS SECCIÓN CONTACTO/QUIZ --- */
.quiz-box {
    background: rgba(20, 20, 20, 0.8);
    padding: 60px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.quiz-opt {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    background: rgba(255,255,255,0.02);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

.quiz-opt:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.form-control:focus {
    background-color: #222;
    color: white;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.d-none { display: none !important; }
.z-2 { z-index: 2; }

/* MISCELÁNEOS */
.card-icon {
    color: #ffffff; 
    font-size: 24px;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.card-icon i { color: inherit; }
.bg-dark-blue { background-color: #123150; }

@media (max-width: 768px) {
    .container { width: 94%; padding: 0 15px; }
    .quiz-box { padding: 30px; }
    .options-grid { grid-template-columns: 1fr; }
}




/* --- CONTENEDOR GLASSMORPHISM --- */
.quiz-glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* --- BARRA DE PROGRESO --- */
.quiz-progress-container {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: #007bff; /* Cambia al color de tu marca */
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- MINI TARJETAS DE SELECCIÓN --- */
.service-select-card {
    height: 140px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    text-align: center;
}

.service-select-card span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.service-select-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.service-select-card:hover span {
    transform: scale(1.05);
}

/* --- INPUTS ESTILIZADOS --- */
.quiz-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}
.quiz-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: #007bff;
}

/* --- GLOW DE FONDO --- */
.glass-bg-glow {
    position: absolute; 
    top: -10%; right: -10%; 
    width: 50%; height: 50%; 
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%); 
    pointer-events: none;
}





/* --- 1. AJUSTE EN EQUIPO (FONDO) --- */
#equipo {
    /* Mantenemos el fondo gris para que se vea en las esquinas de la curva */
    background-color: rgba(244, 244, 244, 1) !important;
    padding-top: 80px !important;
    padding-bottom: 140px !important; /* Espacio extra para que la curva no tape las tarjetas */
    position: relative;
    z-index: 1; /* Por debajo de Nosotros */
}

/* =========================================
   SECCIÓN NOSOTROS - ESTRUCTURA Y GLASSMORPHISM
   ========================================= */

#nosotros {
    /* Bordes redondeados y montaje sobre la sección anterior */
    margin-top: -60px;
    padding-top: 100px !important;
    padding-bottom: 120px !important;
    z-index: 5;
    overflow: hidden;
}

/* Sombras invisibles para legibilidad extrema */
#nosotros h2.display-4, 
#nosotros .lead,
#nosotros p {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

#nosotros .tagline {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* --- TARJETAS DE CRISTAL ENMARCADAS --- */
.about-card {
    position: relative; 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    /* FORZAMOS EL BORDE Y EL RADIO CON !important */
    border: 2px solid #ffffff !important; 
    border-radius: 24px !important; 
    
    padding: 35px 30px;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.1); /* Se aclara un poco el cristal al pasar el mouse */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
/* --- ICONO DEL PROPÓSITO (AZUL JBC) --- */
.about-card .card-icon {
    background: rgba(25, 56, 105, 0.15);
    color: #193869; 
    border: 1px solid rgba(25, 56, 105, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(25, 56, 105, 0.2);
}

#contacto {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}





/* =========================================
   PÁGINA: AVISO DE PRIVACIDAD
   ========================================= */

/* Cabecera (Hero) del Aviso */
.privacy-hero {
    background: linear-gradient(135deg, #193869 0%, #0a1629 100%);
    padding: 120px 0 60px; /* Espacio extra arriba para el menú */
    color: #ffffff;
    text-align: center;
}

/* Contenedor del contenido */
.privacy-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa; /* Un fondo gris casi blanco para no cansar la vista */
    color: #333333;
}

/* --- MENÚ LATERAL (STICKY) --- */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Se queda pegado a 100px del tope de la pantalla */
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-privacy .nav-link {
    color: #555555;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
    transition: all 0.3s ease;
}

.nav-privacy .nav-link:last-child {
    border-bottom: none;
}

.nav-privacy .nav-link:hover {
    color: #193869;
    font-weight: 700;
    padding-left: 5px; /* Pequeño salto a la derecha al pasar el mouse */
}

/* --- ESTILOS DEL TEXTO LEGAL --- */
.privacy-content h3 {
    color: #193869;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.privacy-content h3:first-child {
    margin-top: 0; /* Quita el margen al primer título */
}

.privacy-content p, .privacy-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 15px;
    text-align: justify;
}

/* ESTILO BOTÓN VISITAR SITIO WEB (Sección Marcas) */
.btn-brand-cta {
    display: inline-block;
    background-color: #ffffff; /* Fondo Blanco Sólido */
    color: #000000;            /* Letra Negra */
    padding: 10px 25px;
    border-radius: 30px;       /* Bordes redondos */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 20px;          /* Separación del texto de arriba */
}

.btn-brand-cta:hover {
    background-color: #f2f2f2;
    color: #000000;
    transform: translateY(-3px); /* Se levanta un poco */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}




/* =========================================
   BANNER COOKIES - TECH STYLE
   ========================================= */
.cookie-tech-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 400px;
    max-width: 90%;
    
    /* Estilo Glassmorphism Tech */
    background-color: rgba(21, 35, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(24, 116, 149, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    visibility: hidden;
    font-family: 'Kumbh Sans', sans-serif;
}

/* Clase dinámica para mostrar el banner */
.cookie-tech-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.cookie-tech-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.cookie-icon-box {
    font-size: 1.5rem;
    color: #187495;
    background: rgba(24, 116, 149, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.cookie-info {
    flex: 1;
}

.cookie-title {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cookie-desc {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 400;
}

.cookie-tech-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.cookie-link {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.cookie-link:hover {
    color: #187495;
    text-decoration: underline;
}

.btn-tech-accept {
    background-color: #187495;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 116, 149, 0.3);
    font-family: 'Kumbh Sans', sans-serif;
}

.btn-tech-accept:hover {
    background-color: #135d78;
    transform: translateY(-2px);
}

/* Responsive (Móviles) */
@media (max-width: 768px) {
    .cookie-tech-container {
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) translateY(20px);
        width: 92%;
    }

    .cookie-tech-container.show {
        transform: translateX(-50%) translateY(0);
    }
}



/* =========================================
   SLIDER HERO - FADE SECUENCIAL
   ========================================= */
/* 1. Estado inactivo: El contenido desaparece en 0.4s sin esperar */
.hero-swiper .swiper-slide .row {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* 2. Estado activo: El contenido aparece en 0.4s, pero ESPERA 0.6s a que la pantalla esté limpia */
.hero-swiper .swiper-slide-active .row {
    opacity: 1;
    transition: opacity 0.4s ease-in-out 0.6s; 
}