/**
 * Estilos para la página de Equipo (UBICATEC)
 * 
 * Este archivo contiene estilos avanzados para crear una experiencia inmersiva
 * con animaciones complejas de gradientes, efectos de glassmorphism y
 * transiciones de tarjetas.
 * 
 * Índice:
 * 1. Animación de Fondo (CSS Houdini Properties)
 * 2. Estructura General y Layout
 * 3. Card Grid (Equipo)
 * 4. Advisor Section (Asesores)
 * 5. Acknowledgment Section (Agradecimientos)
 * 6. Mobile Navigation & Responsive
 */

/* =========================================
   1. Animación de Fondo (CSS Houdini)
   ========================================= */
        /* Animación de gradiente para el fondo */
        @keyframes hero-gradient-animation {
            0% {
                --x-0: 93%;
                --c-0: hsla(212, 0%, 0%, 1);
                --s-start-0: 14.489998991212337%;
                --s-end-0: 72%;
                --y-0: 93%;
                --y-1: 9%;
                --s-start-1: 0%;
                --s-end-1: 45%;
                --c-1: hsla(212, 0%, 0%, 1);
                --x-1: 26%;
                --s-start-2: 2.9253667596993065%;
                --s-end-2: 22.388851682060018%;
                --c-2: hsla(257, 91%, 27%, 0.35);
                --x-2: 15%;
                --y-2: 79%;
                --y-3: 104%;
                --x-3: 40%;
                --c-3: hsla(212, 100%, 50%, 0.5);
                --s-start-3: 3.985353824694249%;
                --s-end-3: 47.580278608924694%;
                --s-start-4: 2.391200382592061%;
                --s-end-4: 29.307684556768592%;
                --x-4: 0%;
                --c-4: hsla(224, 72%, 36%, 1);
                --y-4: 60%;
                --c-5: hsla(248, 52%, 24%, 1);
                --s-start-5: 2.9253667596993065%;
                --s-end-5: 22.388851682060018%;
                --x-5: 92%;
                --y-5: 37%;
                --c-6: hsla(212, 100%, 50%, 0.19);
                --x-6: 101%;
                --y-6: 16%;
                --s-start-6: 13.173642363290591%;
                --s-end-6: 31.747336520355095%;
                --x-7: 90%;
                --y-7: 13%;
                --c-7: hsla(227, 98%, 53%, 1);
                --s-start-7: 1%;
                --s-end-7: 31%;
                --y-8: 56%;
                --x-8: 104%;
                --s-start-8: 3.985353824694249%;
                --s-end-8: 13.103042116379756%;
                --c-8: hsla(166, 71%, 60%, 0.32);
                --c-9: hsla(219, 83%, 23%, 0.18);
                --s-start-9: 18.597054544690312%;
                --s-end-9: 31%;
                --y-9: 19%;
                --x-9: 97%;
            }

            100% {
                --x-0: 7%;
                --c-0: hsla(306, 0%, 0%, 1);
                --s-start-0: 2.391200382592061%;
                --s-end-0: 43.902064173373226%;
                --y-0: 9%;
                --y-1: 93%;
                --s-start-1: 9%;
                --s-end-1: 54.805582404585024%;
                --c-1: hsla(306, 0%, 0%, 1);
                --x-1: 96%;
                --s-start-2: 3%;
                --s-end-2: 26.722813338714598%;
                --c-2: hsla(166, 72%, 60%, 1);
                --x-2: -2%;
                --y-2: 103%;
                --y-3: 82%;
                --x-3: 33%;
                --c-3: hsla(180, 100%, 50%, 0.26);
                --s-start-3: 2.391200382592061%;
                --s-end-3: 32.0689540200964%;
                --s-start-4: 4.40642490323111%;
                --s-end-4: 37.23528104246256%;
                --x-4: 37%;
                --c-4: hsla(212, 88%, 26%, 0.58);
                --y-4: 81%;
                --c-5: hsla(271, 98%, 53%, 0.31);
                --s-start-5: 3%;
                --s-end-5: 32.537089799783296%;
                --x-5: 54%;
                --y-5: 99%;
                --c-6: hsla(262, 100%, 50%, 0.15);
                --x-6: 104%;
                --y-6: 43%;
                --s-start-6: 6%;
                --s-end-6: 42.501105312974815%;
                --x-7: 104%;
                --y-7: -16%;
                --c-7: hsla(298, 36%, 23%, 1);
                --s-start-7: 5%;
                --s-end-7: 13.10107024898374%;
                --y-8: 30%;
                --x-8: 97%;
                --s-start-8: 2.391200382592061%;
                --s-end-8: 27.141813016850573%;
                --c-8: hsla(180, 100%, 50%, 0.11);
                --c-9: hsla(219, 83%, 23%, 0.59);
                --s-start-9: 5%;
                --s-end-9: 21.32164536610654%;
                --y-9: 4%;
                --x-9: 78%;
            }
        }

        @property --x-0 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 93%
        }

        @property --c-0 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(212, 0%, 0%, 1)
        }

        @property --s-start-0 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 14.489998991212337%
        }

        @property --s-end-0 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 72%
        }

        @property --y-0 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 93%
        }

        @property --y-1 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 9%
        }

        @property --s-start-1 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 0%
        }

        @property --s-end-1 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 45%
        }

        @property --c-1 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(212, 0%, 0%, 1)
        }

        @property --x-1 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 26%
        }

        @property --s-start-2 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 2.9253667596993065%
        }

        @property --s-end-2 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 22.388851682060018%
        }

        @property --c-2 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(257, 91%, 27%, 0.35)
        }

        @property --x-2 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 15%
        }

        @property --y-2 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 79%
        }

        @property --y-3 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 104%
        }

        @property --x-3 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 40%
        }

        @property --c-3 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(212, 100%, 50%, 0.5)
        }

        @property --s-start-3 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 3.985353824694249%
        }

        @property --s-end-3 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 47.580278608924694%
        }

        @property --s-start-4 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 2.391200382592061%
        }

        @property --s-end-4 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 29.307684556768592%
        }

        @property --x-4 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 0%
        }

        @property --c-4 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(224, 72%, 36%, 1)
        }

        @property --y-4 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 60%
        }

        @property --c-5 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(248, 52%, 24%, 1)
        }

        @property --s-start-5 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 2.9253667596993065%
        }

        @property --s-end-5 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 22.388851682060018%
        }

        @property --x-5 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 92%
        }

        @property --y-5 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 37%
        }

        @property --c-6 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(212, 100%, 50%, 0.19)
        }

        @property --x-6 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 101%
        }

        @property --y-6 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 16%
        }

        @property --s-start-6 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 13.173642363290591%
        }

        @property --s-end-6 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 31.747336520355095%
        }

        @property --x-7 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 90%
        }

        @property --y-7 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 13%
        }

        @property --c-7 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(227, 98%, 53%, 1)
        }

        @property --s-start-7 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 1%
        }

        @property --s-end-7 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 31%
        }

        @property --y-8 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 56%
        }

        @property --x-8 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 104%
        }

        @property --s-start-8 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 3.985353824694249%
        }

        @property --s-end-8 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 13.103042116379756%
        }

        @property --c-8 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(166, 71%, 60%, 0.32)
        }

        @property --c-9 {
            syntax: '<color>';
            inherits: false;
            initial-value: hsla(219, 83%, 23%, 0.18)
        }

        @property --s-start-9 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 18.597054544690312%
        }

        @property --s-end-9 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 31%
        }

        @property --y-9 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 19%
        }

        @property --x-9 {
            syntax: '<percentage>';
            inherits: false;
            initial-value: 97%
        }

/* =========================================
   2. Estructura General y Layout
   ========================================= */
        body {
            font-family: 'Lato', sans-serif;
            font-weight: 300;
            margin: 0;
            padding: 0 !important;
            --x-0: 93%;
            --c-0: hsla(212, 0%, 0%, 1);
            --y-0: 93%;
            --y-1: 9%;
            --c-1: hsla(212, 0%, 0%, 1);
            --x-1: 26%;
            --c-2: hsla(257, 91%, 27%, 0.35);
            --x-2: 15%;
            --y-2: 79%;
            --y-3: 104%;
            --x-3: 40%;
            --c-3: hsla(212, 100%, 50%, 0.5);
            --x-4: 0%;
            --c-4: hsla(224, 72%, 36%, 1);
            --y-4: 60%;
            --c-5: hsla(248, 52%, 24%, 1);
            --x-5: 92%;
            --y-5: 37%;
            --c-6: hsla(212, 100%, 50%, 0.19);
            --x-6: 101%;
            --y-6: 16%;
            --x-7: 90%;
            --y-7: 13%;
            --c-7: hsla(227, 98%, 53%, 1);
            --y-8: 56%;
            --x-8: 104%;
            --c-8: hsla(166, 71%, 60%, 0.32);
            --c-9: hsla(219, 83%, 23%, 0.18);
            --y-9: 19%;
            --x-9: 97%;
            background-color: hsla(305, 0%, 0%, 1);
            background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)), radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)), radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2)), radial-gradient(circle at var(--x-3) var(--y-3), var(--c-3) var(--s-start-3), transparent var(--s-end-3)), radial-gradient(circle at var(--x-4) var(--y-4), var(--c-4) var(--s-start-4), transparent var(--s-end-4)), radial-gradient(circle at var(--x-5) var(--y-5), var(--c-5) var(--s-start-5), transparent var(--s-end-5)), radial-gradient(circle at var(--x-6) var(--y-6), var(--c-6) var(--s-start-6), transparent var(--s-end-6)), radial-gradient(circle at var(--x-7) var(--y-7), var(--c-7) var(--s-start-7), transparent var(--s-end-7)), radial-gradient(circle at var(--x-8) var(--y-8), var(--c-8) var(--s-start-8), transparent var(--s-end-8)), radial-gradient(circle at var(--x-9) var(--y-9), var(--c-9) var(--s-start-9), transparent var(--s-end-9));
            animation: hero-gradient-animation 10s linear infinite alternate;
            background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
            min-height: 100vh;
        }

/* =========================================
   3. Card Grid (Equipo)
   ========================================= */
        /* Estilos para las Cards con efecto de filtro */
        .card-grid {
            display: flex;
            gap: 20px;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            max-width: 100vw;
            margin: 0 auto;
            padding: 140px 40px 400px;
            position: relative;
            z-index: 10; /* Por encima de los asesores */
            transition: filter 0.3s ease, opacity 0.3s ease;
            overflow-x: auto;
            overflow-y: hidden;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            cursor: grab; /* Cursor de manita abierta por defecto */
        }

        .card-grid.active {
            cursor: grabbing; /* Cursor de mano cerrada al arrastrar */
            cursor: -webkit-grabbing;
        }

        /* Estilos para la sección de asesores */
        .advisors-section {
            position: fixed;
            top: 55%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            z-index: 1; /* Detrás del equipo */
            pointer-events: none; /* Permitir click a través inicialmente */
            transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
            filter: blur(8px);
            opacity: 0.6;
        }
        
        .advisors-grid {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
            width: 100%;
            margin: 0 auto;
        }

        /* Clase activa para cuando los asesores son el foco */
        .advisors-section.active {
            pointer-events: auto;
            z-index: 20; /* Traer al frente al terminar scroll? O mantener atrás pero visibles? */
        }
        
        /* Ajuste para que el body tenga scroll suficiente para transiciones suaves */
        body {
            min-height: 400vh;
            margin: 0;
            overflow-x: hidden;
        }
        
        /* Contenedor principal */
        html {
            scroll-behavior: smooth;
        }
        
        /* Ocultar barra de scroll para Chrome/Safari/Opera */
        .card-grid::-webkit-scrollbar {
            display: none;
        }

        .card {
                position: relative;
            width: 280px;
            min-width: 280px;
            height: 420px;
            border-radius: 20px;
                overflow: hidden;
            cursor: pointer;
            transition: transform 0.5s ease-out;
            transform-origin: center;
            will-change: transform;
            border: none;
            box-shadow: none;
            outline: none;
            background-color: #000;
            }

        .card-background {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transition: transform 0.5s ease-out, filter 0.8s ease-in-out;
            will-change: transform;
            border: none;
            outline: none;
            filter: blur(0);
        }

        .card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
            z-index: 2;
            transition: opacity 0.5s ease-out, filter 0.8s ease-in-out;
            border: none;
            outline: none;
            filter: blur(0);
        }

        .card-category {
            font-size: 12px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 8px;
        }

        .card-title {
            font-size: 24px;
            font-weight: 700;
            color: white;
            margin: 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .card-linkedin {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 38px;
            height: 38px;
            z-index: 3;
            transition: transform 0.3s ease, opacity 0.5s ease, filter 0.8s ease-in-out;
            filter: blur(0);
            opacity: 0.8;
            display: block;
            text-decoration: none;
        }

        .card-linkedin img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
        }
        
        .card-github, .card-instagram {
            position: absolute;
            top: 15px;
            width: 38px;
            height: 38px;
            z-index: 3;
            transition: transform 0.3s ease, opacity 0.5s ease, filter 0.8s ease-in-out;
            filter: blur(0);
            opacity: 0.8;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            color: white;
            font-size: 32px;
            border-radius: 50%;
        }

        .card-instagram {
            right: 65px;
            background: #f09433; 
            background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
            background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
            background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
        }

        .card-github {
            right: 115px;
            background: #24292e;
        }
        
        .card-github i, .card-instagram i {
            font-size: 24px;
        }

        /* Efecto hover en la card individual - Solo desktop */
        @media (hover: hover) and (pointer: fine) {
            .card:hover {
                transform: translateY(-15px);
            }

            .card:hover .card-background {
                filter: blur(0);
            }

            .card:hover .card-content {
                filter: blur(0);
            }

            .card:hover .card-linkedin,
            .card:hover .card-github,
            .card:hover .card-instagram {
                filter: blur(0);
                opacity: 1;
                transform: scale(1.1);
            }

            /* Efecto en las cards NO hover cuando se pasa el mouse sobre el grid */
            .card-grid:hover > .card:not(:hover) {
                transform: scale(0.95);
            }

            .card-grid:hover > .card:not(:hover) .card-background {
                filter: none;
            }

            .card-grid:hover > .card:not(:hover) .card-content {
                opacity: 1;
                filter: none;
            }

            .advisors-grid:hover > .card:not(:hover) {
                transform: scale(0.95);
            }
        }

            /* Estilos para el deslizador de descripción */
            .card-with-description {
                overflow: hidden; /* Asegurar que el contenido no se salga */
            }

            .description-slider {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 230px; /* Altura fija para controlar la animación */
                background: #ffffff;
                color: #333;
                transform: translateY(calc(100% - 46px)); /* Oculto inicialmente (solo se ve el handle) */
                transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                z-index: 10;
                border-top-left-radius: 25px;
                border-top-right-radius: 25px;
                box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            }

            /* Estado expandido */
            .card-with-description.expanded .description-slider {
                transform: translateY(0);
            }
            
            /* Ajustar contenido de la card (Nombre/Cargo) para que suba */
            .card-with-description .card-content {
                transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.4s;
                bottom: 46px; /* Dejar espacio para el botón (handle) */
                padding-bottom: 10px; /* Acercar el nombre al botón */
                z-index: 11; /* Asegurar que quede legible */
            }

            .card-with-description.expanded .card-content {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(-184px); /* Subir para quedar justo arriba del slider expandido */
                background: transparent; /* Quitar fondo oscuro para no tapar foto arriba, o ajustar */
                text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* Reforzar sombra para legibilidad sobre foto */
            }

            .description-handle {
                height: 46px;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
                cursor: pointer;
                background: #f8f9fa;
                color: #555;
                font-size: 13px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 1px;
                border-bottom: 1px solid #eaeaea;
                padding-top: 3px;
                padding-bottom: 3px;
            }
            
            .description-handle i {
                transition: transform 0.4s;
                font-size: 12px;
            }

            .card-with-description.expanded .description-handle i {
                transform: rotate(180deg);
            }

            .description-content {
                padding: 25px 30px;
                font-size: 14px;
                line-height: 1.6;
                text-align: justify;
                color: #444;
                height: calc(100% - 46px);
                overflow-y: auto;
            }

        /* Team Header (solo móvil) */
        .team-header {
                display: none;
        }

        /* Responsive */
        @media (max-width: 768px) {
            /* Optimización de rendimiento para móvil */
            /* Se eliminó la simplificación del fondo para mantener la calidad visual original */
            
            .card-background, .card-content, .card-linkedin {
                will-change: transform; 
                /* Filtros desactivados solo durante scroll si fuera posible, 
                   pero para seguridad en móviles de gama media/baja los mantenemos simples */
                filter: none !important; 
            }
            
            .acknowledgment-card {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                background: rgba(30, 41, 59, 0.95) !important; /* Color sólido fallback */
            }

            .team-header {
                display: none !important;
            }

            .card-grid {
                gap: 30px;
                padding: 100px 40px 60px; /* Aumentado padding superior */
                justify-content: flex-start;
                scroll-snap-type: x mandatory;
                scroll-padding: 40px;
                margin-top: 0; /* Eliminado margen negativo */
                z-index: 10;
            }

            .card {
                width: calc(100vw - 120px);
                min-width: calc(100vw - 120px);
                height: calc((100vw - 120px) * 1.5);
                scroll-snap-align: center;
                transition: filter 0.4s ease-out;
            }

            /* Por defecto todas las cards tienen blur y desaturación en móvil */
            .card .card-background {
                filter: blur(0) saturate(1);
                transition: filter 0.4s ease-out;
            }

            .card .card-content {
                filter: blur(0);
                transition: filter 0.4s ease-out;
            }

            .card .card-linkedin {
                filter: blur(0);
                transition: filter 0.4s ease-out;
            }

            /* La card activa no tiene blur ni desaturación */
            .card.active .card-background {
                filter: blur(0) saturate(1);
            }

            .card.active .card-content {
                filter: blur(0);
            }

            .card.active .card-linkedin {
                filter: blur(0);
                opacity: 1;
            }

            .card-content {
                padding: 20px;
            }

            .card-category {
                font-size: 11px;
                margin-bottom: 6px;
            }

            .card-title {
                    font-size: 20px;
                }
                
            /* Scrollbar más pequeño en móvil */
            .card-grid::-webkit-scrollbar {
                height: 4px;
            }
        }

            @media (max-width: 480px) {
            .team-header {
                padding: 28px 35px 5px;
                gap: 12px;
            }

            .team-title {
                font-size: 28px;
                letter-spacing: 2px;
            }

            .team-logo {
                height: 30px;
            }

            .card-grid {
                gap: 25px;
                padding: 100px 40px 80px;
                scroll-padding: 40px;
                margin-top: 0;
            }

            .card {
                width: calc(100vw - 100px);
                min-width: calc(100vw - 100px);
                height: calc((100vw - 100px) * 1.5);
            }

            .card-content {
                padding: 18px;
            }

            .card-category {
                font-size: 10px;
            }

            .card-title {
                font-size: 18px;
            }

            /* Blur y desaturación un poco más suave en pantallas muy pequeñas */
            .card .card-background {
                filter: blur(0) saturate(1);
            }

            .card .card-content {
                filter: blur(0);
            }

            .card .card-linkedin {
                filter: blur(0);
            }

            .card.active .card-background {
                filter: blur(0) saturate(1);
            }

            .card.active .card-content {
                filter: blur(0);
            }

            .card.active .card-linkedin {
                filter: blur(0);
                opacity: 1;
            }
        }

        /* Estilos para la navbar con efecto glass (glassmorphism) */
        #header-navbar {
            position: fixed !important;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(12, 56, 114, 0.25) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: none;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
            padding-top: 0.5rem !important;
            padding-bottom: 0.5rem !important;
        }

        #header-navbar .nav-item {
            margin-left: 8px;
            margin-right: 8px;
        }

        #header-navbar .nav-link {
            font-weight: bold !important;
            font-family: 'Lato', sans-serif !important;
            font-size: 15px !important;
            color: rgba(255, 255, 255, 0.95) !important;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
        }
        
        #header-navbar .nav-link i {
            font-size: 16px;
        }
        
        #header-navbar .nav-link:hover {
            color: rgba(255, 255, 255, 1) !important;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }

        #header-navbar .dropdown-toggle {
            font-weight: bold !important;
            font-family: 'Lato', sans-serif !important;
            font-size: 15px !important;
            color: rgba(255, 255, 255, 0.95) !important;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
        }
        
        #header-navbar .dropdown-toggle i {
            font-size: 16px;
        }
        
        #header-navbar .dropdown-toggle:hover {
            color: rgba(255, 255, 255, 1) !important;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }
        
        #header-navbar .dropdown-menu {
            background: #ffffff !important;
            border: none;
            border-radius: 12px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
            padding: 8px;
        }
        
        #header-navbar .dropdown-item {
            color: #0c3872 !important;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border-radius: 8px;
            font-weight: 500;
        }
        
        #header-navbar .dropdown-item i {
            font-size: 16px;
            min-width: 20px;
            text-align: center;
            color: #0c3872;
        }
        
        #header-navbar .dropdown-item:hover {
            background: #0c3872 !important;
            color: #ffffff !important;
        }
        
        #header-navbar .dropdown-item:hover i {
            color: #ffffff;
        }
        
        #header-navbar .dropdown-divider {
            border-color: rgba(12, 56, 114, 0.1);
            margin: 8px 0;
        }

        #header-navbar .navbar-brand img {
            height: 35px !important;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

/* Estilos para la sección de agradecimientos */
.acknowledgments-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    z-index: 1;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    filter: blur(10px);
    opacity: 0;
    padding: 20px;
}

.acknowledgments-section.active {
    pointer-events: auto;
    z-index: 30;
}

.acknowledgments-content {
    width: 100%;
}

.acknowledgments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.acknowledgment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.acknowledgment-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.acknowledgment-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.acknowledgment-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.acknowledgment-card.community {
    grid-column: span 2;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.description-contact-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.description-contact-wrapper strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.description-contact-wrapper p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.description-contact-wrapper a {
    color: #007bff;
    text-decoration: none;
}

.description-contact-wrapper a:hover {
    text-decoration: underline;
}

/* Scroll indicator specific for advisors */
.advisors-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .acknowledgments-section {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        padding: 40px 20px 120px; /* Extra padding bottom for mobile nav */
        margin-top: 50px;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    .acknowledgments-grid {
        grid-template-columns: 1fr;
    }

    .acknowledgment-card.community {
        grid-column: span 1;
    }
    
    .advisors-indicator {
        display: none;
    }
}

/* =========================================
   6. Mobile Navigation & Responsive
   ========================================= */
/* Floating Mobile Navigation - Estilo Neumórfico */
.floating-mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 380px;
}

.floating-mobile-nav .nav-container {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(255, 255, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.005);
    border-radius: 22px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 12px 25px rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.floating-mobile-nav .nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0.01) 30%,
            rgba(255, 255, 255, 0.005) 50%,
            rgba(255, 255, 255, 0.01) 70%,
            rgba(255, 255, 255, 0.04) 100%);
    border-radius: 28px;
    pointer-events: none;
    opacity: 0.4;
}

.floating-mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-width: 56px;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-mobile-nav .nav-item:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    text-decoration: none;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.01);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(130%);
    -webkit-backdrop-filter: blur(15px) saturate(130%);
}

.floating-mobile-nav .nav-item:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Todos los elementos se ven iguales - sin distinción de activo */
.floating-mobile-nav .nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-mobile-nav .nav-item.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.floating-mobile-nav .nav-item.active .nav-label {
    opacity: 1;
    font-weight: 700;
}

.floating-mobile-nav .nav-icon {
    color: #ffffff !important;
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 3;
}


.floating-mobile-nav .nav-item:hover .nav-icon {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.floating-mobile-nav .nav-label {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* Efectos táctiles para móviles - iOS 26 style */
.floating-mobile-nav .nav-item:active {
    transform: translateY(-1px) scale(0.97);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.1s ease;
}


/* Mostrar solo en móvil */
@media (max-width: 768px) {
    .scroll-hint-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .floating-mobile-nav {
        display: block !important;
        animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Espaciado al final de la página para la barra flotante */
    body {
        padding-bottom: 100px;
    }

    /* Ajustes para pantallas muy pequeñas - iOS 26 style */
    @media (max-width: 480px) {
        .floating-mobile-nav {
            width: 96%;
            max-width: 360px;
            bottom: 18px;
        }
        
        .floating-mobile-nav .nav-container {
            padding: 8px 10px;
            border-radius: 20px;
            backdrop-filter: blur(45px) saturate(190%) brightness(105%);
            -webkit-backdrop-filter: blur(45px) saturate(190%) brightness(105%);
        }
        
        .floating-mobile-nav .nav-item {
            padding: 8px 10px;
            min-width: 50px;
            border-radius: 16px;
        }
        
        .floating-mobile-nav .nav-icon {
            font-size: 18px;
            margin-bottom: 3px;
        }
        
        .floating-mobile-nav .nav-label {
            font-size: 10px;
            font-weight: 600;
        }
    }

    /* Ajustes para pantallas extra pequeñas */
    @media (max-width: 375px) {
        .floating-mobile-nav {
            width: 97%;
            max-width: 340px;
            bottom: 16px;
        }
        
        .floating-mobile-nav .nav-container {
            padding: 6px 8px;
            border-radius: 18px;
        }
        
        .floating-mobile-nav .nav-item {
            padding: 6px 8px;
            min-width: 46px;
        }
        
        .floating-mobile-nav .nav-icon {
            font-size: 16px;
        }
        
        .floating-mobile-nav .nav-label {
            font-size: 9px;
        }
    }
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Ocultar navbar desktop en móvil */
@media (max-width: 768px) {
    #header-navbar {
        display: none !important;
    }
}

        /* Agradecimientos */
        .acknowledgments-section {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            z-index: 1;
            pointer-events: none;
            opacity: 0;
            filter: blur(10px);
            transition: all 0.5s ease;
            text-align: center;
        }

        .acknowledgments-content {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }

        .acknowledgments-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .acknowledgment-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
            text-align: left;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .acknowledgment-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .acknowledgment-card h4 {
            color: #fff;
            font-weight: 500;
            font-size: 1em;
            margin-bottom: 8px;
            letter-spacing: 1px;
            text-transform: uppercase;
            opacity: 0.9;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 8px;
            display: inline-block;
        }

        .acknowledgment-card p {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95em;
            line-height: 1.5;
            margin: 0;
            font-weight: 300;
        }
        
        .acknowledgment-card strong {
            font-weight: 600;
            color: #fff;
        }

        @media (max-width: 768px) {
            .acknowledgments-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .advisors-section {
                left: 0 !important;
                top: 0 !important;
                width: 100% !important;
                height: auto;
                overflow-y: hidden; /* Scroll horizontal en grid interno */
                padding: 60px 0 60px; /* Sin padding lateral */
                display: block;
                position: relative !important;
                opacity: 1 !important;
                filter: none !important;
                pointer-events: auto !important;
            }

            .advisors-grid {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 20px;
                padding: 10px 40px 40px;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                justify-content: flex-start;
            }

            .advisors-grid .card {
                min-width: 280px;
                max-width: 300px;
                scroll-snap-align: center;
                flex-shrink: 0;
                margin-bottom: 0;
            }

            .acknowledgments-section {
                /* Resetear posicionamiento para permitir scroll */
                left: 0 !important;
                top: 0 !important;
                transform: none !important; 
                width: 100% !important;
                height: auto; /* Altura automática */
                overflow-y: visible;
                padding: 60px 20px 80px;
                display: block;
                position: relative !important;
                opacity: 1 !important;
                filter: none !important;
                pointer-events: auto !important;
            }

            .acknowledgments-content {
                transform: none !important; 
                margin: 0;
            }

            /* Asegurar que el body tenga altura automática */
            body {
                min-height: auto !important;
                height: auto !important;
                overflow-y: auto !important;
            }
            
            /* Ocultar indicadores de scroll innecesarios en este modo */
            .scroll-indicator, .advisors-indicator {
                display: none !important;
            }
            
            /* Ajuste de márgenes para separar secciones */
            .card-grid {
                margin-bottom: 0;
                padding-bottom: 80px; /* Aumentado */
            }
        }

        .acknowledgments-section.active {
            pointer-events: auto;
            z-index: 25;
        }

        /* Indicador de scroll */
        .scroll-indicator {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            z-index: 15;
            animation: bounce 2s infinite;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .scroll-indicator span {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 5px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .scroll-indicator i {
            font-size: 20px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }
        
        /* Indicador para sección de asesores */
        .advisors-indicator {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 30px;
            animation: bounce-vertical 2s infinite;
            width: 100%;
            text-align: center;
        }

        .advisors-indicator span {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 5px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .advisors-indicator i {
            font-size: 20px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        @keyframes bounce-vertical {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }

        /* Extracted inline styles */
        .advisors-section h2 {
            font-weight: 300;
            letter-spacing: 2px;
        }

        .acknowledgments-section h2 {
            font-weight: 300;
            letter-spacing: 4px;
            text-transform: uppercase;
        }

        .acknowledgment-card.community {
            grid-column: 1 / -1;
            text-align: center;
            align-items: center;
        }

        .acknowledgment-card.community h4 {
            border-bottom: none;
        }

        .description-content strong {
            display: block;
            margin-bottom: 5px;
        }

        .description-content p {
            margin: 0;
            font-size: 0.95em;
        }

        .description-content a {
            color: #0c3872;
            text-decoration: none;
        }

        .description-contact-wrapper {
            margin-top: 15px;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }

        .footer-logo {
            height: 40px;
            opacity: 0.7;
            filter: grayscale(100%) brightness(200%);
        }
