/* =========================================================
   Jonatan Castellanos · Profesor de Idiomas
   Identidad: crema cálido + coral + violeta + amarillo
   Estilo: editorial-lúdico, bordes de tinta, sombras duras
   ========================================================= */

:root {
  --cream: #fff6ec;
  --cream-2: #ffefdd;
  --paper: #ffffff;
  --ink: #211a2e;
  --text: #4a4356;
  --muted: #7d7589;
  --coral: #ff4f30;
  --coral-soft: #ffd9d1;
  --violet: #6c4cf1;
  --violet-deep: #4c2fc2;
  --yellow: #ffc53d;
  --mint: #2ec4a5;
  --sky: #4ca9ff;
  --green-wa: #22b25f;
  --radius: 20px;
  --radius-sm: 14px;
  --bw: 2px;                                /* grosor de borde de tinta */
  --hs: 6px 6px 0 var(--ink);               /* sombra dura */
  --hs-sm: 4px 4px 0 var(--ink);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }

/* ---------- Subrayado tipo marcador ---------- */
.hl {
  position: relative;
  display: inline-block;
  z-index: 1;
  white-space: nowrap;
}

.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.15em; right: -.15em;
  bottom: .06em;
  height: .42em;
  border-radius: 3px;
  transform: rotate(-1deg);
  background: var(--coral-soft);
}

.hl-yellow::before { background: var(--yellow); }
.hl-coral::before  { background: var(--coral); opacity: .85; }
.hl-mint::before   { background: var(--mint); opacity: .55; }
.hl-sky::before    { background: var(--sky); opacity: .45; }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--coral);
  z-index: 200;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s, border-color .3s;
  border-bottom: var(--bw) solid transparent;
}

.nav.scrolled {
  background: rgba(255, 246, 236, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.brand-mono {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--coral);
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  transform: rotate(-4deg);
  transition: transform .2s var(--ease);
}

.brand:hover .brand-mono { transform: rotate(3deg) scale(1.05); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
}

.brand-tag {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
}

.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .1rem; }

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .55rem .72rem;
  border-radius: 10px;
  transition: background .2s;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .nav-links a { font-size: .84rem; padding: .45rem .5rem; }
}

.nav-links a:hover { background: var(--cream-2); }

.nav-links .nav-cta {
  background: var(--ink);
  color: var(--cream);
  margin-left: .5rem;
  border-radius: 999px;
  padding: .6rem 1.2rem;
  transition: transform .18s var(--ease), background .2s;
}

.nav-links .nav-cta:hover { background: var(--coral); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .25s var(--ease), opacity .2s;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: var(--bw) solid var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--hs-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, color .2s;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

.btn-coral { background: var(--coral); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-yellow { background: var(--yellow); color: var(--ink); }

.btn-ink-outline { background: transparent; color: var(--ink); }
.btn-ink-outline:hover { background: var(--ink); color: var(--cream); }

.btn-cream-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 rgba(255, 246, 236, .35);
}
.btn-cream-outline:hover { background: var(--cream); color: var(--ink); box-shadow: 6px 6px 0 rgba(255, 246, 236, .35); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 10rem 0 5rem;
  background:
    radial-gradient(720px 380px at 88% 8%, rgba(108, 76, 241, .1), transparent 65%),
    radial-gradient(600px 340px at 4% 92%, rgba(255, 79, 48, .09), transparent 65%),
    var(--cream);
  overflow: hidden;
}

.hero-doodles { position: absolute; inset: 0; pointer-events: none; }

.doodle {
  position: absolute;
  font-size: 2.2rem;
  color: var(--coral);
  animation: bob 6s ease-in-out infinite;
}

.doodle-ast { top: 16%; left: 5%; color: var(--violet); font-size: 2.6rem; animation-delay: -2s; }
.doodle-arrow { bottom: 22%; left: 42%; color: var(--mint); font-size: 3rem; transform: rotate(20deg); animation-delay: -4s; }
.doodle-spark { top: 12%; right: 8%; color: var(--yellow); }

.doodle-circ {
  top: 58%; left: 8%;
  width: 26px; height: 26px;
  border: 3px solid var(--sky);
  border-radius: 50%;
  animation-delay: -1s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hs-sm);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.7rem;
  transform: rotate(-1deg);
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-wa);
  box-shadow: 0 0 0 0 rgba(34, 178, 95, .6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 178, 95, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 178, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 178, 95, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.rotator-wrap { display: inline-block; }

.rotator {
  display: inline-block;
  min-width: 1ch;
  color: var(--coral);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.rotator.swap { opacity: 0; transform: translateY(16px) rotate(2deg); }

.hero-desc {
  max-width: 520px;
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
}

.hero-desc strong { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2.2rem;
  justify-content: start;
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.1;
}

.hero-stats dd { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* --- Mock de chat --- */
.hero-visual { position: relative; }

.chat-card {
  position: relative;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  max-width: 420px;
  margin-inline: auto;
  transform: rotate(1.2deg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: var(--cream-2);
  border-bottom: var(--bw) solid var(--ink);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
}

.chat-id { display: flex; flex-direction: column; line-height: 1.3; }
.chat-id strong { font-size: .92rem; color: var(--ink); }
.chat-id span { font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }

.online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-wa);
  display: inline-block;
}

.chat-body {
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 250px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 197, 61, .07), transparent 50%),
    var(--paper);
}

.msg {
  max-width: 84%;
  padding: .68rem 1rem;
  border-radius: 16px;
  border: 2px solid var(--ink);
  font-size: .9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px) scale(.97);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.msg.shown { opacity: 1; transform: none; }

.msg-in {
  align-self: flex-start;
  background: var(--cream-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg-out {
  align-self: flex-end;
  background: #d8f7e4;
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.msg-typing {
  align-self: flex-start;
  background: var(--cream-2);
  display: inline-flex;
  gap: 5px;
  padding: .85rem 1rem;
}

.msg-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}

.msg-typing span:nth-child(2) { animation-delay: .18s; }
.msg-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40%           { opacity: 1; transform: translateY(-3px); }
}

.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.2rem;
  border-top: var(--bw) solid var(--ink);
  color: var(--muted);
  font-size: .85rem;
  background: var(--cream-2);
}

.chat-send {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
  color: #fff;
  font-size: .8rem;
}

.tag-chip {
  position: absolute;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hs-sm);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}

.chip-a { top: -16px; left: -10px; transform: rotate(-5deg); background: var(--yellow); }
.chip-b { bottom: 15%; right: -12px; transform: rotate(4deg); background: var(--coral-soft); animation-delay: -2.5s; }
.chip-c { bottom: -20px; left: 10%; transform: rotate(-3deg); background: #e3f0ff; animation-delay: -4.5s; }

/* ---------- Marquee ---------- */
.ribbon {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: .9rem 0;
  border-block: var(--bw) solid var(--ink);
  transform: rotate(-.8deg) scale(1.02);
  margin-top: -1.6rem;
  position: relative;
  z-index: 5;
}

.ribbon-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ribbon-track i { font-style: normal; color: var(--yellow); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */
.section { padding: 6.5rem 0; }

.section-cream { background: var(--cream-2); border-block: var(--bw) solid var(--ink); }

.section-violet {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(255, 197, 61, .14), transparent 60%),
    var(--violet);
  border-block: var(--bw) solid var(--ink);
  color: #efeafe;
}

.section-head { max-width: 780px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: var(--bw) solid var(--ink);
  transform: rotate(-1deg);
}

.kicker-coral { background: var(--coral-soft); color: var(--ink); }
.kicker-cream { background: var(--cream); color: var(--ink); }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.section-violet .section-head h2 { color: #fff; }

.lead { font-size: 1.07rem; }

/* ---------- Tabs de clases ---------- */
.tabs {
  position: relative;
  display: inline-flex;
  gap: .3rem;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .35rem;
  box-shadow: var(--hs-sm);
  margin-bottom: 2.4rem;
}

.tab {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  padding: .7rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s;
}

.tab.active { color: var(--cream); }

.tab-glider {
  position: absolute;
  z-index: 1;
  top: .35rem; bottom: .35rem;
  border-radius: 999px;
  background: var(--ink);
  transition: left .3s var(--ease), width .3s var(--ease);
}

.tab-panel { animation: panelIn .45s var(--ease); }

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

.panel-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: start;
}

.panel-info {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--hs);
}

.level-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.badge-sky { background: #dbeeff; }
.badge-coral { background: var(--coral-soft); }

.panel-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.panel-info > p { margin-bottom: 1.4rem; }

.checklist { list-style: none; margin-bottom: 1.8rem; }

.checklist li {
  padding: .42rem 0 .42rem 2.1rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: .46rem;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.panel-steps { display: flex; flex-direction: column; gap: 1.1rem; }

.step {
  display: flex;
  gap: 1.1rem;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--hs-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.step:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }

.step-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  transform: rotate(-4deg);
}

.step-1 .step-n { background: var(--yellow); }
.step-2 .step-n { background: var(--coral-soft); }
.step-3 .step-n { background: #c9f3e8; }

.step strong { color: var(--ink); display: block; margin-bottom: .15rem; font-family: var(--font-display); font-weight: 700; }
.step p { font-size: .92rem; }

.note { margin-top: 2.6rem; text-align: center; color: var(--muted); font-size: .95rem; }
.note strong { color: var(--ink); }

/* ---------- Filtros de packs ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.4rem;
}

.filter {
  border: var(--bw) solid var(--ink);
  background: rgba(255, 246, 236, .16);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.filter:hover { background: rgba(255, 246, 236, .32); transform: translateY(-2px); }

.filter.active {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--hs-sm);
}

/* ---------- Productos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--hs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .3s;
  will-change: transform;
  color: var(--text);
}

.product:hover { box-shadow: 10px 10px 0 var(--ink); }

.product.hide { display: none; }

.product-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 197, 61, .25), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.product:hover .product-glow { opacity: 1; }

.product-flag { font-size: 1.8rem; margin-bottom: .9rem; }

.product-tag {
  align-self: flex-start;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .28rem .75rem;
  margin-bottom: .9rem;
  transform: rotate(-1.5deg);
}

.tag-sky    { background: #dbeeff; }
.tag-violet { background: #e6defc; }
.tag-mint   { background: #c9f3e8; }
.tag-coral  { background: var(--coral-soft); }
.tag-yellow { background: var(--yellow); }
.tag-ink    { background: var(--paper); }

.product h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}

.product-hook {
  font-weight: 700;
  color: var(--coral);
  font-size: .95rem;
  margin-bottom: .5rem;
}

.product p:not(.product-hook) { flex: 1; font-size: .93rem; margin-bottom: 1.2rem; }

.product-feats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.5rem;
}

.product-feats li {
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: .26rem .7rem;
  border-radius: 999px;
}

.product-badge {
  position: absolute;
  top: 1.3rem; right: -2.8rem;
  transform: rotate(38deg);
  background: var(--yellow);
  border-block: 2px solid var(--ink);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .32rem 3rem;
}

.product-featured { background: #fff9e8; }

.product-help {
  border-style: dashed;
  background: transparent;
  color: #efeafe;
  box-shadow: none;
  border-color: rgba(255, 246, 236, .65);
}

.product-help:hover { box-shadow: none; transform: translateY(-4px); }
.product-help h3 { color: #fff; }
.product-help .product-tag { transform: none; }
.product-help .btn-ink-outline { color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
.product-help .btn-ink-outline:hover { background: var(--cream); color: var(--ink); }

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3.4rem;
  padding-top: 2.8rem;
  border-top: 2px dashed rgba(255, 246, 236, .4);
}

.perk { display: flex; gap: .9rem; align-items: flex-start; }

.perk-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-size: 1.3rem;
  border-radius: 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .3);
  transform: rotate(-3deg);
}

.perk strong { color: #fff; display: block; font-size: .95rem; }
.perk span { font-size: .84rem; color: rgba(239, 234, 254, .75); }

/* ---------- Muestra gratuita ---------- */
.sample {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.2rem;
  padding: 2.2rem 2.5rem;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--hs);
  color: var(--text);
}

.sample h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.5rem;
  margin-bottom: .35rem;
}

.sample p { max-width: 500px; font-size: .95rem; }

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.about-portrait {
  position: relative;
  width: min(280px, 78%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: var(--violet);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 2px var(--ink);
  transform: rotate(-2deg);
}

.about-portrait > span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  color: var(--cream);
}

.cred-cards {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 2.2rem;
}

.cred {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  box-shadow: var(--hs-sm);
}

.cred-1 { transform: rotate(-1.2deg); }
.cred-2 { transform: rotate(.8deg); }
.cred-3 { transform: rotate(-.6deg); }

.about-copy p { margin-bottom: 1.2rem; font-size: 1.04rem; }
.about-copy strong { color: var(--ink); }

.about-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  border-left: 5px solid var(--coral);
  padding-left: 1.3rem;
  margin-top: 1.8rem;
  letter-spacing: -.01em;
}

/* ---------- Testimonios / slider ---------- */
.slider { overflow: visible; }

.slider-track {
  display: flex;
  gap: 1.8rem;
  transition: transform .55s var(--ease);
}

.testimonial {
  flex: 0 0 calc((100% - 3.6rem) / 3);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--hs);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease);
}

.t-rot-l { transform: rotate(-1deg); }
.t-rot-r { transform: rotate(1.2deg); }
.testimonial:hover { transform: rotate(0) translateY(-6px); }

.stars { color: var(--coral); letter-spacing: .2em; margin-bottom: 1rem; font-size: .95rem; }

.testimonial p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.testimonial footer { display: flex; align-items: center; gap: .8rem; }

.t-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.t-avatar--1 { background: var(--sky); }
.t-avatar--2 { background: var(--violet); }
.t-avatar--3 { background: var(--coral); }

.testimonial footer strong { display: block; color: var(--ink); line-height: 1.25; }
.testimonial footer span:not(.t-avatar) { font-size: .84rem; color: var(--muted); }

.slider-dots {
  display: none;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.8rem;
}

.slider-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  transition: all .25s;
}

.slider-dots button.active { background: var(--coral); width: 30px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .9rem; }

.faq-item {
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--hs-sm);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.faq-item[open] { box-shadow: var(--hs); transform: translate(-2px, -2px); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-ico {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transition: transform .3s var(--ease), background .25s;
}

.faq-ico::before, .faq-ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--coral); }

.faq-body { padding: 0 1.4rem 1.3rem; }

/* ---------- CTA final ---------- */
.section-cta { padding: 5.5rem 0 6.5rem; }

.cta-card {
  position: relative;
  text-align: center;
  color: #ffe3dc;
  background:
    radial-gradient(600px 300px at 85% 110%, rgba(255, 197, 61, .25), transparent 60%),
    var(--coral);
  border: var(--bw) solid var(--ink);
  border-radius: 34px;
  padding: 5rem 2rem;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
}

.cta-spark {
  position: absolute;
  top: 2rem; left: 2.4rem;
  font-size: 2.4rem;
  color: var(--yellow);
  animation: bob 5s ease-in-out infinite;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.2rem;
}

.cta-card h2 em {
  font-style: italic;
  color: var(--yellow);
}

.cta-card .lead { max-width: 560px; margin: 0 auto 2.4rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
}

.socials a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border-bottom: 2px solid rgba(255, 255, 255, .4);
  transition: border-color .2s;
}

.socials a span { color: rgba(255, 255, 255, .75); font-weight: 400; }
.socials a:hover { border-color: var(--yellow); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 246, 236, .6);
  font-size: .87rem;
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--yellow); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-wa);
  border: var(--bw) solid var(--ink);
  color: #fff;
  box-shadow: var(--hs-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.wa-float:hover { transform: translate(-2px, -2px) scale(1.04); box-shadow: 6px 6px 0 var(--ink); }

.wa-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(34, 178, 95, .6);
  animation: waPulse 2.2s infinite;
}

@keyframes waPulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.55); opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.d-1 { transition-delay: .08s; }
.d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; }
.d-4 { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 4.5rem; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4, auto); gap: 1.6rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .panel-grid { grid-template-columns: 1fr; }
  .testimonial { flex-basis: calc((100% - 1.8rem) / 2); }
}

@media (max-width: 720px) {
  .nav { background: rgba(255, 246, 236, .95); border-bottom: var(--bw) solid var(--ink); }
  /* Sin blur en móvil: backdrop-filter convierte al nav en containing block
     y el panel fijo del menú quedaría confinado a la franja del nav. */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    background: var(--cream);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; padding: .8rem 1.6rem; font-family: var(--font-display); font-weight: 700; }
  .nav-links .nav-cta { margin-left: 0; margin-top: .8rem; }

  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 4.5rem 0; }
  .hero { padding-top: 7rem; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; text-align: left; }
  .doodle-arrow, .doodle-circ { display: none; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .chat-card { transform: none; box-shadow: var(--hs); }

  .tabs { width: 100%; }
  .tab { flex: 1; padding: .7rem .5rem; }

  .products, .perks { grid-template-columns: 1fr; }
  .sample { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
  .sample .btn { width: 100%; }

  .testimonial { flex-basis: 100%; }
  .t-rot-l, .t-rot-r { transform: none; }
  .slider { overflow: hidden; }
  .slider-dots { display: flex; }

  .cta-card { padding: 3.5rem 1.4rem; border-radius: 24px; box-shadow: var(--hs); }
  .cta-actions .btn { width: 100%; }
  .cta-spark { top: 1.2rem; left: 1.4rem; font-size: 1.8rem; }

  .footer-inner { justify-content: center; text-align: center; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- Selector de idioma ---------- */
.nav-side {
  display: flex;
  align-items: center;
  gap: .6rem;
  position: relative;
  z-index: 110;
}

.lang-toggle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .45rem .95rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}

.lang-toggle:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.lang-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- Precios ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--hs);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.price-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }

.price-featured {
  background: #fff9e8;
  transform: rotate(-1deg) scale(1.02);
}

.price-featured:hover { transform: rotate(0) translate(-3px, -3px) scale(1.02); }

.price-badge {
  position: absolute;
  top: 1.3rem; right: -2.8rem;
  transform: rotate(38deg);
  background: var(--coral);
  border-block: 2px solid var(--ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .32rem 3rem;
}

.price-emoji { font-size: 2rem; margin-bottom: .7rem; }

.price-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .3rem;
}

.price-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--coral);
  letter-spacing: -.03em;
}

.price-unit {
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.25;
}

.price-unit em { font-style: normal; color: var(--muted); font-weight: 600; display: block; font-size: .82rem; }

.price-sub {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px dashed var(--line, #e6e4dd);
}

.price-card .checklist { flex: 1; margin-bottom: 1.6rem; }
.price-card .checklist li { font-size: .93rem; padding: .34rem 0 .34rem 2.1rem; }

@media (max-width: 1024px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translate(-3px, -3px); }
}

/* ---------- Foto de perfil ---------- */
.about-portrait { overflow: hidden; }

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.chat-avatar { overflow: hidden; padding: 0; }

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- Sticker sobre la foto ---------- */
.about-visual { position: relative; }

.portrait-chip {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: -1.4rem auto 0;
  padding: .55rem 1.1rem;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hs-sm);
  font-weight: 800;
  font-size: .88rem;
  color: var(--ink);
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* ---------- Guiño de abogado ---------- */
.lawyer-plug {
  margin-top: 1.8rem;
  padding: 1rem 1.3rem;
  background: var(--cream-2);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  transform: rotate(-.5deg);
}

.lawyer-plug a {
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
}

.lawyer-plug a:hover { color: var(--violet); border-color: var(--violet); }

/* ---------- Enlace del test dentro del hero ---------- */
.hero-quiz-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 2px dashed var(--coral);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  margin-bottom: 2.2rem;
  transition: transform .18s var(--ease), background .2s;
}

.hero-quiz-link:hover { transform: translateY(-2px); background: var(--cream-2); }

.pulse-dot-sm { width: 7px; height: 7px; }

/* ---------- Promo del test de nivel ---------- */
.quiz-promo {
  position: relative;
  padding: 4.5rem 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(650px 320px at 15% 0%, rgba(255, 197, 61, .22), transparent 60%),
    radial-gradient(600px 320px at 90% 100%, rgba(108, 76, 241, .28), transparent 60%),
    var(--coral);
  border-block: var(--bw) solid var(--ink);
}

.quiz-promo-inner { position: relative; }

.quiz-promo-badge-row {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
}

.quiz-level-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .75);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  transition: transform .2s var(--ease);
}

.quiz-level-chip--active {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 197, 61, .25);
  transform: scale(1.15);
}

.quiz-promo-copy { max-width: 620px; margin-inline: auto; }

.quiz-promo-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}

.quiz-promo-copy .lead { font-size: 1.02rem; margin-bottom: 0; color: rgba(255, 255, 255, .9); }

.quiz-promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .quiz-promo { padding: 3.5rem 0; }
  .quiz-promo-actions { flex-direction: column; align-items: stretch; }
  .quiz-promo-actions .btn { width: 100%; }
}

/* ---------- Badge "nuevo" en el nav ---------- */
.nav-test-link {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
}

.nav-new-badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: .15rem .45rem;
  animation: navBadgePulse 2s infinite;
}

@keyframes navBadgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-new-badge { animation: none; }
}

/* ---------- Promo Comunidad (index) ---------- */
.cp-features {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center;
  margin: 1.6rem 0 2rem;
}
.cp-chip {
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.cp-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Laboratorio de idiomas ---------- */
.lab-daily {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hs);
  padding: 1.4rem 1.8rem;
  margin-bottom: 2rem;
}

.lab-daily-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: .4rem;
}

.lab-daily-phrase {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--cream);
  line-height: 1.35;
}

.lab-daily-trans { margin-top: .35rem; color: var(--coral-soft); font-weight: 600; }

.lab-daily-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.lab-daily-actions .btn { background: var(--cream); }

.lab-streak {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--yellow);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .45rem .95rem;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.lab-card {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hs);
  padding: 1.8rem;
}

.lab-emoji { font-size: 1.9rem; display: inline-block; margin-bottom: .5rem; }

.lab-card-head h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: .3rem;
}

.lab-card-head p { font-size: .95rem; }

.lab-stage { margin-top: 1.3rem; }

.lab-btn-sm { padding: .5rem 1rem; font-size: .85rem; }

.lab-progress {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: .5rem;
}

.lab-question { font-weight: 700; color: var(--ink); margin-bottom: .8rem; }

.lab-options { display: grid; gap: .7rem; margin-top: 1rem; }

.lab-opt {
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s, background .15s;
}

.lab-opt:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.lab-opt:disabled { cursor: default; opacity: .75; }
.lab-opt.ok { background: var(--mint); color: #fff; opacity: 1; }
.lab-opt.bad { background: var(--coral); color: #fff; opacity: 1; }

.lab-feedback { margin-top: 1rem; font-weight: 700; color: var(--ink); min-height: 1.5em; }
.lab-feedback small { font-weight: 500; color: var(--muted); }

.lab-pct {
  display: inline-block;
  background: var(--coral-soft);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .1rem .7rem;
  margin-right: .4rem;
}
.lab-pct.good { background: var(--mint); color: #fff; }

.lab-score-t { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--muted); }

.lab-score {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  margin: .3rem 0 .5rem;
}

.lab-msg { font-weight: 600; color: var(--ink); margin-bottom: 1.1rem; }

.lab-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; }

.lab-replay {
  margin-top: 1rem;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  text-decoration: underline;
}

.lab-pron-phrase {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: .2rem;
}

.lab-pron-trans { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }

@media (max-width: 980px) {
  .lab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .lab-daily { padding: 1.2rem 1.3rem; }
  .lab-card { padding: 1.4rem; }
  .lab-ctas .btn { width: 100%; text-align: center; }
}

/* ---------- Fraseario ---------- */
.fr-main { padding: 9.5rem 0 5rem; }

.fr-tools { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }

#frBuscar {
  flex: 1;
  min-width: 260px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .85rem 1.4rem;
  box-shadow: var(--hs-sm);
}
#frBuscar:focus { outline: 3px solid var(--yellow); }

.fr-filtros { display: flex; gap: .5rem; }

.fr-filtro {
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  background: var(--cream-2);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  cursor: pointer;
}
.fr-filtro.is-active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }

.fr-vacio { font-weight: 600; color: var(--muted); padding: 2rem 0; text-align: center; }

.fr-lista { list-style: none; display: grid; gap: .6rem; }

.fr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: .8rem 1.1rem;
}

.fr-en { font-weight: 700; color: var(--ink); }
.fr-es { font-size: .92rem; color: var(--muted); font-weight: 600; }

.fr-btns { display: flex; gap: .45rem; align-items: center; }

.fr-play, .fr-fav {
  font: inherit;
  font-weight: 800;
  font-size: .78rem;
  color: var(--ink);
  background: var(--cream-2);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .4rem .8rem;
  cursor: pointer;
  transition: background .15s, transform .15s var(--ease);
}
.fr-play:hover { background: var(--yellow); transform: translateY(-1px); }

.fr-fav { font-size: 1rem; padding: .3rem .65rem; background: var(--paper); }
.fr-fav.is-fav { background: var(--yellow); }

.fr-cta {
  margin-top: 2.5rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.fr-cta p { font-weight: 700; color: var(--ink); font-size: 1.1rem; }

@media (max-width: 720px) {
  .fr-main { padding-top: 6.5rem; }
  .fr-item { align-items: flex-start; }
  .fr-btns { width: 100%; justify-content: flex-end; }
}

.lab-frases-link {
  display: block;
  text-align: center;
  margin: 1.6rem 0 2rem;
  font-weight: 800;
  color: var(--violet);
  text-decoration: none;
  font-size: 1.05rem;
}
.lab-frases-link:hover { text-decoration: underline; }

/* ---------- Calculadora de plan ---------- */
.plan-card {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hs);
  padding: 2rem;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}

.plan-campos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.plan-campos label {
  display: grid;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-campos select {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  cursor: pointer;
}

.plan-resultado {
  width: 100%;
  text-align: center;
  display: grid;
  gap: .7rem;
  justify-items: center;
  border-top: 2px dashed var(--ink);
  padding-top: 1.4rem;
}

.plan-meses, .plan-costo { font-size: 1.08rem; color: var(--ink); font-weight: 600; }
.plan-nota { font-size: .85rem; color: var(--muted); font-weight: 600; max-width: 480px; }

@media (max-width: 720px) {
  .plan-campos { grid-template-columns: 1fr; }
  .plan-card { padding: 1.4rem; }
  .plan-btn, #planWA { width: 100%; text-align: center; }
}

/* ---------- Historia jugable ---------- */
.lab-dialogo { margin-top: 1.8rem; }

.dlg-lugar { font-weight: 800; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }

.dlg-burbuja {
  background: var(--cream-2);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.dlg-quien { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }

.dlg-npc { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: .35rem 0; line-height: 1.4; }

.dlg-trad { color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }

.dlg-mini { display: flex; gap: .5rem; margin-top: .5rem; }

.dlg-tu { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: .4rem; }

/* ---------- Grupo "Gratis" del nav ---------- */
.nav-group { position: relative; }

.nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .45rem 1rem;
  margin-inline: .35rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.nav-group-btn:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 4px 5px 0 var(--ink); }
.nav-group.open .nav-group-btn { transform: rotate(0deg); background: var(--coral); color: var(--cream); }

@media (max-width: 1240px) {
  .nav-group-btn { font-size: .8rem; padding: .38rem .8rem; }
}

.nav-group-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: none;
  min-width: 300px;
  padding: .6rem;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--hs);
  z-index: 120;
}
.nav-group.open .nav-group-panel {
  display: grid;
  gap: .2rem;
  animation: ngPop .22s var(--ease);
}

@keyframes ngPop {
  from { opacity: 0; transform: translateY(-8px) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}

.ng-item {
  display: flex !important;
  align-items: center;
  gap: .8rem;
  padding: .55rem .7rem !important;
  border-radius: var(--radius-sm);
}
.ng-item:hover { background: var(--cream-2); transform: translateX(3px); transition: transform .15s var(--ease); }

.ng-emoji {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-size: 1.15rem;
  border: var(--bw) solid var(--ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
  transform: rotate(-3deg);
}
.ng-item:hover .ng-emoji { transform: rotate(3deg); }
.ng-sky { background: var(--sky); }
.ng-mint { background: var(--mint); }
.ng-yellow { background: var(--yellow); }
.ng-coral { background: var(--coral-soft); }

.ng-txt { display: flex; flex-direction: column; line-height: 1.3; white-space: normal; }
.ng-txt b { font-size: .92rem; color: var(--ink); }
.ng-txt small { font-size: .76rem; color: var(--muted); font-weight: 600; }

@media (max-width: 720px) {
  /* En el menú móvil el grupo se aplana: sus enlaces salen sueltos */
  .nav-group { display: contents; }
  .nav-group-btn { display: none; }
  .nav-group-panel {
    position: static;
    display: grid;
    gap: .6rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .ng-item { justify-content: center; padding: .5rem !important; }
  .ng-txt { align-items: center; }
  .ng-txt small { display: none; }
  .ng-emoji { width: 34px; height: 34px; font-size: 1rem; }
}

/* ---------- Franja "Gratis para ti" (siempre visible) ---------- */
.nav-strip {
  background: var(--ink);
  border-bottom: var(--bw) solid var(--ink);
}

.nav-strip-inner {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-strip-inner::-webkit-scrollbar { display: none; }

.ns-tag {
  color: var(--yellow);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: .35rem;
  flex-shrink: 0;
}

.ns-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  font-size: .8rem;
  color: var(--ink);
  text-decoration: none;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  padding: .3rem .85rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
  transition: transform .16s var(--ease), box-shadow .16s;
}
.ns-chip::after {
  content: '→';
  font-weight: 800;
  transition: transform .16s var(--ease);
}
.ns-chip:hover { transform: translateY(-2px); box-shadow: 3px 4px 0 rgba(0, 0, 0, .45); }
.ns-chip:hover::after { transform: translateX(3px); }
.ns-chip:hover span { text-decoration: underline; text-underline-offset: 3px; }

.ns-sky { background: var(--sky); }
.ns-mint { background: var(--mint); }
.ns-yellow { background: var(--yellow); }
.ns-coral { background: var(--coral-soft); }

/* En el menú móvil de pantalla completa, los chips también aparecen */
.nav-links-gratis { display: none; }

@media (max-width: 720px) {
  .nav-links-gratis {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: 0 1.5rem;
  }
  .nav-links-gratis .ns-chip { font-size: .85rem; }
}
