/* ==========================================================
   HebreoLingo — Landing
   Dirección: «Piedra de Jerusalén al atardecer»
   Crema cálido de piedra, naranja abubilla, verde olivo,
   azul tinta. Un único momento nocturno (Génesis).
   ========================================================== */

:root {
  /* Superficies */
  --bg: #FBF6EC;
  --paper: #FFFDF8;
  --stone: #F4EBDA;
  --stone-deep: #E9DCC3;
  --night: #0E1830;
  --night-2: #16233F;

  /* Texto */
  --ink: #14223D;
  --ink-soft: #46526B;
  --ink-mute: #7C8496;
  --line: rgba(20, 34, 61, .11);
  --line-strong: rgba(20, 34, 61, .2);

  /* Marca */
  --orange: #F0820F;
  --orange-deep: #C4620A;
  --orange-soft: #FDE8CF;
  --green: #3C8D2F;
  --green-deep: #2A6A20;
  --green-soft: #E1F1DA;
  --olive: #CBB894;
  --blue: #1E5BB8;
  --blue-deep: #154489;
  --blue-soft: #DEE8F8;
  --gold: #EDBD5C;
  --gold-deep: #94691C;
  --danger: #D8493E;
  --danger-deep: #A93229;
  --danger-soft: #FCE3DF;

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Figtree", sans-serif;
  --f-body: "Figtree", "Segoe UI", sans-serif;
  --f-he-serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --f-he-sans: "Rubik", "Figtree", sans-serif;

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20, 34, 61, .06), 0 2px 8px rgba(20, 34, 61, .05);
  --shadow: 0 2px 4px rgba(20, 34, 61, .05), 0 12px 32px -8px rgba(20, 34, 61, .16);
  --shadow-lg: 0 30px 80px -20px rgba(20, 34, 61, .35);

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 96;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }

[lang="he"] { font-family: var(--f-he-serif); }

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

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
.ico--inline { width: 1em; height: 1em; vertical-align: -.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.u-orange { color: var(--orange); }

@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .wrap { padding-inline: 18px; }
}

/* ---------- Botones (táctiles, con «peso») ---------- */
.btn {
  --b: var(--ink); --b-deep: #000; --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: 14px;
  background: var(--b);
  color: var(--b-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: .005em;
  box-shadow: 0 4px 0 var(--b-deep);
  transform: translateY(0);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s, filter .2s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--b-deep); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary { --b: var(--orange); --b-deep: var(--orange-deep); }
.btn--ink { --b: var(--ink); --b-deep: #060c18; }
.btn--ghost { --b: var(--paper); --b-deep: var(--line-strong); --b-fg: var(--ink); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); }
.btn--ghost:active { box-shadow: 0 0 0 var(--line-strong); transform: translateY(3px); }
.btn--sm { padding: .62em 1.05em; font-size: .92rem; border-radius: 12px; box-shadow: 0 3px 0 var(--b-deep); }
.btn--lg { padding: 1em 1.6em; font-size: 1.07rem; }
.btn--block { width: 100%; }
.btn:disabled { --b: #E6E1D6; --b-deep: #D3CCBD; --b-fg: #A8A190; cursor: not-allowed; filter: none; }
.btn:disabled:active { transform: none; box-shadow: 0 4px 0 var(--b-deep); }

.link-quiet { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.link-quiet:hover { color: var(--ink); }

/* ---------- Tipos de etiqueta ---------- */
.kicker {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.kicker--gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  margin-bottom: 22px;
}
.he-tag {
  font-family: var(--f-he-serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--green-deep);
  padding: 6px 12px 8px;
  background: var(--green-soft);
  border-radius: 10px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(196, 98, 10, .3)); transition: transform .3s var(--ease); }
.brand:hover .brand__icon { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; color: var(--ink); }
.brand__name b { color: var(--green); font-weight: 800; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__contacto { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--ink); background: var(--stone); }
.nav__contacto:hover { background: var(--stone-deep); }
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__contacto { display: grid; }
}
@media (max-width: 420px) {
  .nav__cta { gap: 8px; }
  .nav__contacto { width: 36px; height: 36px; }
  .nav .brand { gap: 7px; flex-shrink: 0; }
  .nav .brand__icon { width: 34px; height: 34px; }
  .nav .brand__name { font-size: 1.12rem; }
}
@media (max-width: 360px) {
  .nav__contacto { display: none; }
  .nav .brand { flex-shrink: 1; min-width: 0; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 150px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 82% 30%, rgba(240, 130, 15, .13), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(60, 141, 47, .08), transparent 70%),
    var(--bg);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }

.hero__letters span {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--f-he-serif); font-size: clamp(60px, 9vw, 130px); line-height: 1;
  color: var(--ink); opacity: .045;
  transform: rotate(var(--r));
  animation: drift 14s ease-in-out infinite; animation-delay: var(--d);
  pointer-events: none; user-select: none;
}
@keyframes drift { 50% { transform: rotate(var(--r)) translateY(-18px); } }

.hero__title {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  margin-bottom: 26px;
}
.rotator { display: grid; margin-top: .08em; color: var(--orange); white-space: nowrap; }
.rotator__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.45em);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  padding-bottom: .08em;
  background: linear-gradient(transparent 80%, rgba(240, 130, 15, .2) 80%) no-repeat;
  background-size: 0 100%;
  justify-self: start;
}
.rotator__word.is-active { opacity: 1; transform: none; background-size: 100% 100%; transition: opacity .45s var(--ease), transform .55s var(--ease), background-size .8s .25s var(--ease); }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-.45em); }

.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 31em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .ico { color: var(--green); width: 1em; height: 1em; }

.hero__demo { position: relative; display: grid; place-items: center; padding: 20px 0; }
.sun {
  position: absolute; width: min(470px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFC772 0%, #F7A23C 45%, #F0820F 100%);
  opacity: .9;
  box-shadow: 0 0 120px rgba(240, 130, 15, .35);
}
.sun::after { /* líneas de horizonte, como sol de atardecer */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 22px, var(--bg) 22px 26px);
  -webkit-mask: linear-gradient(transparent 55%, #000 56%); mask: linear-gradient(transparent 55%, #000 56%);
}

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.25;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 1rem; }
.float-card small { color: var(--ink-mute); font-size: .8rem; }
.float-card--streak { bottom: 16%; left: -6%; }
.float-card--streak .ico { width: 34px; height: 34px; color: var(--orange); background: var(--orange-soft); border-radius: 12px; padding: 6px; }
.float-card--mascot { top: -1%; right: -7%; animation-delay: -3s; }
.float-card--mascot img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--green-soft); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Teléfono + lección ---------- */
.phone {
  position: relative; z-index: 2;
  width: 330px; max-width: 100%;
  height: 640px;
  padding: 12px;
  border-radius: 48px;
  background: #101828;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b364d;
}
.phone__notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #101828; z-index: 3; }
.phone__screen {
  position: relative; height: 100%;
  background: var(--paper);
  border-radius: 37px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 58px 18px 18px;
}

.lesson__top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-mute); }
.icon-btn:hover { background: var(--stone); color: var(--ink); }
.progress { flex: 1; height: 14px; border-radius: 99px; background: #ECE6DA; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), inset 0 3px 0 rgba(255, 255, 255, .35); transition: width .5s var(--ease); }
.hearts { display: flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 700; font-size: .95rem; }

.lesson__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lesson__prompt { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }

.word-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 16px; border: 2px solid var(--line); border-radius: 18px; }
.speak {
  width: 50px; height: 50px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: var(--blue); color: #fff;
  box-shadow: 0 4px 0 var(--blue-deep);
  transition: transform .1s, box-shadow .1s;
}
.speak:active { transform: translateY(4px); box-shadow: none; }
.speak .ico { width: 26px; height: 26px; }
.word-hero__he { font-family: var(--f-he-serif); font-size: 2.3rem; line-height: 1; direction: rtl; }
.word-hero__tr { color: var(--ink-mute); font-size: .88rem; font-style: italic; }

.options { display: grid; gap: 10px; }
.options--grid { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  min-height: 64px; padding: 10px 12px;
  border: 2px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 3px 0 var(--line-strong);
  background: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform .1s, box-shadow .1s, border-color .15s, background .15s;
}
.opt:hover { background: #FBF7EE; }
.opt:active { transform: translateY(3px); box-shadow: none; }
.opt--he { min-height: 78px; }
.opt--he .opt__he { font-family: var(--f-he-serif); font-size: 1.8rem; line-height: 1.1; font-weight: 500; }
.opt--letter .opt__he { font-size: 2.6rem; }
.opt small { font-size: .75rem; font-weight: 500; color: var(--ink-mute); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 3px 0 var(--blue); color: var(--blue-deep); }
.opt.is-right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 3px 0 var(--green); color: var(--green-deep); }
.opt.is-wrong { border-color: var(--danger); background: var(--danger-soft); box-shadow: 0 3px 0 var(--danger); color: var(--danger-deep); animation: shake .4s; }
.opt:disabled { cursor: default; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.lesson__foot { position: relative; margin: 14px -18px -18px; padding: 14px 18px 18px; transition: background .25s; }
.lesson__foot.is-right { background: var(--green-soft); }
.lesson__foot.is-wrong { background: var(--danger-soft); }
.lesson__foot.is-right .btn { --b: var(--green); --b-deep: var(--green-deep); }
.lesson__foot.is-wrong .btn { --b: var(--danger); --b-deep: var(--danger-deep); }
.feedback { display: none; margin-bottom: 12px; animation: rise .3s var(--ease); }
.lesson__foot.is-right .feedback, .lesson__foot.is-wrong .feedback { display: block; }
.feedback__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.feedback__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.feedback__title { font-family: var(--f-display); font-size: 1.15rem; }
.feedback__text { font-size: .86rem; line-height: 1.4; }
.is-right .feedback__icon, .is-right .feedback__title, .is-right .feedback__text { color: var(--green-deep); }
.is-wrong .feedback__icon, .is-wrong .feedback__title, .is-wrong .feedback__text { color: var(--danger-deep); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Pantalla final */
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; animation: rise .5s var(--ease); }
.done__img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: var(--green-soft); animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.done h3 { font-size: 1.6rem; color: var(--orange); }
.done__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 6px; }
.stat { border: 2px solid var(--c); border-radius: 14px; overflow: hidden; text-align: center; }
.stat small { display: block; background: var(--c); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; }
.stat b { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 0; font-size: 1.1rem; color: var(--c); }
.stat .ico { width: 18px; height: 18px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(680px) rotate(540deg); opacity: .2; } }

/* ---------- Skyline ---------- */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: 1; }
.skyline + * { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--stone-deep); z-index: 1; }

/* ---------- Cinta ---------- */
.ribbon { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; border-block: 4px solid var(--orange); }
.ribbon__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 30px; white-space: nowrap; position: relative; }
.ribbon__item::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.ribbon__he { font-family: var(--f-he-serif); font-size: 1.7rem; line-height: 1; }
.ribbon__tr { font-style: italic; color: var(--gold); font-size: .95rem; }
.ribbon__es { color: rgba(251, 246, 236, .65); font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--stone { background: var(--stone); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: 18px; }
.section__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Caminos ---------- */
.paths { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch; }
.paths__tabs { display: flex; flex-direction: column; gap: 10px; }
.path-tab {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px 20px; border-radius: var(--r);
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.path-tab:hover { background: var(--stone); }
.path-tab b { display: block; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.path-tab small { display: block; color: var(--ink-mute); font-size: .9rem; line-height: 1.35; margin-top: 2px; }
.path-tab__icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); transition: background .2s, color .2s; }
.path-tab__icon .ico { width: 24px; height: 24px; }
.path-tab[aria-selected="true"] { background: var(--paper); border-color: var(--c); box-shadow: 0 4px 0 var(--c); }
.path-tab[aria-selected="true"] .path-tab__icon { background: var(--c); color: #fff; }

.paths__panel {
  --c: var(--gold-deep);
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c);
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
  min-height: 420px;
  transition: background .45s var(--ease);
}
.paths__panel::before {
  content: attr(data-letter);
  position: absolute; right: -2%; bottom: -24%;
  font-family: var(--f-he-serif); font-size: 420px; line-height: 1;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.panel__phrase { position: relative; display: flex; flex-direction: column; justify-content: center; }
.panel__he { font-family: var(--f-he-serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.15; direction: rtl; text-align: right; margin-bottom: 14px; }
.panel__tr { font-size: 1.1rem; font-style: italic; opacity: .85; }
.panel__es { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.panel__src { font-size: .85rem; opacity: .7; margin-top: 8px; }
.panel__learn { position: relative; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r); padding: 24px; align-self: center; }
.panel__learn h3 { font-size: 1.05rem; margin-bottom: 6px; }
.panel__learn p { font-size: .95rem; opacity: .9; margin-bottom: 16px; line-height: 1.5; }
.panel__learn li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .95rem; font-weight: 500; }
.panel__learn li .ico { margin-top: 3px; width: 16px; height: 16px; }
.panel-anim > * { animation: rise .5s var(--ease) both; }
.panel-anim > *:nth-child(2) { animation-delay: .08s; }

/* ---------- Noche / Génesis ---------- */
.night {
  position: relative; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 0%, #1D2E55 0%, var(--night) 70%);
  color: #F3ECDD;
  padding: clamp(90px, 12vw, 150px) 0;
}
.night__stars {
  position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 43% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 77% 18%, var(--gold) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 61%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 40%, #fff 50%, transparent 51%);
  background-size: 600px 600px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .35; } }
.night__inner { position: relative; }
.night h2 { color: #fff; }
.night .section__lead { color: rgba(243, 236, 221, .72); }

.verse { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 auto 30px; max-width: 1000px; }
.verse__word {
  font-family: var(--f-he-serif);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.35;
  color: #F3ECDD;
  padding: 0 .12em;
  border-radius: 12px;
  border-bottom: 2px dashed rgba(237, 189, 92, .35);
  transition: color .2s, background .2s, transform .2s var(--ease);
}
.verse__word:hover { color: var(--gold); transform: translateY(-3px); }
.verse__word[aria-pressed="true"] { color: var(--night); background: var(--gold); border-bottom-color: transparent; }

.verse-card {
  max-width: 560px; min-height: 132px; margin: 0 auto 36px;
  border: 1px solid rgba(237, 189, 92, .3);
  background: rgba(255, 255, 255, .04);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: grid; place-items: center; text-align: center;
}
.verse-card__hint { color: rgba(243, 236, 221, .55); font-style: italic; }
.verse-card__inner { animation: rise .35s var(--ease); width: 100%; }
.verse-card__top { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.verse-card__he { font-family: var(--f-he-serif); font-size: 2rem; color: var(--gold); line-height: 1.2; }
.verse-card__tr { font-style: italic; color: rgba(243, 236, 221, .7); }
.verse-card__es { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.verse-card__note { font-size: .92rem; color: rgba(243, 236, 221, .7); margin-top: 8px; }
.verse-card__note [lang="he"] { color: var(--gold); font-size: 1.1em; }
.verse-trans { text-align: center; font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.45rem); color: rgba(243, 236, 221, .8); font-style: italic; font-weight: 500; }

/* ---------- Método ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin-bottom: 72px; }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--ink-mute); margin-bottom: 26px; }
.step__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 18px; }
.step__icon .ico { width: 26px; height: 26px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

.features { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.feature { border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); background: var(--paper); border: 1px solid var(--line); }
.feature h3 { font-size: 1.55rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); }
.feature--niqud { grid-row: span 2; display: grid; grid-template-rows: auto 1fr; gap: 30px; background: var(--green-soft); border-color: transparent; }
.feature--niqud .kicker { color: var(--green-deep); }
.niqud-demo { display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); border-radius: var(--r); padding: 36px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.niqud-demo__text { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.4; color: var(--ink); transition: opacity .2s; }
.niqud-demo__text.is-fading { opacity: 0; }
.niqud-demo__tr { margin-top: 10px; color: var(--ink-mute); font-family: var(--f-body); font-size: .98rem; }
.niqud-demo__tr span { font-style: italic; color: var(--green-deep); font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 56px; height: 32px; border-radius: 99px; background: var(--line-strong); padding: 3px; transition: background .25s; }
.switch__thumb { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(24px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--blue); outline-offset: 3px; }

.feature--offline { background: var(--ink); color: #F3ECDD; border-color: transparent; }
.feature--offline p { color: rgba(243, 236, 221, .72); }
.feature__badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .1); color: var(--gold); margin-bottom: 22px; }
.feature__badge .ico { width: 26px; height: 26px; }
.feature--mascot { display: flex; gap: 22px; align-items: center; background: var(--orange-soft); border-color: transparent; }
.feature--mascot img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--paper); box-shadow: var(--shadow); }
.he-inline { font-family: var(--f-he-serif); color: var(--orange-deep); font-weight: 500; }

/* ---------- Alef-bet ---------- */
.alef { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.alef .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.alef__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.letter {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  box-shadow: 0 3px 0 var(--line-strong);
  transition: transform .15s var(--ease), border-color .15s, background .15s, box-shadow .15s;
}
.letter:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 6px 0 var(--orange); }
.letter__he { font-family: var(--f-he-serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1; }
.letter__name { font-size: .7rem; font-weight: 600; color: var(--ink-mute); margin-top: 6px; direction: ltr; }
.letter[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-deep); }
.letter[aria-pressed="true"] .letter__name { color: rgba(255, 255, 255, .85); }

.letter-detail { margin-top: 32px; display: flex; gap: 22px; align-items: center; background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); min-height: 150px; }
.letter-detail__big { font-family: var(--f-he-serif); font-size: 5.4rem; line-height: 1; width: 104px; height: 104px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--gold); border-radius: 20px; padding-bottom: 8px; }
.letter-detail h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.letter-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin-top: 8px; font-size: .95rem; }
.letter-detail dt { color: var(--ink-mute); }
.letter-detail dd { font-weight: 600; }
.letter-detail .speak { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 3px 0 var(--blue-deep); }
.letter-detail .speak .ico { width: 20px; height: 20px; }
.letter-detail__body { animation: rise .3s var(--ease); }

/* ---------- Datos ---------- */
.facts { background: var(--orange); color: #fff; padding: 64px 0; position: relative; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fact b { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.fact span { font-weight: 600; font-size: 1rem; line-height: 1.35; opacity: .92; display: block; max-width: 15em; }

/* ---------- Planes ---------- */
.billing { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--stone); margin-top: 26px; gap: 4px; }
.billing button { padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.billing button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.save { font-size: .75rem; color: var(--green-deep); background: var(--green-soft); padding: 2px 7px; border-radius: 6px; }

.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; }
.plan__name { font-size: 1.6rem; margin-bottom: 6px; }
.plan__desc { color: var(--ink-soft); font-size: .97rem; min-height: 3em; }
.plan__price { margin: 22px 0 22px; display: flex; flex-direction: column; }
.plan__price b { font-family: var(--f-display); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__price span { color: var(--ink-mute); font-size: .9rem; margin-top: 6px; }
.plan__list { margin-top: 26px; display: grid; gap: 11px; font-size: .97rem; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.plans--4 { grid-template-columns: repeat(4, 1fr); max-width: 1240px; gap: 16px; }
.plans--4 .plan { padding: 28px 22px; }
.plans--4 .plan__price b { font-size: 2.2rem; }
@media (max-width: 1100px) { .plans--4 { grid-template-columns: 1fr 1fr; max-width: 760px; } .plans--4 .plan--featured { transform: none; order: 0; } }
.plan--featured { background: var(--ink); color: #F3ECDD; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan--featured .plan__desc, .plan--featured .plan__price span { color: rgba(243, 236, 221, .7); }
.plan--featured .plan__price b { color: var(--gold); }
.plan--featured .plan__list .ico { color: var(--gold); }
.plan__ribbon { position: absolute; top: -14px; left: 28px; background: var(--orange); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 8px; letter-spacing: .02em; }
.plan--group .plan__price b { font-size: 2.2rem; padding: .18em 0; }
.plans__note { text-align: center; color: var(--ink-mute); font-size: .9rem; margin-top: 30px; }

/* ---------- Instalar ---------- */
.install { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.os-tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--paper); border-radius: 14px; margin: 30px 0 22px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.os-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.os-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.os-steps { counter-reset: s; display: grid; gap: 4px; margin-bottom: 30px; }
.os-steps li { counter-increment: s; display: none; align-items: center; gap: 16px; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px dashed var(--line-strong); }
.os-steps li::before { content: counter(s); width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 800; font-family: var(--f-display); }
.os-steps[data-os="android"] li[data-for="android"],
.os-steps[data-os="ios"] li[data-for="ios"],
.os-steps[data-os="pc"] li[data-for="pc"] { display: flex; animation: rise .35s var(--ease) both; }
.stores { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .9rem; color: var(--ink-mute); }
.store { display: inline-flex; align-items: center; gap: 8px; }
.store em { font-style: normal; font-weight: 700; color: var(--orange-deep); }

.install__visual { display: grid; place-items: center; }
.homescreen {
  width: 300px; max-width: 100%; aspect-ratio: 9 / 16.5;
  border-radius: 44px; padding: 54px 26px 26px;
  background: linear-gradient(170deg, #F7B860 0%, #E9814C 45%, #7E5BA6 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 10px #101828;
  position: relative; overflow: hidden;
  border: 1px solid #101828;
}
.homescreen::before { content: ""; position: absolute; inset: 10px; border-radius: 34px; background: linear-gradient(rgba(255,255,255,.08), transparent 40%); pointer-events: none; }
.homescreen__time { position: absolute; top: 22px; left: 36px; color: #fff; font-weight: 700; font-size: .85rem; }
.homescreen__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; margin-top: 18px; }
.app-dot { aspect-ratio: 1; border-radius: 13px; background: var(--c); opacity: .75; position: relative; }
.app-dot--hl { opacity: 1; background: none; animation: wiggle 3.2s ease-in-out infinite; }
.app-dot--hl img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.app-dot--hl small { position: absolute; left: 50%; translate: -50% 0; top: 104%; color: #fff; font-size: .6rem; font-weight: 600; white-space: nowrap; }
@keyframes wiggle { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-6deg) scale(1.06); } 88% { transform: rotate(6deg) scale(1.06); } 92% { transform: rotate(-3deg); } }
.homescreen__notif { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px); font-size: .78rem; line-height: 1.3; box-shadow: 0 10px 24px rgba(0,0,0,.2); animation: slidein 4s var(--ease) infinite; }
.homescreen__notif img { width: 36px; height: 36px; object-fit: contain; }
.homescreen__notif b { display: block; font-size: .8rem; }
.homescreen__notif span { color: var(--ink-soft); }
@keyframes slidein { 0% { transform: translateY(140%); opacity: 0; } 15%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(140%); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq .section__head { margin-bottom: 0; }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list details:first-child { border-top: 1px solid var(--line-strong); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--stone); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq__list details[open] summary .ico { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq__list details p { padding: 0 48px 24px 0; color: var(--ink-soft); }
.faq__list details[open] p { animation: rise .3s var(--ease); }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; background: var(--green); color: #fff; padding: clamp(90px, 12vw, 150px) 0; text-align: center; }
.final__inner { position: relative; }
.final__he { position: absolute; left: 50%; top: 50%; translate: -50% -55%; font-size: clamp(9rem, 30vw, 26rem); line-height: 1; color: rgba(255, 255, 255, .08); pointer-events: none; white-space: nowrap; }
.final h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 18px; position: relative; }
.final__lead { font-size: 1.2rem; opacity: .9; margin-bottom: 34px; position: relative; }
.final__actions { position: relative; margin-bottom: 56px; }
.final .btn--primary { --b: var(--paper); --b-deep: var(--green-deep); --b-fg: var(--ink); }

.notify { position: relative; max-width: 480px; margin: 0 auto; text-align: left; }
.notify label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 10px; text-align: center; opacity: .92; }
.notify__row { display: flex; gap: 10px; }
.notify input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-size: 1rem; background: rgba(255, 255, 255, .95); color: var(--ink); }
.notify input:focus { outline: none; border-color: var(--gold); }
.notify input[aria-invalid="true"] { border-color: var(--danger); }
.notify__msg { min-height: 1.6em; margin-top: 10px; font-weight: 600; text-align: center; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(243, 236, 221, .7); padding: 44px 0; font-size: .92rem; }
.footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name b { color: #8CCB7E; }
.brand--light .brand__icon { width: 36px; height: 36px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin-left: auto; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust, .eyebrow { justify-content: center; }
  .rotator__word { justify-self: center; }
  .float-card--streak { left: 2%; }
  .float-card--mascot { right: 0; }
  .paths { grid-template-columns: 1fr; }
  .paths__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .alef { grid-template-columns: 1fr; gap: 36px; }
  .alef .section__head { position: static; }
  .install { grid-template-columns: 1fr; gap: 48px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plans--4 { grid-template-columns: 1fr; max-width: 520px; }
  .plan--featured { transform: none; order: -1; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 120px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card { display: none; }
  .phone { width: 312px; height: 600px; border-radius: 44px; }
  .paths__tabs { grid-template-columns: 1fr; }
  .path-tab { padding: 14px 16px; }
  .paths__panel { grid-template-columns: 1fr; min-height: 0; }
  .paths__panel::before { font-size: 280px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__num { margin-bottom: 14px; }
  .features { grid-template-columns: 1fr; }
  .feature--niqud { grid-row: auto; }
  .feature--mascot { flex-direction: column; align-items: flex-start; }
  .alef__grid { grid-template-columns: repeat(4, 1fr); }
  .letter-detail { flex-direction: column; align-items: flex-start; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .faq__list details p { padding-right: 0; }
  .notify__row { flex-direction: column; }
  .footer__copy { margin-left: 0; }
  .verse { gap: 0 12px; }
  .verse-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* Lección terminada: «Repetir» pasa a secundario */
.lesson__foot.is-done .btn { --b: var(--paper); --b-deep: var(--line-strong); --b-fg: var(--ink-soft); border: 2px solid var(--line-strong); box-shadow: 0 3px 0 var(--line-strong); }

/* Ajustes finos */
h1, h2 { text-wrap: balance; }
.install__copy h2 { margin-bottom: 18px; }
.install > *, .alef > *, .faq > *, .hero__grid > *, .paths > * { min-width: 0; }
.panel__he { text-align: left; }
@media (max-width: 720px) {
  .os-tabs { display: flex; width: 100%; }
  .os-tabs button { flex: 1; justify-content: center; padding: 10px 8px; }
}

/* Duji (sudadera azul) */
.hero-duji { position: absolute; left: -17%; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.hero-duji img { height: 230px; width: auto; filter: drop-shadow(0 14px 18px rgba(20, 34, 61, .25)); animation: bob 5s ease-in-out infinite; transform-origin: bottom center; }
.hero-duji__bubble {
  position: relative; margin: 0 0 10px 0; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); font-weight: 700; font-size: .95rem; line-height: 1.25;
}
.hero-duji__bubble small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-mute); }
.hero-duji__bubble::after { content: ""; position: absolute; left: 40px; bottom: -8px; width: 14px; height: 14px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.float-card--streak { bottom: auto; top: 4%; left: auto; right: -6%; }
.feature--mascot img { width: 120px; height: 150px; border-radius: 0; border: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20, 34, 61, .2)); }
.done__img { width: auto; height: 150px; border-radius: 0; background: none; object-fit: contain; }
@media (max-width: 1080px) { .hero-duji { left: 2%; } .float-card--streak { right: 2%; } }
@media (max-width: 720px) {
  .hero-duji { display: none; }
}

/* ==========================================================
   Juegos para cada edad · Niveles A1→B2 · Conoce a Duji
   ========================================================== */
.features { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto; }
.feature--niqud { grid-row: auto; }
.feature--offline { display: flex; flex-direction: column; justify-content: center; }

/* Juegos */
.juegos { background: linear-gradient(var(--bg), var(--stone) 70%, var(--bg)); overflow: hidden; }
.juegos__grid { display: grid; gap: 24px; }
.juego-col {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 28px;
  border-radius: 32px; padding: clamp(28px, 4vw, 52px); overflow: hidden; position: relative;
}
.juego-col--ninos { background: linear-gradient(135deg, #FFE7B8, #FFC98C 60%, #FFB5A1); color: var(--ink); }
.juego-col--adultos { background: linear-gradient(135deg, #12304A, #0B2530 70%); color: #F3ECDD; grid-template-columns: 1.05fr 1fr; }
.juego-col--adultos .juego-col__txt { order: 2; }
.juego-tag { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.6); margin-bottom: 14px; }
.juego-col--adultos .juego-tag { background: rgba(242,196,107,.16); color: #F2C46B; }
.juego-col h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 12px; }
.juego-col p { font-size: 1.05rem; color: inherit; opacity: .88; margin-bottom: 16px; }
.juego-lista { display: grid; gap: 8px; }
.juego-lista li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .98rem; }
.juego-lista li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: var(--ink); color: #fff; margin-top: 2px; }
.juego-col--adultos .juego-lista li::before { background: #F2C46B; color: #0B2530; }
.juego-col__fotos { position: relative; height: 460px; }
.shot { position: absolute; width: 210px; aspect-ratio: 540 / 1107; border-radius: 30px; overflow: hidden; background: #101828; border: 7px solid #101828; box-shadow: 0 28px 60px -18px rgba(20,34,61,.55); }
.shot img, .shot video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.shot video { object-position: center; background: #101828; }
.shot--atras { left: 6%; top: 34px; transform: rotate(-6deg); }
.shot--frente { right: 6%; top: 0; transform: rotate(4deg); }
.juego-col:hover .shot--atras { transform: rotate(-8deg) translateY(-4px); }
.juego-col:hover .shot--frente { transform: rotate(6deg) translateY(-6px); }
.shot { transition: transform .5s var(--ease); }

.bonus { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 24px clamp(18px, 3vw, 32px); }
.bonus__titulo { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.bonus__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bonus__grid li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg); }
.bonus__ico { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: var(--orange-soft); }
.bonus__grid b { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.2; }
.bonus__grid small { color: var(--ink-mute); font-size: .86rem; line-height: 1.3; }

/* Niveles */
.niveles__ruta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; counter-reset: n; }
.niveles__ruta::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--blue), var(--orange-deep), #7A3E9D); opacity: .35; }
.nivel { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 20px 20px 22px; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 30%, transparent); }
.nivel__chip { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); margin-bottom: 14px; }
.nivel__chip--n { width: auto; padding: 0 12px; font-size: .85rem; justify-self: start; }
.nivel ul li b { color: var(--ink); }
.nivel h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--c); }
.nivel__logro { font-weight: 700; font-size: 1rem; line-height: 1.35; margin-bottom: 12px; color: var(--ink); }
.nivel ul { display: grid; gap: 6px; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.nivel ul li { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; padding-left: 16px; position: relative; }
.nivel ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.curso-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 30px; }
.curso-fotos li { display: grid; gap: 14px; justify-items: center; text-align: center; }
.curso-fotos__tel { width: min(100%, 250px); aspect-ratio: 390 / 640; border-radius: 30px; overflow: hidden; background: #101828; border: 7px solid #101828; box-shadow: 0 24px 50px -22px rgba(20,34,68,.55); }
.curso-fotos__tel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.curso-fotos p { display: grid; gap: 4px; max-width: 17em; }
.curso-fotos b { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.curso-fotos span { color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
@media (max-width: 700px) { .curso-fotos { grid-template-columns: 1fr; gap: 28px; } }
.bonus--vida { margin: 0 0 20px; }
.bonus--vida .niveles__nota { margin-top: 14px; }
.estructura { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; margin-bottom: 28px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.estructura__pasos { display: flex; align-items: center; gap: 10px; }
.estructura__pasos li { flex: 1; text-align: center; display: grid; gap: 2px; position: relative; }
.estructura__pasos li + li::before { content: "→"; position: absolute; left: -12px; top: .35em; color: var(--ink-mute); font-weight: 700; }
.estructura__pasos b { font-family: var(--f-display); font-size: 1.6rem; color: var(--orange-deep); line-height: 1.1; }
.estructura__pasos span { font-size: .85rem; color: var(--ink-soft); line-height: 1.25; }
.estructura__xp p { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.estructura__xp b { color: var(--ink); }
.estructura__duji { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 1.5rem; }
.estructura__duji i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); }
@media (max-width: 800px) { .estructura { grid-template-columns: 1fr; padding: 18px; } }
.niveles__nota { margin-top: 22px; color: var(--ink-mute); font-size: .9rem; }

/* Conoce a Duji */
.duji-band { background: radial-gradient(60% 80% at 25% 50%, #FFE2BD, transparent 70%), var(--orange-soft); padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.duji-band__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.duji-band__img { width: 100%; max-width: 620px; filter: drop-shadow(0 24px 30px rgba(120,60,0,.22)); }
.duji-band__txt h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.duji-band__txt > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 20px; }
.duji-band__lista { display: grid; gap: 12px; }
.duji-band__lista li { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-sm); }
.duji-band__lista li > span { font-size: 1.6rem; }
.duji-band__lista b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.duji-band__lista div { color: var(--ink-soft); font-size: .95rem; line-height: 1.35; }

@media (max-width: 1080px) {
  .juego-col, .juego-col--adultos { grid-template-columns: 1fr; }
  .juego-col--adultos .juego-col__txt { order: 0; }
  .juego-col__fotos { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .niveles__ruta { grid-template-columns: 1fr 1fr; }
  .niveles__ruta::before { display: none; }
  .duji-band__inner { grid-template-columns: 1fr; }
  .duji-band__img { margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bonus__grid { grid-template-columns: 1fr; }
  .niveles__ruta { grid-template-columns: 1fr; }
  .juego-col__fotos { height: 380px; }
  .shot { width: 172px; }
  .shot--atras { left: 0; }
  .shot--frente { right: 0; }
}

/* Hero: Duji a la derecha del teléfono (no tapa el texto); la racha arriba a la izquierda */
.hero-duji { left: auto; right: -15%; bottom: -10px; align-items: flex-end; }
.hero-duji__bubble { margin: 0 18px 10px 0; text-align: right; }
.hero-duji__bubble::after { left: auto; right: 42px; }
.float-card--streak { top: 12%; right: auto; left: -4%; }
@media (max-width: 1280px) { .hero-duji { right: -8%; } .hero-duji img { height: 200px; } }
@media (max-width: 1080px) { .hero-duji { right: 2%; } .float-card--streak { left: 2%; } }

/* Mini demo de voz */
.voz-demo { margin-top: 22px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; justify-items: center; gap: 4px; text-align: center; }
.voz-demo__pide { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,236,221,.6); font-weight: 700; }
.voz-demo__he { font-family: var(--f-he-serif); font-size: 2.2rem; line-height: 1.3; color: #fff; }
.voz-demo__fon { font-size: .9rem; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.voz-demo__fila { display: flex; align-items: center; gap: 14px; }
.voz-demo__mic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 0 0 0 rgba(240,130,15,.5); animation: micPulso 1.8s ease-out infinite; }
.voz-demo__mic .ico { width: 24px; height: 24px; }
.voz-demo__onda { display: flex; align-items: center; gap: 4px; height: 40px; }
.voz-demo__onda i { width: 4px; border-radius: 4px; background: var(--gold); height: 30%; animation: onda 1.1s ease-in-out infinite; }
.voz-demo__onda i:nth-child(odd) { animation-delay: -.3s; } .voz-demo__onda i:nth-child(3n) { animation-delay: -.6s; } .voz-demo__onda i:nth-child(4n) { animation-delay: -.15s; }
@keyframes onda { 50% { height: 100%; } }
@keyframes micPulso { 70% { box-shadow: 0 0 0 16px rgba(240,130,15,0); } 100% { box-shadow: 0 0 0 0 rgba(240,130,15,0); } }
.plans--3 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
@media (max-width: 900px) { .plans--3 { grid-template-columns: 1fr; max-width: 520px; } .plans--3 .plan--featured { order: -1; transform: none; } }
.plan__save { background: rgba(243,236,221,.12); border-radius: 12px; padding: 10px 12px; margin: -6px 0 16px; font-size: .9rem; line-height: 1.4; color: #F3ECDD; }
.hero__price { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }
.hero__price b { color: var(--ink); }
.hero__kids { margin: 0 0 16px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, #7A3E9D 9%, var(--paper)); font-size: .95rem; color: var(--ink-soft); max-width: 34em; }
.hero__kids b { color: var(--ink); }
.hero__kids a { margin-left: 4px; font-weight: 700; color: #7A3E9D; text-decoration: underline; text-underline-offset: 3px; }
.hero__bit { margin-top: 4px; font-size: .92rem; }
.hero__price a { margin-left: 6px; font-weight: 700; color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Demo de lección: mismo modelo que la app (tarjeta, opciones, barra de «¡Correcto!») ===== */
.ap { padding: 50px 0 0; }
.ap-top { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.ap-ib { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #5B6785; font-size: 1.5rem; line-height: 1; flex: none; }
.ap-ib .ico { width: 22px; height: 22px; }
button.ap-ib { cursor: pointer; } button.ap-ib:hover { background: var(--stone); }
.ap-ib--off { color: #C9CFDB; font-size: 1.3rem; }
.ap-ib--snd { color: #5B9BE8; }
.ap-bar { flex: 1; height: 16px; border-radius: 99px; background: #E8DCC4; position: relative; overflow: hidden; }
.ap-bar span { display: block; height: 100%; width: 0; min-width: 16px; border-radius: inherit; background: var(--green); transition: width .5s var(--ease); }
.ap-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 10px; }
.ap-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E8DCC4; }
.ap-dots i.on { background: var(--orange); box-shadow: 0 0 0 3px rgba(240,130,15,.18); }
.ap-dots i.hecho { background: var(--green); }
.ap-body { flex: 1; min-height: 0; padding: 0 16px; overflow: hidden; display: flex; flex-direction: column; }
.ap-foot { padding: 10px 16px 16px; }
.ap-btn { width: 100%; border: 0; border-radius: 16px; padding: 14px 10px; font: 800 1rem/1 var(--f-body, inherit); letter-spacing: .04em; color: #fff; cursor: pointer;
  background: var(--green); box-shadow: 0 4px 0 #2A6A20; }
.ap-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #2A6A20; }
.ap-btn--or { background: var(--orange); box-shadow: 0 4px 0 var(--orange-deep); }
.ap-btn--or:active { box-shadow: 0 1px 0 var(--orange-deep); }
.ap-foot.is-hidden { display: none; }
.ap-lbl { color: var(--orange); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ap-q { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; margin-bottom: 10px; color: var(--ink); }
.ap-heb { font-family: var(--f-he-serif); direction: rtl; }
.ap-big { font-family: var(--f-he-serif); font-size: 3rem; line-height: 1.15; text-align: center; direction: rtl; margin: 4px 0 12px; color: var(--ink); }
.ap-opts { display: grid; gap: 9px; }
.ap-opt { width: 100%; padding: 13px 12px; border-radius: 18px; border: 2px solid #E6DCC8; background: var(--paper); box-shadow: 0 3px 0 #E6DCC8; font: 700 .98rem/1.2 inherit; color: #111; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.ap-opt:hover { background: #FBF7EE; }
.ap-opt.ok { border-color: var(--green); background: #E2F0D9; box-shadow: 0 3px 0 var(--green); color: #2A6A20; }
.ap-opt.mal { border-color: var(--danger); background: #FBE1DD; box-shadow: 0 3px 0 var(--danger); color: #A93229; }
.ap-opt:disabled { cursor: default; }
.ap-opt.pulso { animation: apPulso 1.6s ease-in-out infinite; }
@keyframes apPulso { 0%,100% { box-shadow: 0 3px 0 #E6DCC8, 0 0 0 0 rgba(240,130,15,.0); } 50% { box-shadow: 0 3px 0 #E6DCC8, 0 0 0 6px rgba(240,130,15,.25); } }
/* tarjeta */
.ap-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-ico { font-size: 2.2rem; line-height: 1; margin-top: 2px; }
.ap-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: #A8501A; margin: 0; }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 2px solid #E6DCC8; background: #FBF7EE; font: 700 .78rem/1 inherit; color: #3A4660; cursor: pointer; }
.ap-chip--or { border-color: var(--orange); color: #C4620A; background: #fff; }
.ap-chip--azul { background: #E4EEFB; border-color: #B8D2F3; color: #2459A8; }
.ap-chip.on { background: #FFF1DE; border-color: var(--orange); color: #C4620A; }
.ap-sub { font-size: .8rem; color: var(--ink-mute); margin: 2px 0 0; }
.ap-rows { width: 100%; display: grid; gap: 8px; margin-top: 2px; }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 0; background: #F7EFDF; cursor: pointer; text-align: left; }
.ap-row.sonando { background: #FFE9CC; }
.ap-row__es { font-size: .8rem; color: #3A4660; } .ap-row__es i { font-weight: 800; color: #14223D; }
.ap-row__es .ico { width: 14px; height: 14px; color: #5B9BE8; vertical-align: -2px; margin-left: 3px; }
.ap-row__he { font-family: var(--f-he-serif); font-size: 1.45rem; color: #D2691E; direction: rtl; font-weight: 600; }
/* escena */
.ap-play { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 13px 10px; background: var(--orange); color: #fff; font: 800 .95rem/1 inherit; cursor: pointer; box-shadow: 0 4px 0 var(--orange-deep); }
.ap-play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-deep); }
.ap-play .ico { width: 18px; height: 18px; }
.ap-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ap-lines { width: 100%; display: grid; gap: 8px; margin-top: 4px; }
.ap-line { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #F7EFDF; min-height: 44px; transition: background .2s, box-shadow .2s; }
.ap-line.on { background: #FFE9CC; box-shadow: 0 0 0 2px var(--orange); }
.ap-line__av { font-size: 1.5rem; flex: none; }
.ap-line__txt { flex: 1; text-align: right; min-width: 0; }
.ap-line__dots { letter-spacing: .5em; color: #B7AE9C; font-weight: 800; }
.ap-line__he { display: block; font-family: var(--f-he-serif); font-size: 1.12rem; direction: rtl; line-height: 1.25; }
.ap-line__es { display: block; font-size: .74rem; color: var(--ink-mute); text-align: left; direction: ltr; margin-top: 2px; }
.ap-line[hidden], .ap-line__he[hidden], .ap-line__es[hidden], .ap-line__dots[hidden] { display: none; }
/* barra de respuesta (¡Correcto! / Incorrecto), como en la app */
.ap-fb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: none; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 14px 16px; border-top: 2px solid #B9DDAE; background: #E2F0D9; animation: apSube .3s var(--ease); }
.ap-fb.on { display: grid; }
.ap-fb .ap-btn { grid-column: 1 / -1; margin-top: 4px; }
.ap-fb__av { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.7rem; overflow: hidden; }
.ap-fb__av img { width: 100%; height: 100%; object-fit: contain; }
.ap-fb strong { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; color: #2A6A20; }
.ap-fb__txt div { font-size: .8rem; color: #3A4660; line-height: 1.3; }
.ap-fb__txt .he { font-family: var(--f-he-serif); font-size: 1.3rem; color: #14223D; direction: rtl; display: block; }
.ap-fb.mal { background: #FBE1DD; border-top-color: #F4BDB4; }
.ap-fb.mal strong { color: #A93229; }
.ap-fb.mal .ap-btn { background: var(--danger); box-shadow: 0 4px 0 #A93229; }
@keyframes apSube { from { transform: translateY(100%); } to { transform: none; } }
.ap .done { padding: 0 16px 16px; }
.ap .confetti { z-index: 6; }
/* pista bien visible para probar la demo */
.demo-hint { position: absolute; top: -2px; left: 50%; translate: -50% 0; z-index: 5; margin: 0; padding: 9px 16px; border-radius: 99px; background: var(--orange); color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.2; text-align: center; white-space: nowrap; box-shadow: 0 8px 20px rgba(240,130,15,.4); animation: pistaSalta 1.8s ease-in-out infinite; }
.demo-hint b { font-weight: 800; }
.demo-hint.is-off { display: none; }
@keyframes pistaSalta { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero__demo:has(.demo-hint) { padding-top: 44px; }
.hero-duji__bubble { font-size: 1.05rem; }
@media (max-width: 420px) { .demo-hint { white-space: normal; width: 88%; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .demo-hint, .ap-opt.pulso { animation: none; } }
.ap-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ap-head .ap-ico { font-size: 1.7rem; margin: 0; }
.ap-chips { flex-wrap: nowrap; gap: 6px; } .ap-chips .ap-chip { padding: 6px 9px; font-size: .72rem; white-space: nowrap; }
.ap-body { overflow-y: auto; scrollbar-width: none; } .ap-body::-webkit-scrollbar { display: none; }
.ap-card { gap: 7px; }

.ap-row__es { flex: 1; min-width: 0; } .ap-row__he { white-space: nowrap; flex: none; font-size: 1.3rem; }

.demo-hint { border: 0; cursor: pointer; font-family: inherit; }
.demo-hint:hover { filter: brightness(1.05); }
.hero-duji { pointer-events: none; }
button.hero-duji__bubble { pointer-events: auto; cursor: pointer; border: 0; font-family: inherit; text-align: left; background: var(--orange); color: #fff; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(240,130,15,.45); animation: pistaSalta 1.8s ease-in-out infinite; }
button.hero-duji__bubble small { color: rgba(255,255,255,.92); }
button.hero-duji__bubble::after { background: var(--orange); border-right: 0; border-bottom: 0; }
.ap-chip--full { width: 100%; justify-content: center; }
.ap-dedo { position: absolute; left: 0; top: 0; z-index: 9; font-size: 2.3rem; line-height: 1; pointer-events: none; opacity: 0;
  margin: -6px 0 0 -14px; transform: translate(var(--x, 50%), var(--y, 60%)); filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
  transition: transform .8s var(--ease), opacity .3s; }
.ap-dedo.on { opacity: 1; }
.ap-dedo.toca { transform: translate(var(--x), var(--y)) scale(.78); transition-duration: .2s; }
@media (prefers-reduced-motion: reduce) { button.hero-duji__bubble { animation: none; } }
.demo-hint { cursor: default; display: flex; align-items: center; gap: 10px; }
.demo-hint__ver { border: 0; border-radius: 99px; padding: 5px 10px; background: #fff; color: var(--orange-deep); font: 800 .76rem/1 inherit; cursor: pointer; white-space: nowrap; }
.ap-chip.pulso { animation: apChipPulso 1.5s ease-in-out infinite; }
@keyframes apChipPulso { 0%,100% { box-shadow: 0 0 0 0 rgba(240,130,15,0); } 50% { box-shadow: 0 0 0 7px rgba(240,130,15,.28); } }
.hero-duji__bubble { pointer-events: none; background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(240,130,15,.45); animation: pistaSalta 1.8s ease-in-out infinite; border: 0; }
.hero-duji__bubble small { color: rgba(255,255,255,.92); }
.hero-duji__bubble::after { background: var(--orange); border: 0; }
@media (max-width: 420px) { .demo-hint { flex-wrap: wrap; justify-content: center; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .ap-chip.pulso { animation: none; } }

/* ---------- Modal: instalar la app sin salir de la landing ---------- */
.imodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(14, 24, 48, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.imodal[hidden] { display: none; }
.imodal.is-open { opacity: 1; }
.imodal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--paper); border-radius: 26px; padding: 26px 22px 24px; box-shadow: 0 30px 80px rgba(14, 24, 48, .45); transform: translateY(22px) scale(.97); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.imodal.is-open .imodal__box { transform: none; }
.imodal__x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--stone); color: var(--ink); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.imodal__x:hover { background: var(--stone-deep); }
.imodal__head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.imodal__head img { border-radius: 16px; box-shadow: 0 6px 16px rgba(20, 34, 61, .2); }
.imodal__head h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.imodal__head p { color: var(--ink-soft); font-size: .95rem; margin-top: 2px; }
.imodal__tabs { margin: 18px 0 16px; }
.imodal__pasos { list-style: none; counter-reset: im; display: grid; gap: 12px; }
.imodal__pasos li { counter-increment: im; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .98rem; line-height: 1.45; color: var(--ink-soft); }
.imodal__pasos li::before { content: counter(im); width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.imodal__go { display: flex; width: 100%; margin-top: 20px; justify-content: center; }
.imodal__nota { font-size: .84rem; color: var(--ink-mute); line-height: 1.5; margin-top: 12px; }
.imodal__lead { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.imodal__qrrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.imodal__qr { width: 148px; height: 148px; padding: 10px; background: #fff; border-radius: 16px; border: 2px solid var(--line-strong); }
.imodal__qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 460px) { .imodal__qrrow { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
body.imodal-abierto { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .imodal, .imodal__box { transition: none; } }

/* ---------- Contacto: formulario dentro de una ventana ---------- */
.cmodal__he { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-deep); font-size: 1.35rem; font-weight: 800; display: grid; place-items: center; }
.cform { display: grid; gap: 14px; margin-top: 20px; }
.cform__pareja { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform__campo { display: grid; gap: 6px; }
.cform__campo > span { font-size: .9rem; font-weight: 600; color: var(--ink); }
.cform__campo em { font-style: normal; color: var(--orange-deep); }
.cform__campo small { font-weight: 500; color: var(--ink-mute); }
.cform input, .cform textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--gold); }
.cform input[aria-invalid="true"], .cform textarea[aria-invalid="true"] { border-color: var(--danger); }
.cform__web { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__enviar { width: 100%; justify-content: center; margin-top: 6px; }
.cform__msg { min-height: 1.4em; font-weight: 600; text-align: center; font-size: .92rem; color: var(--danger-deep); }
.cform__listo { text-align: center; padding: 18px 4px 6px; }
.cform__listo-he { font-size: 1.8rem; color: var(--orange-deep); font-weight: 800; }
.cform__listo h4 { font-size: 1.3rem; margin: 6px 0 8px; letter-spacing: -.02em; }
.cform__listo p { color: var(--ink-soft); line-height: 1.5; }
.cform__listo .imodal__go { margin-top: 18px; }
.cform.is-enviando .cform__enviar { opacity: .6; pointer-events: none; }
@media (max-width: 460px) { .cform__pareja { grid-template-columns: 1fr; } }
