/* =========================================================
   UNAZIA v12 · Clara y cercana
   Principios:
   - Fondo blanco roto cálido (#F6F5F1), superficies blancas, bordes suaves y sombras ligeras.
   - Grafito (#1B211D) para los textos y algunas piezas de contraste.
   - Lima (#B7F36B) solo como acento: lo activo, los botones principales y los indicadores.
     Para TEXTO en verde sobre fondo claro se usa el verde oscuro (#3A7012), que se lee bien (contraste 5,5:1).
   - Colores de marcas solo cuando representan algo real: verde de WhatsApp, estrellas amarillas de Google, azul del calendario.
   - Una sola zona oscura de contraste: el formulario del final.
   Letras: Inter Tight (todo) + IBM Plex Serif itálica (el énfasis de los titulares).

   CAMBIAR COLORES: toca solo las variables de :root (justo debajo).
   La paleta "b" (grafito sobre papel) cambia solo unas pocas: mira html[data-paleta="b"].
   ========================================================= */

@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f6f5f1;            /* fondo de la página */
  --bg-2: #efede7;          /* fondo un poco más oscuro */
  --surface: #ffffff;       /* tarjetas */
  --inset: #f7f6f2;         /* cajitas dentro de las tarjetas */
  --structure: #dcdad3;     /* líneas y piezas neutras */
  --text: #1b211d;          /* grafito: textos */
  --soft: #3e4741;          /* texto secundario */
  --muted: #5c665f;         /* texto de apoyo (contraste 5:1 o más) */
  --lime: #b7f36b;          /* acento: botones principales y señales */
  --lime-2: #c8f78a;        /* acento al pasar el ratón */
  --lime-ink: #3a7012;      /* verde para TEXTO sobre fondo claro */
  --lime-soft: #eef8df;     /* fondo verde muy suave */
  --ink: #1b211d;           /* texto sobre el lima */
  --line: rgba(27, 33, 29, .08);
  --line-2: rgba(27, 33, 29, .13);
  --line-3: rgba(27, 33, 29, .24);
  --chrome: #ffffff;        /* barra superior de cada ventana de demo */
  --chrome-text: #1b211d;
  /* colores de marcas, solo para lo que representan */
  --wa: #25d366; --wa-bg: #efeae2; --wa-out: #d9fdd3; --wa-tick: #53bdeb;
  --star: #fbbc04;
  --link: #1a73e8;
  --shadow-card: 0 1px 2px rgba(27, 33, 29, .05), 0 10px 30px -12px rgba(27, 33, 29, .16), 0 30px 60px -36px rgba(27, 33, 29, .18);
  --shadow-soft: 0 1px 2px rgba(27, 33, 29, .05), 0 6px 16px -10px rgba(27, 33, 29, .14);

  --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Plex Serif", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --bar: 68px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
/* Paleta B: grafito sobre papel. Igual de clara, pero las ventanas de demo y la barra de abajo llevan cabecera grafito. */
html[data-paleta="b"] {
  --chrome: #1b211d;
  --chrome-text: #f6f5f1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 400 1.0625rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: "ss01", "cv11";
  background: var(--bg);
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: normal; }
b, strong { font-weight: 600; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- letra ---------- */
.h1 { font: 640 clamp(2.7rem, 4.4vw, 4.5rem)/1.02 var(--f-sans); letter-spacing: -.034em; margin-bottom: 24px; }
.h2 { font: 640 clamp(2.1rem, 3.1vw, 3.2rem)/1.06 var(--f-sans); letter-spacing: -.03em; margin-bottom: 22px; }
.h3 { font: 650 clamp(1.5rem, 2vw, 1.9rem)/1.1 var(--f-sans); letter-spacing: -.025em; }
.h4 { font: 600 1.1rem/1.3 var(--f-sans); letter-spacing: -.01em; }
.h1 em, .h2 em, .h3 em { display: inline; font: italic 400 1.04em/1 var(--f-serif); letter-spacing: -.025em; color: var(--lime-ink); }
.h1 em { display: block; margin-top: .12em; }
.h1 .l { display: block; }
.lead { font-size: clamp(1.05rem, 1.15vw, 1.15rem); color: var(--soft); max-width: 58ch; line-height: 1.58; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: .86rem; letter-spacing: .01em; margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(58, 112, 18, .35); }
.kicker span { order: -1; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); font: 600 .74rem/1 var(--f-sans); font-variant-numeric: tabular-nums; background: var(--surface); }
.kicker:has(span)::before { display: none; }
.sub { font-size: .74rem; font-weight: 550; letter-spacing: .01em; color: var(--muted); margin-bottom: 8px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .97rem/1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .18s var(--ease-out); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--lime); color: var(--ink); border-color: rgba(58, 112, 18, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px -10px rgba(58, 112, 18, .55); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-3); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.btn--full { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover { background: var(--lime-2); }
  .btn--ghost:hover { border-color: var(--text); }
}

/* ---------- barra superior ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 20px; padding: 0 var(--gut); background: rgba(246, 245, 241, .86); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 650 1.22rem/1 var(--f-sans); letter-spacing: -.03em; }
.logo__mark { width: 28px; height: 28px; }
.bar__nav { margin-left: auto; display: flex; align-items: center; gap: 0; }
.bar__nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; text-decoration: none; color: var(--soft); font-size: .92rem; border-radius: 999px; position: relative; transition: color .2s ease, background-color .2s ease; white-space: nowrap; }
.bar__nav a:not(.btn)[aria-current="true"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow-soft); font-weight: 550; }
.bar__nav a:not(.btn)[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime-ink); }
@media (hover: hover) { .bar__nav a:not(.btn):hover { color: var(--text); } }
.bar__nav .btn { margin-left: 12px; min-height: 40px; padding: 0 18px; font-size: .9rem; }
.bar__menu { display: none; }
@media (max-width: 1240px) { .bar__nav a:not(.btn) { padding: 0 8px; font-size: .86rem; } .bar__nav .btn { margin-left: 6px; padding: 0 14px; } }

/* ---------- piezas de texto ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.facts dt { color: var(--muted); font-size: .8rem; }
.facts dd { font-weight: 550; font-size: .97rem; line-height: 1.35; margin-top: 6px; letter-spacing: -.01em; }
.facts div:last-child dd { color: var(--lime-ink); }
.part { margin-top: 36px; display: grid; gap: 12px; }

/* hoy / con Unazia */
.pr { display: grid; gap: 10px; margin-top: 4px; }
.pr div { position: relative; padding: 14px 16px 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.pr div:last-child { border-color: var(--line-2); background: var(--surface); box-shadow: var(--shadow-soft), inset 3px 0 0 var(--lime); }
.pr dt { font-size: .74rem; font-weight: 650; letter-spacing: .03em; color: var(--muted); margin-bottom: 4px; }
.pr div:last-child dt { color: var(--lime-ink); }
.pr dd { color: var(--soft); font-size: .98rem; line-height: 1.5; }
.pr div:last-child dd { color: var(--text); }
.pieces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pieces li { font-size: .82rem; font-weight: 500; color: var(--soft); padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }

/* la oferta (columna de texto) */
.stack { margin-top: 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-soft); }
.stack ul { display: grid; gap: 8px; }
.stack li { position: relative; padding-left: 24px; color: var(--soft); font-size: .96rem; }
.stack li::before { content: ""; position: absolute; left: 2px; top: .48em; width: 10px; height: 6px; border-left: 2px solid var(--lime-ink); border-bottom: 2px solid var(--lime-ink); transform: rotate(-45deg); }
.stack b { color: var(--text); }
.seals { display: grid; gap: 8px; margin-top: 14px; }
.seals li { padding: 12px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--lime); background: var(--surface); border-radius: 4px 12px 12px 4px; color: var(--soft); font-size: .95rem; }
.seals b { color: var(--text); }
.price { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.price b { color: var(--text); }
.lead b { color: var(--text); }

/* cuenta rápida */
.calc { margin-top: 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.calc__row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; }
.calc__row label { font-size: .92rem; color: var(--soft); }
.calc input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--inset); color: var(--text); font: 600 16px/1 var(--f-sans); font-variant-numeric: tabular-nums; text-align: right; }
.calc input:focus-visible { outline: none; border-color: var(--lime-ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.calc__out { font-size: 1rem; color: var(--soft); padding-top: 8px; border-top: 1px solid var(--line); }
.calc__out b { color: var(--text); font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc__out .calc__h { color: var(--lime-ink); }
.calc__note { font-size: .8rem; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 550; }
.faq details p { padding-bottom: 14px; color: var(--soft); }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .88rem; display: grid; gap: 8px; }
.legal a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 12px; }

/* =========================================================
   TARJETAS DE DEMO: ventanas de una app real
   ========================================================= */
.card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 0 14px 12px; box-shadow: var(--shadow-card); display: grid; gap: 8px; }
.app__bar, .card__bar { display: flex; align-items: center; gap: 10px; margin: 0 -14px 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--chrome); color: var(--chrome-text); border-radius: 19px 19px 0 0; }
.app__bar b, .card__bar b { font-weight: 650; font-size: .95rem; letter-spacing: -.01em; }
.card__bar { justify-content: space-between; }
.card__bar > span { font-size: .78rem; opacity: .8; }
.app__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--lime); flex: none; }
.app__ic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand { width: 28px; height: 28px; flex: none; }
.brand--s { width: 20px; height: 20px; }
.brand--xs { width: 16px; height: 16px; }
.app__meta, .app__bar .live { margin-left: auto; font-size: .78rem; font-variant-numeric: tabular-nums; opacity: .85; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lime-soft); flex: none; }
.ic svg { width: 19px; height: 19px; fill: none; stroke: var(--lime-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 650; font-size: .74rem; flex: none; color: var(--ink); }
.av--a { background: #f3dcc8; } .av--b { background: #d6e4f5; } .av--c { background: #e3ddf3; } .av--d { background: #dcefd0; }
.ok { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--lime-ink); white-space: nowrap; }
.wait { font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* la tira de pasos: la mini historia de la tarjeta */
.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; padding: 2px 0 4px; }
.story li { counter-increment: s; position: relative; padding-top: 9px; font-size: .7rem; line-height: 1.3; color: var(--muted); cursor: pointer; transition: color .3s ease; }
.story li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--bg-2); }
.story li::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; border-radius: 4px; background: var(--lime); transition: width .5s var(--ease-out); }
.story li.is-done::after { width: 100%; background: #9fd35a; }
.story li.is-on { color: var(--text); font-weight: 600; }
.story li.is-on::after { width: 100%; }
.story li::marker { content: ""; }

/* módulos de la tarjeta (cada parte que se enciende con su paso) */
[data-beat] { border-radius: 12px; transition: border-color .5s ease, background-color .5s ease, box-shadow .5s ease, opacity .5s ease, transform .5s var(--ease-out); }
.exp [data-beat] { cursor: pointer; }
.exp [data-beat].is-beat { box-shadow: 0 0 0 2px var(--lime), 0 8px 20px -12px rgba(58, 112, 18, .5); }
/* pasos que todavía no han llegado: un poco apagados y sin color (el texto gris sigue por encima de 4,5:1) */
.card[data-k]:not([data-k="-1"]) [data-beat]:not(.is-beat):not(.is-done) { opacity: .94; filter: grayscale(1); }

/* --- Captación: WhatsApp → confirmar → agenda → CRM --- */
.wa { overflow: hidden; border: 1px solid var(--line); background: var(--wa-bg); }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #f0f2f5; border-bottom: 1px solid var(--line); }
.wa__head .av { width: 28px; height: 28px; font-size: .66rem; }
.wa__head b { display: block; font-size: .84rem; line-height: 1.2; }
.wa__head span { font-size: .7rem; color: var(--muted); }
.wa__body { display: grid; gap: 5px; padding: 8px 10px 10px; }
.wa__day { justify-self: center; font-size: .68rem; color: #54656f; padding: 2px 10px; border-radius: 7px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__in, .wa__out { position: relative; max-width: 86%; padding: 6px 9px 5px; font-size: .84rem; line-height: 1.38; border-radius: 9px; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__in { justify-self: start; background: #fff; border-top-left-radius: 2px; }
.wa__out { justify-self: end; background: var(--wa-out); border-top-right-radius: 2px; }
.wa time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: .64rem; color: #54656f; }
.ticks { width: 15px; height: 10px; fill: none; stroke: var(--wa-tick); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line-3); background: var(--inset); }
.approve span { display: block; color: var(--muted); font-size: .74rem; }
.approve b { font-weight: 650; font-size: .92rem; font-variant-numeric: tabular-nums; }
.approve.is-ok { border-style: solid; border-color: rgba(58, 112, 18, .35); background: var(--lime-soft); }
.approve.is-ok .btn--primary, .reply.is-ok .btn { background: var(--surface); color: var(--lime-ink); border-color: rgba(58, 112, 18, .4); box-shadow: none; }
.week { padding: 9px 10px 10px; border: 1px solid var(--line); background: var(--surface); }
.week__top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: .82rem; }
.week__top span { margin-left: auto; color: var(--muted); font-size: .72rem; }
.week__grid { display: grid; grid-template-columns: 38px repeat(5, 1fr); gap: 3px; align-items: center; }
.week__grid b { text-align: center; font-size: .68rem; font-weight: 600; color: var(--muted); }
.week__grid em { font-size: .66rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.week__grid i { height: 22px; border-radius: 5px; background: var(--inset); border: 1px solid var(--line); font-style: normal; font-size: .64rem; font-weight: 650; display: grid; place-items: center; overflow: hidden; white-space: nowrap; }
.week__grid i.busy { background: #e4e8ee; border-color: transparent; }
.week__grid i.new { background: var(--lime); border-color: rgba(58, 112, 18, .3); color: var(--ink); }
.card[data-k] .week:not(.is-beat):not(.is-done) i.new { background: var(--inset); color: transparent; border-style: dashed; border-color: var(--line-3); }
.week.is-beat i.new { animation: drop .7s var(--ease-out) both .15s; }
@keyframes drop { from { transform: translateY(-10px) scale(.9); opacity: 0; } }
.newlead, .remind, .gmb, .nudge { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.gmb, .newlead, .nudge { grid-template-columns: auto 1fr; }
.newlead b, .remind b, .gmb b { display: block; font-size: .9rem; }
.newlead div span, .remind div span, .gmb div span { color: var(--muted); font-size: .76rem; }

/* --- CRM: lista con estados de colores, próxima acción y ficha que se abre --- */
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.st b { font-weight: 700; }
.st--new { background: #e3edfb; color: #1d4f91; }
.st--cur { background: #ecebe6; color: #3e4741; }
.st--seg { background: #fdf0d5; color: #7a4d00; }
.st--won { background: var(--lime-soft); color: var(--lime-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); background: var(--inset); }
.clients { display: grid; border: 1px solid var(--line); background: var(--surface); padding: 2px 10px; }
.clients li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "av who st" "av who next"; column-gap: 10px; row-gap: 2px; align-items: center; padding: 7px 0; transition: background-color .4s ease; }
.clients li + li { border-top: 1px solid var(--line); }
.clients .av { grid-area: av; }
.clients li > div { grid-area: who; min-width: 0; }
.clients b { display: block; font-size: .88rem; line-height: 1.25; }
.clients div span { display: block; color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clients .st { grid-area: st; justify-self: end; }
.clients .next { grid-area: next; justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.clients .next svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clients.is-beat .clients__first .next, .clients.is-done .clients__first .next { color: var(--lime-ink); font-weight: 650; }
.card[data-k="2"] .clients__open, .card[data-k="3"] .clients__open { background: var(--lime-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.sheet { display: grid; grid-template-rows: 1fr; border: 1px solid var(--line-2); background: var(--surface); transition: grid-template-rows .6s var(--ease-out), opacity .5s ease, border-color .5s ease, box-shadow .5s ease; }
.sheet__in { overflow: hidden; min-height: 0; padding: 0 12px; }
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; }
.sheet__head b { display: block; font-size: .88rem; }
.sheet__head span span { display: block; font-size: .74rem; color: var(--muted); }
.sheet__time { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 10px; }
.sheet__time li { display: grid; gap: 1px; padding: 7px 8px; border-radius: 9px; background: var(--inset); font-size: .7rem; color: var(--muted); }
.sheet__time li b { color: var(--text); font-size: .76rem; }
.sheet__time li.on { background: var(--lime-soft); color: var(--lime-ink); }
.sheet__time i { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--line-3); }
.card[data-k] .sheet:not(.is-beat):not(.is-done) { grid-template-rows: 0fr; border-color: transparent; box-shadow: none; }

/* --- Tu panel --- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kpi { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--inset); }
.kpi:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.kpi span { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.kpi b { white-space: nowrap; font: 680 clamp(1.15rem, 1.5vw, 1.45rem)/1.1 var(--f-sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.chart { padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.chart .sub { margin-bottom: 6px; }
.chart__bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; height: 58px; align-items: end; background: repeating-linear-gradient(180deg, transparent 0 13.5px, var(--line) 13.5px 14.5px); }
.chart__bars i { position: relative; height: 100%; }
.chart__bars i::before, .chart__bars i::after { content: ""; position: absolute; bottom: 0; width: 44%; border-radius: 3px 3px 0 0; }
.chart__bars i::before { left: 0; height: var(--a); background: var(--text); }
.chart__bars i:last-child::before { background: #8fd14a; }
.chart__bars i::after { right: 0; height: var(--b); background: #cfd2cc; }
.chart__key { display: flex; gap: 14px; margin-top: 6px; font-size: .7rem; color: var(--muted); }
.chart__key span { display: inline-flex; align-items: center; gap: 6px; }
.chart__key span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--text); }
.chart__key span + span::before { background: #cfd2cc; }
.dues { padding: 8px 11px; border: 1px solid var(--line); background: var(--surface); }
.dues .sub { margin-bottom: 2px; }
.dues li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who amt" "who st"; column-gap: 10px; align-items: center; padding: 5px 0; }
.dues li + li { border-top: 1px solid var(--line); }
.dues__who { grid-area: who; min-width: 0; }
.dues__who b { display: block; font-size: .86rem; }
.dues__who span { display: block; font-size: .72rem; color: var(--muted); }
.dues em { grid-area: amt; justify-self: end; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.dues .ok, .dues .wait { grid-area: st; justify-self: end; font-size: .7rem; }
.dash2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; }
.ticket, .ask { padding: 8px 11px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.ticket { display: flex; gap: 10px; align-items: flex-start; }
.ticket .sub { margin-bottom: 0; }
.ticket b { display: block; font-size: 1.2rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ticket span:not(.ic) { color: var(--muted); font-size: .72rem; }
.ask { display: grid; gap: 5px; }
.ask .q { justify-self: end; font-size: .8rem; padding: 5px 10px; border-radius: 12px 12px 3px 12px; background: var(--text); color: var(--bg); }
.ask .a { justify-self: start; font-size: .78rem; line-height: 1.38; padding: 6px 10px; border-radius: 12px 12px 12px 3px; background: var(--inset); border: 1px solid var(--line); }
.saved { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--lime-soft); }
.saved__big span { display: block; font-size: .72rem; font-weight: 600; color: var(--lime-ink); }
.saved__big b { display: block; font: 720 1.9rem/1.05 var(--f-sans); letter-spacing: -.04em; color: var(--text); white-space: nowrap; }
.saved ul { display: flex; flex-wrap: wrap; gap: 4px; }
.saved li { font-size: .68rem; padding: 3px 7px; border-radius: 6px; background: var(--surface); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(58, 112, 18, .6); }

/* --- Clientes fieles: ficha de Google --- */
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars i { width: 14px; height: 14px; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars--s i { width: 11px; height: 11px; }
.gbp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.gbp b { font-size: .92rem; }
.gbp__rate { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; }
.reviews { display: grid; gap: 0; padding: 2px 10px; border: 1px solid var(--line); background: var(--surface); }
.reviews li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px 0; }
.reviews li + li { border-top: 1px solid var(--line); }
.reviews .av { width: 30px; height: 30px; font-size: .66rem; }
.reviews__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .8rem; }
.reviews time { font-size: .7rem; color: var(--muted); }
.reviews li p:last-child { font-size: .84rem; line-height: 1.4; color: var(--soft); }
.reviews.is-beat li { animation: arrive .6s var(--ease-out) both; }
.reviews.is-beat li + li { animation-delay: .9s; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
.reply { padding: 9px 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 7px; justify-items: start; }
.reply .sub { margin: 0; }
.reply__txt { font-size: .84rem; color: var(--text); padding: 7px 11px; border-radius: 10px; background: var(--inset); border-left: 3px solid var(--lime); }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini { display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--inset); }
.mini span { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.mini b { font-size: 1.2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nudge p:not(.sub) { font-size: .82rem; line-height: 1.4; padding: 6px 9px; border-radius: 9px; background: var(--wa-out); color: #111b21; }
.nudge .sub { margin-bottom: 4px; }

/* --- Marketing --- */
.cal { padding: 8px 10px 10px; border: 1px solid var(--line); background: var(--surface); }
.cal ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cal li { display: grid; gap: 4px; align-content: start; min-height: 50px; padding: 5px; border-radius: 8px; background: var(--inset); }
.cal li b { font-size: .66rem; color: var(--muted); font-weight: 600; }
.chip { font-size: .64rem; font-weight: 650; padding: 3px 5px; border-radius: 5px; background: var(--text); color: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.post { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.post__img { display: block; width: 100%; aspect-ratio: 1; }
.post figcaption { padding: 5px 7px 6px; font-size: .66rem; color: var(--muted); line-height: 1.3; }
.post figcaption b { display: block; font-size: .74rem; color: var(--text); }
.posts.is-beat .post { animation: arrive .6s var(--ease-out) both; }
.posts.is-beat .post:nth-child(2) { animation-delay: .25s; }
.posts.is-beat .post:nth-child(3) { animation-delay: .5s; }

/* --- La oferta: pasos con iconos y la garantía --- */
.ladder { display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.ladder i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--inset); border: 1px solid var(--line-2); }
.ladder i svg { width: 19px; height: 19px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ladder b { display: flex; align-items: center; gap: 7px; font-size: .98rem; letter-spacing: -.01em; }
.ladder small { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .64rem; font-weight: 700; }
.ladder span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.42; margin-top: 2px; }
.ladder em { font-size: .7rem; font-weight: 650; color: var(--soft); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); white-space: nowrap; }
.ladder li.is-done i, .ladder li.is-beat i { background: var(--lime); border-color: rgba(58, 112, 18, .3); }
.ladder li.is-done i svg, .ladder li.is-beat i svg { stroke: var(--ink); }
.ladder li.is-beat em { color: var(--lime-ink); border-color: rgba(58, 112, 18, .4); background: var(--lime-soft); }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--text); color: #f2f2ec; }
.guarantee__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); }
.guarantee__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guarantee b { display: block; font-size: 1rem; color: #fff; }
.guarantee span:not(.guarantee__ic) { display: block; font-size: .82rem; line-height: 1.4; color: #d5dad5; }

/* --- Formulario: la única zona oscura, para que destaque --- */
.form { background: var(--text); color: #f2f2ec; border-color: transparent; padding: 0 18px 16px; gap: 12px; box-shadow: 0 30px 60px -30px rgba(27, 33, 29, .55); }
.form .card__bar { background: transparent; color: #fff; border-bottom-color: rgba(242, 242, 236, .12); margin: 0 -18px 4px; padding: 16px 18px; }
.form .field { display: grid; gap: 6px; }
.form label { font-size: .9rem; color: #d5dad5; }
.form .opt { color: #b4bcb5; }
.form a { color: #fff; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(242, 242, 236, .2); background: #232a25; color: #fff; font: 400 16px/1.4 var(--f-sans); transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { resize: vertical; }
.form ::placeholder { color: #9aa39c; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(183, 243, 107, .25); }
.form :focus-visible { outline-color: var(--lime); }
.field--check { grid-template-columns: 22px 1fr; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lime); }
.field--check .err { grid-column: 1 / -1; }
.err { color: #ffc9a8; font-size: .88rem; }
.form [aria-invalid="true"] { border-color: #ffb48a !important; }
.form__note { text-align: center; color: #b4bcb5; font-size: .84rem; }
.form__status { color: var(--lime); font-size: .92rem; min-height: 1.2em; }
.form__status:empty { display: none; }

/* ---------- la escena 3D ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(80% 70% at 62% 45%, #f4f3ef 0%, #eeece6 60%, #e9e7e1 100%); }
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; translate: -50% -100%; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: 600 .78rem/1 var(--f-sans); letter-spacing: -.005em; white-space: nowrap; opacity: 0; transition: opacity .5s ease; box-shadow: var(--shadow-soft); }
.lbl--s { font-size: .7rem; font-weight: 550; color: var(--soft); }
html.no-gl .stage__gl, html.no-gl .stage__labels { display: none; }
.stage__beam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.stage__beam line { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0; transition: opacity .4s ease; }
.stage__beam circle { fill: var(--lime); stroke: var(--text); stroke-width: 1.5; opacity: 0; transition: opacity .4s ease; }
html:not(.js) .stage { display: none; }
html.world .stage__gl { cursor: pointer; }

/* rótulo del paso, sobre el punto de la escena al que se acerca la cámara */
.cap { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: 320px; padding: 7px 14px 7px 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); translate: -50% calc(-100% - 44px); opacity: 0; scale: .96; transition: opacity .45s ease, scale .55s var(--ease-out); }
.cap.is-on { opacity: 1; scale: 1; }
.cap b { flex: none; display: grid; place-items: center; min-width: 28px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--lime); color: var(--ink); font: 650 .78rem/1 var(--f-sans); white-space: nowrap; }
.cap span { font-size: .86rem; line-height: 1.35; color: var(--text); }
.cap::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 36px; background: var(--line-3); }
.cap::before { content: ""; position: absolute; left: 50%; top: calc(100% + 44px); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); border: 2px solid var(--text); }
html:not(.world) .cap { display: none; }

/* ---------- recorrido: pausa, anterior, siguiente y progreso ---------- */
.rail { display: none; }
html.world .rail { position: fixed; z-index: 30; left: max(40px, 4vw); right: max(32px, 3vw); bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line-2); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
html[data-paleta="b"].world .rail { background: rgba(27, 33, 29, .94); border-color: transparent; }
.rail__play { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--surface); color: var(--ink); font: 600 .82rem/1 var(--f-sans); cursor: pointer; transition: transform .18s var(--ease-out), background-color .2s ease; white-space: nowrap; }
.rail__play svg { width: 12px; height: 12px; fill: var(--ink); }
.rail__play .i-play { display: none; }
/* EN PAUSA: el botón se pone lima y late suave, y aparece la etiqueta "En pausa" */
.is-paused .rail__play { background: var(--lime); border-color: rgba(58, 112, 18, .4); animation: llama 2s ease-in-out infinite; }
@keyframes llama { 0%, 100% { box-shadow: 0 0 0 0 rgba(183, 243, 107, .7); } 50% { box-shadow: 0 0 0 6px rgba(183, 243, 107, 0); } }
.is-paused:not(.is-end) .rail__steps::before { content: "En pausa"; flex: none; align-self: center; padding: 4px 10px; border-radius: 999px; background: #fdf0d5; color: #7a4d00; font: 650 .72rem/1 var(--f-sans); }
.is-paused .rail__play .i-play { display: block; }
.is-paused .rail__play .i-pause { display: none; }
.rail__arrow { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s ease, transform .18s var(--ease-out); }
.rail__play:active, .rail__arrow:active { transform: scale(.95); }
.rail__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .rail__arrow:hover { border-color: var(--text); } .rail__play:hover { border-color: var(--text); } .is-paused .rail__play:hover { background: var(--lime-2); } }
.rail__steps { display: flex; gap: 6px; flex: 1; padding: 0 8px; }
.rail__steps li { flex: 1; min-width: 0; }
.rail__steps button { width: 100%; display: grid; gap: 6px; padding: 8px 0 2px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--muted); }
.rail__bar { display: block; height: 4px; background: var(--bg-2); overflow: hidden; border-radius: 4px; }
.rail__bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.rail__steps .is-done .rail__bar i { background: #9fd35a; }
.rail__lbl { font: 550 .74rem/1.5 var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
.rail__steps .is-on .rail__lbl { color: var(--text); font-weight: 650; }
@media (hover: hover) { .rail__steps button:hover .rail__lbl { color: var(--text); } }
.is-paused .rail__steps .is-on .rail__bar i { background: var(--muted); }
html[data-paleta="b"] .rail__steps button { color: #c9cfc9; }
html[data-paleta="b"] .rail__steps .is-on .rail__lbl { color: #fff; }
html[data-paleta="b"] .rail__bar { background: rgba(242, 242, 236, .16); }
html[data-paleta="b"] .rail__arrow { background: transparent; color: #fff; border-color: rgba(242, 242, 236, .25); }

/* ---------- MÓVIL Y SIN JS: página normal ---------- */
.zone { padding: 56px var(--gut) 24px; border-bottom: 1px solid var(--line); scroll-margin-top: var(--bar); }
.zone .exp { margin-top: 32px; }
@media (max-width: 999px) {
  .bar { gap: 12px; }
  .bar__menu { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 18px; align-items: center; border-radius: 999px; border: 1px solid var(--line-3); background: var(--surface); color: var(--text); font: 600 .95rem var(--f-sans); }
  .bar__nav { display: none; }
  .bar__nav.is-open { display: flex; position: fixed; inset: var(--bar) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 24px var(--gut); background: var(--bg); overflow: auto; }
  .bar__nav.is-open a:not(.btn) { font-size: 1.3rem; min-height: 56px; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0 4px; color: var(--text); box-shadow: none; background: none; }
  .bar__nav.is-open a:not(.btn)[aria-current="true"]::after { left: auto; right: 8px; bottom: 50%; }
  .bar__nav.is-open .btn { margin: 16px 0 0; min-height: 52px; font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .cta-m { display: flex; }
}
@media (max-width: 480px) {
  .h1 { font-size: 2.55rem; }
  .h2 { font-size: 2.05rem; }
  .card { padding: 0 12px 12px; }
  .app__bar { margin: 0 -12px 2px; padding: 11px 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:first-child { grid-column: 1 / -1; }
  .dash2 { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 1fr 100px; }
  .ladder li { grid-template-columns: 38px 1fr; }
  .ladder em { grid-column: 2; justify-self: start; }
  .clients li { column-gap: 8px; }
  .clients .av { width: 30px; height: 30px; }
  .sheet__time li { padding: 6px; }
  .story li { font-size: .66rem; }
  .saved { grid-template-columns: 1fr; }
}

/* barra fija de móvil con el diagnóstico */
.cta-m { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(246, 245, 241, .95); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.cta-m .btn { width: 100%; }
@media (max-width: 999px) { .cta-m { display: flex; } }

/* ---------- MODO ESCENA (pantalla grande con JS) ---------- */
html.world, html.world body { height: 100%; overflow: hidden; }
html.world .bar { position: fixed; left: 0; right: 0; }
html.world .stage { position: fixed; inset: 0; height: auto; border: 0; z-index: 0; }
html.world main { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
html.world .zone { position: absolute; inset: 0; padding: 0; border: 0; visibility: hidden; }
html.world .zone.is-on { visibility: visible; }
html.world .copy {
  position: absolute; left: 0; top: var(--bar); bottom: 74px; width: min(42vw, 600px);
  padding: clamp(28px, 5.5vh, 60px) 44px 40px max(40px, 4vw); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
  background: linear-gradient(90deg, rgba(246, 245, 241, .97) 0, rgba(246, 245, 241, .92) 70%, rgba(246, 245, 241, .55) 88%, rgba(246, 245, 241, 0) 100%);
  scrollbar-width: thin; scrollbar-color: #cfccc4 transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
}
html.world #inicio .copy { width: min(46vw, 660px); }
html.world .exp { position: absolute; margin: 0; right: max(32px, 3vw); top: calc(var(--bar) + 14px); bottom: 78px; width: min(30vw, 430px); display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
html.world .exp > * { pointer-events: auto; }
html.world .card { max-height: calc(100vh - var(--bar) - 96px); overflow: auto; scrollbar-width: thin; scrollbar-color: #cfccc4 transparent; }
html.world .cta-m { display: none; }

/* pantallas grandes pero bajitas: se compactan las tarjetas para que quepan sin barra de desplazamiento */
@media (min-width: 1000px) and (max-height: 960px) {
  html.world .card { padding-bottom: 10px; }
  html.world .story { padding-bottom: 0; }
  html.world .story li { padding-top: 7px; }
  html.world .kpi { padding: 7px 10px; }
  html.world .kpi b { font-size: 1.2rem; }
  html.world .chart { padding: 7px 10px; }
  html.world .chart__key { display: none; }
  html.world .saved ul { display: none; }
  html.world .saved { padding: 8px 12px; }
  html.world .dues li { padding: 3px 0; }
  html.world .clients li { padding: 5px 0; }
  html.world .filters { padding: 6px; }
  html.world .reviews li { padding: 6px 0; }
  html.world .reviews li + li p:last-child { display: none; }
  html.world .gbp { padding: 6px 12px; }
  html.world .reply { gap: 5px; padding: 8px 12px; }
  html.world .card__foot { padding-top: 6px; }
}
@media (min-width: 1000px) and (max-height: 860px) {
  html.world .clients li:nth-child(4) { display: none; }
  html.world .ladder span { font-size: .75rem; line-height: 1.36; }
  html.world .sheet__head { padding: 7px 0 5px; }
  html.world .sheet__time li { padding: 5px 7px; }
  html.world .sheet__time { padding-bottom: 8px; }
  html.world .ladder li { padding: 7px 10px; gap: 10px; grid-template-columns: 32px 1fr auto; }
  html.world .ladder i { width: 32px; height: 32px; }
  html.world .guarantee { padding: 9px 12px; }
  html.world .guarantee__ic { width: 36px; height: 36px; }
  html.world .mini { padding: 6px 10px; }
  html.world .reply__txt, html.world .nudge p:not(.sub) { font-size: .78rem; padding: 5px 9px; }
  html.world .remind, html.world .newlead, html.world .gmb, html.world .nudge { padding: 7px 10px; }
  html.world .wa__head { padding: 5px 10px; }
  html.world .card { gap: 6px; }
  html.world .app__bar { padding: 9px 14px; }
  html.world .wa__body { gap: 4px; padding: 6px 9px 8px; }
  html.world .wa__in, html.world .wa__out { font-size: .8rem; }
  html.world .story li { font-size: .66rem; }
  html.world .chart__bars { height: 46px; }
  html.world .post figcaption { display: none; }
  html.world .saved__big b { font-size: 1.6rem; }
  html.world .ladder span { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* móvil: el texto primero, luego la tarjeta y al final los botones */
html:not(.world) .zone { display: flex; flex-direction: column; }
html:not(.world) .copy { display: contents; }
html:not(.world) .zone .exp { order: 1; margin-top: 28px; }
html:not(.world) .zone:not(#inicio) > .copy > .actions,
html:not(.world) .zone > .copy > .faq { order: 2; }
html:not(.world) .zone > .copy > .legal { order: 3; }
html:not(.world) .stage { opacity: 1; }
html:not(.world) .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246, 245, 241, .55), rgba(246, 245, 241, .82)); }
html:not(.world) main { position: relative; z-index: 2; }
html:not(.world) .bar { z-index: 40; }
/* móvil: hueco bajo la portada para que se vea la escena */
html.js:not(.world):not(.no-gl) #inicio::after { content: ""; display: block; order: 9; height: min(80vw, 420px); }

/* =========================================================
   MEJORAS PARA CAPTAR CLIENTES (unazia-v12)
   ========================================================= */
/* Textos por sector: solo se ve el del sector elegido (html data-sector) */
html:not([data-sector="estetica"]) [data-s="estetica"],
html:not([data-sector="reformas"]) [data-s="reformas"],
html:not([data-sector="comercio"]) [data-s="comercio"] { display: none !important; }

/* selector de sector en la portada */
.sector { margin-top: 22px; display: grid; gap: 10px; }
.sector__q { font-size: .92rem; font-weight: 600; color: var(--text); }
.sector__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sector__opts button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--surface); color: var(--text); font: 600 .92rem/1 var(--f-sans); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .18s var(--ease-out); }
.sector__opts button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.sector__opts button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
.sector__opts button:active { transform: scale(.97); }
@media (hover: hover) { .sector__opts button:hover { border-color: var(--text); } }
html.world #inicio .sector + .actions { margin-top: 18px; }

/* "Ejemplos para tu sector" con etiquetas Disponible / A medida */
.fit { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.fit__t { font-size: .78rem; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.fit ul { display: grid; gap: 7px; }
.fit li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.4; color: var(--soft); }
.tag { display: inline-block; min-width: 82px; text-align: center; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; margin-top: 1px; }
.tag--ok { background: var(--lime-soft); color: var(--lime-ink); }
.tag--md { background: #ecebe6; color: #3e4741; }

/* etiqueta "Demo · datos ficticios" en la cabecera de cada ventana */
.demo-tag { margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: #fdf0d5; color: #7a4d00; }
.demo-tag + .app__meta, .demo-tag + .live { margin-left: 8px; }
@media (max-width: 480px) { .app__bar .app__meta { display: none; } .app__bar .live { font-size: 0; gap: 0; } }

/* cómo trabajamos */
.how { margin-top: 20px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-soft); }
.how ol { display: grid; gap: 10px; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; }
.how li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; font: 700 .76rem/1 var(--f-sans); }
.how b { font-size: .95rem; }
.how span { font-size: .88rem; line-height: 1.45; color: var(--soft); }

/* el diagnóstico en 4 líneas */
.diag { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.diag div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.diag dt { font-size: .74rem; font-weight: 700; color: var(--lime-ink); margin-bottom: 2px; }
.diag dd { font-size: .88rem; line-height: 1.42; color: var(--text); }
@media (max-width: 480px) { .diag { grid-template-columns: 1fr; } }

/* formulario: cómo prefiere que le contactemos */
.pref { border: 0; margin: 0; padding: 0; min-width: 0; }
.pref legend { padding: 0; margin-bottom: 6px; font-size: .9rem; color: #d5dad5; }
.pref__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pref__opts label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 242, 236, .2); background: #232a25; color: #fff; font-size: .9rem; cursor: pointer; }
.pref__opts input { accent-color: var(--lime); width: 16px; height: 16px; margin: 0; }
.pref__opts label:has(input:checked) { border-color: var(--lime); }
.form input[type="tel"] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(242, 242, 236, .2); background: #232a25; color: #fff; font: 400 16px/1.4 var(--f-sans); }
.form input[type="tel"]:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(183, 243, 107, .25); }

/* botón flotante de WhatsApp (solo cuando hay número) */
.wa-fab { position: fixed; z-index: 35; right: 18px; bottom: 92px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 10px; border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-weight: 650; font-size: .92rem; border: 1px solid var(--line-2); box-shadow: var(--shadow-card); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab[hidden] { display: none; }
html.world .wa-fab { bottom: 96px; right: max(32px, 3vw); }
/* los textos por sector dentro de una línea siguen en la misma línea */
.approve b span, .newlead div span span, .clients div span span, .remind b span { display: inline; }
/* el chat no se aplasta si la tarjeta va justa (overflow: clip no deja que el navegador lo encoja) */
.wa { overflow: clip; }
/* pantallas bajitas (hasta 860 px de alto): algo más compactas Captación y Clientes fieles */
@media (min-width: 1000px) and (max-height: 860px) {
  html.world .wa__head { display: none; }
  html.world .week__grid i { height: 18px; }
  html.world .week { padding: 7px 10px 8px; }
  html.world .week__top { margin-bottom: 4px; }
  html.world .gbp { display: none; }
  html.world .app__bar .live { font-size: 0; gap: 0; }
}
