/* REBOBINA · particulares (/revive). Misma guía «Sprint», registro claro y cálido. */
:root {
  --ink: #0c0c0c;
  --ivory: #f2efea;
  --soft: #d9d4ce;
  --paper: #faf8f4;
  --muted: #6e6a65;
  --stone: #4f4b47;
  --rule: #ddd8d1;
  --acid: #d6ff73;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(88px, 11vw, 176px);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Fillout necesita su disparador para abrir el popup desde nuestros botones. */
#fillout-popup { position: fixed !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
#fillout-popup button, #fillout-popup [role="button"] { position: fixed !important; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }
.h2 { font-size: clamp(36px, 4.6vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--stone); max-width: 44ch; }
.fine { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 70ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 18px 30px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-acid { background: var(--acid); color: var(--ink); }
.btn-big { padding: 22px 38px; font-size: 18px; }

/* Menú flotante de cristal */
.dock {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(250, 248, 244, .72);
  border: 1px solid rgba(12, 12, 12, .08);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px -18px rgba(12, 12, 12, .45);
}
.dock-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); }
.dock-mark img { width: 22px; height: 22px; }
.dock-nav { display: flex; }
.dock-nav a { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--stone); transition: background .25s, color .25s; }
.dock-nav a:hover { background: rgba(12, 12, 12, .06); color: var(--ink); }
.dock-cta { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Portada: texto sobre papel, foto a la derecha */
.hero { display: grid; grid-template-columns: minmax(360px, .82fr) 1.18fr; gap: clamp(24px, 3vw, 48px); height: 100vh; height: 100svh; min-height: 640px; padding: 92px var(--gutter) var(--gutter); background: var(--paper); }
.hero-copy { align-self: center; max-width: 560px; }
.hero h1 { font-size: clamp(40px, min(5.2vw, 9vh), 88px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.hero h1 span { font-weight: 300; color: var(--muted); }
.hero-copy > p { margin-top: 24px; max-width: 38ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--stone); }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); min-height: 0; }
.compare.compare-hero { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
/* Con JS la portada arranca enseñando solo el original, sin un instante de foto partida. */
.js .compare-hero { --s: 100; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,12,0) 55%, rgba(12,12,12,.7) 100%); }
.hero-bar { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 12px; color: var(--paper); pointer-events: none; }
.hero-bar .flip { pointer-events: auto; justify-self: start; }
.hero-caption { justify-self: start; font-size: 15px; font-weight: 500; text-shadow: 0 1px 12px rgba(12,12,12,.5); pointer-events: none; }
/* Original | Recuperada: la pastilla se desliza al lado que domina */
.flip { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(12,12,12,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.flip::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--paper); transition: transform .4s var(--ease), background .4s; }
.flip[data-side="after"]::before { transform: translateX(100%); background: var(--acid); }
.flip button { position: relative; z-index: 1; border: 0; background: none; padding: 13px 22px; border-radius: 999px; color: var(--paper); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .3s; }
.flip button[aria-pressed="true"] { color: var(--ink); }
/* Casos de la portada: tarjetas grandes bajo la foto */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; border-radius: 16px; opacity: .55; filter: grayscale(.6); transition: opacity .3s, filter .3s, transform .3s var(--ease), box-shadow .3s; }
.thumb-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.thumb-note { font-size: 13px; line-height: 1.3; color: var(--muted); }
.thumb:hover img { opacity: 1; filter: none; transform: translateY(-3px); }
.thumb.is-on img { opacity: 1; filter: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
@media (max-height: 780px) and (min-width: 1101px) { .thumb img { aspect-ratio: 2 / 1; } .thumb-note { display: none; } }

/* Manifiesto: las palabras se enfocan al bajar */
.focus { position: relative; height: 230vh; background: var(--paper); }
.focus-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.focus-text { max-width: 19em; font-size: clamp(28px, 3.9vw, 60px); font-weight: 500; line-height: 1.16; letter-spacing: -.03em; text-align: center; color: var(--ink); }
.js .focus-text .w { display: inline-block; filter: blur(calc(var(--b, 0) * 1px)); opacity: var(--o, 1); transition: filter .25s linear, opacity .25s linear; will-change: filter, opacity; }

/* Qué fotos */
.kinds { background: var(--paper); padding-top: 0; }
.kinds-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.kinds-list li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); font-size: 18px; }
.kinds-list li:last-child { border-bottom: 1px solid var(--rule); }
.kinds-list b { font-weight: 600; }
.kinds-list span { color: var(--stone); }

/* Casos en carril horizontal */
.cases { background: var(--ivory); overflow: hidden; }
.cases-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.cases-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
.cases-rail::-webkit-scrollbar { display: none; }
.case { flex: 0 0 min(82vw, 660px); scroll-snap-align: start; }
.case-tall { flex-basis: min(64vw, 400px); }
.case h3 { margin-top: 20px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.case p { margin-top: 6px; color: var(--stone); font-size: 16px; max-width: 40ch; }
/* Comparador: el original a la izquierda, lo recuperado a la derecha. Cada etiqueta va recortada con su mitad. */
.compare { --split: calc(var(--s, 50) * 1%); position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; border-radius: var(--radius); background: var(--soft); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.case-tall .compare { aspect-ratio: 4 / 5.4; }
.compare > img, .compare-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .22s; }
.compare.is-swapping img { opacity: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-side { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 0 var(--split)); }
.compare-tag { position: absolute; top: 16px; padding: 9px 15px; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: .01em; white-space: nowrap; }
.compare-tag-before { left: 16px; background: rgba(12,12,12,.66); color: var(--paper); }
.compare-tag-after { right: 16px; background: var(--acid); color: var(--ink); }
.compare-hero .compare-tag { top: 20px; padding: 11px 18px; font-size: 15px; }
.compare-hero .compare-tag-before { left: 20px; }
.compare-hero .compare-tag-after { right: 20px; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: var(--paper); box-shadow: 0 0 22px rgba(12,12,12,.4); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(12,12,12,.65); transition: transform .3s var(--ease); }
.compare-knob svg { width: 26px; height: 26px; }
.compare-hero .compare-knob { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.compare-hero .compare-knob svg { width: 32px; height: 32px; }
.compare:hover .compare-knob, .compare.is-dragging .compare-knob { transform: scale(1.08); }
.compare-hint { position: absolute; top: calc(50% + 50px); left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(12,12,12,.66); color: var(--paper); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.compare.is-ready:not(.is-touched) .compare-hint { opacity: 1; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare:focus-within .compare-knob { outline: 3px solid var(--acid); outline-offset: 3px; }
.rail-nav { display: flex; gap: 10px; margin-top: 28px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; font-size: 20px; transition: background .25s, color .25s; }
.rail-nav button:hover { background: var(--ink); color: var(--paper); }

/* Hecho por personas */
.human { background: var(--paper); }
.human-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.human-motto { font: 500 clamp(30px, 4.4vw, 70px)/1.05 var(--mono); text-transform: uppercase; letter-spacing: .01em; }
.human-motto span { color: #9d9891; }
.human-body { display: flex; flex-direction: column; gap: 22px; }

/* Cómo funciona */
.how { background: var(--paper); padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 56px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-size: clamp(48px, 5vw, 80px); font-weight: 300; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: 22px; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--stone); font-size: 16px; }

/* Precios */
.prices { background: var(--ivory); }
.prices-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); }
.plan-ivory { background: var(--paper); }
.plan-soft { background: var(--soft); }
.plan-ink { background: var(--ink); color: var(--paper); }
.plan-tag { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-ink .plan-tag { color: var(--acid); }
.plan h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.025em; }
.plan-price { font-size: 17px; color: var(--stone); }
.plan-ink .plan-price { color: #c5c1bc; }
.plan-price b { font-size: clamp(36px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.plan-ink .plan-price b { color: var(--paper); }
.plan ul { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(12,12,12,.12); margin-bottom: auto; }
.plan-ink ul { border-top-color: rgba(250,248,244,.18); }
.plan li { position: relative; padding-left: 26px; font-size: 16px; color: var(--stone); }
.plan-ink li { color: #d9d4ce; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan .btn { margin-top: 20px; align-self: flex-start; }

/* Antes de enviarla */
.prep { background: var(--paper); }
.prep-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 120px); }
.prep-list li { padding: 20px 0 20px 40px; border-top: 1px solid var(--rule); position: relative; font-size: 18px; }
.prep-list li:last-child { border-bottom: 1px solid var(--rule); }
.prep-list li::before { content: ""; position: absolute; left: 0; top: 26px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }

/* Confianza */
.trust { background: var(--ink); color: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.trust h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.trust p { margin-top: 10px; color: #c5c1bc; font-size: 17px; max-width: 34ch; }

/* Preguntas */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 1; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; color: var(--stone); max-width: 60ch; }

/* Cierre */
.end { background: var(--ivory); text-align: center; }
.end-grid { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.end-title { font-size: clamp(44px, 7vw, 120px); font-weight: 500; line-height: .98; letter-spacing: -.05em; max-width: 12ch; }
.end .lead { margin: 0 auto; }

/* Pie */
.foot { background: var(--paper); padding: 40px 0 56px; border-top: 1px solid var(--rule); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-word { width: 200px; height: auto; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* Entradas suaves solo en bloques clave */
.js [data-fade] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-fade].is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .dock-nav { display: none; }
  .kinds-grid, .human-grid, .prep-grid, .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .dock-nav { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 0; padding-top: 84px; }
  .hero-copy { padding: 12px 0 8px; }
  .hero-media { height: 64vh; min-height: 400px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .hero-bar { left: 12px; right: 12px; bottom: 12px; gap: 10px; }
  .hero-bar .flip { justify-self: stretch; }
  .flip button { padding: 13px 10px; }
  .thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { scroll-snap-align: start; }
  .compare-hero .compare-tag { top: 14px; padding: 9px 14px; font-size: 13px; }
  .compare-hero .compare-tag-before { left: 14px; }
  .compare-hero .compare-tag-after { right: 14px; }
  .compare-hero .compare-knob { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .kinds-list li { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .focus { height: auto; }
  .focus-sticky { position: static; height: auto; padding: var(--sec) var(--gutter); }
  .js .focus-text .w { filter: none !important; opacity: 1 !important; }
  .js [data-fade] { opacity: 1; transform: none; transition: none; }
  .compare img, .flip::before { transition: none; }
}

.h2, .end-title, .hero h1, .focus-text { text-wrap: balance; }
.dock-nav a { white-space: nowrap; }

/* Restauración tipográfica (REVIVE): franjas, arrastre y grano que se recomponen */
.restore { position: relative; height: 240vh; background: var(--paper); }
.restore-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 4vh, 48px); padding: 0 var(--gutter); }
.restore-frame { position: relative; width: min(100%, 1240px); aspect-ratio: 1240 / 420; }
.restore-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.restore-word { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: clamp(64px, 15.5vw, 236px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.js .restore-word { color: transparent; }
.cross { position: absolute; width: 18px; height: 18px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ink); }
.cross::before { left: 8px; top: 0; width: 2px; height: 18px; }
.cross::after { top: 8px; left: 0; height: 2px; width: 18px; }
.cross-tl { left: -9px; top: -9px; } .cross-tr { right: -9px; top: -9px; }
.cross-bl { left: -9px; bottom: -9px; } .cross-br { right: -9px; bottom: -9px; }
.restore-meta { position: absolute; bottom: -54px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.restore-meta-l { left: 0; }
.restore-meta-r { right: 0; text-align: right; }
.restore-line { margin-top: 40px; font-size: clamp(18px, 1.6vw, 24px); color: var(--stone); text-align: center; }
@media (max-width: 680px) {
  .restore-frame { aspect-ratio: 1240 / 520; }
  .restore-meta { bottom: -48px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .restore { height: auto; }
  .restore-sticky { position: static; height: auto; padding: var(--sec) var(--gutter); }
}
