/* ------------------ BASE ------------------ */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: sans-serif;
  background-color: #111;
}

/* ===== HEADER BASE ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1050;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 50px;
  object-fit: contain;
}

header .logo p {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

header nav {
  display: flex;
  gap: 15px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.3rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

header nav a i {
  margin-right: 8px;
  font-size: 16px;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.477);
  transform: scale(1.2);
}

/* ===== HAMBURGUESA ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 16px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animación X de 2 líneas */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== RESPONSIVO ===== */

/* Ocultar header en móviles <562px */
@media (max-width: 561px) {
  header {
    display: none;
  }
}

/* Hamburguesa visible solo en rango 562–646px */
@media (min-width: 362px) and (max-width: 877px) {
  header nav {
    position: absolute;
    top: 130%;
    right: 5%;
    background: #111;
    flex-direction: column;
    width: 250px;
    padding: 2rem;
    gap: 10px;
    border-radius: 12px;

    opacity: 0;
    max-height: 0;
    overflow: hidden;

    /* transición más suave */
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
      max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  header nav.show {
    opacity: 1;
    max-height: 500px;
  }

  .hamburger {
    display: flex;
  }
}

/* Desktop completo >646px */
@media (min-width: 877px) {
  header nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}


/* ===== VIDEO FULLSCREEN ===== */
.onboard-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 70;
}

.onboard-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== BLUR + NEBLINA EN MITAD INFERIOR ===== */
.onboard-blur-full {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50vh;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.416) 35%,
      rgba(0, 0, 0, 0.662) 45%,
      rgba(0, 0, 0, 0.862) 60%,
      rgba(0, 0, 0, 0.913) 75%,
      rgba(0, 0, 0, 0.961) 90%,
      rgba(0, 0, 0, 0.998) 100%);

  z-index: 84;
}

/* ===== CONTENIDO SOBRE EL BLUR ===== */
.onboard-content {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 90;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
}

/* ===== Título ordenado (logo izquierda, texto derecha) ===== */
.title-wrapper {
  display: flex;
  flex-direction: row;
  /* ← antes era column */
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.title-wrapper img {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 10px;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
}

/* Textos */
.card-subblock {
  margin-bottom: 42px;
}

.card-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-text {
  opacity: 0.85;
  margin-bottom: 42px;
}

.card-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 22px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  /* ← icono arriba, texto abajo */
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.icon-item i {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.pill {
  display: inline-block;
  padding: 5px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 0.9rem;
}

.pill.selected {
  background: #fff;
  color: #000;
}

/* ===== Botón ===== */
.card-btn {
  width: auto;
  padding: 10px 56px;
  border-radius: 30px;
  border: none;
  background: #001089;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
}

.card-btn:hover {
  background: #00ddff;
  color: #000000;
}

.portal-overlay-aula {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50vh;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.416) 45%,
      rgba(0, 0, 0, 0.562) 55%,
      rgba(0, 0, 0, 0.679) 65%,
      rgba(0, 0, 0, 0.729) 75%,
      rgba(0, 0, 0, 0.773) 80%,
      rgba(0, 0, 0, 0.875) 90%,
      rgb(0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1000;
}


.card-title-aula {
  font-size: 2rem;
}

.card-text-aula {
  opacity: 0.85;
  font-size: 0.95rem;
}

.card-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 12px;
  margin-top: 6px;

}

/* Opcional: responsive */
@media (max-width: 768px) {
  .card-input {
    width: 90%;
    /* más ancho en mobile si quieres */
  }
}

/* Opcional: responsive */
@media (max-width: 420px) {
  .card-input {
    width: 100%;
    max-width: 250px;
  }
}

/* Opcional: responsive */
@media (max-width: 540px) {
  .card-input {
    width: 90%;
    max-width: 300px;
  }
}

/* Opcional: responsive */
@media (max-width: 680px) {
  .card-input {
    width: 100%;
    max-width: 280px;
  }
}

#portalVolver {
  margin-top: 20px;
  margin-bottom: 25px;
}

/* ===== SECCIÓN VIDEOS ===== */
#videos {
  width: 100%;
  overflow-x: auto;
  padding-top: 100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tarjeta-video-container {
  display: flex;
  justify-content: center;
  /* centra los videos en toda la pantalla */
  align-items: flex-start;
  flex-wrap: nowrap;
  /* mantiene una sola línea */
  gap: 40px;
  /* espacio entre videos */
  width: 100%;
  /* usa todo el ancho */
  max-width: 100vw;
  overflow-x: auto;
  /* scroll horizontal si se necesita */
  box-sizing: border-box;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.video-wrapper {
  position: relative;
  width: 450px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

/* ❤️ Botón de corazón */
.heart-btn {
  position: absolute;
  bottom: 25%;
  /* 🔧 Ajusta la altura */
  right: 3%;
  /* 🔧 Ajusta la distancia al borde */
  text-align: center;
  color: #ccc;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}

.heart-btn i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.heart-btn:hover i {
  transform: scale(1.2);
}

.heart-btn.active i {
  color: crimson;
}

/* 🔢 Contador de me gusta */
.like-count {
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
  display: inline-block;
}


/* Texto superior dentro del video */
.video-overlay-top {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.texto-izquierda {
  font-size: 18px;
  line-height: 1.1;
}

.texto-izquierda .titulo {
  display: block;      /* fuerza a título en su propia línea */
  font-weight: 700;
}

.texto-izquierda .student-id {
  display: block;      /* aparece debajo del título */
  font-size: 12px;
  color: #f0f0f0;
  margin-top: 6px;
}
/* Texto inferior: izquierda y derecha */
.video-overlay-bottom {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: white;
}

/* Barra de progreso inline */
.barra-progreso-inline {
  display: inline-block;
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin: 0 4px;
  vertical-align: middle;
  overflow: hidden;
}

.barra-progreso-inline .barra-llena {
  height: 100%;
  background: rgb(20, 220, 37);
  border-radius: 3px;
}

/* Pill principal */
.pill-nav {
  position: fixed;
  bottom: 4px;
  left: 40%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  background: rgba(0, 0, 0, 0.623);
  border: 1px solid rgba(255, 255, 255, 0.73);
  border-radius: 50px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 7px 18px;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}


/* CSS: efecto al presionar (ponlo en tu CSS) */
.pill-item i {
  font-size: 22px;
  margin-bottom: 3px;
  transition: transform 0.2s ease, color 0.2s ease;

}

.pill-item i.active-effect {
  transform: scale(1.25);
  color: #0047b3;
  /* azul similar al que usabas */
}

/* Icono estudiante separado */
.pill-student {
  position: fixed;
  bottom: 4px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #0026ff;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  z-index: 60;
  transition: transform 0.3s, background 0.3s;
}

.pill-student:hover {
  transform: scale(1.1);
  background: #0026ff;
}

.pill-student i {
  font-size: 25px;
}

/* ===============================
   Menú flotante del estudiante
   =============================== */

/* Mobile - por defecto */
.student-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  text-align: center;
  justify-content: center;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  background: rgba(0, 219, 231, 0.562);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  gap: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  z-index: 50;
}

/* Mostrar menú */
.student-menu.show {
  opacity: 1;
  max-height: 600px;
  /* suficiente para login en mobile */
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ===============================
   Login del estudiante
   =============================== */
.student-login {
  padding: 20px;
}

.student-login h3 {
  font-size: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #f0f0f0;
}

.student-login input {
  width: 100%;
  margin-bottom: 8px;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  box-sizing: border-box;
}

.student-login button {
  width: 100%;
  max-width: 250px;
  padding: 0.5rem;
  border-radius: 24px;
  border: 1px solid #0026ff;
  background: #fff;
  color: #0026ff;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
}
.student-login button:hover {
  color: #f0f0f0;
  background-color: #0026ff;;
}
/* ===============================
   Dashboard del estudiante
   =============================== */
.student-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  height: 70vh;
  overflow-y: auto;
}

/* Título del dashboard */
.student-dashboard .sd-title {
  font-size: 20px;
  font-weight: bold;
}

/* Grid de progreso */
.sd-progress-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 40px;
  margin-top: 20px;
}
.sd-name {
  font-size: 12px;
}
/* Item individual */
.sd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
}

/* Círculo de progreso */
.sd-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.sd-circle svg {
  width: 100%;
  height: 100%;
}

.sd-circle circle.bg {
  fill: none;
  stroke: #eee;
  stroke-width: 10;
}

.sd-circle circle.bar {
  fill: none;
  stroke: #00dbe7;
  stroke-width: 10;
  stroke-dasharray: 283;
  /* 2πr, r=45 */
  stroke-dashoffset: 283;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s ease;
}

.sd-circle .percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
}

.stats-box {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.stat-block {
  display: flex;
  flex-direction: column; /* título arriba, valor abajo */
  text-align: center;
}

.stat-block .label {
  font-size: 12px;
  color: #444;
  font-weight: 600;
}

.stat-block .value {
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

/* Mensaje IA */
.sd-ai-msg {
  margin-top: 20px;
  font-size: 12px;
  color: #222;
  text-align: center;
}


/* Desktop / intermedias */
@media (min-width: 562px) {
  .pill-student {
    bottom: 20px;
    right: 30px;
  }

  .student-menu {
    bottom: 100px;
    right: 100px;
    width: 350px;
    left: auto;
    transform: none;
    height: auto;
    transform: none;
  }
}

/* ==========================
   VIDEOS RESPONSIVE
========================== */

/* Mobile: ≤561px */
@media (max-width: 561px) {
  #videos {
    margin-top: -85px;
  }

  .tarjeta-video-container {
    flex-direction: column;
    /* uno debajo del otro */
    align-items: center;
    padding: 0;
    /* quita padding lateral que empuja fuera */
    overflow-x: hidden;
  }

  .video-wrapper {
    width: 100%;
    /* ancho relativo al viewport */
    aspect-ratio: 9 / 16;
    /* vertical */
    flex: 0 0 auto;
    border-radius: 8px;
  }

}

/* Pantallas intermedias: 562–877px */
@media (min-width: 562px) and (max-width: 877px) {
  .tarjeta-video-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    justify-content: flex-start;
    /* slider horizontal */
  }

  .video-wrapper {
    width: 420px;
    /* ancho contenido */
    aspect-ratio: 9 / 16;
    /* más ancho y corto */
    flex: 0 0 auto;
    border-radius: 8px;
  }

  .pill-nav {
    display: none !important;
  }

  .pill-student {
    display: flex !important;
  }
}

/* Desktop: ≥878px */
@media (min-width: 878px) {
  .tarjeta-video-container {
    display: flex;
    flex-wrap: nowrap;
    /* misma fila */
    justify-content: center;
    /* centrado horizontal */
    align-items: flex-start;
    gap: 20px;
  }

  .video-wrapper {
    width: 580px;
    /* tamaño más contenido */
    aspect-ratio: 3 / 4;
    /* altura proporcional */
    flex: 0 0 auto;
    border-radius: 12px;
  }

  .pill-nav {
    display: none !important;
  }

  .pill-student {
    display: flex !important;
  }
}

/* Ocultar video de fondo solo en desktop */
@media (min-width: 601px) {
  #videoFondo {
    display: none !important;
  }
}

/* MOBILE: oculto por defecto */
@media (max-width: 768px) {
  .pill-student {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .pill-student.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  #pillNav {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  #pillNav.visible {
    opacity: 1;
    pointer-events: auto;
  }
}


/* ===== Notificación tipo iOS Liquid Glass ===== */
#ios-notificacion {
  position: fixed;
  top: -120px;
  /* empieza fuera de la pantalla */
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.528);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-radius: 24px;
  padding: 0.9rem 1.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: top 0.5s ease, opacity 0.5s ease;
}

/* Mostrar notificación */
#ios-notificacion.show {
  top: 25px;
  /* posición visible */
  opacity: 1;
}

/* Imagen dentro de la notificación */
#ios-notificacion img {
  width: 60px;
  /* más grande */
  height: 60px;
  object-fit: cover;
  border-radius: 24%;
}

/* Texto */
#ios-notificacion p {
  margin: 0;
  line-height: 1.2;
  font-size: 1rem;
  flex: 1;
  /* ocupa espacio restante */
}

/* Botón "Entendido" */
#ios-notificacion button {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 36px;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}

/* Borde interno del botón */
#ios-notificacion button::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid rgba(255, 255, 255, 0.824);
  border-radius: 36px;
  pointer-events: none;
}

/* Animaciones */
@keyframes zoomIn {
  from {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
}

/* ===== Desktop adjustments ===== */
@media (min-width: 768px) {
  #ios-notificacion {
    top: -150px;
    /* más abajo para no tapar header */
  }

  #ios-notificacion.show {
    top: 90px;
    /* aparece más abajo del header */
  }
}

/* ===== Responsive Mobile ===== */
@media (max-width: 480px) {
  #ios-notificacion {
    flex-direction: row;
    padding: 0.8rem 1.1rem;
    width: 95vw;
  }

  #ios-notificacion p {
    font-size: 0.8rem;
  }

  #ios-notificacion img {
    width: 40px;
    height: 40px;
  }

  #ios-notificacion button {
    font-size: 0.65rem;
    padding: 0.5rem 0.8rem;
  }
}

/* Permite arrastrar sin animación */
#ios-notificacion.swiping {
  transition: none !important;
}

/* Estado oculto al soltar hacia arriba */
#ios-notificacion.hide {
  opacity: 0 !important;
  top: -160px !important;
}

/* CONTENIDOS - EXCLUSIVO */
#contenidos {
  background: #f8f9fa;
  position: relative;
}

#contenidos h2.cursos-title {
  font-weight: 600;
  color: #111;
  font-size: 50px;
  text-align: left;
  padding-top: 25px;
  margin-bottom: 60px;
}

#contenidos h2.cursos-title::after {
  content: "";
  display: block;
  width: 360px;
  height: 3px;
  background-color: #2261ff;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Wrapper y subtítulos de card */
.contenidos-card-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contenidos-card-subtitle {
  font-weight: 600;
  color: #2261ff;
  margin-bottom: 0.5rem;
}

/* Card principal */
.contenidos-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.contenidos-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contenidos-card-body {
  padding: 2rem 1.5rem;
}

.contenidos-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
  display: flex;
  align-items: left;
  justify-content: center;
}

.contenidos-card-title i {
  color: #2261ff;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
#contenidos-card-subtitle {
  font-size: 18px;
}
.contenidos-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Botones de card */
.contenidos-card-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contenidos-btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: #bfcffc;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contenidos-btn-icon i {
  font-size: 24px;
  margin-bottom: 4px;
  color: #2261ff;
}

.contenidos-btn-icon .divider {
  width: 50%;
  height: 2px;
  background: rgba(34, 97, 255, 0.3);
  margin: 4px 0;
}

.contenidos-btn-icon p {
  font-size: 0.75rem;
  margin: 0;
  text-align: center;
  color: #2261ff;
  white-space: nowrap;
}

.contenidos-btn-icon:hover {
  background: #e3e3e3;
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.contenidos-descarga {
  text-align: center;
}

.descarga-link {
  color: #000000;            /* Blanco */
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: 0.2s ease;
}

.descarga-link:hover {
  opacity: 1;
  text-decoration: underline;
}
/* Responsive: ajuste de cards */
@media (max-width: 1199px) {

  /* Pantallas intermedias: usar flex-wrap y ancho mínimo para que no se adelgacen */
  .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .col-md-4 {
    flex: 1 1 300px;
    /* mínimo ancho de 300px */
    max-width: 33%;
  }
}

@media (max-width: 992px) {
  .col-md-4 {
    flex: 1 1 100%;
    /* pasa a columna única */
    max-width: 100%;
  }

  .contenidos-card-body {
    padding: 1rem;
  }
}


/* ===== TOP BAR estilo iOS ===== */
.modern-modal .modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-topbar .topbar-left {
  font-size: 0.9rem;
  color: #007bff;
}

.modal-topbar .topbar-title {
  font-weight: bold;
  font-size: 1rem;
}

.modal-topbar .topbar-close {
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== CARDS ===== */
#modalStudentSubscription .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: bold;
  gap: 8px;
  color: #000951;
}

.topbar-logo {
  width: 24px; /* ajusta al tamaño que quieras */
  height: 24px;
  object-fit: contain;
  border-radius: 24px;
}

.modal-topbar .topbar-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #0a007d;
}
/* Card general */
.sub-card {
  background: #e0e0e0;
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  animation: fadeUp 0.35s ease;
}

/* Título */
.sub-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: .3rem;
}

/* Texto */
.sub-desc {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Imagen o logo del plan */
.sub-img {
  width: 100%;
  height: 120px;
  background: #f2f2f2;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Botón */
.sub-btn {
  background: #007bff;
  color: rgb(234, 234, 234);
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: .7rem 0;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
}

/* Texto pequeño inferior */
.sub-small {
  color: #777;
  font-size: 0.8rem;
}

/* Animación tipo iOS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FEEDBACK SECTION ===== */
#alumni-feedback-section {
  padding: 60px 20px;
  background: none;
  color: #fff;
}

/* ===== Título Feedback / Opiniones ===== */
.feedback-title {
  font-size: 50px;
  margin-bottom: 60px;
  font-weight: 600;
  text-align: left;
  color: #fff;
  position: relative;
  padding-top: 25px;
}

.feedback-title::after {
  content: "";
  display: block;
  width: 360px;
  height: 3px;
  background-color: #2261ff;
  border-radius: 2px;
  position: absolute;
  top: 0;
  /* 🔹 guion arriba */
  left: 0;
  /* alineado al texto */
}

/* ===== SLIDER ===== */
.feedback-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.feedback-slider {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.feedback-slider::-webkit-scrollbar {
  display: none;
}

.feedback-item {
  flex: 0 0 90%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
}

.feedback-body {
  display: flex;
  align-items: center;
  gap: 25px;
}

.feedback-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
}


.feedback-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
  font-style: italic;
  margin-top: 20px;
}

.feedback-footer {
  margin-top: 20px;
  text-align: left;
}

.feedback-name {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}

.feedback-name span {
  font-size: 12px;
  color: #bbb;
  font-weight: 400;
}

.progress-group {
  max-width: 400px;
}

.progress-group p {
  font-size: 0.85rem;
  margin: 16px 0 3px;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;

}

.progress div {
  height: 100%;
  background: #00E0FF;
  border-radius: 3px;
}

/* ===== DOTS ===== */
.feedback-slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.feedback-slider-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #ffffffa1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-slider-indicators .dot.active {
  background: #2261ff;
  width: 40px;
  height: 10px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .feedback-item {
    flex: 0 0 45%;
  }
}

@media (min-width: 1200px) {
  .feedback-item {
    flex: 0 0 30%;
  }
}

@media (max-width: 768px) {
  .feedback-title::after {
    width: 260px;
  }
}

/* ===== Sección Soporte y Recursos ===== */
#soporte,
#recursos {
  background: #edeeef;
  position: relative;
  z-index: 1;
}

/* ===== Título Soporte ===== */
#soporte h3 {
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #000;
  padding: 6px 22px;
}

/* ===== Título Recursos ===== */
#recursos h3 {
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #000;
  padding: 6px 22px;
}

/* ===== Botones tipo ícono ===== */
.recursos-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 10%;
}

.btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  color: #000;
  border-radius: 24px;
  padding: 1.5rem 2rem;
  width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.btn-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Ícono */
.btn-icon i {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

/* Línea divisoria */
.btn-icon .divider {
  display: block;
  width: 50%;
  height: 2px;
  background: #ccc;
  margin: 0.5rem 0 0.7rem;
  border-radius: 2px;
}

/* Texto */
.btn-icon p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
/* --- Botón que va en horizontal --- */
.btn-icon-horizontal {
  flex-direction: row !important;
  gap: 0.6rem;
  padding: 1.2rem 1.5rem;
}

/* Ocultar la línea divisoria en este botón */
.btn-icon-horizontal .divider {
  display: none;
}

/* Ícono whatsapp del mismo tamaño del texto */
.btn-icon-horizontal .whatsapp-icon {
  font-size: 1.2rem;
  color: #25D366;
  margin: 0;
}
@media (max-width: 768px) {
  .recursos-btns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* espacio entre los botones */
  }

  .btn-icon {
    width: 50%;
    /* que se adapten mejor al ancho del móvil */
    max-width: 300px;
  }

  #soporte h3 {
    text-align: left;
  }

  #recursos h3 {
    text-align: left;
  }
}

/* Créditos */
.credits-wrapper {
  margin-bottom: 120px;
}

#creditsCollapse .card-body {
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
  border-radius: 16px;
  padding: 10px 10px;
  background: #ffffff;
  line-height: 1.1;
  margin-top: 10px;
  margin: 15px;
}

/* Botón créditos original */
.btn-sg {
  min-width: 180px;
  max-width: 100%;
  padding: 0.8rem 1.2rem;
  margin-top: 10px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-dark.btn-sg:hover {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000;
}

/* Fix AOS en pantallas muy bajas (ej: iPhone landscape) */
@media screen and (orientation: landscape) and (max-height: 500px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* CONTENEDOR EXPANDIDO */
#reviewCollapse {
  width: 100%;
  
}

#reviewCollapse .card {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  background: #ffffff;
  opacity: 0;
  transition: all 0.35s ease;
}

/* Animación cuando se abre */
#reviewCollapse.show .card {
  transform: translateY(0);
  opacity: 1;
}
/* ===== Sección Cursos ===== */
.cursos-section {
  width: 100vw;
  min-height: 100vh;
  padding: 1.9rem 0.9rem;
  box-sizing: border-box;
  background-color: #fff;
  overflow-x: hidden;
}

/* ===== Título Contenidos del Curso Online ===== */
.cursos-title {
  position: relative;
  font-weight: 600;
  color: #111;
  font-size: 50px;
  margin-bottom: 60px;
  padding-top: 25px;
  margin-left: 0;
}

.cursos-title small {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: #555;
  margin-top: 5px;
}

/* 🔹 Guion azul arriba del texto */
.cursos-title::before {
  content: "";
  display: block;
  width: 360px;
  height: 3px;
  background-color: #2261ff;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== Fila principal ===== */
.curso-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* ===== Info curso ===== */
.curso-info {
  display: flex;
  flex-direction: column;
}

.curso-km {
  font-size: 3rem;
}

.curso-subtitle {
  font-size: 1rem;
  color: #555;
  margin-left: 0.3rem;
}

/* ===== Botones ===== */
.curso-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 36px;
  border: 1px solid #2261ff;
  background-color: #ffffff;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  /* 🔹 evita cortes en dos líneas */
  transition: all 0.3s ease;
}

.curso-btn:hover {
  border-color: #0a007d;
}

/* ===== Pantallas intermedias (>=768px) ===== */
@media (min-width: 768px) {
  .curso-row {
    padding: 0 2rem;
    /* 🔹 separa del borde */
  }

  .curso-km {
    font-size: 3.5rem;
  }

  .curso-subtitle {
    font-size: 1.1rem;
    margin-left: 0.5rem;
  }

  .curso-btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.8rem;
  }
}

/* ===== Escritorio (>=1024px) ===== */
@media (min-width: 1024px) {
  .curso-row {
    padding: 0 4rem;
    /* 🔹 aún más separación de bordes */
  }

  .curso-km {
    font-size: 4rem;
  }

  .curso-subtitle {
    font-size: 1.2rem;
    margin-left: 0.6rem;
  }

  .curso-btn {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }
}

/* ===== Acordeón ===== */
.curso-accordion {
  max-height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  z-index: 2000;
}

.curso-accordion.active {
  max-height: 600px;
}

/* ===== Grid de íconos ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 30px;
  margin-bottom: 140px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  
}

/* ===== Ícono principal ===== */
.icon-card {
  width: 70px;
  height: 70px;
  background-color: #0026ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.icon-card:hover {
  background-color: #000000;
  transform: translateY(3px);
}

.icon-card i {
  color: #ffffff;
  font-size: 1.8rem;
  z-index: 2;
}

/* ===== Texto sobre el ícono ===== */
.icon-text {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

/* ===== Pill debajo del ícono ===== */
.icon-pill {
  display: inline-block;
  padding: 4px 10px;
  margin-top: 8px;
  background-color: #3a3a3a;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
  position: relative;
  cursor: pointer;
}

/* Tooltip solo si existe data-tooltip */
.icon-pill[data-tooltip]::after,
.icon-pill[data-tooltip]::before {
  display: block;
}

/* ===== Tooltip general ===== */
.icon-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 30px;
  /* debajo del ícono o pill */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: normal;
  width: max-content;
  max-width: 200px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Flechita */
.icon-pill::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Mostrar tooltip solo si tiene data-tooltip */
.icon-pill[data-tooltip]:hover::after,
.icon-pill[data-tooltip]:hover::before,
.icon-pill[data-tooltip].active::after,
.icon-pill[data-tooltip].active::before {
  opacity: 1;
}

/* 📱 Tooltip más horizontal y compacto en mobile */
@media (max-width: 768px) {
  .icon-pill[data-tooltip]::after {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 140px;
    max-width: 90vw;
    padding: 4px 4px;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
  }

  .cursos-title::before {
    width: 260px;
  }
}

/* Hover solo en escritorio */
@media (hover: hover) {

  .icon-pill[data-tooltip]:hover::after,
  .icon-pill[data-tooltip]:hover::before {
    opacity: 1;
  }
}

/* ===== Enlaces de íconos ===== */
.icon-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.icon-link:hover .icon-card {
  transform: translateY(4px);
  opacity: 0.9;
  transition: all 0.2s ease;
}

/* ===== Pantallas intermedias ===== */
@media (min-width: 768px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 120px;
  }
}

/* ===== Escritorio ===== */
@media (min-width: 1024px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Fondo oscuro + blur */
#modalCodigo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

/* Caja del modal */
#modalCodigo .modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 25px 25px 30px;
  border-radius: 14px;
  position: relative;
  animation: floatUp 0.3s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  text-align: center;
}

/* Botón cerrar (X) */
#modalCodigo .close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#modalCodigo .close-modal:hover {
  opacity: 1;
}

/* Título */
#modalCodigo h2 {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Input */
#modalCodigo input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: 0.25s ease;
  margin-bottom: 15px;
}

#modalCodigo input[type="text"]:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,.25);
}

/* Botón validar */
#modalCodigo #btnValidarCodigo {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
  margin-bottom: 15px;
}

#modalCodigo #btnValidarCodigo:hover {
  background: #222;
}

/* Enlace solicitar código */
#modalCodigo .solicitar-enlace {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #0078ff;
  text-decoration: none;
}

#modalCodigo .solicitar-enlace:hover {
  text-decoration: underline;
}

/* Mensaje estado */
#modalCodigo #mensajeEstado {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}