/* Inglés Interactivo — Paleta 11A (Índigo estudio y Ámbar) · Tipografía T1 · Morfología M2
   Dirección: "EdTech interactiva": recorrido automático por la plataforma en el hero y un ejercicio real
   de armar frases para probar cómo se aprende. */
:root {
  --bg-main: #fffdf7;
  --bg-surface: #ffffff;
  --text-main: #1e1b4b;
  --brand-primary: #4338ca;
  --brand-accent: #f59e0b;
  --on-accent: #09090b;
  --on-primary: #ffffff;

  --text-muted: color-mix(in srgb, var(--text-main) 68%, var(--bg-main));
  --border-subtle: color-mix(in srgb, var(--text-main) 12%, var(--bg-main));
  --accent-hover: color-mix(in srgb, var(--brand-accent) 85%, var(--text-main));
  --primary-soft: color-mix(in srgb, var(--brand-primary) 10%, var(--bg-main));

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-badge: 9999px;
  --shadow-card: 0 4px 24px -4px rgba(15, 23, 42, 0.06);
  --section-padding: clamp(4rem, 8vw, 7rem);
}

h1,
h2,
h3 {
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw + 1rem, 4.4rem);
  line-height: 1.04;
}

/* Recorrido por la plataforma */
.tour {
  display: grid;
  gap: var(--space-3);
}
.tour__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tour__tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-badge);
  background: var(--bg-surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.tour__tabs .icono {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand-primary);
}
.tour__tabs button[aria-selected='true'] {
  border-color: var(--brand-primary);
  color: var(--text-main);
}
.tour__tabs button i {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
}
.tour__tabs button[aria-selected='true'] i {
  animation: progreso-tab var(--duracion, 5s) linear forwards;
}
.tour.pausado .tour__tabs button i {
  animation-play-state: paused;
}
@keyframes progreso-tab {
  to {
    transform: scaleX(1);
  }
}
.ventana {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: 0 30px 60px -36px rgba(30, 27, 75, 0.45);
  overflow: hidden;
}
.ventana__barra {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.ventana__barra i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border-subtle);
}
.ventana__barra span {
  margin-left: 0.5rem;
}
.panel {
  display: grid;
  gap: 0.8rem;
  min-height: 17rem;
  padding: 1rem;
  animation: aparecer 0.5s var(--ease);
}
.pantalla {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 10.5rem;
  padding: 1rem;
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--brand-primary);
  color: var(--on-primary);
  font-weight: 600;
}
.pantalla .badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
}
.pantalla--video {
  align-items: center;
  justify-content: center;
  background: var(--text-main);
}
.boton-play {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--on-primary);
  color: var(--text-main);
}
.boton-play .icono {
  width: 1.8rem;
  height: 1.8rem;
}
.avatares {
  display: flex;
}
.avatares span {
  width: 2rem;
  height: 2rem;
  margin-left: -0.5rem;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  background: var(--primary-soft);
}
.avatares span:nth-child(2) {
  background: #f2c9a0;
}
.avatares span:nth-child(3) {
  background: #8d5a3b;
}
.barra {
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  overflow: hidden;
}
.barra span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 3px;
  background: var(--brand-primary);
}
.mini {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--bg-main);
  font-size: 0.9rem;
}
.mini small {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opciones-demo {
  display: flex;
  gap: 0.5rem;
}
.opciones-demo span {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  font-weight: 600;
}
.opciones-demo .ok {
  border-color: #15803d;
  background: #dcfce7;
}
.onda {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 2.6rem;
}
.onda i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--brand-primary);
  animation: onda-voz 1s ease-in-out infinite;
}
.onda i:nth-child(2n) {
  animation-delay: 0.2s;
}
.onda i:nth-child(3n) {
  animation-delay: 0.4s;
}
@keyframes onda-voz {
  50% {
    transform: scaleY(0.3);
  }
}
.traduccion {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}
.traduccion span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-card) - 4px);
  background: var(--bg-main);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}
.traduccion span:last-child {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.traduccion .icono {
  color: var(--brand-primary);
}

/* Ejercicio: armá la frase */
.armar {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.armar__consigna {
  color: var(--text-muted);
}
.armar__consigna b {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.armar__respuesta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 3.6rem;
  padding: 0.6rem;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-btn);
  transition: border-color 0.3s;
}
.armar__respuesta.bien {
  border-style: solid;
  border-color: #15803d;
  background: #f0fdf4;
}
.armar__respuesta.mal {
  border-color: #b91c1c;
  animation: sacudir 0.4s;
}
@keyframes sacudir {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.armar__palabras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.6rem;
}
.palabra {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  background: var(--bg-main);
  color: var(--text-main);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  animation: pop 0.35s var(--ease);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
}
.palabra:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}
.armar__respuesta .palabra {
  background: var(--primary-soft);
  border-color: var(--brand-primary);
}
.armar__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.armar__estado {
  font-weight: 600;
}

/* Celdas con minimaqueta */
.celda .onda {
  height: 2rem;
  margin-top: 0.4rem;
}
.chip {
  width: fit-content;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-main);
  font-size: 0.9rem;
}
.chip b {
  color: var(--brand-primary);
}

/* Pasos con línea superior */
.pasos li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-subtle);
}
.pasos li::before {
  margin-top: -2.65rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 0 0 6px var(--bg-surface);
}

/* Precio en banner */
.banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-card);
  background: var(--brand-primary);
  color: var(--on-primary);
}
.banner .precio__monto small {
  color: inherit;
  opacity: 0.8;
}
.banner .tildes li::before {
  background: var(--on-primary);
  color: var(--brand-primary);
}
.banner__izq {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.faq-grilla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .banner,
  .faq-grilla {
    grid-template-columns: 1fr;
  }
}

/* Cierre */
.cierre .contenedor {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  text-align: center;
}
.cierre p {
  color: var(--text-muted);
}

.beneficios {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}
.beneficios li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
}
.beneficios .icono {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-primary);
}
