/* Archivo: styles.css */
/* Estilos para la animación de pantalla azul */
@keyframes fadeInOut {
    0% {
      opacity: 1;
      background-color: #002958; /* Color azul */
    }
    100% {
      opacity: 0;
      background-color: transparent;
    }
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #002958; /* Color azul */
    animation: fadeInOut 2s ease;
    animation-fill-mode: forwards;
    z-index: 9999; /* Asegura que esté sobre todo el contenido */
    pointer-events: none; /* Permite que el contenido subyacente sea accesible después de la animación */
  }
  
/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    background-color: #002958;
    background: linear-gradient(to bottom right, #001d40, #0044aa);
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Membrete con 5 logos - Imágenes grandes, header compacto */
.membrete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: white;
    padding: 12px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 75px;
}

/* Contenedor de los 5 logos */
.membrete .logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    height: 100%;
}
.logo-item.logo-principal {
    flex: 0 0 50%; /* Ocupa exactamente la mitad */
    max-width: 50%;
    display: flex;
    justify-content: flex-start; /* ← CAMBIO: Pegado a la izquierda */
    align-items: center;
    margin-right: auto; /* ← CAMBIO: Empuja los otros logos a la derecha */
}
.logo-item.logo-secundario {
    flex: 1;
    max-width: 10%;
    display: flex;
    justify-content: center; /* Los otros logos siguen centrados */
    align-items: center;
}
.logo-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Efecto hover */
.logo-item:hover .logo-img {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

/* Responsividad para tablets */
@media screen and (max-width: 1024px) {
    .membrete .logo-container {
        padding: 0 15px;
        gap: 6px; /* Más compacto */
    }
    
    .logo-img {
        height: 50px; /* Imágenes ligeramente más pequeñas pero membrete mantiene altura */
    }
}

/* Responsividad para móviles - 3-2 distribución */
@media screen and (max-width: 768px) {
    .membrete {
        height: 75px; /* ALTURA FIJA - NO CAMBIA */
        padding: 8px 0;
    }
    
    .membrete .logo-container {
        padding: 0 8px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        height: 100%; /* Asegura que use toda la altura disponible */
    }
    .logo-item.logo-principal {
        flex: 0 0 100%;
        max-width: 100%;
        height: 35px; /* Altura reducida para primera fila */
        margin-bottom: 2px;
    }
    .logo-item.logo-secundario {
        flex: 1;
        max-width: 18%; /* 5 logos en ~18% cada uno */
        height: 30px; /* Altura reducida para segunda fila */
    }
    .logo-item {
        flex: 0 0 30%;
        height: 40px;
        margin-bottom: 5px;
    }
    
    .logo-item:nth-child(4),
    .logo-item:nth-child(5) {
        flex: 0 0 45%;
    }
    
    .logo-img {
        height: 100%; /* Las imágenes ocupan toda la altura disponible */
        max-height: 100%;
    }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .membrete {
        height: 75px; /* ALTURA FIJA MANTENIDA */
    }
    
    .membrete .logo-container {
        padding: 0 5px;
        gap: 3px;
    }
    
    .logo-item.logo-principal {
        height: 32px;
    }
    
    .logo-item.logo-secundario {
        height: 28px;
        max-width: 17%;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* NAVBAR AJUSTADO - ELEMENTOS EN LA PARTE INFERIOR */
.navbar {
    position: fixed;
    top: 75px;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #002958;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px 5px 20px;
    height: 100%;
}

/* LOGO - Ajustado hacia abajo */
.navbar .logo {
    flex-shrink: 0;
    margin: 0;
    padding-bottom: 0;
}

.navbar .logo img {
    height: 48px;
    width: auto;
    margin-bottom: -10px; /* Aumentamos el margen negativo para bajar más la imagen */
    transform: translateY(5px); /* Movemos la imagen hacia abajo */
}

/* MENÚ PRINCIPAL - Ajustado hacia abajo */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0 0 0 0; /* Reducimos margen inferior */
    flex: 1;
}

.nav-links > li {
    margin: 0;
    padding-bottom: 0; /* Eliminamos padding inferior */
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    color: #002958;
    font-size: 16px;
    padding: 8px 12px 12px 12px; /* Más padding solo en la parte inferior */
    transition: 0.3s;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #58d3f8;
    background: rgba(0, 41, 88, 0.1);
}

/* BOTÓN CONECTARSE - Ajustado hacia abajo */
.connect-button {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding-bottom: 0; /* Eliminamos padding inferior */
    align-self: flex-end; /* Forzamos alineación al fondo */
}

#connectBtn {
    background: white;
    color: #002958;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 18px 10px 18px;
    border: 2px solid #002958;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    margin-bottom: -3px;
}

#connectBtn:hover {
    background: white;
    color: #002958;
}

/* DROPDOWN MENUS - Ajustados para no cambiar posición */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #002958;
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

.dropdown-menu li a {
    color: white;
    display: block;
    padding: 10px 20px;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: white;
    color: #002958;
}

/* MENÚ CONECTARSE DROPDOWN - Ajustado */
.connect-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #002958;
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.connect-menu.show {
    display: block;
}

.connect-menu li a {
    color: white;
    padding: 10px 15px;
    border-radius: 0;
}

.connect-menu li a:hover {
    background: #002958;
    color: white;
    cursor: default;
}

/* Flecha del dropdown */
.dropdown-arrow {
    margin-left: 4px;
    font-size: 12px;
}

/* RESPONSIVE NAVBAR - Ajustado */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 0 15px 5px 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 10px 8px 10px;
    }
    
    .navbar .logo img {
        height: 45px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        top: 85px;
        height: 60px;
        align-items: center;
        padding-bottom: 0;
    }
    
    .nav-container {
        padding: 0 15px;
        align-items: center;
    }
    
    .nav-links, 
    .connect-button {
        display: none;
    }
    
    .navbar .logo {
        margin: 0 auto;
        padding-bottom: 0;
    }
    
    .navbar .logo img {
        height: 42px;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: fixed;
  top: 110px;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.hamburger .bar {
  height: 3px;
  width: 30px;
  background-color: white;
  margin: 3px 0;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: #002958;
  transition: top 0.3s ease-in-out;
  padding: 75px 20px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mobile-menu ul {
  list-style-type: none;
  padding: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    top: 0;
  }
  .connect-button {
        display: none;
    }
}

/* Ajuste del contenedor del submenú */
.movil-dropdown-menu {
  display: none;
  list-style: none;
  padding: 10px 0;
  margin: 0px 0 0 0;
  background-color: #004080;
  border-radius: 0px;
}

.movil-dropdown-menu li {
  padding: 10px 0;
  text-align: center;
}

.movil-dropdown-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 0px 0;
}

/* Mostrar el submenú cuando está activo */
.movil-dropdown.open .movil-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease-in-out;
}

/* Animación para suavizar la aparición */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Fondo de la página con la imagen */
main {
    background: url('img-style/flyer.jpeg') no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    margin-top: 150px;
    height: calc(100vh - 150px - 120px);
    padding: 0;
}

@media screen and (max-width: 768px) {
   main {
    min-height: 40vh;
   }
}

/* Degradado solo en la parte inferior de la imagen */
main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #002958, transparent);
    z-index: 1;
}

/* Texto centrado en el lado izquierdo */
.main-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main-button {
    position: absolute;
    top: 56%;
    left: 9%;
    transform: translateY(-50%);
}

#saldoBtn {
    background: transparent;
    color: white;
    font-size: 25px;
    font-weight: bold;
    padding: 10px 15px;
    border: solid 2px white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

#saldoBtn:hover {
    background: white;
    color: black;
}

/* Responsividad para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    main {
        background-size: auto 100%;
        text-align: center;
    }
    .main-text {
        font-size: 1.5rem;
        left: 13%;
    }
    .main-button {
        position: absolute;
        top: 56%;
        left: 15%;
        transform: translateY(-50%);
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Slider de Opciones */
.options-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #002958;
    padding: 15px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.options-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(33.33% * 5);
}

.option {
    flex: 0 0 33.33%;
    text-align: center;
    margin: 0 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: 0.3s;
}

.option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option p, a {
    color: white;
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.option:hover {
    transform: scale(1.2);
    cursor: pointer;
    border-bottom: solid 1px white;
}

.option:hover img {
    transform: scale(1.2);
}

/* Flechas */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    opacity: 0;
}

.slider-arrow:hover {
    width: 50px;
    height: 50px;
    opacity: 0;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.slider-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Asegurar que el contenedor se ajuste al tamaño en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .option {
        flex: 0 0 32%;
    }
    .options-slider-container {
        padding: 10px;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Estilo para la barra de desplazamiento */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #07253d;
    border-radius: 5px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:active {
    background: #07253d;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Carrusel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    width: 400%;
}

.carousel-slide {
    width: 100%;
    display: inline-block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #002958, transparent);
    z-index: 1;
}

.carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #001d3f, transparent);
    z-index: 1;
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: .3s;
}

.carousel-arrow:hover {
    width: 80px;
    height: 80px;
}

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

.carousel-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-slide video {
    position:absolute;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .carousel-slide img {
        height: 200px;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Modificaciones para hacerlo responsive */
.tittle {
    color: white;
    font-size: clamp(16px, 4vw, 20px);
    padding: 10px 0;
}

.botones {
    font-family: 'Poppins', sans-serif;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    overflow: hidden;
    color: #e2e0e0;
}

.copion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 10px 0;
}

.abc {
    background: #001d3f;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 244, 244, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    border: 5px double white;
    margin-bottom: 20px;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .copion {
        grid-template-columns: 1fr;
        width: 95%;
    }
    
    .abc {
        max-width: 100%;
    }
}

.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abc h2 {
    margin: 15px 0;
    font-size: clamp(16px, 3vw, 20px);
    padding: 0 10px;
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(120deg, #000, #2980b9);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.abc:hover {
    transform: scale(1.05);
}

.abc:hover .news-content {
    transform: translateY(0);
    background: linear-gradient(120deg, #000, #2980b9);
}

.summary {
    margin-top: 10px;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

#news-Btn {
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border: solid 2px white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    margin: 20px 0;
}

#news-Btn:hover {
    background: white;
    color: #002958;
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Contenedor principal */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Video grande */
.video-player {
    width: 80%;
    max-width: 800px;
    margin-bottom: 20px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-player video {
    width: 100%;
    height: auto;
}

/* Controles del video */
.video-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* Información del video */
.video-info {
    width: 80%;
    max-width: 800px;
    margin-bottom: 20px;
}

.video-title {
    color: #ffffff; /* Cambiado a blanco */
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.video-description {
    color: #e0e0e0; /* Cambiado a gris claro casi blanco */
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

/* CARRUSEL CORREGIDO - SIN APILAMIENTO */
.carousel-container {
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 800px;
    position: relative;
    gap: 10px;
    margin-bottom: 40px; /* Espacio para ver el fondo oscuro */
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    width: max-content; /* Esto evita que se apilen */
}

/* Botones del carrusel */
.carousel-btn {
    background: #001d3f;
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Miniaturas - EN LÍNEA HORIZONTAL */
.thumbnail {
    width: 125px;
    height: 70px;
    flex-shrink: 0; /* IMPORTANTE: No se reducen */
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #001d3f;
    border-radius: 5px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efecto al pasar el cursor sobre la miniatura */
.thumbnail:hover {
    transform: scale(1.05);
    border-color: #003366;
}
/*-----------------------------------------------------------------------------------------------------------------------------------------*/

footer {
    background-color: #001d3f;
    color: whitesmoke;
    padding: 20px;
    text-align: center;
}

.enlaces-interes,
.redes-sociales,
.informacion-adicional {
    margin-bottom: 20px;
}

.enlaces-interes ul {
    list-style-type: none;
    padding: 0;
}

.enlaces-interes li {
    display: inline;
    margin-right: 10px;
}

.redes-sociales img {
    width: 40px;
    height: 40px;
    margin-right: 25px;
}

/****video***/
.video-feed {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}

/* Reproductor de video vertical */
.video-player {
    width: 100%;
    position: relative;
    background-color: #111;
    aspect-ratio: 9/16;
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Controles personalizados - CENTRADOS */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.control-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Miniaturas estilo stories */
.video-thumbnails {
    display: flex;
    gap: 12px;
    padding: 15px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.thumbnail:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info del video */
.video-info {
    padding: 12px 15px;
    color: white;
    font-family: 'Roboto', sans-serif;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.video-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
    .video-feed {
        max-width: 100%;
        border-radius: 0;
    }
}

/**carrusel de abajo**/
/* Estilos para la sección de logos deslizantes CON MÁS SEPARACIÓN */
.logos-deslizantes-container {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    padding: 30px 0;
    margin: 40px 0 0 0;
}

.logos-deslizantes {
    width: 100%;
    position: relative;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll 35s linear infinite;
    padding: 0 40px;
}

.logos-track img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.logos-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/**chatbot**/
/* Chatbot Styles - Versión Completa y Corregida */
#chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    border: none;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #002958;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 41, 88, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

#chatbot-toggler:hover {
    background-color: #001f3f;
    transform: scale(1.05);
}

#chatbot-toggler .material-icons {
    font-size: 24px;
}

body.show-chatbot #chatbot-toggler {
    transform: rotate(90deg) scale(1.05);
}

#chatbot-toggler span {
    position: absolute;
    transition: opacity 0.3s ease;
}

body.show-chatbot #chatbot-toggler span:first-child,
#chatbot-toggler span:last-child {
    opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot-popup {
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 350px;
    height: 500px;
    background: #FFF;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: bottom right;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.show-chatbot .chatbot-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #002958;
    padding: 12px 15px;
    justify-content: space-between;
    color: white;
}

.header-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-logo {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
}

.chatbot-logo svg {
    height: 20px;
    width: 20px;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
}

#close-chatbot.custom-icon {
    border: none;
    color: white;
    height: 30px;
    width: 30px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

#close-chatbot.custom-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#close-chatbot.custom-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    gap: 12px;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    background-color: #f9fafb;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-avatar {
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f0ff;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 5px;
}

.bot-avatar svg {
    height: 18px;
    width: 18px;
}

.message-text {
    padding: 10px 14px;
    max-width: 80%;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 10px;
    word-wrap: break-word;
}

.bot-message .message-text {
    background-color: #e6f0ff;
    color: #002958;
    border-radius: 0 10px 10px 10px;
}

.user-message .message-text {
    color: white;
    background-color: #002958;
    border-radius: 10px 0 10px 10px;
}

.thinking-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.thinking-indicator .dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: #002958;
    opacity: 0.4;
    animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.chat-footer {
    flex-shrink: 0;
    padding: 12px 15px;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

.chat-form {
    display: flex;
    position: relative;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.chat-form:focus-within {
    border-color: #002958;
}

.message-input {
    border: none;
    outline: none;
    height: 42px;
    width: 100%;
    resize: none;
    max-height: 100px;
    font-size: 0.85rem;
    padding: 12px 0 12px 14px;
    border-radius: inherit;
    background-color: transparent;
    color: #1f2937;
    scrollbar-width: thin;
}

.message-input::placeholder {
    color: #9ca3af;
}

.chat-controls {
    display: flex;
    height: 42px;
    gap: 4px;
    align-items: center;
    padding-right: 8px;
}

#send-message.send-icon {
    height: 32px;
    width: 32px;
    border: none;
    cursor: pointer;
    background: #002958 !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s ease;
}

#send-message.send-icon:hover {
    background: #001f3f !important;
}

#send-message.send-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.message-input:valid ~ .chat-controls #send-message.send-icon {
    display: flex;
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: fixed;
  top: 115px;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.hamburger .bar {
  height: 3px;
  width: 30px;
  background-color: white;
  margin: 3px 0;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: #002958;
  transition: top 0.3s ease-in-out;
  padding: 75px 20px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mobile-menu ul {
  list-style-type: none;
  padding: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    top: 0;
  }
  .connect-button {
        display: none;
    }
}

/* Ajuste del contenedor del submenú */
.movil-dropdown-menu {
  display: none;
  list-style: none;
  padding: 10px 0;
  margin: 0px 0 0 0;
  background-color: #004080;
  border-radius: 0px;
}

.movil-dropdown-menu li {
  padding: 10px 0;
  text-align: center;
}

.movil-dropdown-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 0px 0;
}

/* Mostrar el submenú cuando está activo */
.movil-dropdown.open .movil-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease-in-out;
}

/* Animación para suavizar la aparición */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* El resto de tu CSS existente continúa aquí... */
/* (Fondo de la página, Slider de Opciones, Carrusel, Footer, etc.) */

/* Fondo de la página con la imagen */
main {
    background: url('img-style/flyer.jpeg') no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    margin-top: 150px;
    height: calc(100vh - 150px - 120px);
    padding: 0;
}

@media screen and (max-width: 768px) {
   main {
    min-height: 40vh;
   }
}

/* Degradado solo en la parte inferior de la imagen */
main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #002958, transparent);
    z-index: 1;
}

/* Texto centrado en el lado izquierdo */
.main-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main-button {
    position: absolute;
    top: 56%;
    left: 9%;
    transform: translateY(-50%);
}

#saldoBtn {
    background: transparent;
    color: white;
    font-size: 25px;
    font-weight: bold;
    padding: 10px 15px;
    border: solid 2px white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

#saldoBtn:hover {
    background: white;
    color: black;
}

/* Responsividad para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    main {
        background-size: auto 100%;
        text-align: center;
    }
    .main-text {
        font-size: 1.5rem;
        left: 13%;
    }
    .main-button {
        position: absolute;
        top: 56%;
        left: 15%;
        transform: translateY(-50%);
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Slider de Opciones */
.options-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #002958;
    padding: 15px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.options-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(33.33% * 5);
}

.option {
    flex: 0 0 33.33%;
    text-align: center;
    margin: 0 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: 0.3s;
}

.option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option p, a {
    color: white;
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.option:hover {
    transform: scale(1.2);
    cursor: pointer;
    border-bottom: solid 1px white;
}

.option:hover img {
    transform: scale(1.2);
}

/* Flechas */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    opacity: 0;
}

.slider-arrow:hover {
    width: 50px;
    height: 50px;
    opacity: 0;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.slider-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Asegurar que el contenedor se ajuste al tamaño en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .option {
        flex: 0 0 32%;
    }
    .options-slider-container {
        padding: 10px;
    }
}
/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: fixed;
  top: 115px;
  left: auto; /* Cambiar esto */
  right: 20px; /* Posicionar desde la derecha */
  transform: none; /* Eliminar esto */
  z-index: 1000;
}

.hamburger .bar {
  height: 3px;
  width: 30px;
  background-color: white;
  margin: 3px 0;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: -100%; /* Inicialmente fuera de la pantalla */
  left: 0;
  width: 100%;
  background-color: #002958;
  transition: top 0.3s ease-in-out;
  padding: 75px 20px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Asegúrate de que esté sobre otros elementos */
}

.mobile-menu ul {
  list-style-type: none;
  padding: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  /* Ocultar el menú de escritorio */
  .nav-links {
    display: none;
  }

  /* Mostrar el ícono de hamburguesa */
  .hamburger {
    display: flex;
  }

  /* Menú móvil desplegado */
  .mobile-menu.open {
    top: 0; /* Muestra el menú móvil cuando se activa */
  }
  .connect-button {
        display: none;
    }
}

/* Ajuste del contenedor del submenú */
.movil-dropdown-menu {
  display: none; /* Oculto por defecto */
  list-style: none;
  padding: 10px 0;
  margin: 0px 0 0 0; /* Margen para separarlo del elemento padre */
  background-color: #004080;
  border-radius: 0px;
}

.movil-dropdown-menu li {
  padding: 10px 0;
  text-align: center;
}

.movil-dropdown-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 0px 0;
}

/* Mostrar el submenú cuando está activo */
.movil-dropdown.open .movil-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease-in-out;
}

/* Animación para suavizar la aparición */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Fondo de la página con la imagen */
main {
    background: url('img-style/flyer.jpeg') no-repeat center center;
    background-size: 100% 100%; /* Estira para llenar todo el espacio */
    position: relative;
    margin-top: 150px;
    height: calc(100vh - 150px - 120px);
    padding: 0;
}

@media screen and (max-width: 768px) {
   main {
    min-height: 40vh;
   }
}

/* Degradado solo en la parte inferior de la imagen */
main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #002958, transparent);
    z-index: 1;
}

/* Texto centrado en el lado izquierdo */
.main-text {
    position: absolute;
    top: 50%;
    left: 5%; /* Ajusta según sea necesario */
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Sombra para mejorar la legibilidad */
}

.main-button {
    position: absolute;
    top: 56%;
    left: 9%; /* Ajusta según sea necesario */
    transform: translateY(-50%);
}

#saldoBtn {
    background: transparent;
    color: white;
    font-size: 25px;
    font-weight: bold;
    padding: 10px 15px;
    border: solid 2px white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

#saldoBtn:hover {
    background: white;
    color: black;
}

/* Responsividad para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    main {
        background-size: auto 100%;
        text-align: center;
    }
    .main-text {
        font-size: 1.5rem;
        left: 13%;
    }
    .main-button {
        position: absolute;
        top: 56%;
        left: 15%; /* Ajusta según sea necesario */
        transform: translateY(-50%);
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Slider de Opciones */

.options-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #002958;
    /* Azul elegante */
    padding: 15px;
    /* Espaciado reducido */
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.options-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(33.33% * 5);
    /* Espacio suficiente para las 5 opciones */
}

.option {
    flex: 0 0 33.33%;
    /* Mostrar solo 3 opciones al mismo tiempo */
    text-align: center;
    margin: 0 5px;
    /* Espaciado mínimo entre opciones */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: 0.3s;
}

.option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option p, a {
    color: white;
    margin-top: 5px;
    /* Espaciado reducido */
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.option:hover {
    transform: scale(1.2);
    /* Aumenta tamaño */
    cursor: pointer;
    border-bottom: solid 1px white;
}

.option:hover img {
    transform: scale(1.2);
    /* Aumenta el tamaño del icono proporcionalmente */
}


/* Flechas */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    opacity: 0;
}

.slider-arrow:hover {
    width: 50px;
    height: 50px;
    opacity: 0;
}

.left-arrow {
    left: 20px;
    /* Ajuste para que no estén tan a los lados */
}

.right-arrow {
    right: 20px;
    /* Ajuste para que no estén tan a los lados */
}

.slider-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Asegurar que el contenedor se ajuste al tamaño en pantallas pequeñas */

@media screen and (max-width: 768px) {
    .option {
        flex: 0 0 32%;
        /* Mostrar 2 opciones a la vez en pantallas más pequeñas */
    }
    .options-slider-container {
        padding: 10px;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Estilo para la barra de desplazamiento */

::-webkit-scrollbar {
    width: 10px;
    /* Aumento un poco el tamaño de la barra */
}


/* Estilo para el "thumb" (parte que se arrastra) */

::-webkit-scrollbar-thumb {
    background: #07253d;
    /* Azul oscuro para el "thumb" */
    border-radius: 5px;
    /* Bordes más redondeados */
    border: 2px solid #ffffff;
    /* Agrega un borde blanco para mayor contraste */
}


/* Efecto cuando el usuario pasa el cursor sobre el "thumb" 
::-webkit-scrollbar-thumb:hover {
    /*background: #¿3a5a75; /* Un azul más claro para el "hover" 
}*/


/* Estilo para la pista de la barra de desplazamiento */

::-webkit-scrollbar-track {
    background: #e0e0e0;
    /* Color claro para la pista */
    border-radius: 5px;
    /* Bordes redondeados en la pista */
}


/* Agregar sombra al "thumb" cuando se está arrastrando */

::-webkit-scrollbar-thumb:active {
    background: #07253d;
    /* Color original al hacer clic */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* Sombra para efecto */
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/


/* Carrusel */

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    width: 400%;
    /* Cuatro imágenes, cada una ocupa el 25% del ancho */
}

.carousel-slide {
    width: 100%;
    display: inline-block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #002958, transparent);
    z-index: 1;
}


.carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #001d3f, transparent);
    z-index: 1;
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/


/* Flechas de navegación */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    /* Tamaño de las flechas ajustado a 60px */
    height: 60px;
    /* Tamaño de las flechas ajustado a 60px */
    cursor: pointer;
    z-index: 10;
    /* Asegura que las flechas siempre estén visibles */
    transition: .3s;
}

.carousel-arrow:hover {
    width: 80px;
    height: 80px;
}

.left-arrow {
    left: 30px;
    /* Espaciado ajustado para centrarlas mejor */
}

.right-arrow {
    right: 30px;
    /* Espaciado ajustado para centrarlas mejor */
}


/* Asegurar que las flechas se mantengan centradas verticalmente */

.carousel-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Para mantener la proporción de la imagen */
}

.carousel-slide video {
    position:absolute;
}

/* Responsive Design */

@media screen and (max-width: 768px) {
    .carousel-slide img {
        height: 200px;
        /* Menor altura en pantallas pequeñas */
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Modificaciones para hacerlo responsive */
.tittle {
    color: white;
    font-size: clamp(16px, 4vw, 20px); /* Tamaño responsive */
    padding: 10px 0;
}

.botones {
    font-family: 'Poppins', sans-serif;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto; /* Cambiado de height fijo */
    overflow: hidden;
    color: #e2e0e0;
}

.copion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Más flexible */
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 10px 0; /* Espaciado adicional */
}

.abc {
    background: #001d3f;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 244, 244, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    border: 5px double white;
    margin-bottom: 20px; /* Espacio entre filas */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .copion {
        grid-template-columns: 1fr; /* Una columna en móviles */
        width: 95%;
    }
    
    .abc {
        max-width: 100%; /* Ocupa todo el ancho */
    }
}

/* El resto del CSS se mantiene igual */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abc h2 {
    margin: 15px 0;
    font-size: clamp(16px, 3vw, 20px); /* Título responsive */
    padding: 0 10px; /* Añadido para no pegar a los bordes */
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(120deg, #000, #2980b9);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.abc:hover {
    transform: scale(1.05);
}

.abc:hover .news-content {
    transform: translateY(0);
    background: linear-gradient(120deg, #000, #2980b9);
}

.summary {
    margin-top: 10px;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Máximo de líneas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

#news-Btn {
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border: solid 2px white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    margin: 20px 0; /* Más espacio alrededor */
}

#news-Btn:hover {
    background: white;
    color: #002958;
}
/*-----------------------------------------------------------------------------------------------------------------------------------------*/

/* Contenedor principal */

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 100px;
}


/* Video grande */

.video-player {
    width: 80%;
    /* Ancho del video (puedes ajustar este tamaño) */
    max-width: 800px;
    /* Limitar el tamaño máximo */
    margin-bottom: 20px;
    /* Espaciado debajo del video grande */
    background-color: black;
    /* Fondo negro para el video */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player video {
    width: 100%;
    height: auto;
}


/* Miniaturas de los videos */

.video-thumbnails {
    display: flex;
    justify-content: center;
    gap: 38px;
    /* Mayor espacio entre miniaturas */
    flex-wrap: wrap;
}

.thumbnail {
    width: 125px;
    /* Ancho aumentado de las miniaturas */
    height: 50px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #001d3f;
    transition: transform 0.3s ease, border 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Efecto al pasar el cursor sobre la miniatura */

.thumbnail:hover {
    transform: scale(1.1);
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

footer {
    background-color: #001d3f;
    color: whitesmoke;
    padding: 20px;
    text-align: center;
}

.enlaces-interes,
.redes-sociales,
.informacion-adicional {
    margin-bottom: 20px;
}

.enlaces-interes ul {
    list-style-type: none;
    padding: 0;
}

.enlaces-interes li {
    display: inline;
    margin-right: 10px;
}

.redes-sociales img {
    width: 40px;
    height: 40px;
    margin-right: 25px;
}


/****video***/

.video-feed {
    max-width: 400px; /* Ancho similar a móvil */
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}

/* Reproductor de video vertical */
.video-player {
    width: 100%;
    position: relative;
    background-color: #111;
    aspect-ratio: 9/16; /* Relación vertical */
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Controles personalizados - CENTRADOS */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 18px;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Miniaturas estilo stories */
.video-thumbnails {
    display: flex;
    gap: 12px;
    padding: 15px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.thumbnail:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info del video */
.video-info {
    padding: 12px 15px;
    color: white;
    font-family: 'Roboto', sans-serif;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.video-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
    .video-feed {
        max-width: 100%;
        border-radius: 0;
    }
}

/**carrusel de abajo**/
/* Estilos para la sección de logos deslizantes CON MÁS SEPARACIÓN */
.logos-deslizantes-container {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    padding: 30px 0; /* Aumenté el padding vertical */
    margin: 40px 0 0 0;
}

.logos-deslizantes {
    width: 100%;
    position: relative;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 80px; /* AUMENTÉ la separación entre logos a 80px */
    width: max-content;
    animation: scroll 35s linear infinite; /* Ajusté la velocidad */
    padding: 0 40px; /* Espacio a los lados */
}

.logos-track img {
    height: 70px; /* Aumenté ligeramente el tamaño */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.logos-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.05); /* Efecto de zoom al hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/**chatbot**/
  /* Chatbot Styles - Versión Completa y Corregida */
#chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    border: none;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #002958;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 41, 88, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

#chatbot-toggler:hover {
    background-color: #001f3f;
    transform: scale(1.05);
}

#chatbot-toggler .material-icons {
    font-size: 24px;
}

body.show-chatbot #chatbot-toggler {
    transform: rotate(90deg) scale(1.05);
}

#chatbot-toggler span {
    position: absolute;
    transition: opacity 0.3s ease;
}

body.show-chatbot #chatbot-toggler span:first-child,
#chatbot-toggler span:last-child {
    opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot-popup {
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 350px;
    height: 500px;
    background: #FFF;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: bottom right;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.show-chatbot .chatbot-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #002958;
    padding: 12px 15px;
    justify-content: space-between;
    color: white;
}

.header-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-logo {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
}

.chatbot-logo svg {
    height: 20px;
    width: 20px;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
}

#close-chatbot.custom-icon {
    border: none;
    color: white;
    height: 30px;
    width: 30px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

#close-chatbot.custom-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#close-chatbot.custom-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    gap: 12px;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    background-color: #f9fafb;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-avatar {
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f0ff;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 5px;
}

.bot-avatar svg {
    height: 18px;
    width: 18px;
}

.message-text {
    padding: 10px 14px;
    max-width: 80%;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 10px;
    word-wrap: break-word;
}

.bot-message .message-text {
    background-color: #e6f0ff;
    color: #002958;
    border-radius: 0 10px 10px 10px;
}

.user-message .message-text {
    color: white;
    background-color: #002958;
    border-radius: 10px 0 10px 10px;
}

.thinking-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.thinking-indicator .dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: #002958;
    opacity: 0.4;
    animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.chat-footer {
    flex-shrink: 0;
    padding: 12px 15px;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

.chat-form {
    display: flex;
    position: relative;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.chat-form:focus-within {
    border-color: #002958;
}

.message-input {
    border: none;
    outline: none;
    height: 42px;
    width: 100%;
    resize: none;
    max-height: 100px;
    font-size: 0.85rem;
    padding: 12px 0 12px 14px;
    border-radius: inherit;
    background-color: transparent;
    color: #1f2937;
    scrollbar-width: thin;
}

.message-input::placeholder {
    color: #9ca3af;
}

.chat-controls {
    display: flex;
    height: 42px;
    gap: 4px;
    align-items: center;
    padding-right: 8px;
}

#send-message.send-icon {
    height: 32px;
    width: 32px;
    border: none;
    cursor: pointer;
    background: #002958 !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s ease;
}

#send-message.send-icon:hover {
    background: #001f3f !important;
}

#send-message.send-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.message-input:valid ~ .chat-controls #send-message.send-icon {
    display: flex;
}