/* ============================================================
   DEVUNI — devuni.agency · landing clara (oct-2026)
   Mismo lenguaje que los anuncios de Estados de WhatsApp
   (devuni_leads/creatives/html/status.css): crema, tinta, ámbar del
   logo como acento y verde WhatsApp para el CTA. Baloo 2 + Inter.

   Tres modos:
   - base: todo visible y legible, sin JS ni animación.
   - html.motion (JS cargado y sin prefers-reduced-motion): landing.js anima
     titulares, contadores, pestañas, etc. con GSAP + ScrollTrigger.
   - html.pins (además, pantalla de 660 px de alto o más): las dos escenas
     («del cuaderno al sistema» y «un pedido de punta a punta») se fijan al
     scroll (desde 660 px de alto). Más bajas no cabrían legibles: se muestran en orden.
   ============================================================ */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/baloo2-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
}

:root {
  --cream: #fff8e8;
  --cream-2: #fdeec8;
  --paper: #fffdf7;
  --card: #ffffff;
  --ink: #1d1708;
  --ink-2: #5b4f33;
  --line: rgba(29, 23, 8, 0.12);
  --amber: #ffc917;
  --amber-2: #e0a800;
  --wa: #25d366;
  --wa-2: #1fbd5a;
  --shadow: 0 18px 50px rgba(60, 40, 0, 0.16), 0 4px 12px rgba(60, 40, 0, 0.08);
  --shadow-sm: 0 8px 24px rgba(60, 40, 0, 0.12), 0 2px 6px rgba(60, 40, 0, 0.06);
  --display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --nav-h: 64px;
  --r: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* sin anclaje de scroll: con las escenas fijas, el ancla que guarda Chrome no sobrevive al layout de los pins y
   al recargar devolvía al usuario a otra sección (o arriba); ver docs/REVIEW_LOG.md, R7 */
html, body { overflow-anchor: none; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
/* una columna que nunca crece más que la pantalla: sin esto, el ancho máximo de una tarjeta
   (min(100%, 420px)) ensancha la columna implícita y corta el texto en el celular */
.hero-grid, .paper-grid, .paper-stage, .flow-grid, .panels, .panel, .work-grid, .quote-grid, .offer-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--amber-2); }
.title, .final-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em;
}
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-2); margin-top: 14px; max-width: 40ch; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 18px; }
.hl {
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-size: 100% 0.36em;
  background-position: 0 88%;
  padding-inline: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sec-head { margin-bottom: 36px; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber-2); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none;
  transition: scale .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::before { /* barrido de color al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--sweep, rgba(255, 255, 255, .22));
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn:active { scale: .97; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateY(3px); }
.btn-wa { --bg: var(--wa); --fg: #062b14; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn-wa:hover { box-shadow: 0 14px 30px rgba(37, 211, 102, .42); }
.btn-ink { --bg: var(--ink); --fg: var(--cream); --sweep: rgba(255, 201, 23, .25); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); --sweep: rgba(29, 23, 8, .08); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn-xl { min-height: 64px; padding: 16px 32px; font-size: 20px; }
.btn-xl .ico { width: 26px; height: 26px; }

/* ---------- etiquetas de estado (UI de producto) ---------- */
.tag { font-style: normal; font-size: .78em; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.t-new { background: #ffe58a; color: #5a4300; }
.t-cook { background: #ffe0c2; color: #7d3300; }
.t-ok { background: #d5f5e0; color: #0d5e2f; }
.t-road { background: #dce7ff; color: #1c4aa8; }
.t-warn { background: #ffe0dc; color: #9b1c12; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8em; font-weight: 700; color: #0d5e2f; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.nav.is-scrolled { background: rgba(255, 248, 232, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; margin-right: auto; }
.owl { width: 40px; height: auto; color: var(--ink); }
.nav-links { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 12px; }
.burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--cream); padding: calc(var(--nav-h) + 24px) 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.menu nav { display: grid; gap: 6px; }
.menu a { font-family: var(--display); font-weight: 800; font-size: 2.2rem; text-decoration: none; padding: 4px 0; }
/* (después de la regla base, que si no la pisaría) */
@media (max-height: 500px) { .menu { padding-top: calc(var(--nav-h) + 8px); } .menu a { font-size: 1.5rem; } }
@media (max-width: 380px) { .nav-cta span { display: none; } .nav-cta { padding-inline: 12px; } }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .brand { margin-right: 32px; }
  .nav-links { margin-right: auto; }
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 12px) 0 56px; position: relative; overflow: clip; }
.hero::before { /* sol ámbar detrás de la foto */
  content: ""; position: absolute; width: 120vw; max-width: 900px; aspect-ratio: 1; right: -40vw; top: 40%;
  background: radial-gradient(closest-side, rgba(255, 201, 23, .42), rgba(255, 201, 23, 0));
  pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 11.6vw, 6rem); line-height: .98; letter-spacing: -0.02em; }
.h-line { display: block; }
/* la línea de la palabra que rota nunca pasa a dos renglones: cambiaría el alto del hero */
.h-rot { white-space: nowrap; }
.rotator {
  position: relative; display: inline-block; vertical-align: top;
  height: 1.08em; padding: 0 .16em; margin-left: -.04em;
  background: var(--amber); border-radius: .16em;
  overflow: hidden;
}
.rot-word { display: none; white-space: nowrap; line-height: 1.12; }
.rot-word.is-on { display: inline-block; }
html.js .rot-word { display: inline-block; position: absolute; left: .16em; top: 0; visibility: hidden; }
html.js .rot-word.is-on { position: relative; left: 0; visibility: visible; }
.hero-sub { font-size: clamp(1.05rem, 2.8vw, 1.25rem); color: var(--ink-2); margin-top: 20px; max-width: 34ch; }
.hero-sub b { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-ctas .btn { flex: 1 1 260px; }
.offer-chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chip-card { display: grid; padding: 10px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); min-width: 150px; }
.chip-card .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.chip-card .v { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.chip-dark { background: var(--ink); color: var(--cream); }
.chip-dark .k { color: var(--amber); }

.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 18px 0 0; }
.hero-photo { width: 86%; margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(2deg); background: var(--cream-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.photo-note { position: absolute; left: 7%; top: -6px; font-size: 11px; color: var(--ink-2); }

.notif {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 10px 12px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.25; width: max-content; max-width: 270px;
}
.n-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.n-ico svg { width: 20px; height: 20px; }
.n-wa { background: var(--wa); color: #fff; }
.n-amber { background: #ffe58a; }
.n-txt { display: grid; }
.n-txt small { color: var(--ink-2); font-size: 12px; }
.n-time { align-self: flex-start; font-size: 11px; color: var(--ink-2); margin-left: 4px; }
.hero-visual .n1 { position: absolute; left: -4px; top: 50%; }
.hero-visual .n2 { position: absolute; left: 6%; top: calc(50% + 68px); }
@media (max-width: 959px) {
  .hero-visual .notif { max-width: min(62%, 240px); font-size: 12px; padding: 9px 10px; }
  .hero-visual .n-time { display: none; }
  .hero-visual { margin-bottom: 30px; }
  .hero-phone .orders span { display: none; }
  .hero-phone .orders li { grid-template-columns: 1fr auto; }
}

.phone {
  width: 210px; aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 34px; padding: 8px;
  box-shadow: 0 30px 60px rgba(40, 25, 0, .28), inset 0 0 0 2px #3a2f17;
}
.phone-screen { height: 100%; border-radius: 27px; background: var(--paper); overflow: hidden; padding: 16px 12px; font-size: 12px; position: relative; }
.hero-phone { position: absolute; right: -6px; bottom: -40px; width: 40%; max-width: 190px; transform: rotate(5deg); }
.hero-phone .phone-screen { padding: 14px 10px; font-size: 10.5px; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.kpi { background: var(--ink); color: var(--cream); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.kpi small { display: block; color: var(--amber); font-weight: 600; font-size: .9em; }
.kpi strong { font-family: var(--display); font-size: 1.9em; line-height: 1.1; }
.orders { display: grid; gap: 6px; }
.orders li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; background: var(--card); border-radius: 10px; padding: 7px 8px; box-shadow: 0 1px 0 var(--line); }
.orders span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }

@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 96px; min-height: min(100svh, 920px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-title { font-size: clamp(3.4rem, 5.4vw, 5.2rem); }
  .hero-visual { width: 100%; max-width: 480px; }
  .hero::before { right: -10%; top: 10%; }
}

/* entrada del hero: CSS puro, no depende del JS (el titular pinta al primer frame) */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
  /* fill "backwards": al terminar, el transform vuelve a ser de GSAP (parallax) */
  .hero-photo { animation: pop 1.1s var(--ease) .25s backwards; }
  .hero-phone { animation: pop 1.1s var(--ease) .55s backwards; }
  .hero-visual .n1 { animation: pop .8s var(--ease) 1.0s backwards; }
  .hero-visual .n2 { animation: pop .8s var(--ease) 1.35s backwards; }
}

/* ---------- ticker de rubros ---------- */
.ticker { background: var(--ink); color: var(--cream); padding: 18px 0; overflow: hidden; transform: rotate(-1.6deg); margin: 8px -20px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 4.5vw, 2.4rem); white-space: nowrap; }
.ticker-group i { color: var(--amber); font-style: normal; font-size: .7em; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion) .ticker-track { animation: tick 40s linear infinite; }
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- del cuaderno al sistema ---------- */
.paper-sec { padding: 96px 0 72px; }
.paper-grid { display: grid; gap: 40px; }
.pains { display: grid; gap: 12px; margin-top: 24px; }
.pains li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; font-weight: 600; }
.pains li::before { content: "✕"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffe0dc; color: #9b1c12; font-size: 14px; font-weight: 800; margin-top: 1px; }
.pains span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background-image: linear-gradient(#9b1c12, #9b1c12); background-repeat: no-repeat; background-position: 0 58%; background-size: 0 2px; }
.paper-after { margin-top: 22px; }
.paper-after b { color: var(--ink); }

.paper-stage { position: relative; display: grid; gap: 24px; justify-items: center; }
.paper-card {
  width: min(100%, 400px); padding: 26px 22px 26px 50px; border-radius: 6px; position: relative;
  background-color: #fffdf3;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(220, 60, 60, .45) 38px 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 33px, rgba(70, 110, 200, .22) 33px 34px);
  background-position: 0 0, 0 22px;
  box-shadow: var(--shadow-sm); transform: rotate(-3deg); color: #233a8f;
}
.paper-ring { position: absolute; width: 84px; height: 84px; right: 18px; bottom: 22px; border-radius: 50%; border: 7px solid rgba(140, 90, 30, .14); }
.hand { font-family: var(--hand); font-size: 18px; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-date { text-decoration: underline; }
.h-sum { color: #b3261e; font-weight: 700; }
.app-card { width: min(100%, 420px); background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; font-size: 14px; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.app-title { font-family: var(--display); font-weight: 800; font-size: 20px; }
.badge { background: var(--ink); color: var(--cream); font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.app-rows { display: grid; gap: 8px; }
.app-rows li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.app-rows span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ink); color: var(--cream); }
.app-foot span { color: var(--amber); font-weight: 600; }
.app-foot strong { margin-left: auto; font-family: var(--display); font-size: 22px; }

html.pins .paper-stage { display: block; height: 470px; }
/* el escalado va en el contenedor: GSAP absorbe `scale`/`translate` sueltos de lo que anima */
html.pins .paper-stage { scale: var(--fit, 1); }
/* en el flujo, cada escena se escala entera si no cabe. Se escala el hijo directo de .scene, que GSAP
   no anima (el teléfono va dentro de .phone-fit): GSAP absorbe `scale` suelto de lo que anima */
html.pins .scene { overflow: visible; display: flex; align-items: center; justify-content: center; }
html.pins .scene > * { scale: var(--fit, 1); }
.anchor-alias { display: block; height: 0; }
html.pins .paper-card, html.pins .app-card { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
html.pins .app-card { opacity: 0; }
html.pins .pains span { background-size: 0 2px; }
@media (min-width: 960px) {
  .paper-sec { padding: 140px 0 100px; }
  .paper-grid { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; }
  html.pins .paper-sec { min-height: 100svh; display: flex; align-items: center; padding: 80px 0; }
  html.pins .paper-stage { height: min(520px, calc(100svh - 200px)); }
}
@media (max-width: 959px) {
  /* la escena ocupa exactamente la pantalla: el escenario toma el alto que sobra */
  /* abajo queda libre la zona del botón flotante de WhatsApp */
  html.pins .paper-sec { padding: calc(var(--nav-h) + 8px) 0 88px; height: 100svh; min-height: 0; display: flex; }
  html.pins .paper-grid { gap: 8px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
  html.pins .paper-stage { flex: 1; min-height: 0; }
  html.pins .paper-copy .title { font-size: clamp(2rem, 9vw, 2.6rem); }
  html.pins .pains { margin-top: 12px; gap: 6px; }
  html.pins .pains li { font-size: 1rem; }
  html.pins .paper-after { display: none; }
  html.pins .paper-stage { height: auto; }
  html.pins .app-card { font-size: 13px; padding: 14px; }
  html.pins .app-rows li { padding: 8px 10px; grid-template-columns: 82px 1fr auto; }
}
@media (max-width: 959px) and (max-height: 700px) {
  html.pins .sc-chat .phone { aspect-ratio: auto; }
  html.pins .sc-chat .phone-screen { height: auto; }
  /* (más específicas que las del bloque móvil del flujo, que va después) */
  html.pins .flow-steps .step { padding-top: 10px; padding-bottom: 10px; }
  html.pins .flow-steps .step h3 { font-size: 1.1rem; }
  html.pins .flow-steps .step p { font-size: 14px; line-height: 1.45; }
  html.pins .paper-copy .title { font-size: 1.9rem; }
  html.pins .pains { gap: 4px; margin-top: 8px; }
  html.pins .pains li { font-size: 13px; gap: 8px; }
  html.pins .pains li::before { width: 20px; height: 20px; font-size: 11px; }
}

/* ---------- cómo funciona ---------- */
.flow { padding: 96px 0 64px; background: var(--cream-2); position: relative; }
.flow-grid { display: grid; gap: 32px; }
.flow-steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 16px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--amber); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; }
.step p { color: var(--ink-2); margin-top: 4px; }
.stage { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.scene { display: grid; place-items: center; min-height: 360px; border-radius: 28px; background: var(--cream); padding: 20px; position: relative; overflow: hidden; }
.flow-progress { display: none; }

/* 1 · chat */
.sc-chat .phone { width: 230px; }
.chat { background: #efe7d6; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; font-size: 12.5px; }
.chat-top { display: flex; align-items: center; gap: 8px; margin: -10px -12px 4px; padding: 12px; background: #0f5e4f; color: #fff; }
.chat-top small { display: block; opacity: .85; font-size: 11px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.bub { max-width: 86%; padding: 8px 10px; border-radius: 12px; line-height: 1.35; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.bub.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bub.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.bub.sys { align-self: center; background: #fff5c4; font-size: 11.5px; text-align: center; border-radius: 10px; }

/* 2 · cocina */
.kds { width: min(100%, 330px); background: var(--ink); color: var(--cream); border-radius: 22px; padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.kds-top { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 20px; }
.kds-top .live { color: #8ff0b4; font-family: var(--body); }
.ticket { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.ticket-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.ticket-h b { font-family: var(--display); font-size: 22px; }
.ticket-h span { color: var(--ink-2); font-size: 13px; }
.ticket ul li { padding: 2px 0; }
.ticket-status { display: grid; margin-top: 8px; justify-items: start; }
.ticket-status .tag { grid-area: 1 / 1; }
.ticket-status .st-a, .ticket-status .st-b { visibility: hidden; }
.t-mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.t-mini span { color: var(--ink-2); margin-right: auto; }

/* 3 · ruta */
.map { width: min(100%, 360px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; position: relative; background: #f3ead2; box-shadow: var(--shadow); }
.map svg { width: 100%; height: 100%; }
.streets { stroke: #fffaf0; }
.route { stroke: var(--ink); stroke-dasharray: 6 0; }
.pin-a { fill: var(--amber); stroke: var(--ink); stroke-width: 4; }
.pin-b { fill: var(--wa); stroke: var(--ink); stroke-width: 4; }
.moto circle { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.map-notif { position: absolute; left: 12px; bottom: 12px; }

/* 4 · caja */
.cash { width: min(100%, 330px); background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.cash-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.cash-total { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1.1; margin-top: 10px; }
.cash-sub { color: var(--ink-2); font-size: 14px; }
.bars { display: grid; gap: 10px; margin-top: 16px; font-size: 14px; }
.bars li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; }
.bars i { height: 12px; border-radius: 6px; background: var(--cream-2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--amber); transform-origin: left; transform: scaleX(var(--w)); }

/* modo con movimiento: escena fija */
html.pins .flow-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
html.pins .flow-grid { position: relative; }
html.pins .stage { display: block; position: relative; height: 380px; }
html.pins .scene { position: absolute; inset: 0; min-height: 0; background: transparent; padding: 0; opacity: 0; visibility: hidden; }
html.pins .scene[data-scene="0"] { opacity: 1; visibility: visible; }
html.pins .flow-progress { display: block; position: absolute; left: 20px; right: 20px; bottom: 18px; height: 4px; border-radius: 4px; background: rgba(29, 23, 8, .1); max-width: calc(var(--wrap) - 40px); margin-inline: auto; }
html.pins .flow-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 959px) {
  /* la escena ocupa la pantalla: los pasos toman el alto del más largo y el escenario, lo que sobra */
  html.pins .flow-pin { justify-content: flex-start; padding: calc(var(--nav-h) + 8px) 0 40px; }
  html.pins .flow-grid { display: flex; flex-direction: column-reverse; gap: 14px; flex: 1; min-height: 0; }
  html.pins .flow-steps { display: grid; }
  html.pins .step { grid-area: 1 / 1; opacity: 0; visibility: hidden; padding: 14px 76px 14px 14px; transition: opacity .35s, visibility .35s, transform .35s var(--ease); transform: translateY(10px); }
  /* (padding derecho: abajo a la derecha vive el botón flotante de WhatsApp; desde 600 px lleva texto) */
  @media (min-width: 600px) { html.pins .step { padding-right: 190px; } }
  html.pins .step.is-on { opacity: 1; visibility: visible; transform: none; }
  html.pins .step h3 { font-size: 1.25rem; }
  html.pins .step p { font-size: 15px; }
  html.pins .stage { flex: 1; min-height: 0; height: auto; max-height: 420px; }
}
@media (min-width: 960px) {
  .flow { padding: 140px 0 80px; }
  .flow-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
  html.pins .stage { height: min(540px, calc(100svh - 160px)); }
  html.pins .step { opacity: .38; transition: opacity .4s, transform .4s var(--ease), box-shadow .4s; box-shadow: none; background: transparent; }
  html.pins .step.is-on { opacity: 1; background: var(--card); box-shadow: var(--shadow-sm); transform: translateX(8px); }
  .sc-chat .phone { width: min(100%, 260px); }
  .scene .kds, .scene .cash { width: min(100%, 380px); }
  .scene .map { width: min(100%, 460px); }
}

/* ---------- rubros ---------- */
.rubros { padding: 96px 0; }
.tabs {
  position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 28px; padding: 6px 20px; scroll-padding-inline: 20px;
}
.tabs::-webkit-scrollbar { display: none; }
html:not(.js) .tabs { display: none; }
.tabs [role="tab"] {
  position: relative; z-index: 1; flex: none; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: color .3s;
}
.tabs [aria-selected="true"] { background: var(--ink); color: var(--cream); }
html.motion .tabs [role="tab"] { background: transparent; }
html.motion .tabs [aria-selected="true"] { background: transparent; }
.tab-ink { display: none; }
html.motion .tab-ink { display: block; position: absolute; z-index: 0; top: 6px; left: 0; height: 46px; border-radius: 999px; background: var(--ink); }
html.motion .tabs { background: none; }
html.motion .tabs [role="tab"]:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(255, 255, 255, .7); }

.panels { display: grid; gap: 56px; }
html.js .panels { gap: 0; }
.panel { display: grid; gap: 28px; }
.panel[hidden] { display: none; }
.pain { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.15; }
.wins { display: grid; gap: 12px; margin: 22px 0 26px; }
.wins li { display: flex; gap: 12px; font-size: 1.08rem; font-weight: 600; }
.wins li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #062b14; font-weight: 800; font-size: 15px; }
.panel-visual { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--cream-2); box-shadow: var(--shadow); }
.panel-visual img { width: 100%; height: 100%; object-fit: cover; }
.pv-n { position: absolute; left: 14px; bottom: 14px; }
/* las fotos de Pexels son ambientación, nunca clientes ni testimonio (CREDITOS.md de devuni_leads) */
.pv-note { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 253, 247, .9); color: var(--ink-2); font-size: 11px; font-weight: 600; }
.ui-visual { display: grid; place-items: center; padding: 22px 22px 88px; aspect-ratio: auto; min-height: 300px; background: linear-gradient(160deg, var(--cream-2), #ffe7a3); }
.ui-visual:has(.chat) { padding-bottom: 22px; }
.mini-ui { width: min(100%, 380px); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 16px; font-size: 14px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--display); font-size: 18px; }
.slots, .lines { display: grid; gap: 8px; }
.slots li { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--cream); }
.slots time { font-weight: 700; }
.slots span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slots .free { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-2); }
.lines li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.doc-total { display: flex; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--cream); font-weight: 700; }
.mini-ui.chat { background: #efe7d6; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
@media (min-width: 960px) {
  .rubros { padding: 140px 0; }
  .tabs { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .panel { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
}

/* ---------- proyectos ---------- */
.work { padding: 96px 0; background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
.stats li { background: var(--cream); border-radius: 20px; padding: 18px; }
.stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; }
.stats li > span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.work-grid { display: grid; gap: 20px; }
.work-card { display: grid; text-decoration: none; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
a.work-card:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.work-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.work-body b { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.work-body > span:last-child { color: var(--ink-2); font-size: 15px; }
.work-tags { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-2); filter: brightness(.7); }
.more { margin-top: 28px; font-size: 1.1rem; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .work { padding: 140px 0; }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card { grid-column: span 2; }
  .work-card:nth-child(1), .work-card:nth-child(2) { grid-column: span 3; }
}

/* ---------- opiniones ---------- */
.quotes { padding: 96px 0; }
.quote-grid { display: grid; gap: 20px; }
.quote { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; align-content: start; }
.stars { color: var(--amber-2); letter-spacing: 3px; font-size: 18px; }
.quote blockquote { font-size: 1.12rem; line-height: 1.5; }
.quote figcaption { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--ink); font-size: 15px; }
@media (min-width: 860px) { .quote-grid { grid-template-columns: 1fr 1fr; } .quotes { padding: 120px 0; } }

/* ---------- proceso ---------- */
.process { padding: 72px 0 112px; }
.proc-wrap { position: relative; --p: 1; }
.proc { display: grid; gap: 26px; position: relative; z-index: 1; }
.proc li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.proc-n { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--amber); font-family: var(--display); font-weight: 800; font-size: 22px; }
.proc h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; padding-top: 4px; }
.proc p { color: var(--ink-2); }
.proc-line { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 3px; background: var(--line); border-radius: 3px; }
.proc-line i { position: absolute; inset: 0; background: var(--amber-2); border-radius: inherit; transform-origin: top; transform: scaleY(var(--p)); }
@media (min-width: 960px) {
  .proc { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .proc li { grid-template-columns: 1fr; row-gap: 14px; }
  .proc-n { grid-row: auto; }
  .proc-line { left: 26px; right: calc(25% - 6px); top: 25px; bottom: auto; width: auto; height: 3px; }
  .proc-line i { transform-origin: left; transform: scaleX(var(--p)); }
}

/* ---------- oferta ---------- */
.offer { padding: 0; }
.offer-panel { background: var(--amber); padding: 80px 0; }
.offer-grid { display: grid; gap: 24px; }
.offer .eyebrow { color: var(--ink); }
.offer .eyebrow::before { background: var(--ink); }
.offer-big { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 30vw, 13rem); line-height: .85; letter-spacing: -0.03em; }
.offer-big small { display: block; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: 0; line-height: 1.1; margin-top: 12px; }
.offer-copy p { font-size: 1.12rem; max-width: 46ch; }
.offer-until { margin: 16px 0 26px; }
.js-days:not(:empty) { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--amber); font-weight: 700; font-size: .92em; }
@media (min-width: 960px) {
  .offer-panel { padding: 130px 0; }
  .offer-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; }
}

/* ---------- preguntas ---------- */
.faq { padding: 96px 0; }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.12rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); font-size: 20px; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); }
@media (min-width: 960px) { .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; } .faq { padding: 130px 0; } }

/* ---------- CTA final ---------- */
.final { padding: 0 0 0; }
.final-panel { background: var(--ink); color: var(--cream); padding: 96px 0 104px; text-align: center; overflow: hidden; position: relative; }
.final-panel::before { content: ""; position: absolute; left: 50%; top: 20%; width: 700px; height: 700px; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255, 201, 23, .22), transparent); pointer-events: none; }
.final-inner { position: relative; display: grid; justify-items: center; gap: 8px; }
.final-owl { width: 120px; color: var(--amber); filter: drop-shadow(0 0 14px rgba(255, 201, 23, .55)); margin-bottom: 16px; }
.final-title { color: var(--cream); max-width: 14ch; }
.final-title .hl, html.motion .final-title.is-lit .hl { color: var(--amber); background-image: none; }
.final .lead { color: #e9dfc3; margin: 14px auto 30px; }
.final-mail { margin-top: 18px; color: #e9dfc3; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--cream-2); padding: 48px 0 110px; font-size: 15px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand strong { font-family: var(--display); font-size: 26px; }
.footer-brand p { color: var(--ink-2); }
.footer-nav, .footer-contact { display: grid; gap: 8px; }
.footer a { text-decoration: none; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 32px; font-size: 13px; color: var(--ink-2); }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: 48px; } }

/* ---------- botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0 16px;
  border-radius: 999px; background: var(--wa); color: #062b14; text-decoration: none; font-weight: 800;
  box-shadow: 0 12px 30px rgba(18, 140, 74, .4);
  transition: translate .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { translate: 0 -3px; }
.wa-label { font-size: 15px; }
@media (max-width: 599px) { .wa-label { display: none; } .wa-float { padding: 0; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: pop .7s var(--ease) 1.4s backwards; }
  .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: ring 2.6s 3s infinite; }
}
/* pantallas bajas (celular en horizontal): el flotante va solo con el ícono */
@media (max-height: 500px) { .wa-label { display: none; } .wa-float { padding: 0; justify-content: center; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

/* ---------- utilidades de animación ---------- */
html.motion .split { visibility: hidden; }
html.motion .split.is-ready { visibility: visible; }
html.motion .split .hl { background-size: 0 .36em; }
html.motion .split.is-lit .hl { background-size: 100% .36em; transition: background-size .9s var(--ease) .35s; }
.split-line { padding-bottom: .04em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
