/********** Template CSS **********/
:root {
  --primary: #3eb7b1;
  --light: #f2f2f2;
  --dark: #231f20;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Coolvetica", sans-serif;
  font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
  font-weight: 600;
}

.font-secondary {
  font-family: "Antonio";
}

h1 {
  letter-spacing: -0.02em;
}
body {
  /* Logo 100px + 10px de padding total (5 arriba + 5 abajo) */
  padding-top: 110px !important;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 90px !important;
  }
}

/* ELIMINAR MÁRGENES DEL CONTENIDO PARA PEGAR AL NAV */
.container-fluid.p-0,
.header-carousel,
#header-carousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/*** NAVBAR ESTILO GLASS PREMIUM ***/
.glass-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;

  /* Combinamos lo mejor de tus dos bloques */
  background: rgba(
    255,
    255,
    255,
    0.75
  ) !important; /* Más opacidad para leer mejor */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  /* Borde ultra fino "estilo Apple" */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

  /* Padding inicial equilibrado */
  padding-top: 4px !important;
  padding-bottom: 4px !important;

  /* Transición suave tipo curva de aceleración moderna */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejora para los links dentro de la Glass Navbar */
.glass-navbar .nav-link {
  transition: transform 0.2s ease;
}

.glass-navbar .nav-link:hover {
  transform: translateY(-1px); /* Micro-interacción de industria */
}
/*** 3. LÓGICA DE LOGOS DINÁMICOS ***/
.logo-view {
  transition: all 0.3s ease-in-out;
  width: auto;
  object-fit: contain;
}

#logo_completo {
  height: 90px; /* Altura solicitada de 100px */
  display: block;
}

#logo_icono {
  height: 0;
  display: none;
  opacity: 0;
}

/* INTERCAMBIO EN SCROLL */
.navbar.shadow-sm #logo_completo {
  display: none !important;
}

.navbar.shadow-sm #logo_icono {
  display: block !important;
  height: 50px !important;
  /* Icono compacto al bajar */
  opacity: 1;
  animation: simpleFade 0.4s;
}

.nav-link:hover {
  color: black !important;
  transform: scale(1.05);
}

/*** 5. COMPORTAMIENTO MÓVIL (991px-) ***/
@media (max-width: 991.98px) {
  #logo_completo {
    height: 80px;
  }
  .navbar.shadow-sm #logo_icono {
    height: 55px !important;
  }

  /* BOTÓN BURGER DINÁMICO */
  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  .navbar-toggler-icon {
    transition: all 0.3s ease;
  }

  /* MENÚ DESPLEGABLE */
  #navbarCollapse.show,
  #navbarCollapse.collapsing {
    flex-basis: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-radius: 15px;
    margin-top: 10px;
    padding: 20px !important;
  }

  .navbar-nav .nav-link {
    width: 100%;

    font-size: 1.2rem;
    color: var(--dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/*** 6. ANIMACIONES ***/
@keyframes simpleFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*** Header carrusel de imagenes inicio***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 10px;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 0 0 50% 50%;
}

.header-carousel .owl-carousel-item {
  position: relative;
  height: 85vh; /* Altura fija para computadora */
  overflow: hidden;
  background: transparent !important;
}

.header-carousel .owl-carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.header-carousel::after,
.page-header::after {
  height: 19px;
  top: auto;
  bottom: 0;
  border-radius: 50% 50% 0 0;
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    height: 55vh;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-overlay .container {
  z-index: 2;
  position: relative;
}

.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(../img/cursos_1234.jpeg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/*** Facility ***/
.facility-item .facility-icon {
  position: relative;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-item .facility-icon::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-icon span {
  position: absolute;
  content: "";
  width: 15px;
  height: 30px;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
  left: auto;
  right: 0;
}

.facility-item .facility-icon i {
  position: relative;
  z-index: 2;
}

.facility-item .facility-text {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-radius: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.facility-item .facility-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-text * {
  position: relative;
  z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
  background: transparent;
}

.facility-item * {
  transition: 0.5s;
}

.facility-item:hover * {
  color: #ffffff !important;
}

/*** About ***/
.about-img img {
  transition: 0.5s;
}

.about-img img:hover {
  background: var(--primary) !important;
}

/*** Team Section - EduWit Style ***/
/*** Team Section - EduWit Style ***/

.team-item {
  position: relative;
  overflow: hidden; /* Corta el cristal al expandirse */
  border-radius: 15px; /* Suaviza las esquinas de la foto cuadrada */
  transition: 0.5s;
  background: #231f20; /* Fondo oscuro por si la imagen tarda en cargar */
}

.team-item img {
  display: block;
  width: 100%;
  height: auto;
}

.team-info-box {
  /* 1. Posicionamiento: Siempre al fondo */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  /* 2. Estado Inicial (Solo nombre y puesto) */
  height: 60px;

  /* 3. Estética de Cristal Nítido */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* 4. Layout y Animación */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Mantiene el nombre arriba al crecer */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER: El cristal crece y abarca todo */
.team-item:hover .team-info-box {
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Oscurece para mejorar lectura del texto largo */
  justify-content: center; /* Centra el contenido en pantalla completa */
}

.team-info-box h5 {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Descripción Oculta */
.team-description {
  opacity: 0;
  max-height: 0;
  color: #ffffff;

  /* MEJORAS DE LEGIBILIDAD */
  /* Aumentamos ligeramente el tamaño */
  line-height: 1.6; /* Mayor interlineado para evitar amontonamiento */
  font-weight: 400; /* Peso estándar para lectura fluida */
  text-align: center;

  /* CONTRASTE */
  /* Sombra sutil para separar el texto del fondo de la foto */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  padding: 0 0.5rem; /* Más aire a los lados */
  margin-top: 0 !important;
  padding: 0 !important;
  transition: all 0.4s ease; /* Transición un poco más suave */
  overflow: hidden;

  /* OPCIONAL: Suavizado de fuente */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mostrar descripción en Hover */
.team-item:hover .team-description {
  opacity: 1;
  max-height: 350px; /* Suficiente para el texto */

  transition-delay: 0.2s; /* Aparece cuando el cristal ya subió */
}

.team-info-box {
  transition: all 0.5s ease;
  height: 60px; /* Altura inicial */
}

.team-member-container:hover .team-info-box {
  height: 100%; /* Expansión total */
}

/* Cambia .team-item por .team-member-container si es la que usas en el HTML */
.team-member-container:hover .team-description {
  opacity: 1;
  max-height: 350px;

  transition-delay: 0.2s;
}

/*** Testimonial ***/
.testimonial-carousel {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 576px) {
  .testimonial-carousel {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.testimonial-carousel .testimonial-item .border {
  border: 1px dashed rgba(0, 185, 142, 0.3) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 45px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 45px;
  font-size: 20px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: #47b48b;
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 45px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  font-size: 16px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary) !important;
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .form-control {
  border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: #ffffff;
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
  color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* Contenedor individual del aliado */
.aliado-container {
  border-radius: 8px;
  aspect-ratio: 3 / 2; /* Cuadrado para que quepan bien 4 por fila */
  width: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  /* Flex para centrar si la imagen no llena todo por su proporción */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen dentro del contenedor */
.img-aliado {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cambia a 'contain' si no quieres que se corte nada del logo */
  padding: 0 !important; /* Eliminamos cualquier padding previo */
  margin: 0 !important;
  overflow: visible;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); /* Sombra invisible */
  transition:
    transform 0.6s ease,
    drop-shadow 0.6s ease;
}

@media (min-width: 991px) {
  .img-aliado:hover {
    filter: drop-shadow(0px 10px 3px rgba(0, 0, 0, 0.5));

    /* Efecto extra: subir un poco el logo para enfatizar que "flota" */
    transform: translateY(-5px);
    transform: scale(1.2); /* Opcional: un ligero zoom */
  }
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
  z-index: 1051;
}

.header-carousel .owl-dots {
  display: none !important;
}

.testimonial-carousel .owl-dots {
  display: none !important;
}

.img-conocenos {
  margin-top: -150px;
}

@media (max-width: 700px) {
  .img-conocenos {
    margin-top: -80px !important;
  }
}
/* ==========================================================================
   STEAM FLIP CARDS - Estilos Globales
   ========================================================================== */

.steam-flip-card {
  background-color: transparent;
  width: 100%; /* Ocupa el ancho de la columna de Bootstrap */
  max-width: 200px; /* Tamaño máximo en escritorio */
  aspect-ratio: 1 / 1; /* Mantiene el círculo perfecto sin importar el ancho */
  perspective: 1000px;
  margin: 0 auto; /* Centra el contenedor en su columna */

  /* Importante para que el zoom no se salga del círculo */
}
.steam-img {
  transform: scale(1.05);
}

/* El contenedor que realmente gira */

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  /* Duración de 1.2s para que la curva de aceleración se aprecie bien */
  transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Efecto Hover: Voltea horizontalmente */
.steam-flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Posicionamiento de ambas caras */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Soporte para Safari */
  backface-visibility: hidden;
  border-radius: 50%; /* Asegura que ambas caras sean circulares */
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.6s,
    box-shadow 0.3s;
}

/* Cara trasera: Ya viene volteada por defecto */
.flip-card-back {
  transform: rotateY(180deg);
  color: white;
}
.flip-card-back.steam img {
  max-width: 80%; /* Ajusta este % según qué tan "aireado" quieras que se vea */
  max-height: 80%; /* Evita que iconos altos deformen la moneda */
  object-fit: contain; /* Asegura que el icono no se estire */
}

/* Ajuste de imágenes para que llenen el círculo */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   AJUSTES PARA MÓVIL (3 elementos por fila)
   ========================================================================== */

@media (max-width: 900px) {
  .steam-flip-card {
    max-width: 120px; /* Tamaño ideal para que 3 quepan con aire entre ellos */
  }

  /* Reducimos el tamaño del texto para que quepa en círculos más pequeños */
  .flip-card-back h5 {
    font-size: 0.75rem !important;
    margin: 0;
    line-height: 1.1;
  }

  /* Opcional: Si tienes iconos dentro de la cara trasera */
  .flip-card-back i {
    font-size: 1.2rem !important;
    margin-bottom: 5px;
  }
}

/* Opcional: Soporte para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 380px) {
  .steam-flip-card {
    max-width: 95px;
  }
  .flip-card-back h5 {
    font-size: 0.65rem !important;
  }
}

/* Colores de fondo (asegúrate de que coincidan con tus clases) */
.science {
  background-color: #3eb7b1;
}
.technology {
  background-color: #2d3e50;
}
.engineering {
  background-color: #f39c12;
}
.arts {
  background-color: #e74c3c;
}
.math {
  background-color: #9b59b6;
}
.responsability {
  background-color: #27ae60;
}

/* Asegura que los componentes de video ocupen el ancho total */
lite-youtube {
  max-width: 100% !important;
  width: 100% !important;
}

/* Opcional: Si quieres que los videos crezcan para llenar la altura del formulario */
@media (min-width: 992px) {
  .col-lg-6 .h-100.d-flex.flex-column {
    justify-content: space-between;
  }

  /* Hace que cada video ocupe casi la mitad del alto disponible */
  .col-lg-6 .rounded.shadow {
    flex-grow: 1;
    margin-bottom: 10px;
  }
}

/* 1. Ajuste General para que parezca un input de Bootstrap */
.select2-container--default .select2-selection--multiple {
  border-radius: 5px;
}

/* 2. Ajuste de las "Etiquetas" o Tags seleccionados */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 20px;

  margin-top: 7px;
}

/* 3. Color del icono de eliminar (X) en los tags */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: white !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* 4. RESPONSIVIDAD: Ajuste de fuente y padding en móviles */
@media (max-width: 992px) {
  .select2-container .select2-selection--multiple {
    width: 100%;
  }

  .select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    font-size: 14px;
  }
}

/* 5. Quitar el borde azul feo al hacer foco */
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border: 1px solid #196b87 !important;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.team-img {
  /* Forzamos que la imagen sea un cuadrado antes de redondearla */
  width: 275px !important;
  height: 400px !important;

  /* Esta es la propiedad clave: llena el círculo sin deformar la cara */
  object-fit: cover;

  /* Asegura que el recorte se centre en la cara */
  object-position: center;
  overflow: true;
}

/* Ajuste para móviles: si 200px es muy grande en celular, lo bajamos */

.txt-descripcion {
  font-size: 1.05rem;
  line-height: 1.4;
  min-height: 85px; /* Altura simétrica */
}
.title-materia {
}
.icon-container {
  width: 90px;
  height: 90px;
}

@media (max-width: 767px) {
  .txt-descripcion {
    font-size: 0.9rem !important;
    min-height: auto;
  }
  .title-materia {
    font-size: 0.85rem !important;
  }
  .icon-container {
    width: 60px !important;
    height: 60px !important;
  }
  .icon-container i {
    font-size: 1.2rem !important;
  }
}

/* 1. La tarjeta del Modal (El Cristal) */
.glass-modal {
  backdrop-filter: blur(20px) saturate(160%);

  border-radius: 20px;
  /* Forzamos uso de GPU para evitar parpadeos */
  will-change: transform, opacity;
}

.equipo-img {
  /* Al ponerlo aquí, la transición funciona en ambos sentidos */
  transition: transform 0.3s ease-out;
  text-align: center;
  /* Asegúrate de que tenga el tamaño base */
  transform: scale(1);

  /* Opcional: para que el recorte sea limpio con simpleParallax */
  display: block;
}

.equipo-img:hover {
  transform: scale(1.1);
}
/* --- Contenedor General de la Card --- */
.kit-card {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  /* Borde casi imperceptible para definir la silueta sobre fondo blanco */
  border: 1px solid rgba(0, 0, 0, 0.07);

  /* Transición de suavidad extrema (Apple Expo Out) */
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s ease;

  /* Sombra inicial muy tenue y amplia */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Efecto de Hover en la Card --- */
.kit-card:hover {
  /* Crecimiento uniforme sin saltos hacia arriba */
  transform: scale(1.05);
  /* La sombra se expande para simular profundidad */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.08);
}

/* 1. Preparar la Card para contener elementos absolutos */
.kit-card {
  position: relative;
  overflow: hidden;
}

/* 2. Estilo del Botón (Glassmorphism + Centrado Absoluto) */
.btn-detalle {
  /* Posicionamiento en el "ombligo" de la card */
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;

  /* Efecto Glassmorphism */

  color: white !important; /* O el color oscuro si el fondo es claro */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

  /* Estado inicial (Oculto en PC) */
  opacity: 0;
  visibility: hidden;
  width: auto !important;
  min-width: 160px;
  padding: 12px 25px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

  /* Centrado matemático + desfase inicial para la animación de subida */
  transform: translate(-50%, -30%);
}

/* 3. Comportamiento en MÓVIL (Siempre visible) */
/* 3. Comportamiento en MÓVIL (Centrado y funcional) */

/* Altura fija para el contenedor del título */
.contenedor-titulo-kit {
  height: 3rem; /* Ajusta este valor según el tamaño de letra; 65px suele cubrir bien 2 líneas */
  overflow: hidden; /* Evita que el texto se salga si es demasiado largo */
}

/* Controlar que el título no crezca infinitamente */
.contenedor-titulo-kit h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Corta el texto a 2 líneas y pone puntos suspensivos (...) */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2; /* Ajusta el interlineado para que 2 líneas ocupen el espacio de 3rem */
}

/* Altura por defecto (Móvil y Tablet) */
.contenedor-img-kit {
  height: 220px;
  width: 100%;
}

/* Altura para PC (Pantallas grandes) */
@media (min-width: 992px) {
  .contenedor-img-kit {
    height: 200px; /* Altura reducida para PC */
  }
}

/* 4. Comportamiento en PC (Efecto Hover) */
@media (min-width: 991px) {
  .kit-card:hover .btn-detalle {
    opacity: 1;
    visibility: visible;
    /* Sube a su posición central real */
    transform: translate(-50%, -50%);
  }

  /* Brillo extra al pasar el mouse sobre el botón mismo */
  .btn-detalle:hover {
    transform: translate(-50%, -55%) scale(1.05); /* Se eleva un poco más */
  }
}
/* --- Contenedor de la Imagen --- */
.kit-image-wrapper {
  position: relative;
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Botón "Ver Detalles" (Revelado Líquido) --- */
.btn-hover-reveal {
  opacity: 0;
  visibility: hidden;
  /* Mantenemos el centrado de Bootstrap (-50%) pero ajustamos la escala */
  transform: translate(-50%, -50%) scale(0.8);

  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.6s;

  /* Evita que el botón se ajuste al ancho del contenedor */
  white-space: nowrap;
}

/* Al hacer hover en la card, el botón se desplaza al centro exacto y escala a 1 */
.kit-card:hover .btn-hover-reveal {
  opacity: 1;
  visibility: visible;
  /* Escala a su tamaño original manteniendo el centro */
  transform: translate(-50%, -50%) scale(1);
}

/* --- Ajustes de Tipografía y Espaciado --- */
.kit-title {
  letter-spacing: -0.02em;
  color: #1d1d1f; /* Color de texto Apple */
}

.ls-1 {
  letter-spacing: 0.1em;
}

/* Asegura que el botón no sea bloqueado por otros elementos */
.btn-reveal-container {
  pointer-events: none;
  z-index: 5;
}

.btn-hover-reveal {
  pointer-events: auto; /* Permite clickear el botón */
}
.badge-topic {
  background: #f8f9fa;
  color: #3eb7b1;
  border: 1px solid #3eb7b1;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.kit-card:hover .badge-topic {
  background: #3eb7b1;
  color: white;
}

.category-pill {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cat-basico {
  background: #e8f5e9;
  color: #2e7d32;
}
.cat-intermedio {
  background: #e3f2fd;
  color: #1565c0;
}

/* Espaciado de letras para títulos */
.title-materia {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.text-background {
  background-color: rgba(186, 216, 227, 0.5);
  border-radius: 15px;
  padding: 2.5rem; /* Un poco más de espacio para las comillas */
  position: relative;
  border: 1px solid rgba(186, 216, 227, 0.8);
  height: 100%;
  transition: all 0.3s ease;
  overflow: hidden; /* Evita que las comillas se salgan del borde */
}
@media (max-width: 991px) {
  .text-background {
    border-radius: 0px;
  }
}

.img-redonda {
  border-radius: 10px !important;
}

@media (max-width: 991px) {
  .img-redonda {
    border-radius: 0px !important;
  }
}

/* Comillas Superiores (Derecha) */
.text-background::before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  color: #3eb7b1;
  opacity: 0.3;
}

.text-background::after {
  content: "\f10e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 35px;
  color: #3eb7b1;
  opacity: 0.3;
}

.text-background p {
  position: relative;
  z-index: 2;
  padding: 0 10px;
  color: #444;
}

/*@media (min-width: 768px) { */
.header-carousel .owl-item.active img {
  /* Añadimos 'will-change' para preparar al navegador */
  will-change: transform;
  /* Usamos 'linear' o 'ease-out' para que no choque con el inicio del slide */
  animation: kenburns 8s linear both;
}
/*}  */

@keyframes kenburns {
  0% {
    /* Usamos translateZ(0) para forzar el modo 3D (más fluido) */
    transform: scale(1) translateZ(0);
  }
  100% {
    transform: scale(1.1) translateZ(0);
  }
}

.header-carousel .owl-item .animated {
  opacity: 0;
  visibility: hidden;
}

.header-carousel .owl-item.active .animated {
  visibility: visible;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.m_scroll_arrows {
  display: block;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  margin: -5px 0 0 0;
  animation: mouse-scroll 1s infinite;
}

.deux {
  animation-delay: 0.2s;
}
.trois {
  animation-delay: 0.4s;
}

@keyframes mouse-scroll {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 991px) {
  .scroll-down-indicator {
    display: none;
  }
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
  z-index: 5;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.materia-card i,
.materia-card h5 {
  /* La transición debe estar aquí para que el "apagado" también sea suave */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

/* --- COLORES VIBRANTES SELECCIONADOS --- */

/* HUMANIDADES - Azul Real Eléctrico (Sustituye al blanco/morado) 
   Es un color serio pero brillante que resalta mucho en gris oscuro */
.m-hum {
  color: #e77cf3e8 !important;
  text-shadow: 0 0 10px rgba(61, 90, 254, 0.6) !important;
}

/* EXPERIMENTAL - Verde Lima Eléctrico 
   Similar al verde pero con mucha más luz, tipo laboratorio */
.m-exp {
  color: #aaff00 !important;
  text-shadow: 0 0 10px rgba(170, 255, 0, 0.6) !important;
}

/* --- RESTO DE LA PALETA NEÓN --- */

.m-tec {
  color: #00d2ff !important;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5) !important;
}
.m-soc {
  color: #ff9f43 !important;
  text-shadow: 0 0 10px rgba(255, 159, 67, 0.5) !important;
}
.m-lit {
  color: #feca57 !important;
  text-shadow: 0 0 10px rgba(254, 202, 87, 0.5) !important;
}
.m-nat {
  color: #1dd1a1 !important;
  text-shadow: 0 0 10px rgba(29, 209, 161, 0.5) !important;
}
.m-dep {
  color: #ff6b6b !important;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5) !important;
}
.m-sal {
  color: #ff9ff3 !important;
  text-shadow: 0 0 10px rgba(255, 159, 243, 0.5) !important;
}
.m-mat {
  color: #48dbfb !important;
  text-shadow: 0 0 10px rgba(72, 219, 251, 0.5) !important;
}
.m-amb {
  color: #10ac84 !important;
  text-shadow: 0 0 10px rgba(16, 172, 132, 0.5) !important;
}
.m-his {
  color: #ee5253 !important;
  text-shadow: 0 0 10px rgba(238, 82, 83, 0.5) !important;
}
.m-art {
  color: #ff4081 !important;
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.5) !important;
}

/* --- EFECTO HOVER: Aumenta el brillo sin saltos --- */
.materia-card:hover i,
.materia-card.active i,
.materia-card:hover h5,
.materia-card.active h5 {
  filter: brightness(1.3);
  transform: translateY(-4px); /* Movimiento suave hacia arriba */
}

/* --- CONTENEDOR DE MATERIAS --- */
.materia-card {
  background: #636e72;

  border-radius: 18px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

/* Iconos con brillo sutil */
.materia-card i {
  font-size: 3.5rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.materia-card h6 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding-top: 3px;
  text-transform: uppercase;
}

/* --- COLORES DE ACENTO (Solo en Iconos y al Hover) --- */
/* Usamos el selector de descendencia para asegurar el cambio */

/* El detalle de la esquina */
.materia-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 3em;
  height: 3em;
  background: rgba(
    255,
    255,
    255,
    0.25
  ); /* Se adapta a cualquier color de fondo */
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 5px;
  z-index: 10;
  transition: all 0.3s ease;
}

.materia-corner i {
  color: rgb(255, 255, 255);
  font-size: 1em !important;
  opacity: 0.8;
  animation: pulseIcon 2s infinite;
  padding-right: 0.2em;
  padding-top: 0.2em;
}

.materia-card:hover .materia-corner {
  opacity: 0;
  visibility: hidden;
  transform: translate(10px, -10px);
}

.materia-card:hover .icono-materia {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
}

/* Animación para atraer la atención */
@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* --- DETALLE GLASS OSCURO --- */
.materia-detalle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Ajustamos el fondo a un negro más profundo pero translúcido */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  padding: 15px;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 18px;
  overflow-y: auto; /* SCROLL PARA MÓVIL */
  scrollbar-width: none;
}

.materia-detalle::-webkit-scrollbar {
  display: none;
}

.materia-detalle p {
  font-size: 0.95rem;
  padding: 0px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  color: #f1f1f1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- EFECTOS HOVER --- */
.materia-card:hover {
  transform: translateY(-8px) scale(1.03);

  /* EFECTO LED MEDIO: Capas reducidas al 50% */
  box-shadow:
    0 0 5px 1px currentColor,
    /* Brillo perimetral sutil */ 0 0 12px 2px currentColor,
    /* Resplandor medio suave */ 0 0 25px 5px rgba(255, 255, 255, 0.1),
    /* Destello interno tenue */ 0 0 35px 7px currentColor; /* Aura expansiva controlada */

  border-color: rgba(255, 255, 255, 0.5); /* Borde semi-transparente */
  filter: brightness(1.1); /* Brillo general moderado */
  z-index: 50;
  transform: scale(1.2);
}

.materia-card:hover .materia-detalle {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 576px) {
  .materia-card {
    min-height: 130px;
    padding: 0px;
  }

  .materia-detalle p {
    font-size: 0.75rem; /* Texto un poco más pequeño en móvil */
    padding: 0 px;
    text-justify: center;
  }

  /* Grid de 2 columnas en móvil */
  .materias-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .materia-card i {
    font-size: 3rem;

    transition: transform 0.3s ease;
  }

  .materia-card h6 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding-top: 1.5px;
  }

  .materia-card:hover {
    transform: scale(1.1);
  }
}

.materia-content {
  display: flex;
  flex-direction: column; /* Alinea los elementos uno arriba del otro */
  justify-content: center; /* Centrado vertical */
  align-items: center; /* Centrado horizontal */
  width: 100%;
  height: 100%; /* Ocupa todo el espacio de la tarjeta */
  text-align: center;
  padding: 10px;
}

.materia-card h6 {
  margin: 10px 0 0 0; /* Espacio controlado entre icono y texto */
  font-size: 0.8rem;
  line-height: 1.2;
  width: 100%;
}

.my-seccion {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

/** estilo texto bienvenida**/

.text-primary-edu {
  color: var(--primary);
}

/* Estilo para el cursor parpadeante */
.cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 0.8s infinite;
  font-weight: 200;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Espaciado para evitar que el texto "salte" en móviles */
#typewriter {
  display: inline-block;
  text-align: left;
  min-height: 1.2em;
  vertical-align: middle;
  position: relative;
}

.img-sinResultados {
  width: auto;
  height: 200px !important;
}

@media (max-width: 991px) {
  .img-sinResultados {
    height: 100px !important;
  }
}

/* Un verde menta suave y refrescante */
.Crafting {
  background-color: #d1f2e4;
}

/* Un azul cielo muy ligero y tecnológico */
.Programable {
  background-color: #d4f5fb;
}

/* Un rosa pastel cálido, similar al de Lego Spike */
.Basico {
  background-color: #fde2e2;
}

/* Un lavanda suave y digital */
.Digital {
  background-color: #e2e2fd;
}

.parent {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.div1 {
  grid-area: 1 / 1 / 3 / 2;
}
.div2 {
  grid-area: 2 / 1 / 3 / 2;
}

/* Altura fija para mantener la simetría en la fila */
.categoria,
.d-flex.flex-column.h-100 {
  height: 350px !important; /* Ajusta este valor según prefieras el tamaño en móvil */
}

/* Imagen de una sola pieza */
.img-category-single {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Llena el espacio sin overflow lateral */
  display: block;
}

/* Imágenes apiladas (las 2 fotos) */
.img-category-stack {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  object-fit: cover; /* Evita que las plantillas de poker se recorten */
}

/* Sombra suave estilo Apple para tus cards blancas */

/* Contenedor relativo para servir de ancla */

.categoria {
  perspective: 1000px; /* Opcional: añade profundidad al movimiento */
}

@media (min-width: 991px) {
  .categoria {
    border-radius: 5px;
  }
}

.img-crafting {
  opacity: 0;

  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.3) rotate(-105deg) translate(-100%, -100%);
}

.card-crafting:hover .img-crafting {
  /* Regresa al punto central (0,0) y crece un poco */
  opacity: 1;
  transform: scale(0.3) translate(90%, -40%) rotate(0deg);
}

.img-basico {
  transform: translate(0%, -30%) rotate(0deg) scale(1.09);

  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991px) {
  .img-basico {
    transform: scale(1.05);
  }
}

/* --- Estado al hacer Hover: Hacia el Centro --- */
.card-crafting:hover .img-basico {
  /* Regresa al punto central (0,0) y crece un poco
  transform: translate(-20%, 20%) rotate(-8deg); */
  transform: translate(-10%, 20%) rotate(20deg);
}

.img-prog-top {
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-prog-top2 {
  opacity: 0;
  transform: translateX(100%) scale(0.4);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-prog-bottom {
  transform: translateY(-50%) scale(1.3);

  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-programable:hover .img-prog-top {
  opacity: 1;
  transform: translate(25%, 20%) scale(1) rotate(50deg);
}

.card-programable:hover .img-prog-top2 {
  opacity: 1;
  transform: translate(-25%, 0%) scale(0.3) rotate(55deg);
}

.card-programable:hover .img-prog-bottom {
  transform: translateY(-20%) scale(1);
}

/* --- La Rana: Estado Inicial (Oculta a la izquierda) --- */
.img-basico-rana {
  /* 1. La hacemos totalmente invisible */
  opacity: 0;

  transform: translate(-60%, 40px) rotate(-30deg);

  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform, opacity;
}

.card-basico:hover .img-basico-rana {
  /* 1. Se vuelve visible */
  opacity: 1;

  /* 2. Llega a la posición final que ya tenías configurada */
  transform: translate(0%, 0%) rotate(-15deg) scale(0.6);
}

.img-basico-moto {
  transform: translateY(-40%);

  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-basico:hover .img-basico-moto {
  transform: translate(-5%, -10%) scale(0.8);
}

.img-digital-tarjeta1 {
  opacity: 0;

  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform, opacity;
  transform: scale(0.3) rotate(-105deg) translate(100%, 0%);
}

.img-digital-tarjeta2 {
  opacity: 0;

  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform, opacity;
  transform: scale(0.3) rotate(105deg) translate(100%, 0%);
}

.card-basico:hover .img-digital-tarjeta1 {
  opacity: 1;

  transform: translate(25%, 0%) scale(0.25) rotate(-35deg);
}
.card-basico:hover .img-digital-tarjeta2 {
  opacity: 1;

  transform: translate(-30%, -10%) scale(0.25) rotate(105deg);
}

.img-digital-kit {
  transform: translateY(-40%);

  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-basico:hover .img-digital-kit {
  transform: translate(-10%, -15%) scale(0.8);
}

/* Altura para PC (Pantallas grandes) */
@media (min-width: 992px) {
  .categoria,
  .d-flex.flex-column.h-100 {
    height: 350px !important;
  }
}

/* Altura para Celulares (Pantallas pequeñas) */
@media (max-width: 991px) {
  .categoria,
  .d-flex.flex-column.h-100 {
    /* Un valor entre 200px y 250px suele ser el "sweet spot" para móviles */
    height: 220px !important;
  }

  /* Ajuste para que los títulos no ocupen tanto espacio en móvil */
  .categoria h4 {
    font-size: 1.4rem !important;
    margin-bottom: 0;
  }
}

/* Evita el scroll horizontal global */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Corrige las filas que se salen */
.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Si usas paddings laterales en filas específicas como vi en tu log (pl-3) */
.pl-3.row {
  margin: 0 !important;
  padding-left: 1rem !important; /* Ajusta según necesites */
}

.titulo-moderno {
  display: inline-block; /* Crucial: el contenedor se ajusta al texto */

  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.titulo-moderno::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centra la línea */
  width: 110%; /* Largo de la línea */
  height: 2px; /* Grosor de la línea */
  background-color: #3eb7b1; /* Color EduWit */
  border-radius: 5px;
}

.titulo-moderno2 {
  /* display: inline-block; /* Crucial: el contenedor se ajusta al texto */

  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.titulo-moderno2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centra la línea */
  width: 90%; /* Largo de la línea */
  height: 2px; /* Grosor de la línea */
  background-color: #3eb7b1; /* Color EduWit */
  border-radius: 5px;
}

.text-shadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Sombra optimizada para PC */
.text-shadow-deep {
  text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px; /* Ayuda a que las letras blancas no se peguen */
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {
  .fs-tiny {
    font-size: 0.85rem !important; /* Un poco más pequeño que fs-6 para que no ocupe tanto espacio */
  }

  .text-shadow-deep {
    /* En móvil reducimos el desenfoque para que el texto sea más "filoso" y legible */
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.9);
  }
}

/* Contenedor del hotspot */
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 10px;
  transition: all 0.3s ease;
}

/* Efecto de onda expansiva */
.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #666c6c;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Interacción al pasar el mouse */
.hotspot:hover {
  transform: scale(1.3);
  background: #2d3436;
}

.hotspot:hover .hotspot-pulse {
  animation: none; /* Se detiene el pulso al interactuar */
  opacity: 0;
}

/* Contenedor de la galería para que no se vea el "corte" del iframe */
.gallery-header {
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#modalDriveGallery {
  background-color: #f8f9fa;
  /* Transición suave al cargar */
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hacer que el modal sea más alto para que la galería luzca */
@media (min-width: 992px) {
  .modal-xl {
    max-width: 1140px;
  }
  #modalDriveGallery {
    min-height: 550px;
  }
}

.btn-nav-galeria {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3eb7b1 !important; /* Turquesa EduWit */
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 0 15px rgba(62, 183, 177, 0.6);
  transition: all 0.3s ease;
}

#btnPrev {
  left: -60px;
}
#btnNext {
  right: -60px;
}

/* En móviles las metemos dentro de la imagen */
@media (max-width: 991px) {
  #btnPrev {
    left: 10px;
  }
  #btnNext {
    right: 10px;
  }
}

/* Ajuste para que la imagen nunca genere scroll */
#imgModalGaleria {
  max-width: 100%; /* No se sale de lo ancho */
  max-height: 80vh; /* No supera el 80% de la altura de la pantalla */
  width: auto; /* Mantiene su proporción */
  height: auto;
  object-fit: contain; /* Si es muy larga, se ajusta sin deformarse */
  display: block;
  margin: 0 auto; /* Centrado horizontal */
}

.nav-link-custom {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

/* Efecto de Crecimiento */
.nav-link-custom:hover {
  transform: scale(1.2); /* Crece un 8% */
  color: #3eb7b1 !important; /* Cambia al turquesa de EduWit */
}

/* La Línea de debajo (Invisible al inicio) */
.nav-link-custom::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #3eb7b1; /* Color de la línea */
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

/* Animación de la línea en Hover */
.nav-link-custom:hover::after {
  width: 80%; /* La línea se expande desde el centro */
}

.nav-divider {
  display: inline-block;
  /* Quitamos el 'width' y usamos 'border-left' para forzar nitidez */
  width: 0 !important;
  height: 20px;
  border-left: 3px solid #3eb7b1 !important; /* Tu turquesa */

  /* Espaciado fijo */

  /* BLOQUEO DE MOVIMIENTO: Evita que flexbox estire o encoja la línea */
  flex: 0 0 auto !important;

  /* ALINEACIÓN: Asegura que todas estén en la misma línea base */
  vertical-align: middle;

  /* ANTI-BORROSO: Evita que el navegador intente suavizar la línea */
  shape-rendering: crispedges;
  transform: translateZ(0); /* Fuerza aceleración por hardware para nitidez */
}

/* --- ESTILOS BENTO MÓVIL --- */
.bento-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Dos columnas desiguales como en la foto */
  grid-template-rows: auto;
  gap: 1rem;
  padding: 1rem 0;
  width: 100%;
}

.bento-box {
  text-decoration: none !important;
  color: white !important;
  border-radius: 18px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.bento-box:active {
  transform: scale(0.96);
}

/* --- ACOMODO IGUAL A LA IMAGEN --- */

/* Kits (Izquierda arriba - Grande) */
.box-kits {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* Ocupa dos filas hacia abajo */
  background-color: #010037; /* Azul Marino muy oscuro */
}

/* Conócenos (Derecha arriba - Cuadrada) */
.box-conocenos {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background-color: #030076; /* Azul Eléctrico */
}

/* Contactanos (Izquierda abajo - Larga horizontal) */
.box-contacto {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  background-color: #231f20; /* Turquesa Brillante */
  color: #ffffff !important; /* Texto oscuro para contraste en turquesa */
}

/* Equipo (Derecha abajo - Cuadrada) */
.box-equipo {
  grid-column: 2 /3;
  grid-row: 2 / 4; /* Se alinea con Kits y Contacto */
  background-color: #06c5b7; /* Gris oscuro */
}

/* --- ESTILOS DE TEXTO --- */
.bento-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bento-img {
  width: 100%px;
  height: auto;
  margin-bottom: 10px;
}

/* --- BOTÓN PLATAFORMA (Igual a la foto) --- */
.btn-plataforma-bento {
  grid-column: 1 / 3; /* Ocupa todo el ancho */
  background-color: #3eb7b1;
  border-color: #3eb7b1;
  color: #ffffff;
  text-align: center;
  padding: 18px;
  border-radius: 15px;

  margin-top: 10px;
}

.btn-plataforma-bento:hover {
  background-color: #47b48b;
  border-color: #47b48b;
  color: #ffffff;
}

/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
  --navy-eduwit: #1a2a5a;
  --green-eduwit: #76c893;
  --orange-eduwit: #f4a261;
  --gray-eduwit: #4a4e69;
  --bg-light: #f8f9fa;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- ESTILOS DEL SLIDER (TOGGLE) --- */
.methodology-switch {
  border-color: #e9ecef !important;
  background-color: var(--bg-light);
}

.methodology-switch .btn {
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  color: #6c757d;
}

.active-toggle {
  background-color: var(--navy-eduwit) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(26, 42, 90, 0.25);
}

/* --- CONTENEDOR BENTO --- */

/* --- ESTILO DE LAS CAJAS (BOXES) --- */
.abp-box {
  background: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #444;
  border: 2px solid #f5f5f5;
  transition: var(--transition-smooth);
  text-align: center;
}

.abp-box i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Estado Hover y Activo */
.abp-box:hover,
.abp-box.active {
  border-color: var(--step-color);
  color: var(--step-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.abp-box:hover i {
  transform: scale(1.1);
}

/* --- COLUMNA DE VISUALIZACIÓN (SPOTLIGHT) --- */
.lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  max-width: 500px;
  font-weight: 400;
}

#display-title {
  letter-spacing: 1px;
  color: var(--navy-eduwit);
}

/* --- LÓGICA DE ESPEJO (DESKTOP) --- */
@media (min-width: 992px) {
  /* Cuando ABP está activo: Menú izquierda, Borde a la derecha del Display */
  .border-left-custom {
    border-left: 1px solid #f0f0f0 !important;
    border-right: none !important;
  }

  /* Cuando DIY está activo: Menú derecha, Borde a la izquierda del Display */
  .border-right-custom {
    border-right: 1px solid #f0f0f0 !important;
    border-left: none !important;
  }
}

/* --- ANIMACIONES --- */
.animate-fade {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- AJUSTES MÓVILES --- */
@media (max-width: 991px) {
  .border-left-custom,
  .border-right-custom {
    border: none !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 1.5rem;
    padding-top: 2rem !important;
  }

  .abp-box {
    padding: 1.2rem 0.8rem;
    font-size: 0.75rem;
  }

  #display-icon i {
    font-size: 3.5rem !important;
  }

  /* En móvil siempre queremos el orden: Título -> Cajas -> Descripción */
  #row-wrapper {
    flex-direction: column !important;
  }
}

/* Estilo para el item activo en el dropdown */
.dropdown-item.active {
  background-color: #3eb7b1 !important; /* Navy EduWit */
  color: #ffffff !important;
  font-weight: 700;
  pointer-events: none; /* Evita cualquier interacción */
  cursor: default;
}

.dropdown-item.disabled {
  opacity: 1; /* Sobreescribimos la opacidad de Bootstrap para que se vea claro */
  cursor: not-allowed;
}

/* Hover suave para los que sí son clickeables */
.dropdown-item:not(.active):hover {
  background-color: #f1f4ff;
  color: #1a2a5a;
  padding-left: 1.5rem; /* Efecto de desplazamiento */
}

.dropdown-menu {
  padding: 0.5rem;
  min-width: 240px;
}

.iconos-steam {
  object-fit: contain;
  width: 50%;
  height: auto;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
  .iconos-steam {
    margin-top: 1rem;
  }
}
