/* Silla Lista · landing de venta
   Tokens de color en :root; modo oscuro con prefers-color-scheme.
   Contrastes de texto pensados para AA en ambos temas. */

/* ---------- Fuentes propias (fuentes/, licencia OFL 1.1) ----------
   Servidas desde este mismo sitio: el navegador no le pide nada a Google
   (así Google Fonts no recibe la IP de cada visitante). Poppins v24 600/700/800
   para títulos y Manrope v23 variable para texto, subconjuntos latin y latin-ext. */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fuentes/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fuentes/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fuentes/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fuentes/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fuentes/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fuentes/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  /* Paleta Silla Lista: hueso, carbón y rojo barbería. */
  --bg: #f4efe6;             /* hueso */
  --bg-alt: #ede6da;
  --surface: #fffdf9;
  --surface-2: #eae3d6;
  --ink: #151515;            /* carbón */
  --muted: #4a4540;
  --line: #dcd3c3;
  --band: #151515;           /* bandas oscuras */
  --on-band: #f4efe6;
  --on-band-2: #b9b2a6;
  --brand: #c62535;          /* rojo de botones: blanco encima ≈ 5.6:1 */
  --brand-strong: #a91e2c;   /* enlaces y texto rojo sobre hueso ≈ 6.6:1 */
  --brand-hover: #a91e2c;
  --brand-soft: #f9dadc;
  --on-brand: #ffffff;
  --mark: #e63946;           /* rojo barbería: acentos decorativos (logo, lema, puntos) */
  --accent: #c62535;         /* texto de acento (kicker) */
  --accent-soft: #eae3d6;
  --ok: #1f7a4d;
  --focus: #c62535;
  --error: #b42318;          /* sobre --surface ≈ 6.5:1 */
  --error-soft: #fdecea;

  --pole-red: #e63946;
  --pole-blue: #151515;
  --pole-white: #fffdf9;

  --chat-bg: #e9e2d4;
  --chat-head: #151515;
  --chat-in: #ffffff;
  --chat-out: #f9dadc;
  --chat-ink: #151515;
  --chat-meta: #6b645b;
  --chat-btn: #c62535;

  --shadow-sm: 0 1px 2px rgb(21 21 21 / .06), 0 2px 8px rgb(21 21 21 / .05);
  --shadow-lg: 0 24px 60px -24px rgb(21 21 21 / .38), 0 8px 24px -12px rgb(21 21 21 / .18);

  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-alt: #171615;
    --surface: #1c1b1a;
    --surface-2: #262422;
    --ink: #f4efe6;
    --muted: #bdb5a8;
    --line: #34312d;
    --band: #0b0b0b;
    --on-band: #f4efe6;
    --on-band-2: #a39c90;
    --brand: #c62535;          /* blanco encima ≈ 5.6:1 */
    --brand-strong: #ff5a66;   /* enlaces sobre fondo oscuro ≈ 6:1 */
    --brand-hover: #b0202f;
    --brand-soft: #3a1c1f;
    --on-brand: #ffffff;
    --mark: #ff5a66;
    --accent: #ff5a66;
    --accent-soft: #2a2725;
    --ok: #5cc28e;
    --focus: #ff5a66;
    --error: #ff8a80;
    --error-soft: #3a1a18;

    --pole-blue: #0b0b0b;
    --pole-white: #e9e4da;

    --chat-bg: #1a1917;
    --chat-head: #0b0b0b;
    --chat-in: #2a2826;
    --chat-out: #4a2328;
    --chat-ink: #f4efe6;
    --chat-meta: #a39c90;
    --chat-btn: #ff5a66;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-lg: 0 30px 70px -20px rgb(0 0 0 / .7), 0 8px 24px -12px rgb(0 0 0 / .5);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h1 { font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-strong); text-underline-offset: .2em; }
@media (prefers-color-scheme: dark) { a { color: var(--brand-strong); } }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #f4efe6; color: #151515; }
.btn-light:hover { background: #ffffff; }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1;
}
.brand-mark { width: 40px; height: 34px; color: var(--ink); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: .5em .8em; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-inner > .btn { margin-left: 8px; }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 20%, color-mix(in srgb, var(--mark) 14%, transparent), transparent 70%),
    radial-gradient(45% 50% at 5% 90%, color-mix(in srgb, var(--surface-2) 90%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-pole {
  position: absolute; right: -14px; top: 12%; width: 28px; height: 70%; opacity: .14;
}
@media (prefers-color-scheme: dark) { .hero-pole { opacity: .22; } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .35em .9em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 700; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 25%, transparent); }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); margin-top: .5em; }
.hero h1 .mark { color: var(--mark); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .mark { display: inline-block; animation: marca-in .7s .35s var(--ease) both; }
}
@keyframes marca-in { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4em; }
.hero-points .icon { color: var(--mark); }

/* ---------- Teléfono / chat ---------- */
.hero-visual { position: relative; display: grid; justify-items: center; padding: 24px 0 8px; }
.phone {
  position: relative; margin: 0;
  width: min(360px, 100%); height: 600px;
  display: flex; flex-direction: column;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a2d35, #0d0e12);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / .08);
  transform: rotate(1.5deg);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 3;
  width: 92px; height: 24px; border-radius: 999px; background: #0b0c0f;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 46px 16px 12px; border-radius: 32px 32px 0 0;
  background: var(--chat-head); color: #fff;
}
.chat-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #f4efe6; color: #151515;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-name { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.chat-status { margin: 0; font-size: .78rem; opacity: .85; line-height: 1.3; min-height: 1.3em; }
.chat-body {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 14px 12px;
  background-color: var(--chat-bg);
  background-image:
    radial-gradient(color-mix(in srgb, var(--chat-meta) 18%, transparent) 1px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--chat-ink); font-size: .9rem; line-height: 1.4;
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.chat-day {
  align-self: center; margin: 0 0 auto; padding: .2em .8em; border-radius: 8px;
  background: var(--chat-in); color: var(--chat-meta); font-size: .72rem; font-weight: 600;
}
.msg {
  position: relative; max-width: 84%;
  padding: 7px 10px 4px; border-radius: 10px;
  box-shadow: 0 1px .5px rgb(0 0 0 / .13);
}
.msg p { margin: 0; }
.msg-in { align-self: flex-end; background: var(--chat-out); border-top-right-radius: 3px; }
.msg-out { align-self: flex-start; background: var(--chat-in); border-top-left-radius: 3px; }
.msg-time { display: block; margin-top: 1px; text-align: right; font-size: .66rem; line-height: 1.3; color: var(--chat-meta); }
.msg-buttons {
  display: grid; margin: 4px -10px -4px;
  border-top: 1px solid color-mix(in srgb, var(--chat-meta) 25%, transparent);
}
.msg-btn {
  display: block; padding: 8px 6px; text-align: center;
  color: var(--chat-btn); font-weight: 700; font-size: .85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--chat-meta) 18%, transparent);
  transition: background-color .25s;
}
.msg-btn:last-child { border-bottom: 0; }
.msg-btn.is-tapped { background: color-mix(in srgb, var(--chat-btn) 18%, transparent); }
.typing {
  align-self: flex-start; display: inline-flex; gap: 4px;
  padding: 12px 14px; border-radius: 10px; border-top-left-radius: 3px;
  background: var(--chat-in); box-shadow: 0 1px .5px rgb(0 0 0 / .13);
}
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--chat-meta); animation: typing 1.2s infinite ease-in-out; }
.is-paused .typing span { animation-play-state: paused; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 16px; border-radius: 0 0 32px 32px; background: var(--chat-bg);
}
.chat-input > span:first-child {
  flex: 1; padding: .55em 1em; border-radius: 999px; background: var(--chat-in);
  color: var(--chat-meta); font-size: .85rem;
}
.chat-send { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; }
.chat-send svg { width: 18px; height: 18px; }

/* Estados de la animación (solo con JS y movimiento permitido) */
.chat-anim .msg, .chat-anim .typing { animation: pop .38s var(--ease) both; }
.chat-anim .msg[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .82rem; line-height: 1.3;
}
.float-card strong { display: block; font-size: .88rem; }
.float-card span { color: var(--muted); }
.float-card .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; }
.float-cal { left: -6px; top: 22%; }
.float-cal .icon { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.float-bell { right: -10px; bottom: 18%; }
.float-bell .icon { background: var(--brand-soft); color: var(--brand-strong); }
@media (prefers-reduced-motion: no-preference) {
  .float-cal { animation: float 6s ease-in-out infinite; }
  .float-bell { animation: float 7s ease-in-out -2s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

.chat-toggle {
  margin-top: 18px; min-height: 36px; padding: .35em .9em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.chat-toggle:hover { color: var(--ink); border-color: var(--ink); }
html:not(.js) .chat-toggle { display: none; }

/* ---------- Franja ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 24px 20px; display: flex; gap: 14px; align-items: center; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item strong { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--brand-strong); }
.strip-item span { color: var(--muted); font-size: .92rem; line-height: 1.35; }

/* ---------- Problema (banda carbón) ---------- */
.pain { background: var(--band); color: var(--on-band); }
.pain .section-head p:last-child { color: var(--on-band-2); }
.pain .kicker { color: var(--mark); }
.pain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--on-band) 16%, transparent); }
.pain-item { display: grid; gap: 10px; align-content: start; padding: 28px 24px; background: var(--band); }
.pain-item h3 { margin: 0; }
.pain-item p { margin: 0; color: var(--on-band-2); }
.pain-big { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--mark); font-variant-numeric: tabular-nums; }
.pain-close { max-width: 40em; margin: 28px auto 0; text-align: center; font-size: 1.1rem; }
.pain :focus-visible { outline-color: var(--on-band); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.kicker {
  display: inline-block; margin-bottom: .9em;
  color: var(--accent); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.step {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step-art {
  margin: -8px -8px 18px; padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
}
.step-art svg { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.step-num {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .9rem;
}
.art-bubble-in { fill: var(--surface); }
.art-bubble-out { fill: var(--brand); opacity: .85; }
.art-dot { fill: var(--muted); }
.art-line { stroke: var(--on-brand); stroke-width: 4; stroke-linecap: round; fill: none; }
.step:nth-child(4) .art-line { stroke: var(--line); stroke-width: 2; }
.art-col { fill: var(--surface); }
.art-busy { fill: var(--muted); opacity: .35; }
.art-free { fill: var(--brand); }
.art-chip { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.art-chip-on { fill: var(--brand); }
.art-tick { fill: none; stroke: var(--brand-strong); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art-chip-on + rect + .art-tick { stroke: var(--on-brand); }
.art-bell { fill: var(--mark); }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.benefit p { color: var(--muted); margin: 0; font-size: .98rem; }
.benefit-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.benefit-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong);
}
.benefit-icon .icon { width: 26px; height: 26px; }
.benefit:nth-child(3n+2) .benefit-icon { background: var(--surface-2); color: var(--ink); }

.mini-cal {
  margin-top: 24px; flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.mini-cal-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini-cal-name { font-weight: 800; font-size: .85rem; text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.slot { display: block; min-height: calc(24px * var(--h, 1)); border-radius: 8px; }
.slot.busy {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--muted) 22%, transparent) 0 6px, color-mix(in srgb, var(--muted) 12%, transparent) 6px 12px);
}
.slot.free { border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.slot.new {
  padding: 6px 8px; background: var(--brand); color: var(--on-brand);
  font-size: .78rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 80%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .js .benefit-wide.is-visible .slot.new { animation: slot-in .6s .5s var(--ease) both; }
}
@keyframes slot-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Para quién */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.persona p { color: var(--muted); }
.persona-top {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 20px; color: #fff;
}
.persona-barrio { background: linear-gradient(135deg, #c62535, #e63946); }
.persona-premium { background: linear-gradient(135deg, #151515, #4a4540); }
.persona-multi { background: linear-gradient(135deg, #4a4540, #c62535); }
.persona-quote {
  margin: auto 0 0; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border-left: 3px solid var(--mark);
  font-weight: 600; font-size: 1.02rem; line-height: 1.5;
}

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 1.35rem; }
.plan-desc { color: var(--muted); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em; margin: 4px 0 20px; }
.plan-price strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.plan-from, .plan-per { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan-from { flex-basis: 100%; }
.plan-list { display: grid; gap: 10px; margin-bottom: 20px; flex: 1; }
.plan-setup { margin: 0 0 20px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.plan-list li { display: flex; gap: .6em; align-items: flex-start; }
.plan-list .icon { color: var(--mark); margin-top: .15em; }
.plan-featured {
  border: 2px solid var(--mark);
  background: linear-gradient(180deg, color-mix(in srgb, var(--mark) 8%, var(--surface)), var(--surface) 45%);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -14px; left: 28px; margin: 0;
  padding: .25em .9em; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font-size: .8rem; font-weight: 800;
}
.plans-note { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; border: 0; border-radius: 16px; background: none;
  color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.faq-q .icon { color: var(--muted); transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--brand-strong); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }
.js .faq-a[hidden] { display: none; }

/* CTA final */
.cta-final { padding-top: 0; }
.cta-box {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px;
  background:
    radial-gradient(70% 110% at 100% 0%, rgb(230 57 70 / .32), transparent 60%),
    linear-gradient(135deg, #151515, #1f1d1b 60%, #2a2422);
  color: #f4efe6;
}
.cta-deco { position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; color: #fff; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .cta-deco { animation: spin 40s linear infinite; } }
@keyframes spin { to { rotate: 360deg; } }
.cta-copy { position: relative; max-width: 560px; }
.cta-copy h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.cta-copy p { margin: 0; color: #d9d2c6; font-size: 1.1rem; }
.cta-box .btn { position: relative; }
.cta-box :focus-visible { outline-color: #ffffff; }

/* Formulario "Quiero una demo" (dentro de la banda carbón, sobre una tarjeta con los colores del tema) */
.cta-box-form { align-items: flex-start; }
.cta-box-form .cta-copy { flex: 1 1 320px; }
.cta-alt { margin: 28px 0 12px !important; font-weight: 700; }
.form-card {
  position: relative; flex: 1 1 380px; max-width: 520px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.cta-box .form-card :focus-visible { outline-color: var(--focus); }
.form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: .3em; }
.form-intro { color: var(--muted); font-size: .95rem; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 700; }
.campo-ayuda { margin: 0 0 6px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.campo input {
  width: 100%; min-height: 46px; padding: .55em .8em;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.campo input:hover { border-color: var(--muted); }
.campo input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.campo input[aria-invalid="true"], .casilla input[aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.campo-error { margin: 6px 0 0; color: var(--error); font-size: .9rem; font-weight: 700; }
.campo-error::before { content: "⚠ "; }
.campo-error[hidden] { display: none; }
.form-errores {
  margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--error-soft); color: var(--ink); border-left: 4px solid var(--error); font-size: .95rem;
}
.form-errores[hidden] { display: none; }
.form-errores ul { list-style: disc; padding-left: 1.2em; margin-top: .3em; }
.form-errores a { color: var(--ink); font-weight: 700; }
.casillas { border: 0; margin: 8px 0 16px; padding: 0; }
.casillas legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.casilla { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.casilla input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.casilla label { font-size: .95rem; line-height: 1.5; }
.casilla a { color: var(--brand-strong); font-weight: 700; }
.casilla + .campo-error { margin-left: 32px; }
.casilla-opcional { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.casillas-nota { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.form-card .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.form-sin-js { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.form-sin-js[hidden] { display: none; }
.form-estado:empty { display: none; }
.form-estado { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-estado[data-tipo="ok"] { background: var(--brand-soft); border-left: 4px solid var(--brand); }
.form-estado[data-tipo="error"] { background: var(--error-soft); border-left: 4px solid var(--error); }
.form-estado p { margin: 0 0 .4em; }
.form-estado p:last-child { margin: 0; }
.form-estado a { font-weight: 700; }
.trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-legales { grid-column: 1 / -1; }
.footer-legales .footer-links a { font-weight: 500; color: var(--muted); }
.footer-legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit-wide { grid-row: auto; }
  .benefit:last-child { grid-column: span 2; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .personas, .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-featured { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .benefit-wide, .benefit:last-child { grid-column: auto; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .phone { height: 560px; transform: none; border-radius: 36px; padding: 9px; }
  .chat-head { border-radius: 28px 28px 0 0; }
  .chat-input { border-radius: 0 0 28px 28px; }
  .float-card { display: none; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .pain-list { grid-template-columns: 1fr; }
  .cta-box .btn { width: 100%; }
  .form-card { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .header-inner > .btn span { display: none; }
  .header-inner > .btn { padding: .5em .7em; }
  .header-inner > .btn::after { content: "WhatsApp"; }
  .chat-body { font-size: .84rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .step:hover { transform: none; }
}

/* ---------- Página de privacidad ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.4em; display: grid; gap: .4em; margin-bottom: 1em; }
.legal-note {
  padding: 14px 18px; border-radius: 12px; margin-bottom: 2em;
  background: var(--accent-soft); color: var(--ink); border-left: 4px solid var(--accent);
}
.legal-meta { font-size: .95rem; }
