/*
  Enunzia - landing.
  Sitio de marketing estatico (vanilla) para enunzia.com. Sin framework, sin build.

  El sistema visual NO se inventa: se extrae de la app real (apps/mobile).
  Fuentes de verdad: src/constants/colors.ts y src/utils/scoreColors.ts.

  Roles de color (lock documentado, fiel a la app):
  - AZUL (#2563EB / #1D4ED8) = color de marca y accion primaria. CTAs, enlaces,
    eyebrows, FAB de microfono, foco activo. Es EL acento de la pagina.
  - TEAL (#0F766E / #14B8A6) = accion de hablar / practicar / Fluen, exactamente
    como en la app (boton "Pasar a micro real", "Practica este foco en Fluen").
    Aparece solo en el paso "Conversa" y en la tarjeta de Fluen.
  - VERDE / AMARILLO / ROJO = escala de precision del score, SOLO dentro de las
    vistas de feedback (good >=70, ok >=50, bad <50). Nunca como acento suelto.
  - NARANJA (#F97316) = solo la racha (flame), como en la cabecera de la app.

  Tema: claro por defecto sobre azul-neutro suave (#F3F7FB); oscuro = slate-900,
  espejo de los tokens *Dark de la app. Un tema por pagina, ninguna seccion invierte.
  Radios (lock): tarjetas 24, elementos internos / botones 16, pills 999.
  Tipografia: Plus Jakarta Sans (OFL, auto-hospedada). La app usa System con pesos
  800-900; PJS replica ese caracter amigable y geometrico con pesos altos.
  Cero em-dash en cualquier texto. Reveal y micro-motion respetan reduced-motion.
*/

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("./fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --pill: 999px;
  --maxw: 1180px;
}

body.en-page {
  /* superficie */
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --surface-blue: #eff6ff;
  --ink: #1e293b;
  --heading: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #e7eef5;
  --line-blue: #dbeafe;

  /* marca = azul */
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-light: #60a5fa;
  --accent-ink: #ffffff;
  --accent-tint: #eff6ff;
  --accent-tint-2: #dbeafe;

  /* secundario = teal (hablar / Fluen) */
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-tint: #ecfdf5;
  --teal-line: #ccfbf1;

  /* escala de score (solo en mockups de feedback) */
  --good: #22c55e;
  --good-bg: #dcfce7;
  --ok: #eab308;
  --ok-bg: #fef9c3;
  --bad: #ef4444;
  --bad-bg: #fee2e2;

  /* gamificacion */
  --flame: #f97316;
  --gem: #14b8a6;

  --shadow-card: 0 20px 44px -26px rgba(15, 42, 92, 0.28), 0 6px 16px -12px rgba(15, 42, 92, 0.16);
  --shadow-phone: 0 48px 100px -42px rgba(15, 42, 92, 0.5), 0 16px 40px -22px rgba(15, 42, 92, 0.32);
  --shadow-soft: 0 10px 26px -18px rgba(15, 42, 92, 0.22);

  --aura: radial-gradient(56% 56% at 82% 6%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(48% 48% at 6% 88%, rgba(20, 184, 166, 0.1), transparent 72%);

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

html[data-theme="dark"] body.en-page {
  color-scheme: dark;
  /* espejo de los tokens *Dark de la app (slate-900 / slate-800) */
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-soft: #243044;
  --surface-blue: #1c2c4a;
  --ink: #e2e8f0;
  --heading: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #334155;
  --line-soft: #2a3a52;
  --line-blue: #2c4068;

  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-light: #93c5fd;
  --accent-ink: #0b1220;
  --accent-tint: #1c2c4a;
  --accent-tint-2: #24375c;

  --teal: #2dd4bf;
  --teal-bright: #2dd4bf;
  --teal-tint: #15302c;
  --teal-line: #1f4b44;

  --good: #4ade80;
  --good-bg: #14331f;
  --ok: #facc15;
  --ok-bg: #36300f;
  --bad: #f87171;
  --bad-bg: #3a1818;

  --flame: #fb923c;
  --gem: #2dd4bf;

  --shadow-card: 0 26px 60px -30px rgba(0, 0, 0, 0.66), 0 8px 22px -14px rgba(0, 0, 0, 0.5);
  --shadow-phone: 0 54px 120px -42px rgba(0, 0, 0, 0.8), 0 18px 44px -22px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.55);

  --aura: radial-gradient(56% 56% at 82% 4%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(48% 48% at 6% 90%, rgba(45, 212, 191, 0.12), transparent 72%);

  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
.en-sprite { position: absolute; width: 0; height: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.en-page {
  margin: 0;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.en-skip {
  position: fixed;
  top: 8px; left: 8px; z-index: 80;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.en-skip:focus { transform: translateY(0); outline: none; }

/* ============================================================
   2. NAV
   ============================================================ */
.en-nav {
  position: sticky;
  top: 0; z-index: 60;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.en-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-decoration: none;
}
.en-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: var(--shadow-soft);
}
.en-brand-bar { width: 3.5px; border-radius: 999px; background: #fff; }
.en-brand-bar:nth-child(1) { height: 9px; }
.en-brand-bar:nth-child(2) { height: 18px; }
.en-brand-bar:nth-child(3) { height: 13px; }
.en-brand-bar:nth-child(4) { height: 7px; }

.en-nav-links { display: flex; align-items: center; gap: 6px; }
.en-nav-link {
  padding: 8px 12px;
  border-radius: var(--pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.en-nav-link:hover { color: var(--accent); background: var(--accent-tint); }

.en-theme-toggle {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}
.en-theme-toggle:hover { color: var(--accent); border-color: var(--accent-light); }
.en-theme-toggle:active { transform: scale(0.94); }
.en-theme-toggle svg { width: 18px; height: 18px; }
.en-icon-sun { display: none; }
html[data-theme="dark"] .en-icon-sun { display: block; }
html[data-theme="dark"] .en-icon-moon { display: none; }

.en-cta-link {
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background 0.18s ease, transform 0.1s ease;
}
.en-cta-link:hover { background: var(--accent-strong); }
.en-cta-link:active { transform: translateY(1px); }

.en-menu { display: none; position: relative; }
.en-menu summary {
  list-style: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  cursor: pointer;
  color: var(--heading);
  background: var(--surface);
}
.en-menu summary::-webkit-details-marker { display: none; }
.en-menu summary svg { width: 20px; height: 20px; }
.en-menu-panel {
  position: absolute;
  right: 0; top: 50px;
  display: grid; gap: 2px;
  min-width: 190px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.en-menu-panel a {
  padding: 11px 12px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.en-menu-panel a:hover { background: var(--accent-tint); color: var(--accent); }

/* ============================================================
   3. BOTONES
   ============================================================ */
.en-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.en-btn:active { transform: translateY(1px); }
.en-btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-soft); }
.en-btn--primary:hover { background: var(--accent-strong); }
.en-btn--ghost { background: var(--surface); border-color: var(--line-blue); color: var(--accent); }
.en-btn--ghost:hover { border-color: var(--accent); background: var(--accent-tint); }
.en-btn--invert { background: #fff; color: var(--accent-strong); }
.en-btn--invert:hover { background: #f1f5ff; }

/* ============================================================
   4. LAYOUT GENERAL
   ============================================================ */
.en-band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 108px) clamp(20px, 5vw, 40px);
}
.en-h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  max-width: 19ch;
}
.en-lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
}
.en-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

/* ============================================================
   5. HERO
   ============================================================ */
.en-hero {
  position: relative;
  overflow: clip;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 40px) clamp(36px, 5vw, 56px);
}
.en-hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 130%;
  background: var(--aura);
  pointer-events: none;
  z-index: -1;
}
.en-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.en-hero-title { font-size: clamp(2.1rem, 4.3vw, 3.2rem); max-width: 16ch; }
.en-hero-sub {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
}
.en-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.en-hero-strip {
  margin: clamp(40px, 6vw, 60px) 0 0;
  padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 12px;
}
.en-hero-strip li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
}
.en-hero-strip svg { width: 17px; height: 17px; color: var(--accent); }

/* ----- Teléfono: recreación fiel de la pantalla de práctica ----- */
.en-hero-shot { display: flex; justify-content: center; }
.en-phone {
  position: relative;
  width: min(366px, 100%);
  margin: 0; padding: 11px;
  background: linear-gradient(165deg, #e8eef6, #f3f7fb);
  border: 1px solid var(--line);
  border-radius: 42px;
  box-shadow: var(--shadow-phone);
}
html[data-theme="dark"] .en-phone { background: linear-gradient(165deg, #2a3957, #1b283f); }
.en-phone-notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: var(--pill);
  background: #c4d0e0; z-index: 3;
}
html[data-theme="dark"] .en-phone-notch { background: #475569; }
.en-phone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: 26px 14px 14px;
  display: grid; gap: 12px;
}

/* barra superior: progreso + pill PRONUNCIACIÓN */
.en-ph-top { display: flex; align-items: center; gap: 10px; }
.en-ph-x {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px; font-weight: 700;
}
.en-ph-progress {
  flex: 1; height: 8px; border-radius: var(--pill);
  background: var(--line);
  overflow: hidden;
}
.en-ph-progress i { display: block; width: 16%; height: 100%; border-radius: var(--pill); background: var(--accent); }
.en-ph-pill {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--accent);
  padding: 6px 11px; border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line-blue);
  white-space: nowrap;
}

/* header de resultado: badge + texto + score ring */
.en-ph-result { display: flex; align-items: center; gap: 11px; padding: 2px 4px; }
.en-ph-spark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--pill);
  background: var(--good-bg);
  color: var(--good);
}
.en-ph-spark svg { width: 24px; height: 24px; }
.en-ph-result-copy { flex: 1; min-width: 0; }
.en-ph-result-copy b { display: block; color: var(--good); font-size: 1.02rem; font-weight: 800; }
.en-ph-result-copy span { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35; }
.en-ph-ring { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.en-ph-ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.en-ph-ring .trk { fill: none; stroke: var(--line); stroke-width: 5; }
.en-ph-ring .fil { fill: none; stroke: var(--good); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 35.9; }
.en-ph-ring-num { position: absolute; font-weight: 800; font-size: 0.92rem; color: var(--heading); }
.en-ph-ring-lbl { position: absolute; bottom: 5px; font-size: 0.42rem; font-weight: 700; color: var(--good); }

/* tarjeta de palabra */
.en-ph-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid; gap: 10px;
}
.en-ph-ear {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-blue);
  background: var(--accent-tint);
  color: var(--accent);
}
.en-ph-ear svg { width: 20px; height: 20px; }
.en-ph-word {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap;
}
.en-ph-word .g { color: var(--good); }
.en-ph-word .o { color: var(--ok); }
.en-ph-word .b { color: var(--bad); }
.en-ph-word .n { color: var(--heading); }
.en-ph-ipa {
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1rem; color: var(--ink-soft);
}
.en-ph-ipa svg { width: 16px; height: 16px; color: var(--muted); }
.en-ph-heard {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; color: var(--ink-soft);
}
.en-ph-heard svg { width: 16px; height: 16px; color: var(--muted); }
.en-ph-heard b { font-family: ui-monospace, Consolas, monospace; color: var(--heading); font-weight: 700; }
.en-ph-tip { font-size: 0.8rem; color: var(--muted); }

/* barra de acciones inferior */
.en-ph-bar {
  display: flex; align-items: center; justify-content: space-around;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
}
.en-ph-act { display: grid; justify-items: center; gap: 5px; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); }
.en-ph-act .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-xs); background: var(--accent-tint); color: var(--accent); }
.en-ph-act .ic svg { width: 20px; height: 20px; }
.en-ph-act--mic .ic { width: 58px; height: 58px; border-radius: var(--pill); background: var(--accent); color: #fff; box-shadow: 0 10px 22px -8px rgba(37,99,235,0.6); }
.en-ph-act--mic .ic svg { width: 26px; height: 26px; }
.en-ph-act--next .ic { background: var(--accent-strong); color: #fff; }

/* ============================================================
   6. DIFERENCIA (par contrastado)
   ============================================================ */
.en-vs {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
.en-vs-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.en-vs-card--us {
  border-color: var(--line-blue);
  background: linear-gradient(180deg, var(--accent-tint), var(--surface) 72%);
  box-shadow: var(--shadow-card);
}
.en-vs-card h3 { margin-bottom: 16px; }
.en-vs-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.en-vs-card li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 1rem; }
.en-vs-card--other li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 13px; height: 2px; border-radius: 2px; background: var(--muted);
}
.en-vs-card--us li { color: var(--ink); }
.en-vs-card--us li::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 8px; height: 13px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}
.en-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 1.05rem; font-weight: 800; }
.en-tag--muted { color: var(--muted); }
.en-tag--accent { color: var(--accent); }
.en-tag-dot { width: 9px; height: 9px; border-radius: 50%; }
.en-tag--muted .en-tag-dot { background: var(--muted); }
.en-tag--accent .en-tag-dot { background: var(--accent); }

/* ============================================================
   7. MÉTODO (pasos + visuales fieles a la app)
   ============================================================ */
.en-method-head { max-width: 60ch; }
.en-method-rows { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: clamp(18px, 2.6vw, 26px); }
.en-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.en-step--flip .en-step-text { order: 2; }
.en-step-n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-xs);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 800; font-size: 0.95rem;
  margin-bottom: 12px;
}
.en-step--teal .en-step-n { background: var(--teal-tint); color: var(--teal); }
.en-step-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.en-step-text p { color: var(--ink-soft); max-width: 42ch; }
.en-step-visual {
  display: grid; place-items: center;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 188px;
}

/* paso 1: tarjeta de par mínimo (sheep / ship) */
.en-pair { display: grid; gap: 10px; width: 100%; max-width: 320px; }
.en-pair-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--line);
}
.en-pair-word { font-size: 1.5rem; font-weight: 800; }
.en-pair-word .g { color: var(--good); }
.en-pair-word .o { color: var(--ok); }
.en-pair-word .b { color: var(--bad); }
.en-pair-ipa { font-family: ui-monospace, Consolas, monospace; font-size: 0.86rem; color: var(--muted); margin-left: auto; }
.en-pair-chip {
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 10px; border-radius: var(--pill);
}
.en-pair-chip.good { background: var(--good-bg); color: var(--good); }
.en-pair-chip.bad { background: var(--bad-bg); color: var(--bad); }

/* paso 2: hoja de detalle de fonema (espejo de PhonemeModal) */
.en-phon { width: 100%; max-width: 340px; display: grid; gap: 10px; }
.en-phon-head { display: flex; align-items: center; justify-content: space-between; }
.en-phon-eyebrow { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); }
.en-phon-title { font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.en-phon-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px;
  border-radius: var(--radius-xs);
  background: var(--ok-bg);
  border: 1px solid var(--ok);
}
.en-phon-sym {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.1rem; font-weight: 800; color: var(--heading);
}
.en-phon-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.en-phon-status { display: flex; align-items: center; gap: 8px; }
.en-phon-badge { font-size: 0.66rem; font-weight: 800; padding: 3px 9px; border-radius: var(--pill); background: #ffffffcc; color: var(--ok); }
html[data-theme="dark"] .en-phon-badge { background: #ffffff22; }
.en-phon-meta { font-size: 0.76rem; color: var(--ink-soft); }
.en-phon-meta b { color: var(--heading); font-family: ui-monospace, Consolas, monospace; }
.en-phon-bar { height: 7px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.en-phon-bar i { display: block; height: 100%; width: 58%; border-radius: var(--pill); background: var(--ok); }

/* paso 3: tarjeta Fluen + burbuja (teal) */
.en-fluen { width: 100%; max-width: 330px; display: grid; gap: 10px; }
.en-fluen-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-xs);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
}
.en-fluen-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--pill); background: var(--teal); color: #fff; }
.en-fluen-ico svg { width: 20px; height: 20px; }
.en-fluen-card b { display: block; font-size: 0.95rem; color: var(--heading); font-weight: 800; }
.en-fluen-card span { font-size: 0.8rem; color: var(--ink-soft); }
.en-bubble { padding: 11px 14px; border-radius: 16px; font-size: 0.92rem; max-width: 88%; }
.en-bubble .hl { color: var(--teal); font-weight: 800; }
.en-bubble--fluen { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; justify-self: start; color: var(--ink); }
.en-bubble--you { background: var(--teal); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.en-bubble--you .hl { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   8. ESCENARIOS
   ============================================================ */
.en-scen-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
.en-scen {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 184px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  grid-column: span 2;
}
.en-scen:hover { transform: translateY(-3px); border-color: var(--accent-light); box-shadow: var(--shadow-card); }
.en-scen--lg { grid-column: span 3; min-height: 232px; }
.en-scen--b { grid-column: span 3; }
.en-scen-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.en-scen-name { font-family: var(--font); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; color: var(--heading); }
.en-scen-line { color: var(--ink-soft); font-size: 0.95rem; }
.en-scen--a {
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent; color: #fff;
}
.en-scen--a .en-scen-kicker { color: #cfe0ff; }
.en-scen--a .en-scen-name { color: #fff; }
.en-scen--a .en-scen-line { color: #e3edff; }
.en-scen--c { background: var(--accent-tint); border-color: var(--line-blue); }
.en-scen--e { background-image: radial-gradient(var(--line-blue) 1.3px, transparent 1.3px); background-size: 15px 15px; }

/* ============================================================
   9. BENTO (progreso, gamificación real de la app)
   ============================================================ */
.en-bento {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.4vw, 22px);
}
.en-cell {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 14px; align-content: start;
}
.en-cell h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
.en-cell p { color: var(--ink-soft); }
.en-cell--focos { grid-column: span 3; }
.en-cell--judge { grid-column: span 3; background: linear-gradient(140deg, var(--accent-tint), var(--surface) 72%); border-color: var(--line-blue); }
.en-cell--streak { grid-column: span 3; }
.en-cell--stats { grid-column: span 3; }

.en-focos { display: flex; flex-wrap: wrap; gap: 8px; }
.en-foco {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: var(--pill);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.good { background: var(--good); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }

.en-streak { display: flex; gap: 7px; align-items: flex-end; }
.en-streak i {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--muted);
}
.en-streak i.on { background: color-mix(in srgb, var(--flame) 16%, transparent); border-color: color-mix(in srgb, var(--flame) 40%, transparent); color: var(--flame); }
.en-streak i svg { width: 16px; height: 16px; }

.en-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.en-stat {
  flex: 1; min-width: 90px;
  display: flex; align-items: center; gap: 9px;
  padding: 12px;
  border-radius: var(--radius-xs);
  background: var(--bg); border: 1px solid var(--line);
}
.en-stat .si { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; }
.en-stat .si svg { width: 18px; height: 18px; }
.en-stat--xp .si { background: var(--accent-tint); color: var(--accent); }
.en-stat--gem .si { background: var(--teal-tint); color: var(--teal); }
.en-stat b { display: block; font-size: 1.2rem; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.en-stat span { font-size: 0.74rem; color: var(--muted); font-weight: 700; }

/* ============================================================
   10. DIAGNÓSTICO / LEAD MAGNET
   ============================================================ */
.en-diag { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.en-diag-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 4vw, 52px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.en-diag-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 16ch; }
.en-diag-copy p { margin: 14px 0 24px; color: var(--ink-soft); max-width: 40ch; }
.en-diag-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.en-diag-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.en-diag-phrase { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 800; color: var(--heading); }
.en-diag-mic { display: flex; align-items: center; gap: 14px; }
.en-mic {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--pill);
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 26px -10px rgba(37,99,235,0.6);
}
.en-mic svg { width: 26px; height: 26px; }
.en-diag-caption { font-size: 0.86rem; color: var(--ink-soft); }
.en-wave { display: inline-flex; align-items: center; gap: 3px; height: 30px; flex: 1; }
.en-wave i {
  width: 3.5px; height: 40%; border-radius: 2px;
  background: var(--accent); opacity: 0.85;
  animation: en-bar 1.1s ease-in-out infinite;
}
.en-wave i:nth-child(3n) { animation-delay: 0.15s; background: var(--teal-bright); }
.en-wave i:nth-child(3n + 1) { animation-delay: 0.3s; }
.en-wave i:nth-child(4n) { animation-delay: 0.45s; }
@keyframes en-bar { 0%, 100% { height: 24%; } 50% { height: 92%; } }

/* ============================================================
   11. CREDIBILIDAD
   ============================================================ */
.en-pillars {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.en-pillar { padding-top: 22px; border-top: 3px solid var(--accent); }
.en-pillar h3 { font-size: 1.18rem; margin-bottom: 8px; }
.en-pillar p { color: var(--ink-soft); }
.en-honest {
  margin-top: clamp(28px, 3.6vw, 40px);
  max-width: 56ch; font-size: 1.02rem; color: var(--muted);
  padding-left: 18px; border-left: 3px solid var(--line-blue);
}

/* ============================================================
   12. CTA FINAL
   ============================================================ */
.en-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 104px); }
.en-cta-panel {
  position: relative; overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
}
.en-cta-panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(45,212,191,0.28), transparent 60%);
  pointer-events: none;
}
.en-cta-panel > * { position: relative; }
.en-cta-panel h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); }
.en-cta-panel > p { margin: 16px auto 0; max-width: 42ch; font-size: 1.1rem; color: #e3edff; }
.en-cta-actions { margin-top: 30px; display: flex; justify-content: center; }
.en-cta-soon { margin-top: 18px; font-size: 0.86rem; color: #cfe0ff; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.en-footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 5vw, 40px);
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  justify-content: space-between; align-items: flex-start;
  border-top: 1px solid var(--line);
}
.en-footer-brand { max-width: 40ch; display: grid; gap: 12px; }
.en-footer-brand p { color: var(--muted); font-size: 0.94rem; }
.en-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.en-footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.en-footer-nav a:hover { color: var(--accent); }

/* ============================================================
   14. REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .en-wave i { animation: none; height: 56%; }
  .en-scen:hover { transform: none; }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .en-hero-grid { grid-template-columns: 1fr; }
  .en-hero-shot { order: -1; }
  .en-hero-title, .en-hero-sub { max-width: none; }
  .en-scen-grid { grid-template-columns: repeat(4, 1fr); }
  .en-scen, .en-scen--lg, .en-scen--b { grid-column: span 2; }
  .en-diag-inner { grid-template-columns: 1fr; }
  .en-bento { grid-template-columns: 1fr 1fr; }
  .en-cell--focos, .en-cell--judge, .en-cell--streak, .en-cell--stats { grid-column: span 1; }
}

@media (max-width: 760px) {
  .en-nav-link, .en-cta-link { display: none; }
  .en-menu { display: block; }
  .en-step, .en-step--flip { grid-template-columns: 1fr; }
  .en-step--flip .en-step-text { order: 0; }
  .en-step-visual { order: 2; }
  .en-vs { grid-template-columns: 1fr; }
  .en-scen-grid { grid-template-columns: 1fr 1fr; }
  .en-scen, .en-scen--lg, .en-scen--b { grid-column: span 1; min-height: 150px; }
  .en-bento { grid-template-columns: 1fr; }
  .en-pillars { grid-template-columns: 1fr; gap: 4px; }
  .en-pillar { padding-top: 18px; }
}

@media (max-width: 440px) {
  .en-hero-title { font-size: 2.05rem; }
  .en-phone { width: 100%; }
}
