/* ==========================================================
   Clases con Emily · Landing
   Tokens primero: cambia colores, fuentes y ritmos aquí.
   ========================================================== */
:root {
  color-scheme: light;

  --cream: #FFF6EA;
  --paper: #FFFDF8;
  --sand: #F7E6CC;
  --ink: #2A1A12;
  --ink-soft: #6B4E3D;
  --terracotta: #B84A30;
  --terracotta-deep: #9A3B25;
  --mustard: #F4B740;
  --mustard-soft: #FBE3A8;
  --teal: #1D6F6A;
  --teal-deep: #134F4B;
  --teal-soft: #CDE7E2;
  --coral: #FF8066;
  --coral-soft: #FFD9CF;

  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.04rem + 0.4vw, 1.3rem);
  --text-h3: clamp(1.35rem, 1.18rem + 0.7vw, 1.75rem);
  --text-h2: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem);
  --text-h1: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2rem);
  --radius-s: 12px;
  --radius-m: 22px;
  --radius-l: 32px;
  --line: 2px solid var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --shadow-m: 6px 6px 0 var(--ink);
  --shadow-l: 10px 10px 0 var(--ink);

  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 700ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --focus: var(--ink);
  --header-h: 72px;
}

/* ---------- Idioma: solo se ve el texto del idioma activo ---------- */
[data-ui="en"] [data-l="es"],
[data-ui="es"] [data-l="en"] { display: none !important; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* La cinta inclinada y los stickers sobresalen a propósito: se recortan aquí, sin crear scroll */
main { overflow-x: clip; }

/* Grano de papel muy sutil para dar textura */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.1; }
h2 em, .brand-name em, .footer-brand em { font-style: normal; color: var(--terracotta); }
p { text-wrap: pretty; }

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

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); }
.sprite { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 60;
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.kicker {
  font: 600 var(--text-sm)/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.section-lead { font-size: var(--text-lg); max-width: 34rem; margin-top: 1.25rem; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.85em 1.5em;
  border: var(--line); border-radius: 999px;
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) ease;
}
.btn-sm { min-height: 44px; padding: 0.6em 1.1em; font-size: var(--text-sm); }
.btn-lg { min-height: 58px; padding: 1em 1.75em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary, .btn-cream { box-shadow: var(--shadow-s); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-cream:hover { background: #fff; }
.btn-primary:hover, .btn-cream:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.btn-primary:active, .btn-cream:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--sand); border-color: var(--ink); }
.btn-ghost:active { transform: scale(0.97); }

.btn-link { border: 0; padding-inline: 0.25em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-link:hover { text-decoration-color: var(--terracotta); color: var(--terracotta); }

.icon-arrow { transition: transform var(--duration-normal) var(--ease-spring); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn.small { font-size: var(--text-sm); color: var(--ink-soft); }
.link-btn:hover { color: var(--terracotta); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  border-bottom: 2px solid transparent;
  transition: background-color var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.site-header.is-scrolled {
  background: rgb(255 246 234 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--ink);
}
.header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-mark { flex: none; width: 38px; height: 38px; transition: transform var(--duration-normal) var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
.brand-name { font: 800 1.25rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }

.main-nav { display: none; gap: 0.25rem; }
.main-nav a {
  position: relative; padding: 0.6rem 0.85rem;
  font-weight: 500; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.header-actions .btn { white-space: nowrap; }
.header-cta { display: none; }
.btn-login { padding-inline: 0.6em; }
.btn-login-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Selector EN / ES con un indicador que se desliza */
.lang-switch {
  position: relative; display: flex;
  padding: 2px; border: var(--line); border-radius: 999px;
  background: var(--paper);
}
.lang-switch::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px); border-radius: 999px;
  background: var(--ink);
  transition: transform var(--duration-normal) var(--ease-spring);
}
[data-ui="es"] .lang-switch::before { transform: translateX(100%); }
.lang-switch button {
  position: relative; z-index: 1;
  min-width: 40px; min-height: 38px; padding: 0 0.5rem;
  border: 0; border-radius: 999px; background: transparent;
  font: 700 0.8125rem/1 var(--font-body); letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}
.lang-switch button[aria-pressed="true"] { color: var(--cream); }
.lang-switch button[aria-pressed="false"]:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
.hero-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 4rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--paper); border: var(--line); border-radius: 999px;
  font-size: var(--text-sm); font-weight: 600;
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgb(184 74 48 / 0.5);
  animation: pulse 2s ease-out infinite;
}

.hero-title { font-size: var(--text-h1); margin-top: 1.5rem; letter-spacing: -0.035em; line-height: 0.98; }
.scribble { position: relative; display: inline-block; color: var(--terracotta); }
[data-ui="es"] .hero-title { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.9rem); }
.scribble-line {
  position: absolute; left: -2%; bottom: -0.16em;
  width: 104%; height: 0.32em; overflow: visible;
}
.scribble-line path {
  fill: none; stroke: var(--mustard); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 900ms var(--ease-out-expo) 500ms forwards;
}

.hero-lead { font-size: var(--text-lg); max-width: 33rem; margin-top: 1.5rem; color: var(--ink-soft); }
.es { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 60%, var(--mustard-soft) 60%); }
.gloss { font-style: italic; font-size: 0.85em; margin-left: 0.3em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.75rem; padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  background: var(--paper); border: var(--line); border-radius: var(--radius-s);
  font-size: var(--text-sm); text-decoration: none;
  transition: translate var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.rating-badge:hover { translate: -2px -2px; box-shadow: var(--shadow-s); }
.stars { color: var(--mustard); letter-spacing: 0.08em; text-shadow: 0 1px 0 rgb(42 26 18 / 0.35); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2rem; font-size: var(--text-sm); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-facts .icon { color: var(--teal); stroke-width: 3; width: 1.1em; height: 1.1em; }

/* Composición visual del hero */
.hero-visual { position: relative; padding-bottom: 10rem; max-width: 520px; width: 100%; margin-inline: auto; }
.photo-slot {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 88%; margin-left: auto;
  background: var(--teal);
  border: var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  rotate: 2deg;
}
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; }
.sun {
  position: absolute; width: 74%; aspect-ratio: 1; right: -16%; top: -14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--mustard) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--mustard) 0 6deg, transparent 6deg 18deg);
  animation: spin 40s linear infinite;
}
.ja {
  position: absolute; left: 9%;
  font: 800 clamp(3rem, 2rem + 6vw, 5.25rem)/0.9 var(--font-display);
  letter-spacing: -0.04em; color: var(--cream);
}
.ja-1 { top: 22%; }
.ja-2 { top: 42%; left: 26%; color: var(--coral); }
.ja-3 { top: 62%; left: 15%; }
.fallback-emoji {
  position: absolute; right: 10%; bottom: 12%;
  width: 30%; height: auto; rotate: 12deg;
  animation: bob 3.2s ease-in-out infinite;
}

.chat-card {
  position: absolute; left: 0; bottom: 0;
  width: min(84%, 330px);
  padding: 0.9rem;
  background: var(--paper);
  border: var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  rotate: -2.5deg;
  display: grid; gap: 0.5rem;
  font-size: var(--text-sm); line-height: 1.4;
}
.chat-top {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft);
  padding-bottom: 0.55rem; border-bottom: 1.5px dashed rgb(42 26 18 / 0.25);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: #E0442E; animation: blink 1.4s steps(2, start) infinite; }
.chat-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.bubble {
  max-width: 88%; padding: 0.55rem 0.8rem; border-radius: 16px;
  animation: bubble-in 520ms var(--ease-spring) both;
  animation-delay: calc(var(--i) * 900ms + 700ms);
}
.bubble-them { background: var(--sand); border-bottom-left-radius: 4px; justify-self: start; }
.bubble-me { background: var(--teal); color: var(--cream); border-bottom-right-radius: 4px; justify-self: end; }
.bubble-me b { color: var(--mustard-soft); }

.sticker { position: absolute; pointer-events: none; height: auto; }
.sticker-hero { width: 64px; left: 2%; top: 4%; animation: bob 3.8s ease-in-out infinite reverse; }
.tag {
  position: absolute;
  background: var(--mustard); border: var(--line); border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-s);
}
.tag-hero { right: 0; bottom: 0.25rem; rotate: 4deg; }

/* ---------- Cinta de frases ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink); color: var(--cream);
  border-block: var(--line);
  padding-block: 1.1rem;
  rotate: -1.2deg;
  margin-inline: -2%;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  padding-inline: 1.6rem; white-space: nowrap;
  font: 800 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.2 var(--font-display);
}
.marquee-list li::after {
  content: "✦"; color: var(--mustard); font-size: 0.8em;
  margin-left: 1.6rem;
}
.marquee-list i { font: italic 400 1rem/1 var(--font-body); color: var(--mustard-soft); }

/* ---------- Método ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.bento { display: grid; gap: 1.25rem; }

.card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  transition:
    translate var(--duration-normal) var(--ease-spring),
    rotate var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out-expo);
}
.card:hover { translate: -3px -3px; rotate: -0.6deg; box-shadow: var(--shadow-l); }
.card h3 { margin-bottom: 0.75rem; max-width: 16ch; }
.card p:not(.card-num):not(.versus-label) { max-width: 38ch; }
.card-num { font: 800 0.875rem/1 var(--font-display); letter-spacing: 0.1em; margin-bottom: 2.5rem; opacity: 0.75; }
.card-sticker {
  position: absolute; top: -22px; right: 18px; width: 76px; height: auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.card:hover .card-sticker { transform: rotate(14deg) scale(1.12); }

.card-teal { background: var(--teal); color: var(--cream); --focus: var(--cream); }
.card-teal h3 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); max-width: 14ch; }
.card-mustard { background: var(--mustard); }
.card-coral { background: var(--coral); }

.card-versus { display: grid; gap: 1.5rem; background: var(--paper); }
.versus-label { font: 800 1.125rem/1.2 var(--font-display); margin-bottom: 0.9rem; }
.versus-col ul { display: grid; gap: 0.6rem; }
.versus-col li { display: flex; gap: 0.55rem; align-items: flex-start; }
.versus-old { color: var(--ink-soft); }
.versus-old li { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.versus-old li::before { content: "✗"; color: var(--terracotta); font-weight: 700; text-decoration: none; display: inline-block; }
.versus-new .versus-label { color: var(--teal); }
.versus-new .icon { color: var(--teal); stroke-width: 3; margin-top: 0.2em; width: 1.1em; height: 1.1em; }

/* ---------- Reseñas ---------- */
.reviews { background: var(--teal); color: var(--cream); --focus: var(--mustard); }
.reviews .kicker, .reviews h2 em { color: var(--mustard); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.reviews-head h2 { max-width: 18ch; }

.carousel-controls { display: flex; gap: 0.75rem; }
.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  border: var(--line); box-shadow: var(--shadow-s);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo), opacity var(--duration-fast);
}
.round-btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.round-btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.round-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

.rating-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}
.big-score { font: 800 clamp(3rem, 2.4rem + 2vw, 4rem)/0.9 var(--font-display); color: var(--mustard); }
.rating-summary > div { flex: 1 1 11rem; }
.rating-summary .stars { font-size: 1.25rem; }
.rating-summary p { color: var(--teal-soft); font-size: var(--text-sm); }
.preply-link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.preply-link:hover { color: var(--mustard); }
.preply-link .icon { width: 1em; height: 1em; }

.reviews-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(86%, 380px);
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 0.5rem 0.75rem 1.5rem 0.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  padding: 1.75rem;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  --focus: var(--ink);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.review-card:nth-child(even) { rotate: 1deg; }
.review-card:nth-child(odd) { rotate: -0.8deg; }
.review-card:hover { transform: translateY(-6px); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-date { font-size: 0.8125rem; color: var(--ink-soft); text-transform: capitalize; }
.quote { flex: 1; font-size: 1.0625rem; line-height: 1.55; }
.quote::before {
  content: "“"; display: block; height: 0.55em;
  font: 800 4rem/1 var(--font-display); color: var(--terracotta);
}
.quote.is-clamped p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
  overflow: hidden;
}
.quote.is-short p { font: 800 clamp(1.5rem, 1.2rem + 1vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.translated-note { margin-top: -1rem; font-size: 0.75rem; font-style: italic; color: var(--ink-soft); }
.read-more {
  align-self: flex-start; margin-top: -0.75rem;
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--terracotta);
  text-decoration: underline; text-underline-offset: 4px;
}
.read-more[hidden] { display: none; }
.read-more:hover { color: var(--terracotta-deep); }
.read-more[aria-expanded="true"] .when-closed,
.read-more[aria-expanded="false"] .when-open { display: none; }
.review-meta { font-size: var(--text-sm); color: var(--ink-soft); }

.carousel-progress {
  position: relative; height: 4px; margin-top: 0.5rem;
  border-radius: 4px; background: rgb(255 246 234 / 0.25); overflow: hidden;
}
.carousel-progress span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--mustard);
  transform-origin: left;
  transform: translateX(calc(var(--pos, 0) * (1 - var(--size, 1)) * 100%)) scaleX(var(--size, 1));
  transition: transform var(--duration-fast) linear;
}
.review-author { display: flex; align-items: center; gap: 0.85rem; line-height: 1.3; }
.review-author b { display: block; font-size: 1.0625rem; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--av, var(--sand));
  border: var(--line);
  font: 800 1.25rem/1 var(--font-display);
  object-fit: cover;
}

/* ---------- Llamado final ---------- */
.cta { background: var(--terracotta); color: #fff; --focus: var(--cream); position: relative; overflow: hidden; }
.cta .kicker { color: var(--mustard-soft); }
.cta .section-lead { color: #FFE9E0; }
.cta-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.cta-copy .btn { margin-top: 2rem; }
.cta h2 { max-width: 12ch; }

.steps { display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.4rem;
  background: rgb(255 255 255 / 0.1);
  border: 2px solid rgb(255 246 234 / 0.35); border-radius: var(--radius-m);
  transition: background-color var(--duration-normal), transform var(--duration-normal) var(--ease-spring);
}
.steps li:hover { background: rgb(255 255 255 / 0.16); transform: translateX(6px); }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.steps p { color: #FFE9E0; }
.step-num {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--mustard); color: var(--ink);
  border: var(--line);
  font: 800 1.125rem/1 var(--font-display);
}
.sticker-cta { width: 84px; right: 0; top: -1.5rem; rotate: 18deg; animation: bob 4s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-list { display: grid; gap: 0.85rem; }
.faq details {
  background: var(--paper);
  border: var(--line); border-radius: var(--radius-m);
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}
.faq details[open] { box-shadow: var(--shadow-s); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 1rem 1.25rem;
  font: 600 1.0625rem/1.35 var(--font-body);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--duration-normal) var(--ease-spring); color: var(--terracotta); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 3rem; --focus: var(--mustard); }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { font: 800 1.5rem/1 var(--font-display); }
.footer-brand em { color: var(--mustard); }
.footer-tag { color: var(--mustard-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a, .footer-nav .link-btn { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.footer-nav .link-btn:hover, .footer-nav a:hover { color: var(--mustard); }
.footer-copy { font-size: var(--text-sm); opacity: 0.75; }

/* ---------- Modal de acceso ---------- */
.login-dialog {
  width: min(100% - 2rem, 420px);
  max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: auto;
}
.login-dialog[open] { animation: dialog-in 380ms var(--ease-spring); }
.login-dialog::backdrop { background: rgb(42 26 18 / 0.55); backdrop-filter: blur(4px); }
.login-form { position: relative; display: grid; gap: 1.1rem; padding: 2rem 1.5rem 1.5rem; }
.login-head { text-align: center; display: grid; justify-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.login-head img { animation: wave 1.6s ease-in-out 300ms 2; transform-origin: 70% 80%; }
.login-head h2 { font-size: 1.875rem; }
.login-head p { color: var(--ink-soft); font-size: var(--text-sm); max-width: 30ch; }

.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  transition: background-color var(--duration-fast), transform var(--duration-normal) var(--ease-spring);
}
.dialog-close:hover { background: var(--sand); transform: rotate(90deg); }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--text-sm); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.field input {
  width: 100%; min-height: 50px; padding: 0.75rem 1rem;
  font: 400 1rem/1.2 var(--font-body); color: var(--ink);
  background: #fff;
  border: var(--line); border-radius: var(--radius-s);
  transition: box-shadow var(--duration-fast) var(--ease-out-expo);
}
.field input:focus { outline: none; box-shadow: var(--shadow-s); }
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { border-color: #B3261E; box-shadow: 4px 4px 0 #B3261E; }
.field-error { min-height: 1.2em; font-size: 0.8125rem; font-weight: 600; color: #B3261E; }
.field-error:empty { min-height: 0; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 3.25rem; }
.toggle-pass {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; color: var(--ink-soft);
}
.toggle-pass:hover { color: var(--ink); background: var(--sand); }
.form-status:empty { display: none; }
.form-status {
  padding: 0.75rem 0.9rem; border-radius: var(--radius-s);
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: var(--text-sm); font-weight: 500;
}
.form-status a { font-weight: 700; }
.login-foot { text-align: center; font-size: var(--text-sm); color: var(--ink-soft); }
.login-foot a { color: var(--terracotta); font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 80;
  translate: -50% 150%;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.2rem;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; font-weight: 600; font-size: var(--text-sm);
  box-shadow: 0 10px 30px rgb(42 26 18 / 0.3);
  transition: translate var(--duration-normal) var(--ease-spring);
}
.toast.is-visible { translate: -50% 0; }
.toast:empty { visibility: hidden; }

/* ---------- Aparición al hacer scroll ---------- */
/* Se anima con keyframes (no transition) para no pisar los hovers de las tarjetas */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: reveal-up var(--duration-slow) var(--ease-out-expo) both; }
.bento .reveal:nth-child(2) { animation-delay: 90ms; }
.bento .reveal:nth-child(3) { animation-delay: 160ms; }
.bento .reveal:nth-child(4) { animation-delay: 230ms; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(184 74 48 / 0); } 100% { box-shadow: 0 0 0 0 rgb(184 74 48 / 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes wave { 0%, 100% { rotate: 0deg; } 25% { rotate: 18deg; } 75% { rotate: -10deg; } }

/* ---------- Responsive ---------- */
/* Header: el botón de acceso es solo icono (con texto para lectores de pantalla) hasta 560px */
@media (max-width: 419px) {
  .brand-name { font-size: 1.125rem; }
}
@media (max-width: 359px) {
  .brand-name { display: none; }
}

@media (min-width: 560px) {
  .btn-login { padding-inline: 1.1em; }
  .btn-login-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .card-versus { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  .main-nav { display: flex; }
}

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .card { grid-column: span 3; }
  .bento .card-wide { grid-column: span 6; }
  .reviews-track { grid-auto-columns: min(46%, 400px); }
  .faq-grid { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-nav, .footer-copy { grid-column: 2; }
  .footer-brand, .footer-tag { grid-column: 1; }
  .footer-tag { grid-row: 2; }
  .footer-nav { grid-row: 1; justify-content: flex-end; }
  .footer-copy { grid-row: 2; text-align: right; }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.08fr 1fr; }
  .hero-visual { max-width: none; padding-bottom: 4.5rem; }
  .photo-slot { aspect-ratio: 4 / 5; }
  .bento .card { grid-column: span 2; }
  .bento .card-wide { grid-column: span 4; }
  .reviews-track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
  .cta-grid { grid-template-columns: 1fr 1fr; }
}

/* Bajo "reducir movimiento": todo aparece en su estado final, sin animar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track, .sun, .live-dot, .rec { animation: none !important; }
  .js .reveal { opacity: 1; }
}
