/* ==========================================================================
   CONSOLIDACIÃ“N DEFINITIVA APROBADA (EXPERIENCIA MODERNA STORIES & SELECTOR 5A)
   VersiÃ³n de ProducciÃ³n: 2026-10-21
   - Hero Compacto con texto alineado
   - Marquee continuo de beneficios (EnvÃ­os, Cuotas, QR)
   - Selector tÃ¡ctil 3D de Colegios en 2 columnas
   - Burbuja flotante circular y modal Reel a pantalla completa
   - Pantalla intermedia: Selector de Niveles tipo Stories Instagram (2-1)
   - Hero DinÃ¡mico de Colegio con fotografÃ­a del nivel seleccionado
   - Bandeja de Stories de Asistencia y Confianza (Video QR, Talles, EnvÃ­os, Cambios)
   - Selector de Ciclos tipo PÃ­ldoras Instagram con miniaturas
   - Pie de pÃ¡gina institucional y legal ultra-compacto (Res. 424/2020, AFIP 960/D, Nave)
   ========================================================================== */

/* â”€â”€ HERO COMPACTO RESPONSIVE (TEXTO ABAJO) â”€â”€ */
.home-hero {
  min-height: auto !important;
  margin: 14px auto 12px auto;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  /* En celular y PC alinea el texto a la IZQUIERDA */
  padding: 90px 20px 20px 20px !important;
}

.hero-text {
  max-width: 100%;
  margin-top: 0 !important;
  text-align: left !important;
}

.hero-text h1 {
  font-size: clamp(23px, 6.6vw, 36px);
  line-height: 1.18;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-align: left !important;
}

@media (min-width: 768px) {
  .home-hero {
    min-height: 420px !important;
    border-radius: 28px;
  }

  .hero-content {
    align-items: flex-start !important;
    /* Texto a la IZQUIERDA en PC */
    justify-content: flex-end !important;
    padding: 40px 50px !important;
  }

  .hero-text {
    max-width: 530px !important;
  }

  .hero-text h1 {
    font-size: 38px !important;
  }
}

/* â”€â”€ BANNER AMARILLO INSTITUCIONAL CON MOVIMIENTO CONTINUO (ACELERADO 20%, GAP -30%) â”€â”€ */
.hero-trust-bar-wrap {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto 16px auto;
  overflow: hidden;
  background: #f8c300;
  /* Amarillo institucional MiUni */
  border: 1.5px solid #dca800;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(248, 195, 0, 0.35);
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.hero-trust-bar-track {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Reducido un 30% respecto a 22px */
  width: max-content;
  animation: trustTicker 6s linear infinite;
  /* Acelerado 20% (de 24s a 19s) */
  padding: 7px 10px;
}

.hero-trust-bar-track:hover {
  animation-play-state: paused;
}

@keyframes trustTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  /* Alto contraste sobre fondo amarillo */
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.trust-item-moto .moto-icon {
  display: inline-block;
  font-size: 15px;
  animation: motoRide 0.8s ease-in-out infinite alternate;
}

@keyframes motoRide {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-1.5px) rotate(-1deg);
  }
}

.miuni-tilde-svg {
  width: 15px;
  height: 15px;
  stroke: #047857;
  /* Verde esmeralda oscuro visible sobre amarillo */
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.trust-divider {
  color: rgba(15, 23, 42, 0.35);
  font-weight: 900;
  font-size: 13px;
}

/* â”€â”€ BOTONES DE COLEGIOS MÃS GRANDES EN 2 COLUMNAS â”€â”€ */
.section-school-picker {
  padding: 10px clamp(16px, 8.33vw, 30px) 24px clamp(16px, 8.33vw, 30px);
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 8.33vw, 30px) !important;
  justify-items: center;
  align-items: center;
}

@media (min-width: 768px) {
  .schools-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    max-width: 960px;
    margin: 0 auto;
    gap: 20px !important;
  }
}

/* Botón circular con fondo blanco puro */
.school-card-btn {
  width: 100% !important;
  max-width: 135px !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(19, 81, 180, 0.22) !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease !important;
  position: relative;
  overflow: hidden;
}

.school-card-btn:active {
  transform: scale(0.92) !important;
  box-shadow: 0 3px 10px rgba(248, 195, 0, 0.45) !important;
}

/* Logo centrado en plano intermedio (z-index 1, por detrás del aro) */
.school-badge-img {
  position: relative !important;
  z-index: 1 !important;
  max-width: 105px !important;
  max-height: 105px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Aro Story degradado MiUni en PRIMER PLANO (z-index 5, por DELANTE del logo) */
.school-card-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #f8c300 0%, #1351b4 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5 !important;
}

/* Aro Story SVG vectorial garantizado (z-index 6) */
.school-story-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6 !important;
}

.school-name,
.school-tagline {
  display: none !important;
}

/* â”€â”€ BURBUJA FLOTANTE PURA (SIN Ã“VALO NEGRO) â”€â”€ */
.miuni-video-bubble-wrap {
  position: fixed !important;
  top: 230px !important;
  /* <-- Distancia desde el MARGEN SUPERIOR en celular */
  right: 16px !important;
  /* <-- Pegada a la DERECHA en celular */
  left: auto !important;
  bottom: auto !important;
  z-index: 990 !important;
  display: flex;
  align-items: center !important;
  animation: bubbleSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* BURBUJA EN PC: EN LA ESQUINA INFERIOR DERECHA DEL HERO (120px Y X TRANSLÚCIDA) */
@media (min-width: 768px) {
  .miuni-video-bubble-wrap {
    top: 410px !important;
    right: calc(max(20px, (100vw - 1240px) / 2) + 24px) !important;
  }

  .bubble-avatar-btn {
    width: 120px !important;
    height: 120px !important;
  }

  .bubble-dismiss-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    font-size: 12px !important;
    width: 24px !important;
    height: 24px !important;
    top: -2px !important;
    left: -2px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
  }

  .bubble-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    transform: scale(1.08) !important;
  }
}

.miuni-video-bubble-wrap.is-hidden {
  display: none !important;
}


@keyframes bubbleSlideIn {
  from {
    transform: translateY(40px) scale(0.85);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.bubble-avatar-btn {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 80%;
  padding: 3px;
  background: linear-gradient(135deg, #f8c300 0%, #1351b4 100%);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  animation: bubblePulse 2.4s infinite;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.bubble-avatar-btn:active {
  transform: scale(0.92);
}

@keyframes bubblePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 195, 0, 0.65), 0 8px 20px rgba(15, 23, 42, 0.25);
  }

  70% {
    box-shadow: 0 0 0 13px rgba(248, 195, 0, 0), 0 8px 20px rgba(15, 23, 42, 0.25);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(248, 195, 0, 0), 0 8px 20px rgba(15, 23, 42, 0.25);
  }
}

.bubble-video-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #061c44;
}

.bubble-video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bubble-play-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8c300;
  color: #061c44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bubble-dismiss-btn {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  line-height: 1;
}

/* â”€â”€ MODAL REEL / STORY A PANTALLA COMPLETA â”€â”€ */
.modal-qr-reel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 20, 52, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-qr-reel.active {
  display: flex;
  opacity: 1;
}

.qr-reel-card {
  background: #0f172a;
  color: #ffffff;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  border-radius: 24px;
  border: 1.5px solid rgba(248, 195, 0, 0.3);
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: reelPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reelPop {
  from {
    transform: scale(0.92) translateY(20px);
  }

  to {
    transform: scale(1) translateY(0);
  }
}

.qr-reel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-reel-video-wrap {
  width: 100%;
  background: #000;
  position: relative;
}

.qr-reel-video-wrap video {
  width: 100%;
  max-height: 280px;
  display: block;
  object-fit: contain;
}

.qr-reel-body {
  padding: 20px;
}

.qr-reel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248, 195, 0, 0.15);
  border: 1px solid #f8c300;
  color: #f8c300;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.qr-reel-body h3 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}

.qr-reel-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.qr-reel-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 14px;
}

.qr-reel-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8c300;
  color: #061c44;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-reel-step-text strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.qr-reel-step-text span {
  font-size: 11px;
  color: #cbd5e1;
}

.qr-reel-btn-close {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #f8c300;
  color: #061c44;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: 14px;
}

/* ── PIE DE PÁGINA OSCURO INSTITUCIONAL Y COMPACTO ── */
.legal-footer-compact {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 16px 14px 16px 14px !important;
  font-family: inherit;
  color: #cbd5e1;
  position: relative;
  z-index: 10;
  margin-bottom: 0 !important;
}

.lfc-main-row {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.lfc-columns {
  display: flex;
}

.lfc-col {
  display: flex;
}

.lfc-col a {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  transition: color 0.15s ease;
}

.lfc-col a:hover {
  color: #f8c300 !important;
  text-decoration: underline !important;
}

.lfc-data-fiscal-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.lfc-data-fiscal-badge {
  display: inline-block;
  text-decoration: none;
}

.lfc-data-fiscal-badge img {
  width: 30px !important;
  height: 40px !important;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: block;
  transition: transform 0.2s ease;
}

.lfc-data-fiscal-badge img:hover {
  transform: scale(1.05);
}

.lfc-copy {
  text-align: center;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

/* ── COMPORTAMIENTO MÓVIL (< 768px): CONSERVA TAMAÑO Y DISTRIBUCIÓN ── */
@media (max-width: 767px) {
  .legal-footer-compact {
    padding: 14px 12px 14px 12px !important;
  }
  .lfc-main-row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 500px;
  }
  .lfc-columns {
    gap: 12px;
    flex: 1;
    min-width: 0;
    order: 1;
  }
  .lfc-col {
    flex-direction: column;
    gap: 10px;
  }
  .lfc-col a {
    font-size: 12px !important;
  }
  .lfc-data-fiscal-wrap {
    order: 2;
  }
  .lfc-copy {
    width: 100%;
    order: 3;
    margin-top: 12px;
  }
}

/* ── COMPORTAMIENTO ESCRITORIO / PC (>= 768px): TODO EN UNA SOLA LÍNEA ── */
@media (min-width: 768px) {
  .legal-footer-compact {
    padding: 14px 24px !important;
  }
  .lfc-main-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    gap: 20px;
  }
  .lfc-columns {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex: initial;
    order: 1;
  }
  .lfc-col {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .lfc-copy {
    order: 2;
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    font-size: 11.5px !important;
  }
  .lfc-data-fiscal-wrap {
    order: 3;
    margin-left: auto;
  }
}

