/* Tidaaa · web. Mismo sistema que la app: crema, superficies suaves con labio, negro para lo principal,
   un solo bloque con degradado (índigo → azul) por pantalla y color vivo solo para Tidy y los marrones. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #f3f2ef;
  --paper: #ffffff;
  --surface: #e9e8e3;
  --edge: #dedcd5;
  --lip: #d3d1c9;
  --ink: #17152b;
  --ink-2: #2b2940;
  --ink-soft: #5f5d73;
  --night: #121024;
  --cobalt: #2c1f6e;
  --blue: #3b3fd8;
  --tuft: #2340ff;
  --coral: #ff6b57;
  --sun: #ffd23f;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.nw { white-space: nowrap; }

/* Tipografía */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
.h-xl { font-size: clamp(3rem, 10vw, 6.2rem); }
.h-lg { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.h-md { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.lead { font-size: clamp(1.06rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; margin: 18px 0 0; }
.center .lead { margin-inline: auto; }
.label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
  background: var(--paper); border: 2px solid var(--edge); border-radius: 999px; padding: 6px 12px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tuft); }

/* Botones: pastilla con labio que se hunde */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em;
  transition: transform 0.08s ease, box-shadow 0.08s ease; user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(3px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #000; }
.btn-ink:active { box-shadow: 0 1px 0 #000; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #d4a61a; }
.btn-sun:active { box-shadow: 0 1px 0 #d4a61a; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Navegación: pastilla flotante */
.nav-wrap { position: sticky; top: 12px; z-index: 40; display: flex; justify-content: center; padding: 12px 16px 0; }
.nav {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 2px solid var(--edge); border-radius: 999px; box-shadow: 0 6px 24px rgba(23, 21, 43, 0.08);
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; text-decoration: none; margin-right: 8px; }
.nav a.link { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 9px 12px; border-radius: 999px; }
.nav a.link:hover { background: var(--surface); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) { .nav a.link.hide-sm { display: none; } .nav { padding-left: 14px; } }

/* Bloques y fondos */
.block { padding: 96px 0; }
.block-tight { padding: 64px 0; }
.on-night { background: var(--night); color: #fff; }
.on-night .lead { color: rgba(255, 255, 255, 0.72); }
.on-night .label { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.on-white { background: var(--paper); }
.rounded-top { border-radius: 40px 40px 0 0; }
.rounded { border-radius: 40px; }

/* Portada */
.hero { padding: 54px 0 0; text-align: center; }
.pill-sun { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 3px 0 #d4a61a; }
.hero h1 { margin: 22px auto 0; max-width: 11.5em; }
.hero h1 .sun { color: var(--blue); }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.stage {
  position: relative; margin: 56px auto 0; border-radius: 40px; overflow: hidden;
  background: linear-gradient(145deg, #2c1f6e 0%, #3b3fd8 58%, #6a8dff 100%);
  padding: 48px 16px 0; min-height: 420px;
}
.stage .phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 390 / 844; border-radius: 44px; overflow: hidden;
  background: #000; border: 10px solid #0d0c1a; box-shadow: 0 30px 60px rgba(10, 8, 40, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage .phone { margin-bottom: -90px; }
.stage .phone.side { width: min(250px, 60vw); transform: translateY(40px) rotate(-4deg); opacity: 0.95; }
.stage .phone.side.right { transform: translateY(40px) rotate(4deg); }
@media (max-width: 760px) { .stage .phone.side { display: none; } }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; text-align: left;
  background: #fff; color: var(--ink); border-radius: 20px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(10, 8, 40, 0.25);
  font-weight: 700; font-size: 0.9rem; line-height: 1.2;
}
.float-card small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.78rem; }
.float-card .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--tuft); display: grid; place-items: center; flex: none; }
.float-card.a { top: 70px; left: max(8px, calc(50% - 360px)); }
.float-card.b { top: 210px; right: max(8px, calc(50% - 380px)); }
@media (max-width: 760px) { .float-card.a { top: 18px; left: 10px; } .float-card.b { top: auto; bottom: 120px; right: 10px; } }

/* Frase con fichas, que se va iluminando al bajar */
.statement { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; font-size: clamp(2rem, 5.4vw, 3.6rem); text-align: center; margin: 0; }
.statement .w { color: #c9c7cf; transition: color 0.35s ease; }
.statement .w.on { color: var(--ink); }
.token {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; transform: translateY(-0.08em);
  font-family: var(--sans); font-weight: 700; font-size: 0.36em; letter-spacing: 0; line-height: 1;
  background: var(--surface); border-radius: 999px; padding: 0.55em 0.9em; box-shadow: 0 3px 0 var(--lip);
}
.token .dot { width: 0.7em; height: 0.7em; border-radius: 50%; }
.token svg { width: 1.6em; height: 1.6em; }

/* Cómo funciona: pasos con teléfono */
.how { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; gap: 10px; margin-top: 28px; }
.step {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 2px solid transparent; background: transparent;
  border-radius: 24px; padding: 16px 18px; transition: background 0.2s, border-color 0.2s;
}
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.85rem; margin-right: 8px; }
.step .k { font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); }
.step h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.45rem; line-height: 1.1; margin: 10px 0 0; color: #9a98a8; transition: color 0.2s; }
.step p { margin: 8px 0 0; color: var(--ink-soft); display: none; }
.step .bar { height: 4px; border-radius: 4px; background: var(--edge); margin-top: 14px; overflow: hidden; display: none; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.step[aria-selected="true"] { background: var(--paper); border-color: var(--edge); box-shadow: 0 4px 0 var(--lip); }
.step[aria-selected="true"] h3 { color: var(--ink); }
.step[aria-selected="true"] p, .step[aria-selected="true"] .bar { display: block; }
.step[aria-selected="true"] .bar i { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }
.how .phone { margin-inline: auto; }

/* Bento de herramientas */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } }
.tile { background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); padding: 24px; overflow: hidden; }
.tile h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1.05; margin: 0; }
.tile > p { color: var(--ink-soft); margin: 8px 0 0; }
.tile.ink { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 #000; }
.tile.ink > p { color: rgba(255, 255, 255, 0.72); }
.tile.sun { background: var(--sun); border-color: #f0c22e; box-shadow: 0 4px 0 #d4a61a; }
.tile.sun > p { color: #4a3f10; }
.tile.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* Calculadora «¿Cuánto es tuyo?» */
.calc { margin-top: 18px; display: grid; gap: 12px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.money-input { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--edge); border-radius: 18px; padding: 0 14px; min-height: 54px; }
.money-input input { border: 0; outline: 0; font: inherit; font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.money-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.55); }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.out { display: grid; gap: 8px; }
.out .line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--cream); font-weight: 700; font-variant-numeric: tabular-nums; }
.out .line.yours { background: var(--ink); color: #fff; }
.out .line.yours b { color: var(--sun); font-family: var(--display); font-size: 1.35rem; }
.fine { font-size: 0.8rem; color: var(--ink-soft); margin: 6px 2px 0; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }

/* Calendario fiscal */
.dates { display: grid; gap: 8px; margin-top: 18px; }
.date { display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 18px; padding: 10px 12px; }
.date .cal { width: 52px; flex: none; text-align: center; background: #fff; border-radius: 12px; border: 2px solid var(--edge); padding: 4px 0; line-height: 1; }
.date .cal b { display: block; font-family: var(--display); font-size: 1.35rem; }
.date .cal small { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--coral); }
.date .what { font-weight: 700; line-height: 1.2; }
.date .what small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; margin-top: 3px; }

/* Recordatorio en tres tonos */
.msg { margin-top: 16px; background: var(--cream); border-radius: 20px 20px 20px 6px; padding: 14px 16px; font-size: 0.95rem; color: var(--ink-2); min-height: 120px; }
.tile.ink .seg { background: rgba(255, 255, 255, 0.1); }
.tile.ink .seg button { color: #fff; }
.tile.ink .seg button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.tile.ink .msg { background: rgba(255, 255, 255, 0.08); color: #fff; }

.idea-list { display: grid; gap: 8px; margin-top: 16px; }
.idea { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, 0.55); border-radius: 16px; padding: 10px 12px; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.idea small { display: block; font-weight: 600; color: #5b4f1a; }
.idea .i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; }

.lock { width: 52px; height: 52px; border-radius: 16px; background: var(--cream); display: grid; place-items: center; margin-bottom: 14px; }

/* Móvil y ordenador */
.anywhere { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .anywhere { grid-template-columns: 1fr 1.1fr; } }
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.duo .phone { width: min(230px, 42vw); border-color: #000; }
.duo .phone:first-child { transform: translateY(30px); }
.bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.bullets li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; margin-top: 1px; }

/* Tidy evoluciona */
.dresser { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 900px) { .dresser { grid-template-columns: 1.1fr 1fr; } }
.dress-stage { position: relative; background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); padding: 30px 20px 20px; display: grid; place-items: center; min-height: 360px; }
.dress-stage .balance { position: absolute; top: 16px; right: 16px; background: var(--sun); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 3px 0 #d4a61a; }
.dress-stage .lvl { position: absolute; top: 16px; left: 16px; font-weight: 800; font-size: 0.9rem; background: var(--surface); border-radius: 999px; padding: 6px 12px; }
.wardrobe { background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); padding: 20px; }
.wardrobe h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 0 0 12px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.item { cursor: pointer; border: 2px solid var(--edge); background: var(--cream); border-radius: 20px; padding: 10px 6px; display: grid; justify-items: center; gap: 4px; font-weight: 700; font-size: 0.82rem; }
.item svg { width: 54px; height: 54px; }
.item[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); }
.item[disabled] { opacity: 0.5; cursor: not-allowed; }
.item .cost { font-weight: 800; color: var(--ink-soft); font-size: 0.75rem; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.level { text-align: center; font-size: 0.78rem; font-weight: 800; cursor: pointer; border: 2px solid transparent; background: var(--cream); border-radius: 16px; padding: 8px 2px; }
.level[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.level small { display: block; color: var(--ink-soft); font-weight: 700; }
.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.rules span { background: var(--paper); border: 2px solid var(--edge); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.9rem; }
.rules b { font-family: var(--display); }

/* Sin rodeos: comparación honesta */
.compare { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 0.98rem; }
.compare th, .compare td { padding: 14px 10px; border-bottom: 1.5px solid rgba(255, 255, 255, 0.12); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--display); font-weight: 800; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.compare thead th.us { color: var(--sun); }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; font-size: 0.9rem; }
.mark.yes { background: var(--sun); color: var(--ink); }
.mark.no { background: rgba(255, 255, 255, 0.08); color: #ff8c7a; }
.mark.part { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
.compare-wrap { overflow-x: auto; }
.on-night .fine { color: rgba(255, 255, 255, 0.6); }

/* Precio + lista de espera */
.price-card { background: var(--paper); border: 2px solid var(--edge); border-radius: 34px; box-shadow: 0 5px 0 var(--lip); padding: 28px 22px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.price b { font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--ink-soft); font-weight: 700; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.perks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tuft); flex: none; }
.pricing { display: grid; gap: 14px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: 0.9fr 1.1fr; } }

.field-label { display: block; font-weight: 700; margin: 16px 0 8px; }
.field { display: block; width: 100%; min-height: 56px; border-radius: 18px; background: #fff; border: 2px solid var(--edge); padding: 0 16px; font: inherit; font-size: 1.06rem; color: var(--ink); outline: none; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.55); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin: 16px 0 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 0.95rem; box-shadow: 0 3px 0 var(--lip); cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 20px; display: grid; gap: 8px; }
.form-actions .btn { width: 100%; }
.error { color: #c0261c; font-weight: 700; margin: 4px 0 0; min-height: 1.5em; }
.done { text-align: center; padding: 10px 0; }
.done .tidy-done { width: 150px; margin: 0 auto; }
.done p { color: var(--ink-soft); }

/* Preguntas */
.faq { background: var(--night); color: #fff; border-radius: 30px; padding: 8px 22px; margin-top: 36px; }
.faq details { border-bottom: 1.5px solid rgba(255, 255, 255, 0.12); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--display); font-weight: 800; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; color: var(--sun); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: #fff; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.78); }
.faq a { color: #fff; font-weight: 700; }

/* Blog */
.posts { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts.three { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip); overflow: hidden; transition: transform 0.15s; }
.post-card:hover { transform: translateY(-3px); }
.post-card .cover { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.post-card .cover svg { width: 38%; height: auto; }
.cover.c-iva { background: #f6e7d8; } .cover.c-cobrar { background: #efe6e0; } .cover.c-gastos { background: #f7eddd; } .cover.c-empezar { background: #e7e9fb; }
.post-card .body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.cat { display: inline-flex; width: fit-content; background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800; }
.post-card h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.35rem; line-height: 1.1; margin: 0; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.meta { color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { border: 0; cursor: pointer; background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 700; box-shadow: 0 3px 0 var(--lip); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }

/* Artículo */
.article { padding: 40px 0 20px; }
.crumbs { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.article h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); margin: 14px 0 0; }
.article .dek { font-size: 1.2rem; color: var(--ink-soft); margin: 16px 0 0; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.answer { margin: 28px 0; background: var(--paper); border: 2px solid var(--edge); border-radius: 24px; padding: 18px 20px; box-shadow: 0 4px 0 var(--lip); }
.answer b.k { font-family: var(--display); display: block; margin-bottom: 4px; }
.toc { background: var(--surface); border-radius: 20px; padding: 16px 20px; margin: 24px 0; }
.toc b { font-family: var(--display); }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { font-weight: 600; }
.prose h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; font-size: 1.8rem; line-height: 1.1; margin: 44px 0 12px; }
.prose h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.06rem; line-height: 1.65; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.98rem; background: var(--paper); border-radius: 18px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1.5px solid var(--edge); vertical-align: top; }
.prose th { background: var(--surface); font-family: var(--display); }
.tidy-says { display: flex; gap: 14px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 26px; padding: 18px; margin: 28px 0; }
.tidy-says svg { width: 64px; height: 64px; flex: none; }
.tidy-says p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.tidy-says b { color: var(--sun); }
.sources { font-size: 0.92rem; }
.sources li { margin-bottom: 6px; }
.disclaimer { font-size: 0.88rem; color: var(--ink-soft); border-top: 2px solid var(--edge); padding-top: 16px; margin-top: 36px; }
.cta-band { background: linear-gradient(145deg, #2c1f6e 0%, #3b3fd8 58%, #6a8dff 100%); color: #fff; border-radius: 34px; padding: 34px 26px; margin: 40px 0; display: grid; gap: 14px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* Pie */
.footer { padding: 70px 0 40px; }
.footer .big { font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(4rem, 18vw, 12rem); line-height: 0.85; margin: 0 0 30px; }
.footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .footer .cols { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer h4 { font-family: var(--display); font-weight: 800; margin: 0 0 10px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.footer a:hover { text-decoration: underline; }
.footer .small { color: var(--ink-soft); font-size: 0.88rem; }

/* Páginas legales */
.legal { padding-bottom: 40px; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin: 20px 0 8px; }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal td, .legal th { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1.5px solid var(--edge); }
.legal th { width: 34%; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; }

/* Movimiento con sentido */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.float { animation: float 3.2s ease-in-out infinite; }
.pop { animation: pop 0.5s ease-out both; transform-box: fill-box; transform-origin: center bottom; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .pop { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { color: var(--ink); transition: none; }
  .step[aria-selected="true"] .bar i { animation: none; width: 100%; }
}
.no-js .reveal { opacity: 1; transform: none; }
.no-js .statement .w { color: var(--ink); }

/* Utilidades (sin estilos en línea: la CSP no los permite) */
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.m0 { margin: 0; }
.soft-p { margin: 6px 0 0; color: var(--ink-soft); }
.sun-text { color: var(--sun); }
.float-card .ok.warn { background: var(--sun); }
.small-intro { margin: 0 0 12px; }
.token .dot.blue { background: var(--tuft); }
.token .dot.coral { background: var(--coral); }
svg [hidden] { display: none; }
/* Ajustes tras la revisión visual */
.hero .lead { margin-inline: auto; }
.hero h1 { max-width: 13em; }
.hero h1 .sun { display: block; }
.float-card.b { top: 300px; }
.footer a.btn { color: #fff; text-decoration: none; }
.footer a.btn:hover { text-decoration: none; }
@media (max-width: 760px) {
  .float-card.b { top: auto; bottom: 36px; right: 10px; left: auto; }
  .float-card { font-size: 0.82rem; padding: 8px 12px; }
}

/* ——— Segunda pasada de UX/UI ——— */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* Franja de oficios en movimiento */
.marquee { margin-top: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { flex: none; background: var(--paper); border: 2px solid var(--edge); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-family: var(--display); box-shadow: 0 3px 0 var(--lip); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .marquee { margin-top: 110px; } }

/* Los marrones */
.soft-title { color: #9a98a8; }
.cast { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
@media (min-width: 900px) { .cast { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cast-card {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; cursor: pointer;
  background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 4px 0 var(--lip);
  padding: 26px 14px 18px; min-height: 270px; transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.cast-card:hover { transform: translateY(-2px); }
.cast-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lip); }
.cast-card .marron { width: 96px; height: 104px; margin-bottom: 6px; transition: transform 0.3s; }
.cast-card:hover .marron { transform: rotate(-4deg); }
.cast-card b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.cast-card .bad, .cast-card .good { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.3; }
.cast-card .good { display: none; color: var(--ink); font-weight: 700; }
.cast-cta { margin-top: auto; display: inline-flex; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 0.85rem; box-shadow: 0 3px 0 #000; }
.cast-card[aria-pressed="true"] { background: #f4f6ff; border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; }
.cast-card[aria-pressed="true"] .bad { display: none; }
.cast-card[aria-pressed="true"] .good { display: block; }
.cast-card[aria-pressed="true"] .cast-cta { background: var(--tuft); box-shadow: 0 3px 0 #1a2fc0; }
.cast-done { text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; min-height: 1.6em; margin: 22px 0 0; }

/* Cómo funciona en móvil: pestañas en fila, detalle y teléfono */
.how-detail { display: none; }
@media (max-width: 899px) {
  .steps { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin-inline: -2px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; width: auto; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 3px 0 var(--lip); }
  .step h3, .step p, .step .bar { display: none !important; }
  .step .k { color: var(--ink); }
  .step[aria-selected="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 #000; }
  .step[aria-selected="true"] .k { color: #fff; }
  .step[aria-selected="true"] .n { background: var(--sun); color: var(--ink); }
  .how-detail { display: block; background: var(--cream); border-radius: 24px; padding: 18px; margin-top: -16px; }
  .how-detail h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.35rem; line-height: 1.1; margin: 0; }
  .how-detail p { color: var(--ink-soft); margin: 8px 0 0; }
  .how { gap: 24px; }
}

/* Botón fijo para apuntarse en el móvil */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; justify-content: center; align-items: center; gap: 6px; min-height: 56px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 0 #000, 0 14px 30px rgba(10, 8, 40, 0.3); transform: translateY(140%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sticky-cta span { color: var(--sun); }
.sticky-cta.show { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: flex; } .footer { padding-bottom: 110px; } }

/* Aparece al llegar */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Blog: destacado, barra de lectura y compartir */
.post-card.featured { display: grid; }
@media (min-width: 900px) {
  .posts.three .post-card.featured { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; }
  .post-card.featured .cover { aspect-ratio: auto; min-height: 320px; }
  .post-card.featured .body { align-content: center; padding: 34px; }
  .post-card.featured h3 { font-size: 2.2rem; }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--tuft); }
.share { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 2px 0 var(--lip); }
.inline-tool { margin: 28px 0; }
.inline-tool .tile { box-shadow: 0 4px 0 var(--lip); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .reveal { opacity: 1; transform: none; }
  .sticky-cta { transition: none; }
}
.cover.c-facturar { background: #ede3da; }
.how > *, .anywhere > *, .pricing > *, .dresser > * { min-width: 0; }

/* ——— Los marrones, vivos ———
   Cada uno con su manía mientras está sin resolver; al resolverlo, salto de alivio y respiración tranquila. */
.marron { overflow: visible; }
.marron .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.m-impagada .eyes { animation-delay: 1.3s; }
.m-ticket .eyes { animation-delay: 2.6s; }
.m-plazo .eyes { animation-delay: 3.4s; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }

.m-iva { animation: iva-grumble 3.6s ease-in-out infinite; transform-origin: 50% 54%; }
@keyframes iva-grumble { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-8deg) scale(1.03); } 40% { transform: rotate(6deg) scale(0.98); } 60% { transform: rotate(-3deg) scale(1.02); } }
.m-impagada { animation: impagada-bob 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes impagada-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.m-ticket { animation: ticket-crumple 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ticket-crumple { 0%, 100% { transform: skewX(0) scaleY(1); } 30% { transform: skewX(-5deg) scaleY(0.96); } 60% { transform: skewX(4deg) scaleY(1.02); } }
.m-plazo { animation: plazo-tick 2.4s steps(1, end) infinite; transform-origin: 50% 90%; }
@keyframes plazo-tick { 0%, 70%, 100% { transform: rotate(0); } 72% { transform: rotate(-5deg); } 76% { transform: rotate(5deg); } 80% { transform: rotate(-3deg); } 84% { transform: rotate(0); } }

.cast-card[aria-pressed="true"] .marron { animation: relief 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both, calm-breathe 3.6s 0.6s ease-in-out infinite; }
@keyframes relief { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.08, 0.94); } 70% { transform: translateY(0) scale(0.96, 1.04); } 100% { transform: none; } }
@keyframes calm-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.cast-card[aria-pressed="true"] .eyes { animation: none; }
.cast-card:hover:not([aria-pressed="true"]) .marron { animation-duration: 1.2s; }

/* Tidy se prueba cosas: el accesorio cae y Tidy rebota */
[data-skin] { transform-box: fill-box; transform-origin: center bottom; }
.dress-stage .wear-in { animation: wear-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes wear-in { 0% { transform: translateY(-38px) scale(0.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dress-stage .bounce { animation: tidy-bounce 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tidy-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.08, 0.92); } 70% { transform: scale(0.97, 1.04); } 100% { transform: scale(1); } }
.dress-stage .now { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 899px) {
  .dress-stage { position: sticky; top: 78px; z-index: 5; min-height: 250px; padding-top: 44px; }
  .dress-stage svg[data-tidy] { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .marron, .marron .eyes, .cast-card[aria-pressed="true"] .marron, .dress-stage .wear-in, .dress-stage .bounce { animation: none !important; }
}
@media (max-width: 899px) {
  .dress-stage { min-height: 268px; padding-bottom: 46px; }
  .dress-stage svg[data-tidy] { width: 156px; height: 156px; }
  .dress-stage .now { bottom: 10px; }
}

/* ——— Cuestionarios antes y después ——— */
.quiz { background: var(--paper); border: 2px solid var(--edge); border-radius: 30px; box-shadow: 0 4px 0 var(--lip); padding: 22px; margin: 28px 0; }
.quiz-post { background: #f4f6ff; border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; }
.quiz-head h2 { font-size: 1.8rem; margin: 10px 0 6px; }
.quiz-head p { margin: 0; color: var(--ink-soft); }
.quiz-qs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; counter-reset: q; }
.quiz-qs li { counter-increment: q; }
.quiz fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.quiz legend { font-weight: 800; margin-bottom: 8px; padding: 0; line-height: 1.3; }
.quiz legend::before { content: counter(q) ". "; color: var(--ink-soft); }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--cream); border: 2px solid transparent; cursor: pointer; font-weight: 600; line-height: 1.3; }
.quiz-post .opt { background: #fff; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); margin: 0; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt.ok { border-color: #1f9d55; background: #e8f7ee; }
.opt.ko { border-color: #d64545; background: #fdecec; }
.why { margin: 2px 4px 0; color: var(--ink-2); font-size: 0.94rem; }
.quiz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.quiz-score { margin: 0; font-weight: 800; }
.quiz-score .big { font-family: var(--display); font-size: 1.6rem; }
.quiz-compare { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.quiz-compare span { background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.quiz-compare span.now { background: var(--ink); color: #fff; }

/* ——— Tidaaa Aprende ——— */
.aprende-hero { display: grid; gap: 24px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) { .aprende-hero { grid-template-columns: 1.4fr 0.6fr; } }
.aprende-tidy svg { width: min(260px, 60vw); margin-inline: auto; animation: float 3.2s ease-in-out infinite; }
.progress-chip { display: inline-flex; gap: 6px; background: var(--paper); border: 2px solid var(--edge); border-radius: 999px; padding: 8px 14px; font-weight: 700; margin-top: 18px; }
.track { border-radius: 34px; padding: 26px 20px; margin-top: 16px; border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--lip); background: var(--paper); }
.track.t-blue { background: #f4f6ff; border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; }
.track.t-sun { background: #fff8dc; border-color: #f3dc8a; box-shadow: 0 4px 0 #e5c869; }
.track.t-coral { background: #fff1ed; border-color: #ffcfc3; box-shadow: 0 4px 0 #f5b4a4; }
.track-head p { margin: 6px 0 0; color: var(--ink-soft); font-weight: 600; }
.lessons { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 14px; text-decoration: none; background: #fff; border: 2px solid var(--edge); border-radius: 22px; padding: 14px 16px; transition: transform 0.12s; }
.lesson:hover { transform: translateY(-2px); }
.lesson .ln { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.lesson .lt { flex: 1; display: grid; gap: 2px; }
.lesson .lt b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; }
.lesson .lt small { color: var(--ink-soft); font-weight: 600; }
.lesson .ls { flex: none; background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.85rem; }
.lesson .ls.done { background: var(--tuft); color: #fff; }

/* Anatomía tocable (nómina y factura) */
.anatomy { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 760px) { .anatomy { grid-template-columns: 1.2fr 0.8fr; align-items: start; } .explain { position: sticky; top: 100px; } }
.doc { background: #fff; border: 2px solid var(--edge); border-radius: 24px; box-shadow: 0 4px 0 var(--lip); padding: 10px; display: grid; gap: 4px; }
.doc-h { padding: 8px 10px 10px; display: grid; }
.doc-h b { font-family: var(--display); font-size: 1.15rem; }
.doc-h small { color: var(--ink-soft); font-weight: 600; }
.row-a { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 2px solid transparent; background: var(--cream); border-radius: 14px; padding: 10px 12px; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.row-a:hover { border-color: var(--edge); }
.row-a[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.row-a.minus span:last-child { color: #b4392c; }
.row-a.total { background: var(--surface); }
.row-a.yours { background: var(--ink); color: #fff; }
.row-a.yours span:last-child { color: var(--sun); }
.explain { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px 18px; font-weight: 600; line-height: 1.4; min-height: 90px; }
.explain b { color: var(--sun); font-family: var(--display); }

.tool { margin: 24px 0; }
.mini-input { width: 72px; min-height: 40px; border-radius: 12px; border: 2px solid var(--edge); padding: 0 8px; font: inherit; font-weight: 800; text-align: right; }
.range { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-weight: 700; margin-top: 14px; }
.range input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); }
.range b { font-family: var(--display); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-weight: 700; }
.bar-row .bar { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: var(--surface); overflow: hidden; order: 3; }
.bar-row .bar i { display: block; height: 100%; border-radius: 99px; }
.b50 { width: 50%; background: var(--ink); } .b30 { width: 30%; background: var(--coral); } .b20 { width: 20%; background: var(--tuft); }
.cover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
@media (min-width: 760px) { .cover-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-card { background: #fff; border: 2px solid var(--edge); border-radius: 22px; box-shadow: 0 3px 0 var(--lip); padding: 16px; display: grid; gap: 4px; }
.mini-card b { font-family: var(--display); font-size: 1.4rem; }
.mini-card span { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.todo { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.todo label { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border-radius: 14px; padding: 12px; font-weight: 700; cursor: pointer; }
.todo input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); margin: 0; }
.todo label:has(input:checked) span { text-decoration: line-through; color: var(--ink-soft); }
.learn-band { background: #f4f6ff; border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; } .learn-band .soft-p { max-width: 46rem; }
.row-a span:last-child, .out .line > :last-child { white-space: nowrap; } .row-a span:first-child { min-width: 0; }
.cover.c-autonomos { background: #ffe9e3; } .cover.c-empleo { background: #efe6e0; } .cover.c-dinero { background: #fbf0d6; } .cover.c-novedades { background: #ece6e1; } .more-list li { margin-bottom: 6px; font-weight: 700; }

/* ——— Aprende, como un juego ——— */
.learn-hero { display: grid; gap: 20px; align-items: center; border-radius: 40px; padding: 34px 22px; background: linear-gradient(145deg, #2c1f6e 0%, #3b3fd8 58%, #6a8dff 100%); color: #fff; margin-bottom: 18px; overflow: hidden; }
@media (min-width: 900px) { .learn-hero { grid-template-columns: 1.25fr 0.75fr; padding: 48px; } }
.learn-hero h1 { margin: 18px 0 12px; font-size: clamp(2.6rem, 7.5vw, 4.6rem); }
.lh-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 34rem; }
.lh-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-ghost-light { color: #fff; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.lh-stage { position: relative; display: grid; justify-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 30px; padding: 18px; }
.lh-stage > svg { width: 200px; height: 200px; }
.lh-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip-dark { background: rgba(0, 0, 0, 0.28); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.88rem; }
.chip-dark.streak::before { content: "● "; color: var(--sun); }
.xp { width: 100%; }
.xp-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.xp-top b { font-family: var(--display); font-size: 1.15rem; }
.xp-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); overflow: hidden; margin-top: 6px; }
.xp-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sun); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lh-progress { margin: 0; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.learn-hero.fam .lh-stage svg { animation: float 3.2s ease-in-out infinite; }

.reto { background: var(--ink); color: #fff; border-radius: 30px; padding: 22px; margin: 0 0 16px; box-shadow: 0 4px 0 #000; }
.reto .cat { background: var(--sun); color: var(--ink); }
.reto h2 { margin: 10px 0 4px; }
.reto-q { font-weight: 800; font-size: 1.15rem; margin: 10px 0 12px; }
.reto-opts { display: grid; gap: 8px; }
@media (min-width: 760px) { .reto-opts { grid-template-columns: repeat(3, 1fr); } }
.reto .opt { color: var(--ink); text-align: left; border: 2px solid transparent; font: inherit; font-weight: 700; }
.reto .opt:disabled { cursor: default; opacity: 1; }
.reto .why { color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
.reto .why a { color: var(--sun); font-weight: 800; }
.reto-tomorrow { color: rgba(255, 255, 255, 0.6); font-weight: 700; margin: 4px 0 0; }

.medals { margin-top: 30px; }
.medal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .medal-grid { grid-template-columns: repeat(4, 1fr); } }
.medal { display: grid; justify-items: center; text-align: center; gap: 4px; background: var(--paper); border: 2px solid var(--edge); border-radius: 24px; padding: 16px 10px; color: #c9c7cf; }
.medal svg { width: 58px; height: 58px; }
.medal b { color: var(--ink-soft); font-family: var(--display); }
.medal small { color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }
.medal.got { color: var(--tuft); border-color: #c9cffb; background: #f4f6ff; box-shadow: 0 4px 0 #b9c0f5; }
.medal.got b { color: var(--ink); }
.medal.got svg { animation: pop 0.5s ease-out both; }

.diploma-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--sun); border-radius: 30px; padding: 24px; margin-top: 18px; box-shadow: 0 4px 0 #d4a61a; }
.diploma-cta p { margin: 6px 0 0; color: #4a3f10; font-weight: 600; }

.roadmap { margin-top: 36px; }
.rm-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .rm-grid { grid-template-columns: repeat(3, 1fr); } }
.rm { background: var(--paper); border: 2px solid var(--edge); border-radius: 26px; padding: 20px; box-shadow: 0 4px 0 var(--lip); }
.rm h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 10px 0 6px; }
.rm p { margin: 0; color: var(--ink-soft); }
.rm.now { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 #000; }
.rm.now p { color: rgba(255, 255, 255, 0.75); }
.rm.now .cat { background: var(--sun); color: var(--ink); }

.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; box-shadow: 0 10px 30px rgba(10, 8, 40, 0.3); animation: toast-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) both; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast b { color: var(--sun); }
.toast.out { opacity: 0; transform: translate(-50%, -10px); transition: 0.4s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -14px) scale(0.95); } to { opacity: 1; transform: translateX(-50%); } }

/* Pacto familiar */
.pact { display: grid; gap: 20px; align-items: start; margin-top: 40px; }
@media (min-width: 900px) { .pact { grid-template-columns: 1fr 1fr; } }
.pact-card { position: relative; background: #fffdf5; border: 3px dashed #e5c869; border-radius: 30px; padding: 28px 24px; overflow: hidden; }
.pact-k { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: #8a6d12; margin: 0; }
.pact-t { font-size: 1.15rem; line-height: 1.5; }
.pact-t b { font-family: var(--display); }
.pact-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 18px; }
.pact-sign span { border-top: 2px solid var(--ink); padding-top: 6px; font-weight: 700; color: var(--ink-soft); font-size: 0.85rem; }
.pact-tidy { position: absolute; right: -18px; bottom: -26px; width: 110px; opacity: 0.9; }

/* Diploma */
.diploma-card { position: relative; text-align: center; background: #fffdf5; border: 6px double #e5c869; border-radius: 30px; padding: 34px 24px; margin-top: 16px; }
.diploma-card .d-tidy svg { width: 130px; height: 130px; margin: 0 auto; }

.d-k { font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6d12; margin: 10px 0 0; }
.diploma-card h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin: 6px 0; }
.d-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.6rem); border-bottom: 2px solid var(--ink); display: inline-block; padding: 0 12px 4px; margin: 8px 0 14px; }
.d-date { color: var(--ink-soft); font-weight: 700; }
.d-foot { font-size: 0.85rem; color: var(--ink-soft); margin-top: 20px; }

/* Patrimonio */
.nw-grid { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 760px) { .nw-grid { grid-template-columns: 1fr 1fr; } }
.nw-grid h4 { margin: 0 0 8px; font-family: var(--display); }
.nw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.nw-row input { width: 110px; min-height: 42px; border-radius: 12px; border: 2px solid var(--edge); padding: 0 10px; font: inherit; font-weight: 800; text-align: right; }

@media print {
  .nav-wrap, .footer, .no-print, .skip, .sticky-cta, #confetti, .toast, .pact > div:first-child, .learn-hero, .bento, #regalo { display: none !important; }
  body { background: #fff; }
  .pact { display: block; }
}
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .medal.got svg { animation: none; } }


/* ——— Aprende: camino, meta diaria, armario, tarjetas y jefes finales ——— */
.goal-wrap { position: relative; width: 236px; height: 236px; display: grid; place-items: center; }
.goal-wrap > svg[data-learn-tidy] { width: 176px; height: 176px; }
.goal-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.goal-ring [data-goal-ring] { transition: stroke-dashoffset 0.8s cubic-bezier(0.3, 1.2, 0.5, 1); }
.goal-txt { margin: 0; color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.goal-txt b { color: var(--sun); font-family: var(--display); }
.sound { border: 0; color: #fff; font: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer; }
.sound[aria-pressed="false"] { opacity: 0.6; }
.wardrobe-mini { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wardrobe-mini button { border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.2); color: #fff; border-radius: 14px; padding: 6px 10px; font: inherit; font-weight: 800; font-size: 0.82rem; cursor: pointer; line-height: 1.15; }
.wardrobe-mini button small { display: block; font-weight: 600; font-size: 0.68rem; opacity: 0.75; }
.wardrobe-mini button[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.wardrobe-mini button.locked { opacity: 0.45; cursor: not-allowed; }
.wardrobe-mini button.locked small::before { content: "🔒 "; }

.path-track { border-radius: 34px; padding: 26px 18px 18px; margin-top: 16px; border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--lip); background: var(--paper); }
.path-track.t-blue { background: #f4f6ff; border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; --node: #3b3fd8; --node-lip: #22258f; }
.path-track.t-sun { background: #fff8dc; border-color: #f3dc8a; box-shadow: 0 4px 0 #e5c869; --node: #e8b400; --node-lip: #a77f00; }
.path-track.t-coral { background: #fff1ed; border-color: #ffcfc3; box-shadow: 0 4px 0 #f5b4a4; --node: #ff6b57; --node-lip: #c4442f; }
.path { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; position: relative; }
.node { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.node.n1 { margin-left: 14%; } .node.n2 { margin-left: 26%; } .node.n3 { margin-left: 12%; }
.node .dot { flex: none; position: relative; width: 66px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #d9d7e3; box-shadow: 0 6px 0 #b4b1c4; color: #fff; text-decoration: none; transition: transform 0.15s; }
.node .dot:active { transform: translateY(4px); box-shadow: 0 2px 0 #b4b1c4; }
.node .num { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.node.done .dot { background: var(--node, var(--ink)); box-shadow: 0 6px 0 var(--node-lip, #000); }
.node.done .num { font-size: 0; }
.node.done .num::after { content: "✓"; font-size: 1.6rem; }
.node.current .dot { background: var(--ink); box-shadow: 0 6px 0 #000, 0 0 0 6px rgba(255, 210, 63, 0.7); animation: node-pulse 1.8s ease-in-out infinite; }
.node .nl { min-width: 0; display: grid; gap: 2px; }
.node .nl b { line-height: 1.2; }
.node .nl small { color: var(--ink-soft); font-weight: 600; }
.node .ls { justify-self: start; margin-top: 4px; background: rgba(23, 21, 43, 0.07); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 0.78rem; }
.node .ls.done { background: var(--ink); color: #fff; }
.node .here { display: none; position: absolute; left: 8px; top: -26px; width: 50px; pointer-events: none; }
.node .here svg { width: 50px; height: 50px; animation: float 3s ease-in-out infinite; }
.node.current .here { display: block; }
.node.current { padding-top: 26px; }
.node.boss .dot { width: 86px; height: 82px; background: #3a2618; box-shadow: 0 6px 0 #1d120a; filter: grayscale(0.7) brightness(0.9); }
.node.boss .dot .marron { width: 60px; height: 66px; }
.node.boss.open .dot { filter: none; animation: node-pulse 1.6s ease-in-out infinite; box-shadow: 0 6px 0 #1d120a, 0 0 0 6px rgba(255, 107, 87, 0.55); }
.node.boss.beaten .dot { filter: none; background: var(--node, var(--ink)); box-shadow: 0 6px 0 var(--node-lip, #000); }
.node.boss.open .ls { background: #ff6b57; color: #fff; }
.node.boss.beaten .ls { background: var(--ink); color: #fff; }
@keyframes node-pulse { 50% { transform: scale(1.06); } }

.quiz.cards .quiz-qs { min-height: 0; }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.qz-dots { display: flex; gap: 6px; }
.qz-dots i { width: 34px; height: 8px; border-radius: 999px; background: rgba(23, 21, 43, 0.12); transition: background 0.3s; }
.qz-dots i.on { background: var(--ink); }
.qz-dots i.seen { background: #8f8ca6; }
.qz-dots i.ok { background: #1f9d55; }
.qz-dots i.ko { background: #d64545; }
.qz-combo { font-family: var(--display); font-weight: 800; color: #ff6b57; min-height: 1.2em; }
.qz-combo.pop { animation: combo-pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes combo-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.quiz.cards .quiz-qs > li:not([hidden]) { animation: card-in 0.35s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateX(28px); } }
.why[data-say]::before { content: attr(data-say) " "; font-weight: 800; color: var(--ink); }
.qz-next { justify-self: start; margin-top: 8px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.opt:disabled, .opt:has(input:disabled) { cursor: default; }

.arena { background: linear-gradient(160deg, #2c1f6e, #3b3fd8); color: #fff; border-radius: 34px; padding: 18px; box-shadow: 0 6px 0 #17104a; margin-top: 12px; }
.arena-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hearts { display: flex; gap: 4px; font-size: 1.6rem; color: #ff6b57; line-height: 1; }
.hearts span { transition: transform 0.3s, opacity 0.3s; }
.hearts span.lost { opacity: 0.25; transform: scale(0.7); filter: grayscale(1); }
.boss-stage { display: grid; justify-items: center; gap: 8px; padding: 10px 0 6px; }
.boss-hp { width: 100%; display: grid; gap: 6px; }
.boss-hp span { font-family: var(--display); font-weight: 800; }
.hp { height: 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); overflow: hidden; }
.hp i { display: block; height: 100%; width: 100%; background: #6be39a; border-radius: inherit; transition: width 0.5s cubic-bezier(0.3, 1.2, 0.5, 1), background 0.3s; }
.hp i.low { background: #ffd23f; }
.boss-sprite { width: 150px; height: 166px; }
.boss-sprite .boss-svg { width: 100%; height: 100%; animation: boss-idle 2.4s ease-in-out infinite; }
.boss-sprite.hit .boss-svg { animation: boss-hit 0.45s; }
.boss-sprite.beaten .boss-svg { animation: relief 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both, calm-breathe 3.6s 0.6s ease-in-out infinite; }
@keyframes boss-idle { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes boss-hit { 0% { filter: brightness(3); transform: translateX(0); } 30% { transform: translateX(-12px) rotate(-6deg); } 60% { transform: translateX(10px) rotate(5deg); } 100% { filter: none; transform: none; } }
.boss-say { margin: 0; background: #fff; color: var(--ink); border-radius: 18px 18px 18px 6px; padding: 8px 14px; font-weight: 800; max-width: 100%; }
.boss-card { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 18px; margin-top: 12px; display: grid; gap: 10px; }
.boss-card h1, .boss-card h2 { margin: 0; }
.boss-card p { margin: 0; }
.boss-n { color: var(--ink-soft); font-weight: 800; font-size: 0.85rem; }
.boss-q { font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.boss-opts { display: grid; gap: 8px; }
.boss-opts .opt { text-align: left; font: inherit; font-weight: 700; color: var(--ink); width: 100%; }
.boss-card .btn { justify-self: start; }
.boss-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.boss-review { margin: 0; padding-left: 20px; }
.boss-review a { color: var(--ink); font-weight: 700; }
.reto-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
@media (min-width: 760px) {
  .path { padding-left: 6%; }
  .boss-sprite { width: 190px; height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .node.current .dot, .node.boss.open .dot, .node .here svg, .boss-sprite .boss-svg, .boss-sprite.hit .boss-svg, .shake, .quiz.cards .quiz-qs > li, .qz-combo.pop { animation: none !important; }
}
.btn[hidden] { display: none; }
.quiz.cards legend::before { content: attr(data-n) ". "; }

/* ——— Aprende paso a paso (modo juego) ——— */
body.playing .nav-wrap, body.playing .sticky-cta { display: none; }
.lbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; background: var(--cream); }
.lbar-x { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--ink-soft); font-weight: 800; background: var(--surface); }
.lbar-track { flex: 1; height: 14px; border-radius: 999px; background: rgba(23, 21, 43, 0.1); overflow: hidden; }
.lbar-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3b3fd8, #6a8dff); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); transition: width 0.6s cubic-bezier(0.3, 1.2, 0.5, 1); }
.lbar-combo { flex: none; min-width: 0; font-family: var(--display); font-weight: 800; color: #ff6b57; font-size: 0.95rem; }
.lbar-combo:empty { display: none; }
body.playing .crumbs { margin-top: 4px; }
.lstep { min-height: 46vh; }
.lstep .quiz { margin-top: 12px; }
.lstep .prose > h2:first-child { margin-top: 8px; }
.lstep.in-r { animation: step-in-r 0.42s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
.lstep.in-l { animation: step-in-l 0.42s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
@keyframes step-in-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes step-in-l { from { opacity: 0; transform: translateX(-40px); } }
.lnav { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin: 22px 0 8px; }
.lnav [data-cont] { min-width: 168px; }

.results { text-align: center; background: linear-gradient(160deg, #2c1f6e, #3b3fd8); color: #fff; border-radius: 34px; padding: 30px 20px 26px; margin: 14px 0 28px; box-shadow: 0 6px 0 #17104a; display: grid; justify-items: center; gap: 8px; }
.results.show { animation: res-in 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes res-in { from { opacity: 0; transform: scale(0.85) translateY(20px); } }
.results h2 { margin: 6px 0 0; }
.res-sub { margin: 0; color: rgba(255, 255, 255, 0.85); }
.res-sub b { color: var(--sun); }
.res-stars { display: flex; gap: 6px; align-items: flex-end; }
.res-stars svg { width: 64px; height: 64px; }
.res-stars svg:nth-child(2) { width: 84px; height: 84px; }
.res-stars path { fill: rgba(255, 255, 255, 0.16); stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; transition: fill 0.2s; }
.res-stars svg.on path { fill: var(--sun); stroke: #d4a61a; }
.res-stars svg.on { animation: star-pop 0.55s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes star-pop { 0% { transform: scale(0.2) rotate(-40deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
.res-stars.sm svg { width: 48px; height: 48px; } .res-stars.sm svg:nth-child(2) { width: 60px; height: 60px; }
.boss-card .res-stars path { fill: rgba(23, 21, 43, 0.1); stroke: rgba(23, 21, 43, 0.2); }
.boss-card .res-stars svg.on path { fill: var(--sun); stroke: #d4a61a; }
.res-xp { display: flex; align-items: baseline; gap: 8px; background: rgba(0, 0, 0, 0.25); border-radius: 999px; padding: 8px 18px; }
.res-xp b { font-family: var(--display); font-size: 2rem; color: var(--sun); }
.res-xp b::before { content: "+"; }
.res-actions { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 10px; }
.res-actions .btn { width: 100%; justify-content: center; }
.results .btn-ghost { color: #fff; }

/* Mini estrellas en el camino */
.mini-stars { position: absolute; left: 7px; top: calc(100% - 18px); display: flex; gap: 2px; pointer-events: none; }
.node.current .mini-stars, .node:not(.done) .mini-stars { display: none; }
.mini-stars i { width: 16px; height: 16px; background: rgba(23, 21, 43, 0.15); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 72% 61%, 80% 100%, 50% 79%, 20% 100%, 28% 61%, 0 38%, 37% 35%); }
.mini-stars i.on { background: #ffc93d; }
.node { padding-bottom: 14px; }

/* Subir de nivel */
.levelup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(23, 21, 43, 0.6); backdrop-filter: blur(4px); animation: fade-in 0.25s both; }
.levelup.out { animation: fade-out 0.3s both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.lu-card { width: min(100%, 380px); text-align: center; background: linear-gradient(160deg, #2c1f6e, #3b3fd8); color: #fff; border-radius: 34px; padding: 26px 20px; box-shadow: 0 8px 0 #17104a; animation: res-in 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; display: grid; justify-items: center; gap: 6px; }
.lu-card h2 { margin: 0; color: var(--sun); }
.lu-card p { margin: 0; }
.lu-k { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; opacity: 0.8; }
.lu-tidy svg { width: 170px; height: 170px; animation: evolve 1.1s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes evolve { 0% { transform: scale(0.6); filter: brightness(3) saturate(0); } 40% { transform: scale(1.15) rotate(-6deg); filter: brightness(2); } 100% { transform: none; filter: none; } }
.lu-gift { background: rgba(0, 0, 0, 0.25); border-radius: 999px; padding: 6px 14px; }
.lu-gift b { color: var(--sun); }
.lu-card .btn { margin-top: 10px; min-width: 180px; justify-content: center; }

/* Juego de clasificar */
.sortgame, .flipgame { background: var(--paper); border: 2px solid var(--edge); border-radius: 30px; box-shadow: 0 4px 0 var(--lip); padding: 20px; margin: 12px 0; }
.sg-prompt { margin: 0 0 12px; font-size: 1.05rem; }
.sg-stage { display: grid; gap: 10px; min-height: 180px; align-content: start; }
.sg-deck { position: relative; display: grid; }
.sg-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 30px 22px; min-height: 120px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; box-shadow: 0 6px 0 #000; animation: card-in 0.35s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
.sg-card.fly-l { animation: fly-l 0.5s cubic-bezier(0.5, 0, 0.75, 0) both; }
.sg-card.fly-r { animation: fly-r 0.5s cubic-bezier(0.5, 0, 0.75, 0) both; }
.sg-card.good { background: #1f9d55; box-shadow: 0 6px 0 #127a3e; }
.sg-card.bad { background: #d64545; box-shadow: 0 6px 0 #a52f2f; }
@keyframes fly-l { 30% { transform: translateY(-10px) rotate(-4deg); } to { transform: translate(-60%, 80px) rotate(-18deg) scale(0.5); opacity: 0; } }
@keyframes fly-r { 30% { transform: translateY(-10px) rotate(4deg); } to { transform: translate(60%, 80px) rotate(18deg) scale(0.5); opacity: 0; } }
.sg-why { margin: 0; min-height: 2.6em; font-size: 0.95rem; color: var(--ink-2); }
.sg-why.ok b { color: #1f9d55; } .sg-why.ko b { color: #d64545; }
.sg-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.sg-bucket { border: 0; border-radius: 22px; padding: 16px 10px; font: inherit; font-weight: 800; cursor: pointer; display: grid; gap: 4px; justify-items: center; background: #eef0ff; color: var(--ink); box-shadow: 0 5px 0 #c9cffb; transition: transform 0.1s; }
.sg-bucket.b1 { background: #fff1ed; box-shadow: 0 5px 0 #f5b4a4; }
.sg-bucket:active { transform: translateY(4px); box-shadow: 0 1px 0 #c9cffb; }
.sg-bucket b { font-family: var(--display); font-size: 1.3rem; }
.sg-bucket.bump { animation: bump 0.35s; }
@keyframes bump { 50% { transform: scale(1.08); } }
.sg-score { margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--ink-soft); }
.sortgame.done .sg-buckets { opacity: 0.5; pointer-events: none; }
.sortgame.done .sg-stage { min-height: 0; }

/* Tarjetas que se giran */
.flip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flip { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; perspective: 800px; min-height: 150px; text-align: left; }
.flip-in { position: relative; display: block; height: 100%; min-height: 150px; transition: transform 0.55s cubic-bezier(0.3, 1.3, 0.5, 1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; border-radius: 22px; padding: 14px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-align: center; box-shadow: 0 5px 0 #000; }
.flip-front::after { content: "↻"; position: absolute; right: 12px; bottom: 8px; opacity: 0.5; font-size: 0.9rem; }
.flip-back { background: #fff8dc; color: var(--ink); transform: rotateY(180deg); font-size: 0.88rem; line-height: 1.35; border: 2px solid #f3dc8a; place-items: center start; overflow: auto; }

/* Entreno */
.train-tile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--edge); border-radius: 28px; box-shadow: 0 4px 0 var(--lip); padding: 14px 18px; margin: 0 0 16px; transition: transform 0.12s; }
.train-tile:hover { transform: translateY(-2px); }
.train-tile .tt-ico svg { width: 52px; height: 58px; }
.train-tile .tt-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.train-tile .tt-txt b { font-family: var(--display); font-size: 1.15rem; }
.train-tile .tt-txt small { color: var(--ink-soft); font-weight: 600; }
.train-tile .tt-go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.train-tile.due { border-color: #ffcfc3; box-shadow: 0 4px 0 #f5b4a4; background: #fff1ed; }
.train-tile.due .tt-go { background: #ff6b57; animation: node-pulse 1.8s ease-in-out infinite; }
.train-stage { display: grid; justify-items: center; gap: 10px; padding: 10px 0 4px; }
.train-tidy svg { width: 110px; height: 110px; }
.train-tidy.hop { animation: hop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
.train-tidy.sad { animation: sad 0.6s; }
@keyframes hop { 40% { transform: translateY(-26px) scale(1.06, 0.95); } 70% { transform: translateY(0) scale(1.08, 0.9); } }
@keyframes sad { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.train .qz-dots i { background: rgba(255, 255, 255, 0.2); }
.train .qz-dots i.on { background: #fff; }
.boss-card.in-r { animation: step-in-r 0.4s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
.boss-card .qz-combo:empty { display: none; }
.why a { color: var(--ink); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .lstep.in-r, .lstep.in-l, .results.show, .res-stars svg.on, .lu-card, .lu-tidy svg, .sg-card, .sg-card.fly-l, .sg-card.fly-r, .sg-bucket.bump, .train-tidy.hop, .train-tidy.sad, .train-tile.due .tt-go, .boss-card.in-r { animation: none !important; }
  .flip-in, .lbar-track i { transition: none; }
}
.lsteps, .arena, .quiz.cards { overflow-x: clip; }

.res-actions .btn { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 560px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip, .flip-in { min-height: 128px; }
  .flip-back { font-size: 0.92rem; }
}

/* ——— Simulador «Tu primer negocio» ——— */
.h-sm { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.path-track.t-lilac { background: #f6f3ff; border-color: #ddd3fb; box-shadow: 0 4px 0 #cbbdf5; --node: #6b4fd8; --node-lip: #3f2b9a; }
.sim-tile { position: relative; display: grid; gap: 6px; text-decoration: none; color: #fff; background: linear-gradient(150deg, #2c1f6e, #6b4fd8); border-radius: 30px; padding: 22px 20px 20px; margin: 0 0 16px; box-shadow: 0 5px 0 #17104a; overflow: hidden; transition: transform 0.12s; }
.sim-tile:hover { transform: translateY(-2px); }
.sim-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, 0.35), transparent 70%); }
.sim-tile .st-k { justify-self: start; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 0.78rem; }
.sim-tile b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.sim-tile small { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; max-width: 30rem; }
.sim-tile .st-go { justify-self: start; margin-top: 6px; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 800; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }

.sim { background: linear-gradient(160deg, #2c1f6e, #3b3fd8); color: #fff; border-radius: 34px; padding: 18px; box-shadow: 0 6px 0 #17104a; margin-top: 12px; overflow-x: clip; }
.sim.broke { background: linear-gradient(160deg, #4a1d2e, #8a2c3a); }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sim-top h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.sim-cal { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; }
.sim-cal li { position: relative; text-align: center; font-size: 0.62rem; font-weight: 800; padding: 6px 0 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); transition: background 0.3s; }
.sim-cal li.past { background: rgba(255, 255, 255, 0.22); color: #fff; }
.sim-cal li.now { background: var(--sun); color: var(--ink); transform: translateY(-2px); box-shadow: 0 3px 0 #d4a61a; }
.sim-cal li.tax::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff6b57; }
.sim-cal li.end { background: rgba(255, 107, 87, 0.25); }
.sim-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.ss { background: rgba(0, 0, 0, 0.22); border-radius: 16px; padding: 8px 8px; display: grid; gap: 2px; min-width: 0; }
.ss small { font-size: 0.66rem; font-weight: 700; opacity: 0.8; line-height: 1.15; }
.ss b { font-family: var(--display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss.hucha b { color: var(--sun); }
.ss.flash { animation: flash 0.6s; }
@keyframes flash { 30% { background: rgba(255, 255, 255, 0.35); transform: scale(1.05); } }
.sim-tidy { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sim-tidy-svg { flex: none; }
.sim-tidy-svg svg { width: 64px; height: 64px; }
.sim-tidy-svg.hop { animation: hop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sim-tidy-svg.sad { animation: sad 0.6s; }
.sim-tip { margin: 0; background: #fff; color: var(--ink); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 0.93rem; line-height: 1.35; flex: 1; min-width: 0; }
.sim-card { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 16px; margin-top: 12px; display: grid; gap: 10px; }
.sim-card.in-r { animation: step-in-r 0.4s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
.sim-card h2 { margin: 0; }
.sim-pick { display: grid; gap: 8px; }
.sim-job, .sim-seg button, .sim-opts .opt { border: 2px solid transparent; background: var(--cream); border-radius: 18px; padding: 12px 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: grid; gap: 2px; }
.sim-job b, .sim-seg b, .sim-opts b { font-weight: 800; }
.sim-job small, .sim-seg small, .sim-opts small { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; }
.sim-job:hover { border-color: var(--ink); }
.sim-month { margin: 0; font-weight: 800; color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sim-q { margin: 4px 0 0; font-weight: 800; }
.sim-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sim-seg button { padding: 10px 8px; text-align: center; }
.sim-seg button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.sim-seg button[aria-checked="true"] small { color: rgba(255, 255, 255, 0.75); }
.sim-hucha { display: flex; gap: 12px; align-items: center; background: #fff8dc; border: 2px solid #f3dc8a; border-radius: 18px; padding: 12px 14px; cursor: pointer; }
.sim-hucha input { width: 24px; height: 24px; accent-color: var(--ink); flex: none; margin: 0; }
.sim-hucha span { display: grid; gap: 2px; }
.sim-hucha small { color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }
.sim-go { justify-self: stretch; justify-content: center; }
.sim-res { display: grid; gap: 4px; }
.sr { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--cream); font-size: 0.93rem; }
.sr b { white-space: nowrap; }
.sr.big { background: var(--ink); color: #fff; font-weight: 800; }
.sr.big b { color: var(--sun); font-family: var(--display); font-size: 1.2rem; }
.sr.minus b { color: #c03a3a; }
.sr.plus b { color: #1f9d55; }
.sr.hucha { background: #fff8dc; }
.sr.total { background: #eef0ff; font-weight: 800; }
.sim-ev { border-radius: 20px; padding: 16px; color: #fff; background: #9c6644; }
.sim-ev.ev-ticket { background: #b07a45; }
.sim-ev.ev-tentacion { background: #ff6b57; }
.sim-ev-k { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.sim-ev p { margin: 6px 0 0; }
.sim-opts { display: grid; gap: 8px; }
.sim-hacienda { display: grid; gap: 8px; justify-items: center; text-align: center; }
.sim-hacienda .sim-res { width: 100%; text-align: left; }
.sim-marron svg { width: 96px; height: 104px; }
.sim-hacienda.ko .sim-marron svg { animation: boss-hit 0.5s; }
.sim-hacienda.ok .sim-marron svg { animation: relief 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@media (max-width: 420px) { .sim-stats { grid-template-columns: repeat(2, 1fr); } .sim-cal li { font-size: 0.55rem; } }
@media (prefers-reduced-motion: reduce) { .ss.flash, .sim-tidy-svg.hop, .sim-tidy-svg.sad, .sim-card.in-r, .sim-hacienda .sim-marron svg { animation: none !important; } }
.sim-stars-why { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.sim-stars-why li { color: var(--ink-soft); }
.sim-stars-why li::before { content: "☆ "; color: #c9c6d6; }
.sim-stars-why li.on { color: var(--ink); font-weight: 700; }
.sim-stars-why li.on::before { content: "★ "; color: #ffc93d; }


/* ——— Entradas por perfil ——— */
.who-block h2 { margin: 0; }
.who-sub { margin: 6px 0 16px; color: var(--ink-soft); font-weight: 600; }
.who-grid { display: grid; gap: 10px; }
.who { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--edge); border-radius: 22px; padding: 14px 18px; box-shadow: 0 4px 0 var(--lip); transition: transform 0.12s, border-color 0.12s; }
.who:hover { transform: translateY(-2px); border-color: var(--ink); }
.who b { font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.who small { grid-column: 1; color: var(--ink-soft); font-weight: 600; }
.who span { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (min-width: 760px) { .who-grid.big { grid-template-columns: repeat(3, 1fr); } .who-grid { grid-template-columns: repeat(2, 1fr); } }
.para-block { margin-top: 34px; }
.para-block > h2 { margin: 0 0 14px; }
.para-pains { display: grid; gap: 10px; }
@media (min-width: 760px) { .para-pains { grid-template-columns: repeat(3, 1fr); } }
.para-pain { border-radius: 24px; padding: 16px 18px; color: #fff; background: #9c6644; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.para-pain.m-iva { background: #c47a35; } .para-pain.m-plazo { background: #5a3520; } .para-pain.m-ticket { background: #b07a45; }
.para-pain b { font-family: var(--display); font-size: 1.15rem; }
.para-pain p { margin: 4px 0 0; }
.para-legal { background: #fff8dc; border: 2px solid #f3dc8a; border-radius: 28px; padding: 20px; box-shadow: 0 4px 0 #e5c869; }
.para-legal .bullets { margin: 0; }
.para-has { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.para-has li { background: var(--paper); border: 2px solid var(--edge); border-radius: 20px; padding: 12px 16px; display: grid; gap: 6px; }
.para-has p { margin: 0; }
.para-has .tag { justify-self: start; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 0.76rem; background: var(--ink); color: #fff; }
.para-has .k-aprende .tag { background: #3b3fd8; }
.para-has .k-luego .tag { background: var(--surface); color: var(--ink-soft); }
.para-has .k-luego p { color: var(--ink-soft); }
.para-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.para-steps li { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--edge); border-radius: 22px; padding: 14px 16px; box-shadow: 0 4px 0 var(--lip); }
.para-steps .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 800; box-shadow: 0 3px 0 #d4a61a; }
.para-steps div { display: grid; gap: 2px; }
.para-steps a { color: var(--ink); font-weight: 800; }
.para-faq details { border-bottom: 2px solid var(--edge); }
.para-faq summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; list-style: none; }
.para-faq summary::after { content: " +"; color: var(--ink-soft); }
.para-faq details[open] summary::after { content: " −"; }
.para-faq p { margin: 0 0 16px; color: var(--ink-2); }
.why-here { background: var(--paper); border: 2px solid var(--edge); border-radius: 28px; padding: 18px; margin: 0 0 16px; box-shadow: 0 4px 0 var(--lip); }
.why-here h2 { margin: 0 0 12px; }
.why-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.why-chips button { border: 2px solid var(--edge); background: var(--cream); border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; color: var(--ink); }
.why-chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.why-out { margin: 12px 0 0; min-height: 0; }
.why-out:empty { display: none; }
.why-out a { color: var(--ink); font-weight: 800; }


/* ═══════════ Landing 3.0: arreglos, de 0 a 100, oficios en tres filas, tarjetas ═══════════ */

/* Arreglos de encaje en móvil */
.tile, .bento > * { min-width: 0; }
.seg { display: flex; flex-wrap: wrap; max-width: 100%; }
.seg button { flex: 1 1 auto; }
.out .line { flex-wrap: wrap; row-gap: 2px; }
.out .line > :last-child { margin-left: auto; text-align: right; }
.calc .row { min-width: 0; }
.phone { aspect-ratio: auto; height: auto; }
.phone img { display: block; height: auto; aspect-ratio: 390 / 844; }
@media (max-width: 899px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 4px 0 8px; margin-inline: 0; }
  .step { width: 100%; justify-content: flex-start; }
}
.duo { display: flex; justify-content: center; gap: 16px; }

/* Oficios: tres filas que se cruzan; los más buscados, en color */
.marquees { margin-top: 120px; display: grid; gap: 10px; }
.marquees .marquee { margin-top: 0; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee.slow .marquee-track { animation-duration: 58s; }
.marquee-track span.hot { color: #fff; border-color: transparent; }
.marquee-track span.hot.c1 { background: #3b3fd8; box-shadow: 0 3px 0 #22258f; }
.marquee-track span.hot.c2 { background: #ff6b57; box-shadow: 0 3px 0 #c4442f; }
.marquee-track span.hot.c3 { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 #d4a61a; }
.marquee-track span.hot.c4 { background: var(--ink); box-shadow: 0 3px 0 #000; }
@media (max-width: 760px) { .marquees { margin-top: 110px; gap: 8px; } .marquee-track span { padding: 8px 14px; font-size: 0.92rem; } }
@media (prefers-reduced-motion: reduce) { .marquees .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; } }

/* Los marrones, más vivos: miran, botan y entran con salto */
.marron .eyes circle { transform-box: fill-box; transform-origin: center; animation: look 6s ease-in-out infinite; }
.m-impagada .eyes circle { animation-delay: 1.2s; }
.m-ticket .eyes circle { animation-delay: 2.4s; }
.m-plazo .eyes circle { animation-delay: 3.6s; }
@keyframes look { 0%, 18%, 100% { transform: translate(0, 0); } 24%, 40% { transform: translate(-2.6px, 0); } 48%, 66% { transform: translate(2.6px, 0.6px); } 72% { transform: translate(0, 0); } }
.cast .m-iva { animation: iva-grumble 3s ease-in-out infinite; }
.cast .m-impagada { animation: impagada-bob 2.2s ease-in-out infinite; }
.cast .m-ticket { animation: ticket-crumple 2.6s ease-in-out infinite; }
.cast .m-plazo { animation: plazo-tick 2s steps(1, end) infinite, plazo-hop 4s ease-in-out infinite; }
@keyframes plazo-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes iva-grumble { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-10deg) scale(1.05); } 40% { transform: rotate(8deg) scale(0.97); } 60% { transform: rotate(-4deg) scale(1.03); } }
@keyframes impagada-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-5deg); } }
.cast-card.reveal .marron { scale: 0.6; transition: scale 0.5s cubic-bezier(0.3, 1.8, 0.5, 1) 0.15s; }
.cast-card.reveal.in .marron { scale: 1; }

/* De 0 a 100 */
.z100 { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 900px) { .z100 { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; } }
.z-meter { position: sticky; top: 84px; z-index: 6; background: linear-gradient(150deg, #2c1f6e, #3b3fd8); color: #fff; border-radius: 26px; padding: 14px 18px; box-shadow: 0 6px 0 #17104a; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.z-num { display: flex; align-items: baseline; font-family: var(--display); font-weight: 800; line-height: 1; }
.z-num b { font-size: 2.6rem; color: var(--sun); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.z-num span { opacity: 0.6; font-size: 1.1rem; }
.z-label { margin: 0; font-weight: 800; line-height: 1.2; }
.z-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.z-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sun); transition: width 0.6s cubic-bezier(0.3, 1.2, 0.5, 1); }
@media (min-width: 900px) { .z-meter { top: 110px; grid-template-columns: 1fr; padding: 26px; } .z-num b { font-size: 5.4rem; } }
.z-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.z-step { background: var(--paper); border: 2px solid var(--edge); border-radius: 28px; padding: 20px; box-shadow: 0 4px 0 var(--lip); transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; display: grid; gap: 8px; min-width: 0; }
.z-step.on { border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); transform: translateY(-2px); }
.z-step h3 { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.z-step > p { margin: 0; color: var(--ink-soft); }
.z-tag { justify-self: start; background: var(--surface); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 0.76rem; }
.z-step.on .z-tag { background: var(--sun); }
.z-ui { margin-top: 6px; background: var(--cream); border-radius: 20px; padding: 14px; display: grid; gap: 6px; font-size: 0.92rem; min-width: 0; }
.z-ui .pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-weight: 800; font-size: 0.74rem; background: var(--surface); margin-right: 8px; }
.z-ui .pill.coral { background: #ffe1db; color: #b13a26; } .z-ui .pill.ink { background: var(--ink); color: #fff; } .z-ui .pill.green { background: #25d366; color: #0b3d1f; }
.z-job b, .z-portal b { font-family: var(--display); font-size: 1.1rem; }
.z-job em { justify-self: start; font-style: normal; font-weight: 800; font-size: 0.78rem; background: #fff; border-radius: 999px; padding: 3px 10px; }
.z-tasks button { display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 14px; padding: 9px 12px; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: var(--ink); }
.z-tasks button small { margin-left: auto; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.z-tasks i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.z-tasks .done i { background: var(--ink); border-color: var(--ink); }
.z-tasks .done i::after { content: "✓"; color: var(--sun); font-size: 0.75rem; font-weight: 900; }
.z-tasks .done { color: var(--ink-soft); text-decoration: line-through; }
.z-tasks .pop i { animation: tick-pop 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes tick-pop { 50% { transform: scale(1.35); } }
.z-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 0.7rem; font-weight: 800; color: var(--ink-soft); }
.z-week span { display: grid; gap: 2px; padding: 6px 0; border-radius: 12px; position: relative; }
.z-week b { font-family: var(--display); font-size: 1rem; color: var(--ink); }
.z-week .today { background: var(--ink); color: rgba(255, 255, 255, 0.7); } .z-week .today b { color: #fff; }
.z-week .dot::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff6b57; }
.z-plan-h, .z-row { margin: 0; }
.z-row { background: #fff; border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.z-portal small { color: var(--ink-soft); font-weight: 800; }
.z-portal p { margin: 0; background: #fff; border-radius: 12px; padding: 8px 10px; }
.z-tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.z-tl i { height: 8px; border-radius: 999px; background: var(--edge); }
.z-tl i.on { background: var(--ink); }
.z-inv { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.z-inv .ok { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: #3b3fd8; color: #fff; display: grid; place-items: center; font-weight: 900; }
.z-inv span:last-child { color: var(--ink-soft); }
.z-ch { display: flex; }
.z-msg .bubble { margin: 0; background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 12px; }
.z-mine, .z-tax { background: var(--ink); color: #fff; grid-template-columns: 1fr auto; align-items: center; }
.z-mine b, .z-tax b { font-family: var(--display); font-size: 1.6rem; color: var(--sun); }
.z-mine em, .z-tax em { grid-column: 1 / -1; font-style: normal; font-weight: 800; color: rgba(255, 255, 255, 0.75); }
.z-step.on .z-ui { animation: ui-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes ui-in { from { opacity: 0.4; transform: translateY(8px) scale(0.98); } }

/* Navegación por tarjetas: cada bloque entra como una tarjeta y hay un índice para saltar */
html { scroll-snap-type: y proximity; }
main[data-deck-main] > section[data-deck] { scroll-snap-align: start; scroll-margin-top: 0; }
main[data-deck-main] > section.on-white, main[data-deck-main] > section.on-night { margin-inline: 8px; border-radius: 36px; }
@media (min-width: 900px) { main[data-deck-main] > section.on-white, main[data-deck-main] > section.on-night { margin-inline: 20px; border-radius: 48px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main[data-deck-main] > section[data-deck]:not(.hero) { animation: deck-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes deck-in { from { opacity: 0.35; transform: translateY(70px) scale(0.95); } to { opacity: 1; transform: none; } }
  }
}
.deck-nav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 45; display: none; flex-direction: column; gap: 10px; }
@media (min-width: 1100px) { .deck-nav { display: flex; } }
.deck-nav button { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-soft); background: transparent; padding: 0; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.deck-nav button[aria-current="true"] { background: var(--ink); border-color: var(--ink); transform: scale(1.35); }
.deck-nav button span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.deck-nav button:hover span, .deck-nav button:focus-visible span, .deck-nav button[aria-current="true"] span { opacity: 1; }
.deck-nav.on-dark button { border-color: rgba(255, 255, 255, 0.6); }
.deck-nav.on-dark button[aria-current="true"] { background: var(--sun); border-color: var(--sun); }
.deck-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 4px; display: flex; gap: 3px; padding: 0 3px; pointer-events: none; }
.deck-progress i { flex: 1; border-radius: 0 0 4px 4px; background: rgba(23, 21, 43, 0.08); transition: background 0.3s; }
.deck-progress i.seen { background: var(--ink); }
.deck-progress i.now { background: #3b3fd8; }
@media (min-width: 1100px) { .deck-progress { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } .z-step, .z-bar i { transition: none; } .z-step.on .z-ui { animation: none; } }
@media (max-width: 899px) { .z-meter { top: 100px; } }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; background: var(--cream); }
.trust b { font-family: var(--display); }
.trust b::before { content: "✓ "; color: #3b3fd8; }
.trust span { color: var(--ink-soft); font-size: 0.92rem; }
/* El logotipo con Tidy: la cabeza con su tupé ✓ junto a la palabra */
.wordmark { display: inline-flex; align-items: center; gap: 6px; }
.wm-tidy { width: 30px; height: 30px; flex: none; overflow: visible; margin-top: -4px; }
.wm-tuft { transform-box: fill-box; transform-origin: 30% 100%; }
.wordmark:hover .wm-tuft, .wordmark:focus-visible .wm-tuft { animation: tuft-pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes tuft-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
@media (max-width: 420px) { .wm-tidy { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .wordmark:hover .wm-tuft { animation: none; } }

/* ——— Portada: llegan los marrones y Tidy los ordena (8 s, en bucle) ——— */
.chaos { --ky: 1px; position: relative; container-type: inline-size; width: min(100%, 520px); height: calc(176 * var(--ky) + max(26px, calc(38 * var(--ky))) + 50px); margin: 26px auto 0; }
.chaos .chip { position: absolute; left: 0; top: 0; width: 47cqw; height: max(26px, calc(38 * var(--ky))); display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 14px; background: #fbe9dc; border: 2px solid #e2b98a; color: #5a3520; font-size: 0.78rem; box-shadow: 0 3px 0 rgba(90, 53, 32, 0.18); animation: chip-order 8s cubic-bezier(0.45, 0, 0.2, 1) infinite both; animation-delay: var(--d); }
.chaos .chip svg { flex: none; width: 17px; height: 17px; }
.chaos .chip b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.chaos .chip .ok { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #3b3fd8; color: #fff; font-style: normal; font-size: 0.66rem; font-weight: 900; display: grid; place-items: center; transform: scale(0); animation: chip-ok 8s infinite both; animation-delay: var(--d); }
.k1 { --sx: -70; --sy: -60;  --cx: 6;  --cy: 44;  --r: -12; --fx: 1.5; --fy: 84;  --d: 0s; }
.k2 { --sx: 110; --sy: -40;  --cx: 47; --cy: 18;  --r: 9;   --fx: 51.5; --fy: 84; --d: 0.12s; }
.k3 { --sx: -80; --sy: 170;  --cx: 20; --cy: 118; --r: 7;   --fx: 1.5; --fy: 130; --d: 0.24s; }
.k4 { --sx: 120; --sy: 240;  --cx: 52; --cy: 150; --r: -9;  --fx: 51.5; --fy: 130; --d: 0.36s; }
.k5 { --sx: 30;  --sy: -110; --cx: 30; --cy: 72;  --r: 14;  --fx: 1.5; --fy: 176; --d: 0.48s; }
.k6 { --sx: -60; --sy: 330;  --cx: 10; --cy: 190; --r: -6;  --fx: 51.5; --fy: 176; --d: 0.6s; }
@keyframes chip-order {
  0% { opacity: 0; transform: translate(calc(var(--sx) * 1cqw), calc(var(--sy) * var(--ky))) rotate(calc(var(--r) * 2deg)) scale(0.7); }
  9% { opacity: 1; transform: translate(calc(var(--cx) * 1cqw), calc(var(--cy) * var(--ky))) rotate(calc(var(--r) * 1deg)); background: #fbe9dc; border-color: #e2b98a; color: #5a3520; }
  16% { transform: translate(calc((var(--cx) + 1.2) * 1cqw), calc((var(--cy) - 5) * var(--ky))) rotate(calc((var(--r) + 6) * 1deg)); }
  23% { transform: translate(calc((var(--cx) - 1) * 1cqw), calc((var(--cy) + 4) * var(--ky))) rotate(calc((var(--r) - 5) * 1deg)); }
  31% { transform: translate(calc(var(--cx) * 1cqw), calc(var(--cy) * var(--ky))) rotate(calc(var(--r) * 1deg)); background: #fbe9dc; border-color: #e2b98a; color: #5a3520; }
  45% { transform: translate(calc(var(--fx) * 1cqw), calc(var(--fy) * var(--ky))) rotate(0deg); background: #fff; border-color: var(--edge); color: var(--ink); }
  90% { opacity: 1; transform: translate(calc(var(--fx) * 1cqw), calc(var(--fy) * var(--ky))); background: #fff; border-color: var(--edge); color: var(--ink); }
  97%, 100% { opacity: 0; transform: translate(calc(var(--fx) * 1cqw), calc(var(--fy) * var(--ky))); background: #fff; border-color: var(--edge); color: var(--ink); }
}
@keyframes chip-ok { 0%, 46% { transform: scale(0); } 51% { transform: scale(1.3); } 55%, 100% { transform: scale(1); } }
.chaos-tidy { position: absolute; left: calc(50% - 34 * var(--ky)); top: calc(4 * var(--ky)); width: calc(68 * var(--ky)); height: calc(68 * var(--ky)); animation: chaos-tidy 8s infinite both; }
.chaos-tidy svg { width: 100%; height: 100%; overflow: visible; }
.chaos-tuft { transform-box: fill-box; transform-origin: 30% 100%; animation: chaos-tuft 8s infinite both; }
@keyframes chaos-tidy { 0%, 26% { opacity: 0; transform: scale(0.4) translateY(20px); } 32% { opacity: 1; transform: scale(1.15); } 36% { transform: scale(1); } 50% { transform: scale(1.08, 0.92); } 55% { transform: scale(1); } 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chaos-tuft { 0%, 33% { transform: rotate(0); } 44% { transform: rotate(360deg); } 50% { transform: rotate(360deg) scale(1.35); } 56%, 100% { transform: rotate(360deg) scale(1); } }
.chaos-done { position: absolute; left: 50%; top: calc(176 * var(--ky) + max(26px, calc(38 * var(--ky))) + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 16px; font-family: var(--display); font-weight: 800; font-size: 0.95rem; box-shadow: 0 4px 0 #000; animation: chaos-done 8s infinite both; }
.chaos-done b { color: var(--sun); }
@keyframes chaos-done { 0%, 52% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.85); } 57% { opacity: 1; transform: translateX(-50%) scale(1.08); } 61%, 90% { opacity: 1; transform: translateX(-50%) scale(1); } 97%, 100% { opacity: 0; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .chaos .chip, .chaos .chip .ok, .chaos-tidy, .chaos-tuft, .chaos-done { animation: none; }
  .chaos .chip { transform: translate(calc(var(--fx) * 1cqw), calc(var(--fy) * var(--ky))); background: #fff; border-color: var(--edge); color: var(--ink); }
  .chaos .chip .ok { transform: none; }
}
@media (max-width: 420px) { .chaos .chip { font-size: 0.72rem; gap: 4px; padding: 0 7px; } .chaos .chip svg { width: 14px; height: 14px; } }
.chaos .chip b { text-align: left; }
.chaos-done { font-size: 1.15rem; letter-spacing: -0.01em; padding: 7px 20px; }


/* De 0 a 100, con Tidy acompañando: salta en cada paso, sella cada tarjeta y celebra al llegar a 100 */
.z-meter { grid-template-columns: auto auto 1fr; }
.z-meter .z-num { grid-column: 2; }
.z-meter .z-label { grid-column: 3; }
.z-tidy { grid-row: span 2; width: 52px; height: 52px; display: block; }
.z-tidy svg { width: 100%; height: 100%; overflow: visible; }
.z-tuft { transform-box: fill-box; transform-origin: 30% 100%; transition: stroke 0.4s; }
.z-spark { opacity: 0; transition: opacity 0.4s; }
.z-say { grid-column: 3; margin: 0; font-size: 0.82rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); min-height: 1.2em; }
.z-say::before { content: "Tidy: "; color: var(--sun); }
.z-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.z-dots i { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: background 0.3s; }
.z-dots i.on { background: #fff; }
.z-tidy.work { animation: z-hop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.z-tidy.work .z-tuft { animation: z-spin 0.6s ease-in-out; }
@keyframes z-hop { 40% { transform: translateY(-10px) scale(1.06, 0.95); } 70% { transform: translateY(0) scale(0.97, 1.03); } }
@keyframes z-spin { 0% { transform: rotate(0); } 70% { transform: rotate(360deg); } 85% { transform: rotate(360deg) scale(1.3); } 100% { transform: rotate(360deg); } }
.z-step { position: relative; }
.z-stamp { position: absolute; top: 16px; right: 16px; background: #3b3fd8; color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 0.72rem; opacity: 0; transform: scale(0.4) rotate(-12deg); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
.z-step.done .z-stamp, .z-step.stamped .z-stamp { opacity: 1; transform: rotate(-4deg); }
.z-step.done { border-color: #c9cffb; box-shadow: 0 4px 0 #b9c0f5; }
.z-step.done .z-tag { background: #e9ebff; }
@media (max-width: 560px) { .z-stamp { position: static; justify-self: end; margin-top: -4px; order: -1; } }
/* 100/100: sin bloque dorado. El contador sigue índigo (el bloque de color de la marca) y celebran los detalles:
   el 100 en amarillo y latiendo, la barra y los puntos llenos, el tupé crema (se ve) con su «pop» y chispas */
.z-meter.perfect { box-shadow: 0 6px 0 #17104a, 0 0 0 4px rgba(255, 210, 63, 0.55); }
.z-meter.perfect .z-num b { color: var(--sun); animation: z-pulse 1.6s ease-in-out infinite; }
.z-meter.perfect .z-num span { color: rgba(255, 255, 255, 0.7); }
.z-meter.perfect .z-say::before { color: var(--sun); }
.z-meter.perfect .z-bar i, .z-meter.perfect .z-dots i.on { background: var(--sun); }
.z-meter.perfect .z-tuft { stroke: #fff6e6; }
.z-meter.perfect .z-spark { opacity: 1; }
.z-tidy.party { animation: z-party 1.1s cubic-bezier(0.3, 1.6, 0.5, 1); }
.z-tidy.party .z-tuft { animation: z-spin 0.9s ease-in-out; }
.z-meter.perfect .z-spark { animation: z-twinkle 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes z-party { 0% { transform: scale(1); } 25% { transform: translateY(-22px) rotate(-8deg) scale(1.1); } 50% { transform: translateY(0) rotate(6deg) scale(0.95, 1.05); } 75% { transform: translateY(-8px) rotate(-3deg); } 100% { transform: none; } }
@keyframes z-pulse { 50% { transform: scale(1.06); } }
@keyframes z-twinkle { 50% { opacity: 0.4; transform: scale(0.8); } }
@media (min-width: 900px) {
  .z-meter { grid-template-columns: auto 1fr; }
  .z-tidy { grid-column: 1 / -1; grid-row: auto; width: 96px; height: 96px; justify-self: start; }
  .z-meter .z-num, .z-meter .z-label, .z-say { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .z-tidy.work, .z-tidy.party, .z-tidy .z-tuft, .z-meter.perfect .z-num b, .z-meter.perfect .z-spark { animation: none !important; }
  .z-stamp { transition: none; }
}

/* Sin rodeos frente a la competencia y lo que incluye el precio */
.compare thead th small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; opacity: 0.75; margin-top: 2px; }
.mark.soon { width: auto; padding: 0 8px; font-size: 0.72rem; background: transparent; color: var(--sun); box-shadow: inset 0 0 0 2px var(--sun); }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-legend { text-align: center; color: rgba(255, 255, 255, 0.65); font-size: 0.82rem; margin: 14px 0 0; }
@media (max-width: 640px) {
  .compare { font-size: 0.86rem; min-width: 560px; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare-wrap { margin-inline: -16px; padding-inline: 16px; }
}
.perks-soon { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.soon-tag { display: inline-block; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 2px 8px; font-weight: 800; font-size: 0.72rem; margin-right: 4px; }
/* Lo que incluye el precio, con nuestro ✓ (el tupé de Tidy) en vez de puntos */
.perks li { align-items: flex-start; }
.perks li::before { width: 20px; height: 20px; border-radius: 0; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6' fill='none' stroke='%232340ff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.swipe-hint { display: none; text-align: right; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; font-weight: 700; margin: 24px 0 -24px; }
@media (max-width: 640px) { .swipe-hint { display: block; } }


/* ——— Socios fundadores ——— */
.kicker { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 3.2vw, 1.5rem); letter-spacing: -0.02em; margin: 14px auto 0; max-width: 30rem; }
.spots { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.spots b { color: var(--sun); font-family: var(--display); font-size: 1.1rem; }
.spots::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.25); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0.05); } }
.year-free { margin: 12px 0 0; background: #fff8dc; border: 2px solid #f3dc8a; border-radius: 16px; padding: 10px 14px; font-size: 0.92rem; }

/* ——— Preguntas: tarjetas que se deslizan ——— */
.questions .center { margin-bottom: 6px; }
.q-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 18px 0 10px; }
.q-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.1rem; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #000; transition: transform 0.1s; }
.q-btn:active { transform: translateY(3px); box-shadow: none; }
.q-btn:disabled { opacity: 0.3; cursor: default; }
.q-count { font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
.q-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin-inline: -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.q-rail::-webkit-scrollbar { display: none; }
.q-rail:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 24px; }
.qcard { scroll-snap-align: start; position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; min-height: 360px; border-radius: 30px; padding: 22px; overflow: hidden; color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); }
.qcard.c-ink { background: var(--ink); }
.qcard.c-blue { background: linear-gradient(150deg, #2c1f6e, #3b3fd8); }
.qcard.c-coral { background: #ff6b57; box-shadow: 0 5px 0 #c4442f; }
.qcard.c-sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #d4a61a; }
.q-art { height: 96px; display: flex; align-items: flex-end; }
.q-art svg { width: 86px; height: 92px; overflow: visible; }
.q-art .q-tidy { animation: q-bob 3s ease-in-out infinite; }
.qcard:hover .q-tuft, .qcard:focus-within .q-tuft { animation: tuft-pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); transform-box: fill-box; transform-origin: 30% 100%; }
@keyframes q-bob { 50% { transform: translateY(-6px); } }
.qcard h3 { margin: 6px 0 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.15; opacity: 0.85; }
.q-a { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; }
.qcard.c-ink .q-a, .qcard.c-blue .q-a { color: var(--sun); }
.q-t { margin: 0; align-self: end; font-size: 0.95rem; line-height: 1.4; opacity: 0.92; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .qcard { animation: q-in linear both; animation-timeline: view(inline); animation-range: entry 0% cover 40%; }
    @keyframes q-in { from { transform: scale(0.88) rotate(-2deg); opacity: 0.5; } to { transform: none; opacity: 1; } }
  }
}
@media (prefers-reduced-motion: reduce) { .q-art .q-tidy, .spots::before { animation: none; } }

/* ——— Blog en portada: tres tarjetas iguales y marrones que se mueven ——— */
.posts.three .post-card.featured { grid-column: auto; grid-template-columns: none; display: flex; }
.posts.three .post-card.featured .cover { aspect-ratio: 16 / 9; min-height: 0; }
.posts.three .post-card.featured .body { padding: 18px 20px 22px; }
.posts.three .post-card.featured h3 { font-size: 1.35rem; }
.post-card .cover svg { overflow: visible; transition: transform 0.3s; }
.post-card .cover.c-iva svg { animation: iva-grumble 3.4s ease-in-out infinite; }
.post-card .cover.c-facturar svg, .post-card .cover.c-empezar svg, .post-card .cover.c-autonomos svg { animation: plazo-hop 3.2s ease-in-out infinite; }
.post-card .cover.c-gastos svg { animation: ticket-crumple 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.post-card .cover.c-cobrar svg { animation: impagada-bob 2.4s ease-in-out infinite; }
.post-card .cover svg ellipse + circle, .post-card .cover svg circle { transform-box: fill-box; }
.post-card:hover .cover svg { transform: scale(1.12) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .post-card .cover svg { animation: none !important; } }

/* Scroll libre y fluido: sin imán entre bloques y entrada de tarjeta suave (antes daba tirones) */
html { scroll-snap-type: none; }
main[data-deck-main] > section[data-deck] { scroll-snap-align: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main[data-deck-main] > section[data-deck]:not(.hero) { animation-name: deck-soft; animation-range: entry 0% entry 30%; }
    @keyframes deck-soft { from { opacity: 0.6; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
  }
}

/* Oficios: bucle exacto (sin salto), más lentos para poder leerlos y bordes menos difuminados */
.marquees .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquees .marquee-track { gap: 0; will-change: transform; animation-duration: 90s; }
.marquees .marquee-track span { margin-right: 10px; }
.marquees .marquee.rev .marquee-track { animation-duration: 105s; }
.marquees .marquee.slow .marquee-track { animation-duration: 120s; }
.marquees:hover .marquee-track, .marquees:active .marquee-track { animation-play-state: paused; }
@media (max-width: 760px) {
  .marquees .marquee-track { animation-duration: 70s; }
  .marquees .marquee.rev .marquee-track { animation-duration: 82s; }
  .marquees .marquee.slow .marquee-track { animation-duration: 95s; }
}


/* Para qué sirven los Tidaaas */
.rewards { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 760px) { .rewards { grid-template-columns: repeat(4, 1fr); } }
.reward { position: relative; display: grid; gap: 4px; align-content: start; border-radius: 24px; padding: 18px 18px 16px; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.reward b { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.reward span { font-size: 0.92rem; opacity: 0.9; }
.reward em { justify-self: start; margin-top: 6px; font-style: normal; font-weight: 800; font-size: 0.74rem; border-radius: 999px; padding: 3px 9px; background: rgba(255, 255, 255, 0.22); }
.reward em.now-tag { background: var(--sun); color: var(--ink); }
.reward.r-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #d4a61a; }
.reward.r-sun em { background: rgba(23, 21, 43, 0.12); }
.reward.r-blue { background: linear-gradient(150deg, #2c1f6e, #3b3fd8); }
.reward.r-coral { background: #ff6b57; box-shadow: 0 4px 0 #c4442f; }
.reward.r-ink { background: var(--ink); }

/* Comparativa compacta: cabe entera en el móvil, sin deslizar */
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 0.8rem; table-layout: fixed; }
  .compare th, .compare td { padding: 9px 2px; }
  .compare th:first-child, .compare td:first-child { width: 40%; padding-right: 6px; line-height: 1.25; }
  .compare thead th { font-size: 0.72rem; line-height: 1.15; }
  .compare thead th small { display: none; }
  .mark { width: 22px; height: 22px; border-radius: 6px; font-size: 0.72rem; }
  .mark.soon { padding: 0 4px; font-size: 0.6rem; }
  .compare-wrap { margin-inline: 0; padding-inline: 0; overflow-x: visible; }
}
.qcard .q-t a { color: inherit; font-weight: 800; }
@media (max-width: 640px) { .compare thead th { font-size: 0.62rem; letter-spacing: -0.01em; padding-inline: 1px; } }
.compare thead .sm { display: none; }
@media (max-width: 640px) { .compare thead .lg { display: none; } .compare thead .sm { display: inline; } }

/* Portada: la promesa en tres sellos con nuestro ✓ */
.kicker-b { color: #3b3fd8; white-space: nowrap; }
.promise { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 8px; max-width: 760px; text-align: left; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.promise li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 46px; background: var(--paper); border: 2px solid var(--edge); border-radius: 18px; box-shadow: 0 3px 0 var(--lip); }
.promise li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6' fill='none' stroke='%232340ff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.promise b { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.promise span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.35; }
@media (max-width: 759px) { .promise span { display: none; } .promise li { padding: 10px 14px 10px 44px; } .promise li::before { top: 10px; } }

/* Garantías desde el primer día */
.trust-h { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; margin: 28px 0 0; text-align: center; }
@media (min-width: 760px) { .trust.four { grid-template-columns: repeat(4, 1fr); } }

/* Hacienda, en 5 toques al año */
.sies h3 .hl { color: var(--blue); }
.sies-demo { margin-top: 16px; background: var(--cream); border-radius: 20px; padding: 14px; display: grid; gap: 12px; }
.sd-head { display: flex; align-items: center; gap: 10px; }
.sd-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--cobalt); display: grid; place-items: center; }
.sd-icon svg { width: 30px; height: 30px; }
.sd-text { min-width: 0; }
.sd-text b { display: block; font-weight: 800; line-height: 1.2; }
.sd-text small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.84rem; margin-top: 2px; }
.sd-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: var(--paper); border-radius: 14px; padding: 10px 12px; font-weight: 700; color: var(--ink-soft); }
.sd-amount em { font-style: normal; font-weight: 600; font-size: 0.8rem; }
.sd-amount b { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.sd-yes { width: 100%; }
.sd-done { margin: 0; text-align: center; font-weight: 600; animation: pop 0.4s ease-out both; }
.sd-done b { color: var(--blue); }
.sies-k { margin: 16px 0 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.sies-year { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sies-year li { position: relative; text-align: center; background: var(--cream); border: 2px solid transparent; border-radius: 14px; padding: 8px 2px 7px; line-height: 1.05; }
.sies-year li b { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--coral); }
.sies-year li span { display: block; font-family: var(--display); font-size: 1.3rem; }
.sies-year li small { display: block; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.sies-year li.next { background: var(--paper); border-color: var(--ink); }
.sies-year li.done::after { content: "✓"; position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 900; display: grid; place-items: center; animation: pop 0.4s ease-out both; }
.sies .fine { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .sd-done, .sies-year li.done::after { animation: none; } }

/* Precio: una base mínima y cada servicio se suma */
.plans .price small { font-weight: 700; color: var(--ink-soft); font-size: 1rem; }
.addons-k { margin: 20px 0 8px; font-weight: 800; }
.addons { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.addons li { display: flex; align-items: center; gap: 10px; font-weight: 600; background: var(--cream); border-radius: 14px; padding: 9px 12px; }
.addons li::before { content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 0.9rem; line-height: 1; }
.all-in { margin: 12px 0 0; }
.founder { margin: 16px 0 12px; background: var(--sun); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.founder .soft-p { color: #4a3f10; font-size: 0.92rem; }

/* Móvil: el primer pantallazo lo cuenta todo, con la animación y el botón, sin bajar */
@media (max-width: 759px) {
  .hero { padding-top: 24px; }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero .pill-sun { order: 1; align-self: center; }
  .hero h1 { order: 2; margin-top: 1.4svh; font-size: clamp(1.75rem, min(8.6vw, 5.3svh), 2.6rem); line-height: 1; }
  .hero .kicker { order: 3; margin-top: 1.2svh; font-size: clamp(1rem, min(4.4vw, 2.7svh), 1.25rem); line-height: 1.2; }
  .hero .lead { order: 4; margin-top: 1.1svh; font-size: clamp(0.9rem, min(3.9vw, 2.35svh), 1.05rem); line-height: 1.4; }
  .hero .chaos { order: 5; --ky: min(1px, calc(30svh / 262)); margin-top: 1.4svh; }
  .hero .ctas { order: 6; margin-top: 1.6svh; flex-wrap: nowrap; gap: 8px; }
  .hero .ctas .btn { padding-inline: 16px; font-size: 0.95rem; min-height: 46px; white-space: nowrap; }
  .hero .promise { order: 7; margin-top: 22px; }
  .hero .note { order: 8; }
  .hero .stage { order: 9; }
  .hero .marquees { order: 10; }
}
/* Escritorio: el mismo orden y todo a la vista al llegar */
@media (min-width: 760px) {
  .hero { padding-top: 28px; }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero .pill-sun { order: 1; align-self: center; }
  .hero h1 { order: 2; font-size: clamp(2.6rem, min(6vw, 7.2svh), 5rem); line-height: 1; }
  .hero .kicker { order: 3; }
  .hero .lead { order: 4; }
  .hero .chaos { order: 5; --ky: min(1px, calc(29svh / 262)); margin-top: 2svh; }
  .hero .ctas { order: 6; margin-top: 2.4svh; }
  .hero .promise { order: 7; margin-top: 28px; }
  .hero .note { order: 8; }
  .hero .stage { order: 9; }
  .hero .marquees { order: 10; }
}

/* Etiquetas: sin punto. Solo quedan las que informan («Muy pronto», «Gratis, hoy») */
.label { background: var(--sun); border: 0; box-shadow: none; padding: 5px 12px; font-size: 0.82rem; }
.label::before { display: none; }

/* Tarjetas que suben y se apilan: cada bloque se queda quieto al llegar (si es alto, al llegar a su final)
   y el siguiente sube por encima. Las anclas van en marcadores fijos para que los saltos funcionen. */
main[data-deck-main] > section[data-deck] { position: sticky; top: 0; background-color: var(--cream); transform-origin: 50% 100%; }
main[data-deck-main] > section[data-deck]:not(.hero) { border-radius: 36px 36px 0 0; box-shadow: 0 -22px 40px -28px rgba(23, 21, 43, 0.45); }
main[data-deck-main] > section.on-white { background-color: #fff; }
main[data-deck-main] > section.on-night { background-color: var(--night); }
@supports (animation-timeline: view()) { main[data-deck-main] > section[data-deck]:not(.hero) { animation: none; } }
.deck-shade { position: absolute; inset: 0; border-radius: inherit; background: #12101f; opacity: 0; pointer-events: none; z-index: 5; }
.deck-mark { display: block; height: 0; }
@media (prefers-reduced-motion: reduce) { .deck-shade { display: none; } }

/* La Letra Pequeña: el quinto marrón (lo legal). En el móvil ocupa la fila entera; en escritorio, cinco en fila */
.cast-wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .cast { grid-template-columns: repeat(5, 1fr); } .cast-wide { grid-column: auto; } }
.m-letra .eyes { animation-delay: 4.1s; }
.m-letra { animation: letra-squint 3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes letra-squint { 0%, 100% { transform: translateX(0) scale(1); } 35% { transform: translateX(-3px) scale(1.04, 0.97); } 65% { transform: translateX(3px) scale(0.98, 1.02); } }
@media (prefers-reduced-motion: reduce) { .m-letra { animation: none; } }
/* Marrones en el móvil: fichas compactas, sin hueco que no suma; La Letra Pequeña, en horizontal */
@media (max-width: 899px) {
  .cast { margin-top: 22px; gap: 10px; }
  .cast-card { min-height: 0; padding: 14px 12px 14px; gap: 4px; }
  .cast-card .marron { width: 68px; height: 74px; margin-bottom: 2px; }
  .cast-card b { font-size: 1.1rem; }
  .cast-card .bad, .cast-card .good { font-size: 0.86rem; }
  .cast-wide { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 14px; align-items: center; }
  .cast-wide .marron { grid-row: 1 / 4; }
}

/* ——— Campus: itinerario «Lo legal sin miedo» y su jefe, La Letra Pequeña ——— */
.path-track.t-mint { background: #effaf4; border-color: #c3e9d4; box-shadow: 0 4px 0 #a9dcc0; --node: #13865a; --node-lip: #0b5a3b; }
.m-letra { animation: letra-fold 3.4s ease-in-out infinite; transform-origin: 50% 96%; }
.m-letra .eyes { animation-delay: 0.7s; }
.m-letra .eyes circle { animation-delay: 1.8s; }
@keyframes letra-fold { 0%, 100% { transform: rotate(0) scaleY(1); } 35% { transform: rotate(-4deg) scaleY(0.97); } 65% { transform: rotate(3deg) scaleY(1.02); } }
@media (prefers-reduced-motion: reduce) { .m-letra, .m-letra .eyes, .m-letra .eyes circle { animation: none !important; } }
