 /* Estilos personalizados */
 body {
     padding-top: 70px;
     padding-left: 0;
     transition: background-color 0.3s ease, color 0.3s ease;
     background: #ffffff;
     color: #333;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 /* Modo oscuro */
 body.dark-mode {
     background: #0a0a0a;
     color: #e0e0e0;
 }

 /* Header fijo */
 .main-header {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1030;
     height: 70px;
     box-shadow: none;
     border-bottom: none;
     transition: background-color 0.3s ease, border-color 0.3s ease;
     background: rgba(255, 255, 255, 0.95) !important;
     backdrop-filter: blur(10px);
 }

 body.dark-mode .main-header,
 body.dark-mode header.main-header {
     background: rgba(20, 20, 20, 0.95) !important;
     border-bottom: 1px solid rgba(102, 126, 234, 0.3) !important;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
 }

/* Forzar override de Bootstrap bg-white */
body.dark-mode .main-header.bg-white {
    background: rgba(20, 20, 20, 0.95) !important;
}

/* Estilos para los botones de navegación del header */
.nav-link-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-link-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link-header:hover::before {
    left: 100%;
}

.nav-link-header i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
}

.nav-link-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    color: #8b9aff;
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(139, 154, 255, 0.3);
}

.nav-link-header:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(139, 154, 255, 0.8));
    color: #a855f7;
}

.nav-link-header.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #8b9aff;
    box-shadow: 
        0 5px 20px rgba(102, 126, 234, 0.5),
        0 0 30px rgba(139, 154, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-link-header.active i {
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.nav-link-header.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #8b9aff 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(139, 154, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Modo claro para los botones del header */
body:not(.dark-mode) .nav-link-header {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

body:not(.dark-mode) .nav-link-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #764ba2;
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.3),
        0 0 15px rgba(139, 154, 255, 0.2);
}

body:not(.dark-mode) .nav-link-header.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 
        0 5px 20px rgba(102, 126, 234, 0.4),
        0 0 25px rgba(139, 154, 255, 0.3);
}

/* Botón hamburguesa para móviles */
.hamburger-btn {
    display: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1031;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.hamburger-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #8b9aff 100%);
    transform: rotate(90deg);
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 1030;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1029;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mobile-nav-link i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    color: #8b9aff;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #8b9aff;
    border-left-color: #8b9aff;
    padding-left: 30px;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: #a855f7;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(139, 154, 255, 0.6));
}

.mobile-nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    color: #ffffff;
}

/* Responsive para botones del header */
@media (max-width: 991px) {
    .nav-link-header {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .nav-link-header i {
        font-size: 1rem;
    }
}

/* Ocultar navegación desktop y mostrar hamburguesa en móviles */
@media (max-width: 768px) {
    .main-header nav:not(.mobile-menu) {
        display: none !important;
    }
    
    .hamburger-btn,
    .hamburger-btn.d-md-none {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .main-header .header_titulo {
        font-size: 1rem;
    }
    
    .main-header {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ajustes generales para móviles */
    .logo {
        height: 35px !important;
    }

    .main-header {
        height: 60px !important;
    }

    body {
        padding-top: 60px !important;
    }

    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .mobile-menu-overlay {
        top: 60px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 576px) {
    .main-header .header_titulo {
        font-size: 0.9rem;
    }

    .logo {
        height: 30px !important;
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

 /* Botón de cambio de tema */
 .theme-toggle-btn {
     position: relative;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     border: 2px solid transparent;
     background: linear-gradient(135deg, #667eea, #764ba2);
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.3s ease;
     overflow: hidden;
     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
 }

 .theme-toggle-btn:hover {
     transform: scale(1.1) rotate(180deg);
     box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
 }

 .theme-toggle-btn:active {
     transform: scale(0.95) rotate(180deg);
 }

 .theme-icon-light,
 .theme-icon-dark {
     position: absolute;
     font-size: 1.2rem;
     transition: opacity 0.3s ease, transform 0.3s ease;
 }

 .theme-icon-light {
     opacity: 1;
     transform: rotate(0deg) scale(1);
 }

 .theme-icon-dark {
     opacity: 0;
     transform: rotate(180deg) scale(0);
 }

 body.dark-mode .theme-icon-light {
     opacity: 0;
     transform: rotate(-180deg) scale(0);
 }

 body.dark-mode .theme-icon-dark {
     opacity: 1;
     transform: rotate(0deg) scale(1);
 }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    z-index: 1020;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    overflow-y: auto;
    background: white !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .sidebar,
body.dark-mode .sidebar.bg-white {
    background: #1a1a1a !important;
    border-right: 1px solid rgba(102, 126, 234, 0.3) !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.7), inset -1px 0 0 rgba(102, 126, 234, 0.1);
}

/* Cuando el sidebar está abierto */
.sidebar-open .sidebar {
    left: 0;
}

/* En desktop, agregar padding al body cuando el sidebar está abierto */
@media (min-width: 769px) {
    .sidebar-open body {
        padding-left: 250px;
    }
}

/* En móviles, el sidebar siempre está oculto por defecto y no afecta el padding */
@media (max-width: 768px) {
    .sidebar {
        left: -100% !important;
        width: 280px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1020 !important;
    }

    .sidebar-open .sidebar {
        left: 0 !important;
    }

    /* No agregar padding al body en móviles */
    .sidebar-open body {
        padding-left: 0 !important;
    }

    /* Prevenir scroll del body cuando el sidebar está abierto */
    body.sidebar-open {
        overflow: hidden;
    }

    /* Overlay oscuro cuando el sidebar está abierto en móviles */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1019;
        animation: fadeIn 0.3s ease;
        pointer-events: auto;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

 /* Nav items del sidebar */
 .sidebar .nav-link {
     border-radius: 0;
     color: #333;
     padding: 12px 20px;
     transition: all 0.2s ease;
     border-left: 3px solid transparent;
 }

 body.dark-mode .sidebar .nav-link {
     color: #e0e0e0 !important;
 }

 body.dark-mode .sidebar .nav-link.active {
     background-color: rgba(102, 126, 234, 0.15) !important;
     color: #8b9aff !important;
     border-left-color: #8b9aff;
 }

 .sidebar .nav-link:hover {
     background-color: rgba(0, 0, 0, 0.05);
 }

 body.dark-mode .sidebar .nav-link:hover {
     background-color: rgba(102, 126, 234, 0.15) !important;
     color: #8b9aff !important;
     border-left-color: #8b9aff;
     box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
 }

 .sidebar .nav-link i {
     margin-right: 10px;
     width: 20px;
     text-align: center;
     transition: color 0.2s ease;
 }

 body.dark-mode .sidebar .nav-link i {
     color: #8b9aff;
 }

 body.dark-mode .sidebar .nav-link:hover i {
     color: #a855f7;
     filter: drop-shadow(0 0 5px rgba(139, 154, 255, 0.5));
 }

 /* Botón del menú */
 .menu-btn {
     transition: transform 0.3s ease, color 0.3s ease;
     color: #333;
     background: transparent;
     border: none;
     font-size: 1.2rem;
 }

 body.dark-mode .menu-btn {
     color: #e0e0e0;
 }

 body.dark-mode .menu-btn:hover {
     color: #8b9aff;
     background: rgba(102, 126, 234, 0.1);
 }

 .sidebar-open .menu-btn {
     transform: rotate(90deg);
 }

 /* Contenido principal */
 .main-content {
     transition: margin-left 0.3s ease;
     position: relative;
     z-index: 2;
     margin-top: -60px;
     padding-top: 60px;
 }

 /* Secciones con mejor diseño */
 section {
     position: relative;
     overflow: hidden;
 }

 section.bg-white {
     background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
     transition: background 0.3s ease;
 }

 body.dark-mode section.bg-white {
     background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%) !important;
 }

 section.bg-light {
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
     transition: background 0.3s ease;
 }

 body.dark-mode section.bg-light {
     background: linear-gradient(135deg, #151515 0%, #0a0a0a 100%) !important;
 }

 /* Cards mejoradas */
 .card {
     border: none;
     border-radius: 20px;
     transition: all 0.3s ease;
     overflow: hidden;
     background: white;
 }

 body.dark-mode .card {
     background: #1f1f1f;
     border: 1px solid rgba(102, 126, 234, 0.2);
     color: #e0e0e0;
 }

 .card:hover {
     transform: translateY(-10px);
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
 }

 .card img {
     transition: transform 0.3s ease;
 }

 .card:hover img {
     transform: scale(1.05);
 }

 /* Títulos mejorados */
 h2 {
     position: relative;
     padding-bottom: 20px;
     margin-bottom: 40px;
 }

 h2::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
     border-radius: 2px;
 }

 /* Botones mejorados */
 .btn-dark {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border: none;
     border-radius: 25px;
     padding: 10px 25px;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
 }

 .btn-dark:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
     background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
 }

 /* Imágenes con efecto */
 img.rounded {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 img.rounded:hover {
     transform: scale(1.02);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
 }

 /* =================================== Header RESPONSIVO ================= */
 .header_titulo{
font-style: italic;
font-size: 2.5rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
letter-spacing: 2px;
transition: all 0.3s ease;
}

 body.dark-mode .header_titulo {
     background: linear-gradient(135deg, #8b9aff 0%, #a855f7 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     filter: drop-shadow(0 0 15px rgba(139, 154, 255, 0.8));
     text-shadow: 0 0 20px rgba(139, 154, 255, 0.6);
 }

 /* Logo en modo oscuro */
 body.dark-mode .logo {
     filter: brightness(1.1) contrast(1.1);
     transition: filter 0.3s ease;
 }
.video-section {
  position: relative;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  box-shadow: none;
  border-top: none;
  margin-top: 0;
  background: #000;
  transition: all 0.3s ease;
}

body.dark-mode .video-section {
  background: #000;
}

body.dark-mode .video-container::after {
  background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 0%, transparent 100%);
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.video-container:hover video {
  filter: brightness(1);
}

.video-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    padding: 20px;
    background-color: rgb(0 0 0 / 100%);
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.text-overlay h3 {
  font-size: 2rem;
  margin: 0;
  color: white;
  font-style: italic;
}

.text-overlay p {
  font-size: 1.2rem;
  margin-top: 10px;
  font-style: italic;
}
.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}
.seccion_color_1{
    background-color: #dfdfdf; /* Color de fondo claro */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

 /* =================================== FOTER RESPONSIVO ================= */

 /* Animaciones de entrada */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 section {
     animation: fadeInUp 0.6s ease-out;
 }

 /* Video responsive */
 @media (max-width: 768px) {
     body {
         padding-top: 60px;
     }
     
     .main-header {
         height: 60px;
     }
     
     .video-section {
         height: 60vh;
         top: 0;
     }

     .video-container::after {
         height: 80px;
     }

     .header_titulo {
         font-size: 1.8rem;
     }
 }

 /* Responsivo */
 @media (max-width: 768px) {
     .sidebar-open body {
         padding-left: 0;
         position: relative;
         overflow: hidden;
     }

     .sidebar-open .sidebar {
         box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
     }

     .card {
         margin-bottom: 20px;
     }

     h2 {
         font-size: 1.8rem;
     }
 }

 /* Efectos de scroll suave */
 html {
     scroll-behavior: smooth;
 }

 /* Mejoras adicionales */
 .lead {
     font-size: 1.2rem;
     line-height: 1.8;
     color: #555;
 }

 .shadow {
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
 }

 .shadow-sm {
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
 }

 /* Video wrapper con efecto hover */
 .video-wrapper {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .video-wrapper:hover {
     transform: translateY(-5px);
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
 }

 /* Mejoras en los iconos de las cards de filosofía */
 .card-body i {
     transition: transform 0.3s ease;
 }

 .card:hover .card-body i {
     transform: scale(1.1) rotate(5deg);
 }

 /* Efecto de overlay en las cards de programas */
 .card a {
     text-decoration: none;
     color: inherit;
     display: block;
     height: 100%;
 }

 .card a:hover {
     text-decoration: none;
     color: inherit;
 }

 /* Mejoras en el modal del video */
 .modal-content {
     border-radius: 20px;
     overflow: hidden;
     border: none;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
 }

 .modal-header {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     border: none;
 }

 .modal-header .btn-close {
     filter: brightness(0) invert(1);
 }

 /* Animación para las cards al aparecer */
 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateY(50px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .card {
     animation: slideIn 0.6s ease-out backwards;
 }

 .card:nth-child(1) { animation-delay: 0.1s; }
 .card:nth-child(2) { animation-delay: 0.2s; }
 .card:nth-child(3) { animation-delay: 0.3s; }
 .card:nth-child(4) { animation-delay: 0.4s; }
 .card:nth-child(5) { animation-delay: 0.5s; }
 .card:nth-child(6) { animation-delay: 0.6s; }

/* Carrusel de logos infinito */
#colaboraciones {
    overflow-x: hidden;
}

#colaboraciones .container {
    position: relative;
    z-index: 1;
}

.logos-carousel-container {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 50px 0;
    background: transparent;
    margin-top: 30px;
    margin-bottom: 30px;
    z-index: 1;
}

 .logos-carousel {
     display: flex;
     animation: scroll-logos 25s linear infinite;
     gap: 50px;
     width: fit-content;
     will-change: transform;
     padding: 0 20px;
 }

 .logo-slide {
     flex-shrink: 0;
     width: 220px;
     height: 160px;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0;
     background: transparent;
     border-radius: 0;
     box-shadow: none;
     transition: transform 0.3s ease, opacity 0.3s ease;
     border: none;
 }

 .logo-slide:hover {
     transform: scale(1.1);
     opacity: 1;
 }

 .logo-slide a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     height: 100%;
     text-decoration: none;
 }

 .logo-img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     filter: grayscale(0%) brightness(1);
     transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
     opacity: 0.8;
 }

 .logo-slide:hover .logo-img {
     filter: grayscale(0%) brightness(1.1);
     transform: scale(1.05);
     opacity: 1;
 }

/* Remover fondo blanco usando mix-blend-mode multiply (hace blancos transparentes) */
.logo-no-bg {
    mix-blend-mode: multiply;
    filter: contrast(1.8) brightness(1.3) saturate(1.6);
    background: transparent;
}

/* En modo oscuro usar screen para mejor visibilidad */
body.dark-mode .logo-no-bg {
    mix-blend-mode: screen;
    filter: contrast(2) brightness(0.8) saturate(1.8);
}

/* Efecto hover */
.logo-slide:hover .logo-no-bg {
    filter: contrast(2) brightness(1.4) saturate(1.8);
    transform: scale(1.05);
}

body.dark-mode .logo-slide:hover .logo-no-bg {
    filter: contrast(2.2) brightness(0.75) saturate(2);
}

/* Ajustar tamaño de las nuevas imágenes PNG para que coincidan con las demás */
.logo-nuevo {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: center;
    margin: 0;
    display: block;
    transform: scale(1.4);
    transform-origin: center center;
    vertical-align: middle;
}

.logo-slide:hover .logo-nuevo {
    transform: scale(1.45);
    transform-origin: center center;
}

/* Asegurar alineación perfecta en el contenedor flex */
.logo-slide a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* El carrusel siempre se mueve, nunca se detiene */
.logos-carousel {
    animation: scroll-logos 25s linear infinite !important;
}

 /* Responsive para el carrusel */
 @media (max-width: 768px) {
     .logo-slide {
         width: 150px;
         height: 120px;
         padding: 15px;
     }

     .logos-carousel {
         gap: 30px;
     }
 }

 @media (max-width: 576px) {
     .logo-slide {
         width: 120px;
         height: 100px;
         padding: 10px;
     }

     .logos-carousel {
         gap: 20px;
     }
 }

 /* ========== ESTILOS TECNOLÓGICOS PARA "¿QUIÉNES SOMOS?" ========== */

 /* Efectos de fondo tecnológicos */
 .tech-bg-overlay {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: 
         radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
         radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
     pointer-events: none;
     z-index: 0;
 }

 .tech-grid-overlay {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-image: 
         linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
         linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
     background-size: 50px 50px;
     pointer-events: none;
     z-index: 0;
     animation: grid-move 20s linear infinite;
 }

 @keyframes grid-move {
     0% { transform: translate(0, 0); }
     100% { transform: translate(50px, 50px); }
 }

 /* Contenedor del typewriter mejorado */
 .typewriter-container {
     position: relative;
     display: inline-block;
     padding: 0;
     background: transparent;
     border-radius: 0;
     border: none;
     box-shadow: none;
     margin-bottom: 30px;
 }

 .typewriter-container::before {
     display: none;
 }

 /* Texto del typewriter */
 .tech-typewriter {
     color: #667eea;
     text-shadow: none;
     letter-spacing: 2px;
     font-weight: 700;
     position: relative;
     z-index: 1;
 }

 /* Cursor parpadeante */
 .typewriter-cursor {
     display: inline-block;
     width: 3px;
     height: 1.2em;
     background: #667eea;
     margin-left: 5px;
     animation: cursor-blink 1s infinite;
     box-shadow: none;
     vertical-align: middle;
 }

 @keyframes cursor-blink {
     0%, 50% { opacity: 1; }
     51%, 100% { opacity: 0; }
 }

 /* Wrapper de imagen tecnológica */
 .tech-image-wrapper {
     position: relative;
     padding: 20px;
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
     border-radius: 20px;
     overflow: hidden;
 }

 .tech-glow-effect {
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
     animation: glow-pulse 4s ease-in-out infinite;
     pointer-events: none;
     z-index: 1;
 }

 @keyframes glow-pulse {
     0%, 100% { transform: scale(1); opacity: 0.5; }
     50% { transform: scale(1.2); opacity: 0.8; }
 }

 .tech-image {
     position: relative;
     z-index: 2;
     transition: transform 0.3s ease;
     filter: brightness(1.05) contrast(1.1);
 }

 .tech-image:hover {
     transform: scale(1.02);
 }

 .tech-border-animation {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     border: 2px solid transparent;
     border-radius: 20px;
     background: linear-gradient(135deg, #667eea, #764ba2) padding-box,
                 linear-gradient(135deg, #667eea, #764ba2) border-box;
     background-clip: padding-box, border-box;
     z-index: 0;
     animation: border-rotate 3s linear infinite;
     opacity: 0.6;
 }

 @keyframes border-rotate {
     0% { background-position: 0% 50%; }
     100% { background-position: 100% 50%; }
 }

 /* Wrapper de contenido */
 .tech-content-wrapper {
     position: relative;
     z-index: 1;
     padding: 20px;
 }

 .tech-title {
     color: #667eea;
     font-size: 2.5rem;
     font-weight: 700;
     text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
     position: relative;
     display: inline-block;
 }

 .tech-title::after {
     content: '';
     position: absolute;
     bottom: -10px;
     left: 0;
     width: 100%;
     height: 4px;
     background: linear-gradient(90deg, #667eea, #764ba2);
     border-radius: 2px;
     box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
 }

 .tech-divider {
     width: 60px;
     height: 3px;
     background: linear-gradient(90deg, #667eea, #764ba2);
     margin: 20px 0;
     border-radius: 2px;
     box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
 }

 .tech-text {
     color: #333;
     line-height: 1.8;
     font-size: 1.1rem;
 }

 .tech-highlight {
     background: linear-gradient(135deg, #667eea, #764ba2);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     font-weight: 700;
     position: relative;
 }

 /* Estadísticas tecnológicas */
 .tech-stats {
     display: flex;
     gap: 30px;
     margin-top: 30px;
     padding-top: 30px;
     border-top: 2px solid rgba(102, 126, 234, 0.2);
 }

 .tech-stat-item {
     text-align: center;
     position: relative;
 }

 .tech-stat-number {
     font-size: 2.5rem;
     font-weight: 700;
     background: linear-gradient(135deg, #667eea, #764ba2);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
     animation: number-glow 2s ease-in-out infinite;
 }

 @keyframes number-glow {
     0%, 100% { filter: brightness(1); }
     50% { filter: brightness(1.3); }
 }

 .tech-stat-label {
     color: #666;
     font-size: 0.9rem;
     margin-top: 5px;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 /* Responsive para sección tecnológica */
 @media (max-width: 768px) {
     .tech-typewriter {
         font-size: 1.8rem;
     }

     .typewriter-container {
         padding: 15px 20px;
     }

     .tech-title {
         font-size: 2rem;
     }

     .tech-stats {
         flex-direction: column;
         gap: 20px;
     }

     .tech-stat-number {
         font-size: 2rem;
     }
 }

 /* ========== EFECTOS MEJORADOS PARA "¿QUIÉNES SOMOS?" ========== */

 /* Partículas flotantes */
 .floating-particles {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     overflow: hidden;
     z-index: 0;
     pointer-events: none;
 }

 .floating-particles::before,
 .floating-particles::after {
     content: '';
     position: absolute;
     width: 4px;
     height: 4px;
     background: rgba(102, 126, 234, 0.6);
     border-radius: 50%;
     animation: float-particle 15s infinite ease-in-out;
 }

 .floating-particles::before {
     left: 20%;
     animation-delay: 0s;
     box-shadow: 
         200px 300px rgba(102, 126, 234, 0.4),
         400px 150px rgba(118, 75, 162, 0.5),
         600px 400px rgba(102, 126, 234, 0.3),
         800px 200px rgba(118, 75, 162, 0.4);
 }

 .floating-particles::after {
     left: 60%;
     animation-delay: 5s;
     box-shadow: 
         150px 250px rgba(118, 75, 162, 0.4),
         350px 100px rgba(102, 126, 234, 0.5),
         550px 350px rgba(118, 75, 162, 0.3),
         750px 150px rgba(102, 126, 234, 0.4);
 }

 @keyframes float-particle {
     0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
     25% { transform: translateY(-100px) translateX(50px); opacity: 0.8; }
     50% { transform: translateY(-200px) translateX(-30px); opacity: 0.5; }
     75% { transform: translateY(-150px) translateX(80px); opacity: 0.7; }
 }

 /* Haz de luz animado */
 .light-beam {
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
     animation: rotate-beam 20s linear infinite;
     z-index: 0;
     pointer-events: none;
 }

 @keyframes rotate-beam {
     0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
 }

 /* Imagen 3D mejorada */
 .tech-image-wrapper-3d {
     position: relative;
     padding: 20px;
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
     border-radius: 20px;
     overflow: visible;
     transform-style: preserve-3d;
     transition: transform 0.3s ease;
 }

 .tech-image-wrapper-3d:hover {
     transform: perspective(1000px) rotateY(5deg) rotateX(-5deg);
 }

 .tech-image-3d {
     position: relative;
     z-index: 2;
     transition: transform 0.5s ease, filter 0.3s ease;
     filter: brightness(1.05) contrast(1.1);
     transform-style: preserve-3d;
 }

 .tech-image-wrapper-3d:hover .tech-image-3d {
     transform: scale(1.05) translateZ(20px);
     filter: brightness(1.15) contrast(1.2);
 }

 /* Reflejo de imagen */
 .image-reflection {
     position: absolute;
     bottom: -20px;
     left: 20px;
     right: 20px;
     height: 50%;
     background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
     border-radius: 0 0 20px 20px;
     transform: scaleY(-1);
     opacity: 0.3;
     z-index: 1;
     pointer-events: none;
 }

 /* Luz que sigue el mouse */
 .hover-light {
     position: absolute;
     width: 200px;
     height: 200px;
     background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
     border-radius: 50%;
     pointer-events: none;
     opacity: 0;
     transition: opacity 0.3s ease;
     z-index: 3;
 }

 .tech-image-wrapper-3d:hover .hover-light {
     opacity: 1;
 }

 /* Glassmorphism para contenido */
 .glassmorphism {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border-radius: 20px;
     border: 1px solid rgba(102, 126, 234, 0.2);
     padding: 30px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
     transition: all 0.3s ease;
 }

 body.dark-mode .glassmorphism {
     background: rgba(20, 20, 20, 0.3);
     border-color: rgba(102, 126, 234, 0.3);
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
 }

 .glassmorphism:hover {
     background: rgba(255, 255, 255, 0.15);
     border-color: rgba(102, 126, 234, 0.4);
     box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
 }

 body.dark-mode .glassmorphism:hover {
     background: rgba(20, 20, 20, 0.4);
     box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
 }

 /* Título animado */
.tech-title-animated {
    color: #667eea;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    animation: title-float 3s ease-in-out infinite;
    margin-bottom: 1rem;
    padding-bottom: 0;
    width: 100%;
}

@keyframes title-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tech-title-animated::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: underline-expand 1s ease-out;
}

@keyframes underline-expand {
    from { width: 0; }
    to { width: 100%; }
}

/* Divisor animado */
.tech-divider-animated {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 20px 0;
    border-radius: 2px;
    animation: divider-glow 2s ease-in-out infinite;
    position: relative;
    display: block;
    margin-left: 0;
    margin-right: auto;
    clear: both;
    text-align: left;
}

 .tech-divider-animated::before {
     content: '';
     position: absolute;
     left: -10px;
     top: 50%;
     transform: translateY(-50%);
     width: 20px;
     height: 20px;
     background: #667eea;
     border-radius: 50%;
     animation: pulse-dot 2s ease-in-out infinite;
     z-index: 1;
 }

 @keyframes divider-glow {
     0%, 100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.5); }
     50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
 }

 @keyframes pulse-dot {
     0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
     50% { transform: translateY(-50%) scale(1.5); opacity: 0.7; }
 }

 /* Texto con fade in */
 .fade-in-text {
     animation: fadeInUp 0.8s ease-out;
 }

 .fade-in-text-delay {
     animation: fadeInUp 1s ease-out 0.3s both;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Texto con pulso */
 .pulse-text {
     animation: text-pulse 2s ease-in-out infinite;
 }

 @keyframes text-pulse {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.8; }
 }

 /* Estadísticas mejoradas 3D */
 .tech-stats-enhanced {
     display: flex;
     gap: 20px;
     margin-top: 30px;
     padding-top: 30px;
     border-top: 2px solid rgba(102, 126, 234, 0.2);
     width: 100%;
     clear: both;
     flex-wrap: wrap;
     justify-content: space-between;
 }

 .tech-stat-item-3d {
     text-align: center;
     position: relative;
     flex: 1;
     padding: 20px;
     background: rgba(102, 126, 234, 0.05);
     border-radius: 15px;
     border: 1px solid rgba(102, 126, 234, 0.1);
     transition: all 0.3s ease;
     transform-style: preserve-3d;
 }

 body.dark-mode .tech-stat-item-3d {
     background: rgba(102, 126, 234, 0.1);
     border-color: rgba(102, 126, 234, 0.3);
 }

 .tech-stat-item-3d:hover {
     transform: translateY(-10px) translateZ(10px);
     background: rgba(102, 126, 234, 0.1);
     border-color: rgba(102, 126, 234, 0.3);
     box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
 }

 body.dark-mode .tech-stat-item-3d:hover {
     background: rgba(102, 126, 234, 0.2);
     box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
 }

 .stat-icon-wrapper {
     width: 50px;
     height: 50px;
     margin: 0 auto 15px;
     background: linear-gradient(135deg, #667eea, #764ba2);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 1.5rem;
     animation: icon-rotate 3s ease-in-out infinite;
     box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
 }

 @keyframes icon-rotate {
     0%, 100% { transform: rotate(0deg); }
     50% { transform: rotate(360deg); }
 }

 .tech-stat-number-enhanced {
     font-size: 2.5rem;
     font-weight: 700;
     background: linear-gradient(135deg, #667eea, #764ba2);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: number-glow-enhanced 2s ease-in-out infinite;
     margin: 10px 0;
 }

 @keyframes number-glow-enhanced {
     0%, 100% { 
         filter: brightness(1);
         transform: scale(1);
     }
     50% { 
         filter: brightness(1.3);
         transform: scale(1.05);
     }
 }

 /* Barra de progreso animada */
 .stat-progress-bar {
     width: 100%;
     height: 4px;
     background: rgba(102, 126, 234, 0.1);
     border-radius: 2px;
     margin-top: 15px;
     overflow: hidden;
 }

 .stat-progress-fill {
     height: 100%;
     background: linear-gradient(90deg, #667eea, #764ba2);
     border-radius: 2px;
     width: 0;
     animation: progress-fill 2s ease-out forwards;
     box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
 }

 .stat-progress-fill.infinite {
     animation: progress-fill-infinite 2s ease-out forwards, pulse-infinite 2s ease-in-out 2s infinite;
 }

 @keyframes progress-fill {
     to { width: 100%; }
 }

 @keyframes progress-fill-infinite {
     to { width: 100%; }
 }

 @keyframes pulse-infinite {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.7; }
 }

 /* Responsive mejorado */
 @media (max-width: 768px) {
     .tech-stats-enhanced {
         flex-direction: column;
         gap: 15px;
     }

     .tech-image-wrapper-3d:hover {
         transform: none;
     }

     .glassmorphism {
         padding: 20px;
     }
 }

 /* ========== ESTILOS MODO OSCURO ADICIONALES ========== */

 /* Títulos y textos en modo oscuro */
 body.dark-mode h2,
 body.dark-mode h3,
 body.dark-mode h4,
 body.dark-mode h5 {
     color: #e0e0e0;
 }

 body.dark-mode p,
 body.dark-mode .lead {
     color: #c0c0c0;
 }

 /* Elementos tecnológicos en modo oscuro */
 body.dark-mode .tech-bg-overlay {
     background: 
         radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
         radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
 }

 body.dark-mode .tech-grid-overlay {
     background-image: 
         linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
         linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
 }

 body.dark-mode .typewriter-container {
     background: transparent;
     box-shadow: none;
 }

 body.dark-mode .tech-typewriter {
     color: #8b9aff;
     text-shadow: none;
 }

 body.dark-mode .typewriter-cursor {
     background: #8b9aff;
 }

 body.dark-mode .tech-image-wrapper {
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
 }

 body.dark-mode .tech-content-wrapper {
     color: #e0e0e0;
 }

 body.dark-mode .tech-text {
     color: #c0c0c0;
 }

 body.dark-mode .tech-stat-label {
     color: #999;
 }

 /* Carrusel de logos en modo oscuro */
 body.dark-mode .logos-carousel-container {
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
 }

 body.dark-mode .logo-slide {
     background: transparent;
     border: none;
     box-shadow: none;
 }

 body.dark-mode .logo-slide:hover {
     box-shadow: none;
     border: none;
 }

 body.dark-mode .logo-img {
     filter: grayscale(0%) brightness(1.1);
     opacity: 0.9;
 }

 body.dark-mode .logo-slide:hover .logo-img {
     filter: grayscale(0%) brightness(1.3);
     opacity: 1;
 }

 /* Botones en modo oscuro */
 body.dark-mode .btn-dark {
     background: linear-gradient(135deg, #8b9aff 0%, #a855f7 100%);
     box-shadow: 0 4px 15px rgba(139, 154, 255, 0.5);
 }

 body.dark-mode .btn-dark:hover {
     background: linear-gradient(135deg, #a855f7 0%, #8b9aff 100%);
     box-shadow: 0 6px 20px rgba(139, 154, 255, 0.7);
 }

 /* Footer en modo oscuro */
 body.dark-mode #footer {
     background-color: #0a0a0a;
     border-top: 1px solid rgba(102, 126, 234, 0.2);
 }

 body.dark-mode .footer-col h4 {
     color: #e0e0e0;
 }

 body.dark-mode .footer-col .footer__ul .li__footer .a__footer {
     color: #b0b0b0;
 }

 body.dark-mode .footer-col .footer__ul .li__footer .a__footer:hover {
     color: #8b9aff;
 }

 body.dark-mode .footer-col .social-links .a__footer {
     background-color: rgba(102, 126, 234, 0.2);
 }

 body.dark-mode .footer-col .social-links .a__footer:hover {
     background-color: rgba(139, 154, 255, 0.4);
     color: #8b9aff;
 }

 /* Modal en modo oscuro */
 body.dark-mode .modal-content {
     background: #1a1a1a;
     color: #e0e0e0;
 }

 body.dark-mode .modal-header {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-bottom: 1px solid rgba(102, 126, 234, 0.3);
 }

 /* Video wrapper en modo oscuro */
 body.dark-mode .video-wrapper {
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
 }

 /* Texto sobre el video */
 .video-overlay-text {
     text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
     transition: all 0.3s ease;
 }

 .video-title {
     text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
     transition: all 0.3s ease;
 }

 .video-subtitle {
     text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
     transition: all 0.3s ease;
 }

 .video-info,
 .video-url {
     text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
     opacity: 0.9;
     transition: all 0.3s ease;
 }

 /* Texto sobre el video en modo oscuro */
 body.dark-mode .video-overlay-text {
     text-shadow: 
         2px 2px 15px rgba(0, 0, 0, 1),
         0 0 25px rgba(102, 126, 234, 0.6),
         0 0 35px rgba(118, 75, 162, 0.4);
 }

 body.dark-mode .video-title {
     text-shadow: 
         2px 2px 15px rgba(0, 0, 0, 1),
         0 0 30px rgba(139, 154, 255, 0.8),
         0 0 40px rgba(168, 85, 247, 0.6);
     filter: drop-shadow(0 0 20px rgba(139, 154, 255, 0.7));
     color: #ffffff !important;
 }

 body.dark-mode .video-subtitle {
     text-shadow: 
         1px 1px 10px rgba(0, 0, 0, 1),
         0 0 20px rgba(139, 154, 255, 0.6),
         0 0 30px rgba(168, 85, 247, 0.4);
     filter: drop-shadow(0 0 15px rgba(139, 154, 255, 0.5));
     color: #ffffff !important;
 }

 body.dark-mode .video-info,
 body.dark-mode .video-url {
     text-shadow: 
         1px 1px 8px rgba(0, 0, 0, 1),
         0 0 15px rgba(139, 154, 255, 0.5),
         0 0 25px rgba(168, 85, 247, 0.3);
     filter: drop-shadow(0 0 10px rgba(139, 154, 255, 0.4));
     color: #ffffff !important;
     opacity: 1;
 }

 /* Transiciones suaves para todos los elementos */
 * {
     transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
 }

 /* ========== ESTILOS PARA SECCIÓN DE MÉTRICAS ========== */

 .metric-card {
     background: transparent;
     border-radius: 20px;
     padding: 30px;
     text-align: center;
     transition: transform 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 .metric-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
     border-radius: 20px;
     border: 1px solid rgba(102, 126, 234, 0.1);
     z-index: 0;
     transition: all 0.3s ease;
 }

 body.dark-mode .metric-card::before {
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
     border-color: rgba(102, 126, 234, 0.3);
 }

 .metric-card:hover {
     transform: translateY(-10px);
 }

 .metric-card:hover::before {
     border-color: rgba(102, 126, 234, 0.4);
     box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
 }

 body.dark-mode .metric-card:hover::before {
     box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
 }

 .metric-header {
     position: relative;
     z-index: 1;
     margin-bottom: 20px;
 }

 .metric-icon {
     font-size: 2.5rem;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 10px;
     display: block;
 }

 .metric-logo {
     max-width: 80px;
     max-height: 60px;
     object-fit: contain;
     margin-bottom: 15px;
     filter: brightness(1) contrast(1);
     transition: transform 0.3s ease, filter 0.3s ease;
 }

 .metric-card:hover .metric-logo {
     transform: scale(1.1);
     filter: brightness(1.1) contrast(1.1);
 }

 body.dark-mode .metric-logo {
     filter: brightness(1.2) contrast(1.1);
 }

 .metric-title {
     font-size: 1.3rem;
     font-weight: 600;
     color: #667eea;
     margin: 0;
 }

 body.dark-mode .metric-title {
     color: #8b9aff;
 }

 .metric-value {
     position: relative;
     z-index: 1;
     margin: 20px 0;
 }

 .metric-number {
     font-size: 3.5rem;
     font-weight: 700;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     line-height: 1;
 }

 body.dark-mode .metric-number {
     background: linear-gradient(135deg, #8b9aff 0%, #a855f7 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .metric-plus,
 .metric-percent {
     font-size: 2rem;
     color: #667eea;
     font-weight: 600;
 }

 body.dark-mode .metric-plus,
 body.dark-mode .metric-percent {
     color: #8b9aff;
 }

 .metric-chart {
     position: relative;
     z-index: 1;
     height: 120px;
     margin: 20px 0;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chart-svg {
     width: 100%;
     height: 100%;
     max-width: 200px;
 }

 .chart-line {
     stroke-dasharray: 500;
     stroke-dashoffset: 500;
     animation: draw-line 2s ease-out forwards;
 }

 @keyframes draw-line {
     to {
         stroke-dashoffset: 0;
     }
 }

 .chart-dot {
     opacity: 0;
     animation: fade-in-dot 0.5s ease-out 2s forwards;
 }

 @keyframes fade-in-dot {
     to {
         opacity: 1;
     }
 }

 .chart-circle {
     max-width: 120px;
 }

 .chart-bg {
     opacity: 0.2;
 }

 body.dark-mode .chart-bg {
     opacity: 0.3;
     stroke: #8b9aff;
 }

 .chart-progress {
     transform: rotate(-90deg);
     transform-origin: 50% 50%;
     stroke-dasharray: 251.2;
     stroke-dashoffset: 251.2;
     animation: draw-circle 2s ease-out forwards;
 }

 @keyframes draw-circle {
     to {
         stroke-dashoffset: 12.56; /* 95% of 251.2 */
     }
 }

 .metric-description {
     position: relative;
     z-index: 1;
     color: #666;
     font-size: 0.95rem;
     margin-top: 15px;
 }

 body.dark-mode .metric-description {
     color: #b0b0b0;
 }

/* Responsive para métricas */
@media (max-width: 768px) {
    .metric-number {
        font-size: 2.5rem;
    }

    .metric-icon {
        font-size: 2rem;
    }

    .metric-chart {
        height: 100px;
    }
}

/* ========== MEJORAS RESPONSIVE COMPLETAS PARA MÓVILES ========== */

/* Ajustes generales para móviles */
@media (max-width: 768px) {
    /* Header responsive */
    .main-header {
        padding: 0 10px !important;
        height: 55px !important;
    }

    .header_titulo {
        font-size: 1.4rem !important;
        letter-spacing: 1px;
    }

    .logo {
        height: 30px !important;
    }

    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .menu-btn {
        font-size: 1rem;
        padding: 5px 10px;
    }

    /* Secciones con padding reducido */
    section {
        padding: 30px 0 !important;
    }

    .py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* Títulos */
    h2 {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
        padding-bottom: 15px;
    }

    h2::after {
        width: 60px;
        height: 3px;
    }

    /* Container con padding lateral */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Lead text */
    .lead {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Carrusel de logos mejorado */
    .logos-carousel-container {
        padding: 30px 0 !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .logo-slide {
        width: 140px !important;
        height: 110px !important;
    }

    .logos-carousel {
        gap: 25px !important;
        padding: 0 15px;
    }

    /* Sección de métricas */
    #metricas .row {
        margin: 0;
    }

    #metricas .col-md-4,
    #metricas .col-md-6,
    #metricas .col-lg-4,
    #metricas .col-lg-6 {
        margin-bottom: 20px;
    }

    .metric-card {
        padding: 20px !important;
    }

    .metric-number {
        font-size: 2.2rem !important;
    }

    .metric-title {
        font-size: 1.1rem !important;
    }

    .metric-description {
        font-size: 0.85rem !important;
    }

    .metric-chart {
        height: 80px !important;
    }

    /* Sección Quiénes somos */
    #quienes-somos .row {
        flex-direction: column;
    }

    #quienes-somos .col-md-6 {
        margin-bottom: 25px;
    }

    .tech-typewriter {
        font-size: 1.5rem !important;
    }

    .tech-title-animated {
        font-size: 1.8rem !important;
    }

    .tech-text {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    .glassmorphism {
        padding: 20px !important;
    }

    .tech-stats-enhanced {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .tech-stat-item-3d {
        width: 100%;
        margin-bottom: 15px;
    }

    .tech-stat-number-enhanced {
        font-size: 2rem !important;
    }

    /* Video section */
    .video-section {
        height: 50vh !important;
    }

    .video-container::after {
        height: 60px !important;
    }

    /* Sección de video presentación */
    #video-presentacion {
        padding: 30px 0 !important;
    }

    #video-presentacion h2 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }

    /* Sección filosofía */
    #filosofia {
        padding: 30px 0 !important;
    }

    #filosofia h2 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    #filosofia .card {
        margin-bottom: 20px;
    }

    #filosofia .card-body i {
        font-size: 2rem !important;
    }

    #filosofia .card-title {
        font-size: 1.1rem;
    }

    #filosofia .card-text {
        font-size: 0.9rem;
    }
}

/* ========== ANIMACIONES PARA SECCIÓN FILOSOFÍA ========== */

/* Título con animación */
.filosofia-title {
    animation: filosofia-title-fade 1s ease-out;
    position: relative;
}

@keyframes filosofia-title-fade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filosofia-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: underline-grow 1s ease-out 0.5s both;
}

@keyframes underline-grow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* Cards con animación de entrada */
.filosofia-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
    background: white;
}

body.dark-mode .filosofia-card {
    background: #1f1f1f;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.filosofia-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto hover mejorado para cards */
.filosofia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.filosofia-card:hover::before {
    left: 100%;
}

.filosofia-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3) !important;
}

body.dark-mode .filosofia-card:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5) !important;
    border-color: rgba(102, 126, 234, 0.4);
}

/* Wrapper de íconos con animación */
.filosofia-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.filosofia-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.filosofia-card:hover .filosofia-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.4));
}

.filosofia-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2), transparent);
    border-radius: 50%;
    transition: transform 0.4s ease;
    z-index: 0;
}

.filosofia-card:hover .filosofia-icon-wrapper::before {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Títulos de cards */
.filosofia-card-title {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: #333;
}

body.dark-mode .filosofia-card-title {
    color: #e0e0e0;
}

.filosofia-card:hover .filosofia-card-title {
    color: #667eea;
    transform: translateX(5px);
}

body.dark-mode .filosofia-card:hover .filosofia-card-title {
    color: #8b9aff;
}

/* Texto de cards */
.filosofia-card-text {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.filosofia-card:hover .filosofia-card-text {
    transform: translateX(3px);
}

/* Animación de entrada escalonada usando Intersection Observer */
@keyframes card-fade-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo en el borde de las cards */
.filosofia-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.filosofia-card:hover::after {
    opacity: 0.3;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive para animaciones de filosofía */
@media (max-width: 768px) {
    .filosofia-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .filosofia-card:hover .filosofia-icon {
        transform: scale(1.1) rotate(5deg);
    }

    /* Footer responsive */
    .hefo {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .hefo img {
        margin-bottom: 10px;
        padding-left: 0 !important;
    }

    .title__utb {
        margin-left: 0 !important;
        font-size: 1rem !important;
        text-align: center;
    }

    .Foterxd {
        flex-direction: column;
    }

    .footer-col {
        width: 100% !important;
        margin-bottom: 25px;
        text-align: center;
    }

    .footer-col h4 {
        font-size: 1.1rem !important;
        margin-bottom: 15px;
    }

    .footer-col h4::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__ul {
        text-align: center;
    }

    .dr_utb {
        text-align: center !important;
        margin-right: 0 !important;
        font-size: 0.75rem !important;
        padding: 0 15px;
    }

    .social-links {
        justify-content: center !important;
    }
}

/* Ajustes para pantallas muy pequeñas (menos de 576px) */
@media (max-width: 576px) {
    /* Header aún más compacto */
    .header_titulo {
        font-size: 1.2rem !important;
        letter-spacing: 0.5px;
    }

    .logo {
        height: 25px !important;
    }

    .theme-toggle-btn {
        width: 35px;
        height: 35px;
    }

    /* Secciones */
    section {
        padding: 25px 0 !important;
    }

    .py-5 {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* Títulos */
    h2 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }

    /* Carrusel */
    .logo-slide {
        width: 110px !important;
        height: 90px !important;
    }

    .logos-carousel {
        gap: 15px !important;
    }

    .logos-carousel-container {
        padding: 25px 0 !important;
    }

    /* Métricas */
    .metric-card {
        padding: 15px !important;
    }

    .metric-number {
        font-size: 1.8rem !important;
    }

    .metric-title {
        font-size: 1rem !important;
    }

    .metric-logo {
        max-width: 60px !important;
        max-height: 45px !important;
    }

    .metric-chart {
        height: 70px !important;
    }

    /* Quiénes somos */
    .tech-typewriter {
        font-size: 1.2rem !important;
    }

    .tech-title-animated {
        font-size: 1.5rem !important;
    }

    .tech-text {
        font-size: 0.9rem !important;
    }

    .tech-stat-number-enhanced {
        font-size: 1.6rem !important;
    }

    /* Video */
    .video-section {
        height: 40vh !important;
    }

    /* Filosofía */
    #filosofia .card-body i {
        font-size: 1.8rem !important;
    }

    /* Footer */
    .title__utb {
        font-size: 0.9rem !important;
    }

    .footer-col h4 {
        font-size: 1rem !important;
    }

    .footer-col .footer__ul .li__footer .a__footer {
        font-size: 0.9rem !important;
    }

    .social-links .a__footer {
        height: 35px !important;
        width: 35px !important;
        line-height: 35px !important;
        margin: 0 5px 10px 0 !important;
    }
}

/* Ajustes para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .video-section {
        height: 70vh !important;
    }

    section {
        padding: 20px 0 !important;
    }
}

/* Prevenir desbordamientos horizontales */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    video {
        max-width: 100%;
        height: auto;
    }

    /* Asegurar que los contenedores no se desborden */
    .container,
    .container-fluid {
        overflow-x: hidden;
    }

    /* Ajustar el sidebar en móviles */
    .sidebar {
        width: 100%;
        max-width: 280px;
    }

    /* Mejorar el modal en móviles */
    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 15px;
    }

    /* Ajustar botones */
    .btn {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Mejorar espaciado de textos */
    p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Ajustar cards */
    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 15px;
    }
}