/* keepasa · versión alternativa de la web (estilo página de producto): escenas fijas que avanzan con el scroll. */

/* Fuentes propias (SIL Open Font License), servidas desde aquí mismo: sin llamadas a Google. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/fredoka-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cirílico (ruso, ucraniano, bielorruso): Outfit no lo tiene; Onest, del mismo estilo, pone esas letras. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1c1917; --ink2: #57534e; --muted: #6f6a66; --ink3: #a8a29e;
  --primary: #c2410c; --primary-deep: #9a3412; --primary-soft: #fff1e8;
  --bg: #fbfaf8; --white: #fff; --cream: #f5f4f0; --line: #e7e5e4;
  --dark: #0c0a09; --dark2: #1c1917;
  --grad: linear-gradient(90deg, #c2410c 0%, #ea580c 45%, #f59e0b 100%);
  --nav: 80px;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body { font-family: "Outfit", "Onest", var(--sys); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; overflow-wrap: break-word; }
/* En otros idiomas hay palabras más largas (alemán, finés, húngaro…): solo las muy largas se parten con guion, y
   las líneas de los titulares se equilibran. El español queda como estaba. */
html:not([lang="es"]) :is(h1, h2, h3) { hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 12px; font-weight: 600; color: var(--primary); font-size: clamp(17px, 1.5vw, 21px); }
.eyebrow.light { color: #fdba74; }
.lede { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.35; color: var(--muted); letter-spacing: -.01em; margin: 18px auto 0; max-width: 620px; }
.lede.left { margin-left: 0; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; font-size: 17px; }
.more:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s; }
.pill:hover { background: var(--primary-deep); }
.pill.big { padding: 12px 22px; font-size: 17px; }
.pill.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.pill.ghost:hover { background: var(--primary-soft); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Navegación: fina y translúcida; se oscurece sobre las secciones negras. ---------- */
.gnav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav); background: rgba(251,250,248,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: height .4s cubic-bezier(.2,.7,.2,1), background .35s, border-color .35s, color .35s; }
.gnav.scrolled { border-color: rgba(28,25,23,.08); }
/* Al bajar, la cabecera se encoge; al volver a subir (o arriba del todo), recupera su tamaño. */
.gnav.compact { height: 58px; }
.gnav.on-dark { background: rgba(12,10,9,.72); color: #f5f5f4; border-color: rgba(255,255,255,.08); }
.gnav-in { max-width: 1240px; margin: 0 auto; height: 100%; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Fredoka", "Outfit", sans-serif; font-weight: 600; font-size: 42px; line-height: 1; letter-spacing: -.01em; transform-origin: left center; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.gnav.compact .brand { transform: scale(.64); }
.brand .sym { width: 52px; height: auto; flex: none; color: var(--primary); transition: color .35s; }
.gnav.on-dark .brand .sym { color: #f97316; }
.glinks { flex: 1; display: flex; justify-content: center; gap: 36px; font-size: 17px; font-weight: 500; opacity: .9; transition: font-size .4s cubic-bezier(.2,.7,.2,1); }
.gnav.compact .glinks { font-size: 15px; }
.gnav .pill { padding: 10px 20px; font-size: 16px; transition: padding .4s cubic-bezier(.2,.7,.2,1), font-size .4s cubic-bezier(.2,.7,.2,1), background .2s; }
.gnav.compact .pill { padding: 7px 15px; font-size: 14px; }
.glinks a:hover { color: var(--primary); }
.gnav.on-dark .glinks a:hover { color: #fdba74; }

/* ---------- Escenas: una sección alta con una parte fija que avanza con el scroll. ---------- */
.scene { position: relative; height: calc(var(--vh, 200) * 1vh); height: calc(var(--vh, 200) * 1svh); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.center { display: flex; align-items: center; justify-content: center; }
.cream .sticky { background: var(--cream); }
.dark { background: var(--dark); color: #f5f5f4; }

/* ---------- Móvil hecho en HTML: todo en em, escala con --pw sin perder nitidez. ---------- */
.phone { --pw: 320px; position: relative; width: var(--pw); aspect-ratio: 9 / 19.4; padding: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .165); font-size: calc(var(--pw) / 27); background: linear-gradient(150deg, #48484a 0%, #1c1c1e 28%, #0b0b0c 70%, #3a3a3c 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1), 0 0 0 1px #0b0b0c, 0 60px 110px -40px rgba(28,25,23,.55), 0 30px 60px -30px rgba(0,0,0,.35); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .135); background: #f3f2ee; color: #1c1917; font-family: var(--sys); display: flex; flex-direction: column; letter-spacing: 0; line-height: 1.25; text-align: left; }
.island { position: absolute; z-index: 5; top: calc(var(--pw) * .055); left: 50%; transform: translateX(-50%); width: 31%; height: calc(var(--pw) * .088); background: #000; border-radius: 99px; }
.status { display: flex; justify-content: space-between; align-items: center; min-height: 3.5em; padding: 1.1em 2.1em .3em 2.5em; font-weight: 600; font-size: 1.05em; }
.status .si { display: flex; gap: .28em; }
.status .i { stroke-width: 2.4; }
.status.light { color: #fff; }
.app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.app-head { display: flex; align-items: center; gap: .55em; padding: .5em 1.3em .5em; }
.app-head b { flex: 1; font-size: 2.3em; letter-spacing: -.02em; }
.rb { width: 2.6em; height: 2.6em; border-radius: 50%; background: #c2410c; color: #fff; display: grid; place-items: center; }
.rb .i { width: 1.3em; height: 1.3em; stroke-width: 2.4; }
.seg { margin: .35em 1.3em .8em; padding: .22em; display: flex; background: #e7e5e4; border-radius: 99px; }
.seg span { flex: 1; text-align: center; padding: .5em 0; border-radius: 99px; color: #57534e; }
.seg .on { background: #fff; color: #1c1917; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rows { margin: 0 1em; background: #fff; border: 1px solid #e7e5e4; border-radius: 1.3em; overflow: hidden; }
.row { display: flex; align-items: center; gap: .8em; padding: .72em .9em; border-bottom: 1px solid #f0efeb; }
.row:last-child { border-bottom: 0; }
.av { width: 3.1em; height: 3.1em; flex: none; border-radius: 50%; background: var(--c); color: var(--t); display: grid; place-items: center; font-weight: 700; }
.av.sm { width: 2.5em; height: 2.5em; font-size: .95em; }
.tx { flex: 1; min-width: 0; }
.tx b { display: block; font-size: 1.07em; font-weight: 600; }
.tx span { display: block; color: #78716c; font-size: .93em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; color: #a8a29e; font-size: .82em; }
.badge { min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 99px; background: #c2410c; color: #fff; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: .6em .3em 1.9em; border-top: 1px solid #e7e5e4; background: #f3f2ee; font-size: .78em; color: #57534e; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: .25em; min-width: 0; max-width: 20%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar .i { width: 1.9em; height: 1.9em; stroke-width: 1.9; }
.tabbar .on { color: #c2410c; font-weight: 600; }

/* Chat con temas */
.chat-head { display: flex; align-items: center; gap: .7em; padding: .35em 1.1em .7em; border-bottom: 1px solid #e7e5e4; }
.chat-head > .i { width: 1.5em; height: 1.5em; }
.who { flex: 1; display: flex; flex-direction: column; }
.who b { font-size: 1.1em; }
.who small { color: #15803d; font-size: .85em; }
.hicons { display: flex; gap: 1em; color: #c2410c; }
.hicons .i { width: 1.45em; height: 1.45em; }
.pills { display: flex; gap: .45em; padding: .7em 1em; border-bottom: 1px solid #e7e5e4; }
.pl { padding: .42em .85em; border-radius: 99px; background: #fff; border: 1px solid #e7e5e4; font-weight: 600; font-size: .92em; transition: background .35s, color .35s, border-color .35s; }
.pl.on { background: #c2410c; border-color: #c2410c; color: #fff; }
.pl.new { display: flex; align-items: center; gap: .2em; color: #c2410c; border-style: dashed; }
/* En algunos idiomas la barra de temas o la de herramientas no cabe: como en la app, donde se deslizan, se corta
   con un degradado en el borde (app.js pone .fade solo si no cabe). */
.pills, .tools { overflow: hidden; }
.pills.fade, .tools.fade { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.msgs { position: relative; flex: 1; }
.grp { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .45em; padding: 1em .9em; opacity: 0; transform: translateY(1.4em); transition: opacity .45s, transform .45s; }
.grp.on { opacity: 1; transform: none; }
.b { max-width: 78%; padding: .6em .85em; border-radius: 1.2em; line-height: 1.3; }
.b.them { align-self: flex-start; background: #fff; border: 1px solid #e7e5e4; border-bottom-left-radius: .35em; }
.b.me { align-self: flex-end; background: #fde3d3; border-bottom-right-radius: .35em; }
.composer { display: flex; align-items: center; gap: .6em; padding: .5em .9em; }
.composer .plus { color: #c2410c; }
.composer .plus .i { width: 1.8em; height: 1.8em; }
.composer .input { flex: 1; padding: .7em 1em; border-radius: 99px; background: #fff; border: 1px solid #e7e5e4; color: #a8a29e; }
.composer .send { width: 2.8em; height: 2.8em; border-radius: 50%; background: #c2410c; color: #fff; display: grid; place-items: center; }
.composer .send .i { width: 1.3em; height: 1.3em; }
.tools { display: flex; gap: .9em; padding: .2em 1.1em 1.9em; color: #a8a29e; font-size: .84em; font-weight: 600; }
.tools span { display: flex; align-items: center; gap: .25em; }

/* Llamada entrante */
.screen.call { background: radial-gradient(120% 60% at 50% 0%, #7c2d12 0%, #1c1917 58%, #0c0a09 100%); color: #fff; }
.caller { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 22%; gap: .35em; }
.avatar-ring { position: relative; display: grid; place-items: center; margin-bottom: 1.2em; }
.av.big { font-size: 2.4em; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(253,186,116,.55); animation: ringpulse 2.4s ease-out infinite; }
.ring.r2 { animation-delay: 1.2s; }
@keyframes ringpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.cname { font-size: 2.6em; font-weight: 600; letter-spacing: -.02em; }
.csub { color: rgba(255,255,255,.65); }
.cbtns { display: flex; justify-content: space-between; padding: 0 2.4em 3.6em; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: .6em; color: rgba(255,255,255,.85); font-size: .95em; }
.cc { width: 5em; height: 5em; border-radius: 50%; display: grid; place-items: center; }
.cc .i { width: 2.1em; height: 2.1em; }
.cc.no { background: #ef4444; }
.cc.yes { background: #22c55e; }

/* ---------- 1 · Portada ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--nav) + 6vh); background: radial-gradient(90% 60% at 50% 105%, #fde3cf 0%, rgba(253,227,207,0) 70%), var(--bg); }
.hero-copy { position: relative; z-index: 3; padding: 0 22px; will-change: transform, opacity; }
.hero-title { font-size: clamp(46px, 7.2vw, 108px); letter-spacing: -.045em; line-height: .98; }
.hero-title span { display: block; animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-title span:nth-child(2) { animation-delay: .08s; }
.hero-title span:nth-child(3) { animation-delay: .16s; }
.hero .lede { animation: rise 1s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: center; margin-top: 26px; animation: rise 1s .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-stage { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 5vh; }
.pw { --pw: min(330px, 62vw, calc((100vh - var(--nav) - 7vh) / 2.16)); --pw: min(330px, 62vw, calc((100svh - var(--nav) - 7svh) / 2.16)); position: relative; width: var(--pw); will-change: transform; }
.pw .phone { --pw: inherit; animation: rise 1.2s .2s cubic-bezier(.2,.7,.2,1) both; }
.float { position: absolute; z-index: 4; will-change: transform, opacity; }
.fin { animation: pop .9s cubic-bezier(.2,.8,.2,1.2) both; }
.f1 { left: -64%; top: 14%; } .f1 .fin { animation-delay: .55s; }
.f2 { right: -70%; top: 6%; } .f2 .fin { animation-delay: .7s; }
.f3 { left: -76%; top: 52%; } .f3 .fin { animation-delay: .85s; }
.f4 { right: -58%; top: 44%; } .f4 .fin { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(14px); } to { opacity: 1; transform: none; } }
.card { max-width: 220px; padding: 12px 14px; border-radius: 18px; background: #fff; text-align: left; font-size: 15px; line-height: 1.35; box-shadow: 0 18px 50px -12px rgba(28,25,23,.25); }
.card b { display: block; margin-bottom: 2px; color: var(--primary); font-size: 13px; }
.card.me { background: #fde3d3; }
.card small { display: block; margin-top: 4px; color: var(--ink3); font-size: 12px; text-align: right; }
.card .i, .chip2 .i { vertical-align: -2px; }
.chip2 { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 18px 50px -12px rgba(28,25,23,.25); }
.chip2 .i { color: var(--primary); }
.avs { display: inline-flex; }
.avs i { width: 20px; height: 20px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; }
.avs i:first-child { margin-left: 0; }

/* ---------- 2 · Manifiesto ---------- */
.manifesto .sticky { background: var(--white); padding: 0 6vw; }
.words { max-width: 1060px; margin: 0; font-size: clamp(30px, 4.3vw, 64px); font-weight: 600; line-height: 1.14; letter-spacing: -.03em; }
.words span { opacity: .14; transition: opacity .15s linear; }

/* ---------- 3 · Tu círculo ---------- */
.circle { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4vw; padding: var(--nav) 6vw 0; background: var(--cream); }
.captions { position: relative; min-height: 17em; }
.cap { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.cap.on { opacity: 1; transform: none; }
.cap h2 { font-size: clamp(38px, 4.6vw, 72px); }
.cap p:not(.eyebrow) { margin: 18px 0 0; max-width: 30ch; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; color: var(--muted); }
.orbit { width: min(78vh, 44vw); height: auto; justify-self: center; overflow: visible; }
.orbit .ring { fill: none; stroke: #c2410c; stroke-opacity: .7; stroke-width: 3; stroke-dasharray: 6 12; }
.orbit .e { stroke: #c2410c; stroke-opacity: .5; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.orbit .k { stroke: #a8a29e; stroke-width: 2; stroke-dasharray: 7 7; opacity: 0; }
.orbit .pop, .orbit .pop2 { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.orbit .ini { font-family: var(--sys); font-size: 22px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.orbit .ini.big { font-size: 28px; }
.orbit .lbl { font-family: "Outfit", var(--sys); font-size: 20px; font-weight: 500; fill: #57534e; text-anchor: middle; opacity: 0; }
.orbit .stranger { opacity: 0; }
.orbit .stranger .lbl { opacity: 1; fill: #78716c; }
.orbit .shield { opacity: 0; }

/* ---------- 4 · Cifrado ---------- */
.cipher { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8vh; padding: var(--nav) 22px 0; text-align: center; }
.cipher-title { font-size: clamp(44px, 6.4vw, 100px); }
.track { --t: 0; --pkw: min(320px, 58vw); position: relative; width: min(1000px, 92vw); height: 210px; }
.wire { position: absolute; top: 139px; left: calc(var(--pkw) / 2); right: calc(var(--pkw) / 2); height: 2px; background: #292524; }
.wire-fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--t)); }
.station { position: absolute; top: 110px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #a8a29e; font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .4s; }
.station .i { width: 60px; height: 60px; padding: 15px; border-radius: 18px; background: #1c1917; border: 1px solid #292524; color: #d6d3d1; stroke-width: 1.6; transition: background .4s, border-color .4s, color .4s; }
.station.on { color: #fff; }
.station.on .i { background: #431407; border-color: #9a3412; color: #fdba74; }
.s1 { left: calc(var(--pkw) / 2); }
.s2 { left: 50%; }
.s3 { left: calc(100% - var(--pkw) / 2); }
.packet { position: absolute; top: 0; left: calc(var(--t) * (100% - var(--pkw))); width: var(--pkw); min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 20px; background: #fde3d3; color: #1c1917; font-family: var(--sys); font-size: 18px; line-height: 1.3; box-shadow: 0 14px 44px -12px rgba(234,88,12,.6); transition: background .35s, color .35s; }
.packet .lockmark { display: none; color: #fdba74; }
.packet.enc { background: #1c1917; color: #fdba74; box-shadow: 0 0 0 1px #9a3412, 0 14px 44px -12px rgba(234,88,12,.45); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; word-break: break-all; }
.packet.enc .lockmark { display: inline-flex; }
.captions.line { width: min(900px, 92vw); min-height: 3em; }
.captions.line .cap { font-size: clamp(20px, 2.1vw, 30px); color: #d6d3d1; margin: 0; }

/* ---------- 5 · Foto que se expande ---------- */
.expand .sticky { background: var(--dark); }
.xbox { position: absolute; inset: 0; clip-path: inset(18% 22% round 32px); will-change: clip-path; }
.xbox img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.xbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,9,0) 45%, rgba(12,10,9,.55) 100%); }
.xcap { position: absolute; left: 0; right: 0; bottom: 11vh; z-index: 2; padding: 0 22px; text-align: center; color: #fff; opacity: 0; }
.xcap h2 { font-size: clamp(40px, 6vw, 96px); text-shadow: 0 2px 30px rgba(0,0,0,.3); }

/* ---------- 6 y 7 · Dos columnas: texto y móvil ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; padding: var(--nav) 7vw 0; }
.split h2 { font-size: clamp(40px, 4.8vw, 76px); }
.stage3d { display: flex; justify-content: center; perspective: 1400px; }
.stage3d .phone { --pw: min(320px, 58vw, 38vh); --pw: min(320px, 58vw, 38svh); will-change: transform; }
.checks { list-style: none; margin: 34px 0 0; padding: 0; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: var(--muted); opacity: .28; transform: translateX(-10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.checks li.on { opacity: 1; transform: none; }
.checks li b { color: var(--ink); }
.checks small { font-size: inherit; }
.checks .i { width: 26px; height: 26px; margin-top: 1px; color: var(--primary); }

/* ---------- 8 · Apuntes ---------- */
.notes { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6vh; padding: calc(var(--nav) + 2vh) 22px 2vh; }
.center-text { text-align: center; }
.notes h2 { font-size: clamp(34px, 4.4vw, 66px); }
.tablet { --tw: min(760px, 88vw, calc((100vh - 390px) * 1.333)); --tw: min(760px, 88vw, calc((100svh - 390px) * 1.333)); width: var(--tw); aspect-ratio: 4 / 3; padding: calc(var(--tw) * .022); border-radius: calc(var(--tw) * .045); font-size: calc(var(--tw) / 56); background: linear-gradient(150deg, #48484a, #111 40%, #2c2c2e); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1), 0 50px 100px -40px rgba(28,25,23,.5); }
.tscreen { width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--tw) * .028); background: #f3f2ee; color: #1c1917; font-family: var(--sys); display: flex; flex-direction: column; }
.tbar { display: flex; align-items: center; gap: 1em; padding: 1em 1.4em; font-size: 1.15em; }
.tbar b { flex: 1; }
.tb-r { display: flex; gap: 1.2em; color: #57534e; }
.paper { position: relative; flex: 1; margin: 0 1.2em; padding: 1.4em 2.2em; border-radius: .6em; background-color: #fff; background-image: linear-gradient(#ece9e4 1px, transparent 1px), linear-gradient(90deg, #ece9e4 1px, transparent 1px); background-size: 1.9em 1.9em; display: flex; flex-direction: column; gap: .35em; }
.hw { align-self: flex-start; font-family: "Caveat", cursive; font-size: 3em; font-weight: 600; line-height: 1.15; color: #1c1917; white-space: nowrap; clip-path: inset(-20% 100% -20% 0); }
.hw.title { color: #c2410c; font-size: 2.7em; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.hw.mark { padding: 0 .25em; background: linear-gradient(transparent 58%, rgba(250,204,21,.5) 58%); }
.tap { position: absolute; width: 3.6em; height: 3.6em; margin: -1.8em 0 0 -1.8em; border-radius: 50%; border: .25em solid #c2410c; opacity: 0; pointer-events: none; }
.tap.on { animation: tap 1.2s ease-out infinite; }
@keyframes tap { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
.rec { position: absolute; right: 1.2em; bottom: 1.2em; display: flex; align-items: center; gap: .5em; padding: .7em 1.1em; border-radius: 99px; background: #dc2626; color: #fff; font-weight: 700; font-size: 1.1em; box-shadow: 0 .6em 1.4em -.4em rgba(220,38,38,.6); transition: background .3s; }
.rec .lis-ic { display: none; }
.rec.listen { background: #c2410c; box-shadow: 0 .6em 1.4em -.4em rgba(194,65,12,.6); }
.rec.listen .rec-ic { display: none; }
.rec.listen .lis-ic { display: inline-flex; }
.ttools { display: flex; align-items: center; gap: 1.3em; padding: .9em 1.6em; color: #57534e; font-size: 1.2em; }
.ttools .on { color: #c2410c; background: #fff1e8; border-radius: .35em; padding: .15em; display: inline-flex; }
.ttools .sep { width: 1px; height: 1.3em; background: #d6d3d1; }
.ttools .dot { width: 1.3em; height: 1.3em; border-radius: 50%; background: #1c1917; }
.ttools .pg { margin-left: auto; font-weight: 600; font-size: .85em; }
.wave { width: min(760px, 88vw); display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.wlabel { min-width: 13.5em; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { flex: 1; height: 32px; display: flex; align-items: center; gap: 2px; }
.bars i { flex: 1; height: var(--h); border-radius: 2px; background: #e7e5e4; }
.bars i.p { background: var(--primary); }

/* ---------- 9 · Para ti: tus chats, notas sobre cada enlace y la lista de enlaces ---------- */
.mine .stage3d { order: -1; }
.mine h2 { text-wrap: balance; }
.mine .mlink { margin-top: 26px; }
.pwrap { position: relative; }
.scrs { position: relative; flex: 1; min-height: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translate3d(28%, 0, 0); transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1); }
.scr.past { transform: translate3d(-18%, 0, 0); }
.scr.on { opacity: 1; transform: none; }
.av.own { border-radius: 30%; background: #fff1e8; color: #c2410c; }
.av.own .i { width: 1.4em; height: 1.4em; }
.mine .row { opacity: 0; transform: translateY(.8em); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1); }
.mine .row.on { opacity: 1; transform: none; }
.mine .who { min-width: 0; }
.mine .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small.self { color: #78716c; }
.nlist { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .8em; padding: 1em .9em; }
.nm { display: flex; flex-direction: column; align-items: flex-end; }
.day { align-self: center; margin: .15em 0; padding: .3em .9em; border-radius: 99px; background: #faf8f5; color: #44403c; font-size: .82em; font-weight: 600; }
.nm .b { max-width: 84%; }
.lk { color: #c2410c; text-decoration: underline; text-underline-offset: .12em; word-break: break-all; }
/* La nota llega sobre el mensaje: el título encima (violeta, como en la app) y el comentario debajo. */
.nt, .nc { display: grid; grid-template-rows: 0fr; max-width: 84%; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1), opacity .45s .08s; }
.nm.on .nt, .nm.on .nc { grid-template-rows: 1fr; opacity: 1; }
.nt > span, .nc > span { min-height: 0; overflow: hidden; }
.nt b { display: flex; align-items: center; gap: .3em; padding: 0 .3em .35em; color: #6d28d9; font-size: .9em; white-space: nowrap; }
.nc em { display: flex; align-items: flex-start; gap: .3em; margin-top: .35em; padding: .35em .6em; border-radius: .6em; background: #fff1e8; color: #44403c; font-style: normal; font-size: .9em; }
.nt .i, .nc .i { color: #6d28d9; }
.nc .i { margin-top: .12em; }
.lrows { margin: .8em 1em 0; background: #fff; border: 1px solid #e7e5e4; border-radius: 1.3em; overflow: hidden; }
.lrow { display: flex; align-items: flex-start; gap: .75em; padding: .8em .9em; border-bottom: 1px solid #f0efeb; opacity: 0; transform: translateY(.7em); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1); }
.lrow:last-child { border-bottom: 0; }
.scr.on .lrow { opacity: 1; transform: none; }
.scr.on .lrow:nth-child(2) { transition-delay: .08s; }
.scr.on .lrow:nth-child(3) { transition-delay: .16s; }
.scr.on .lrow:nth-child(4) { transition-delay: .24s; }
.lrow > .i { width: 1.55em; height: 1.55em; margin-top: .1em; color: #57534e; }
.lrow > .i:last-child { color: #a8a29e; }
.ltx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.ltx b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltx b.has { color: #c2410c; }
.ltx small { color: #78716c; font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lockchip { position: absolute; right: -16%; bottom: 20%; z-index: 3; opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1); }
.lockchip.on { opacity: 1; transform: none; }

/* ---------- 10 · Cifras ---------- */
.numbers { padding: 17vh 0; }
.numbers h2 { text-align: center; font-size: clamp(38px, 5.2vw, 76px); margin-bottom: 9vh; }
.ngrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.n b { display: block; font-size: clamp(84px, 10.5vw, 156px); font-weight: 700; line-height: .9; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.n span { display: block; margin-top: 12px; font-size: 21px; font-weight: 600; }
.n small { display: block; margin-top: 6px; font-size: 16px; line-height: 1.4; color: #a8a29e; }

/* ---------- 11 · Mosaico ---------- */
.tiles { padding: 16vh 0 10vh; }
.tiles > h2 { text-align: center; font-size: clamp(38px, 5.2vw, 76px); margin: 0 22px 7vh; }
.tgrid { max-width: 1240px; margin: 0 auto; padding: 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.08; border-radius: 28px; background: #e7e5e4; color: #fff; }
.tile img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,9,.66) 0%, rgba(12,10,9,.12) 42%, rgba(12,10,9,0) 60%, rgba(12,10,9,.25) 100%); }
.tcopy { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: 44px 28px; text-align: center; }
.tcopy h3 { font-size: clamp(30px, 3.1vw, 46px); }
.tcopy p { max-width: 420px; margin: 10px auto 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: rgba(255,255,255,.9); }
.tcopy .more { margin-top: 14px; color: #fdba74; }

/* ---------- 12 · Cierre y pie ---------- */
.closing { padding: 14vh 22px 16vh; text-align: center; background: var(--white); }
.appicon { width: 128px; height: 128px; margin: 0 auto 28px; border-radius: 29px; box-shadow: 0 24px 50px -18px rgba(194,65,12,.55); }
.closing h2 { font-size: clamp(44px, 6vw, 96px); }
.closing .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--ink3); }
.foot { padding: 28px 0 44px; background: var(--cream); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.foot p { margin: 0 0 10px; max-width: 860px; }
.flinks a { display: inline-block; margin-right: 18px; color: var(--ink2); white-space: nowrap; }
.flinks a:hover { color: var(--primary); }
.foot .copy { color: var(--ink3); }
/* Idiomas: solo sus nombres, sin banderas. */
.langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.langs span { display: contents; }
.langs a { color: var(--ink2); }
.langs a:hover { color: var(--primary); }
.langs a.on { color: var(--ink); font-weight: 600; }
.foot .made { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; max-width: none; color: var(--ink3); }

/* ---------- Páginas de cada función ---------- */
.wrap2 { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }
.d-hero { padding: calc(var(--nav) + 8vh) 0 8vh; }
.d-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6vw; align-items: center; }
.d-copy h1 { font-size: clamp(42px, 5.4vw, 84px); letter-spacing: -.04em; text-wrap: balance; }
.ctas.left { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.d-visual { position: relative; justify-self: center; width: 100%; max-width: min(560px, calc((100vh - var(--nav) - 16vh) * .8)); max-width: min(560px, calc((100svh - var(--nav) - 16svh) * .8)); animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both; }
.d-visual img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(28,25,23,.45); }
.d-visual .dchip { position: absolute; z-index: 2; }
.d-copy { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.d-details { padding: 9vh 0 10vh; background: var(--white); }
.d-details h2, .faq h2, .d-more > h2 { font-size: clamp(34px, 4.2vw, 64px); margin-bottom: 5vh; }
.d-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dcard { padding: 30px; border-radius: 26px; background: var(--bg); border: 1px solid var(--line); }
.dcard h3 { margin-bottom: 10px; font-size: clamp(22px, 1.8vw, 27px); letter-spacing: -.02em; line-height: 1.15; }
.dcard p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.d-grid3 .dcard:nth-child(3n+2) { transition-delay: .1s; }
.d-grid3 .dcard:nth-child(3n) { transition-delay: .2s; }
.faq { padding: 9vh 0; background: var(--cream); }
.faq details { margin-bottom: 10px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--primary); transition: transform .3s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.d-more { padding-top: 12vh; }
.tgrid.small { grid-template-columns: repeat(3, 1fr); }
.tgrid.small .tile { aspect-ratio: 4 / 5; }
.tgrid.small .tcopy { padding: 32px 22px; }
.tgrid.small .tcopy h3 { font-size: clamp(24px, 2.2vw, 32px); }
.tgrid.small .tcopy p { font-size: 16px; }
@media (max-width: 900px) {
  .wrap2 { padding: 0 20px; }
  .d-hero { padding: calc(var(--nav) + 4vh) 0 6vh; }
  .d-grid, .d-grid3, .tgrid.small { grid-template-columns: 1fr; }
  .d-visual .dchip { display: none; }
  .d-visual { max-width: 100%; }
}

/* ---------- Tarjeta de los enlaces de invitación (keepasa.com/i/… y /p/…) ---------- */
[hidden] { display: none !important; }
html.has-invite { overflow: hidden; }
.invite { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(12,10,9,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.invite-card { width: min(480px, 100%); padding: 32px 28px 26px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 40px 100px -30px rgba(0,0,0,.55); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.invite-card img { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 15px; box-shadow: 0 12px 26px -10px rgba(194,65,12,.55); }
.invite-card h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.invite-card p { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.inv-ctas { display: flex; flex-direction: column; gap: 10px; }
.inv-ctas .pill.big { justify-content: center; }
.invite-card .fine { margin: 16px 0 12px; font-size: 13px; line-height: 1.45; }

/* Aparecer al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.ngrid .n:nth-child(2), .tgrid .tile:nth-child(2) { transition-delay: .12s; }
.ngrid .n:nth-child(3) { transition-delay: .24s; }
.ngrid .n:nth-child(4) { transition-delay: .36s; }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  :root { --nav: 64px; }
  .brand { font-size: 32px; gap: 9px; }
  .brand .sym { width: 40px; }
  .gnav .pill { padding: 8px 14px; font-size: 14px; }
  .gnav.compact { height: 52px; }
  .gnav.compact .brand { transform: scale(.72); }
  .gnav.compact .pill { padding: 6px 12px; font-size: 13px; }
  .glinks { display: none; }
  .gnav-in { justify-content: space-between; }
  .float { display: none; }
  .circle { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 1vh; padding: calc(var(--nav) + 4vh) 22px 0; text-align: center; }
  .captions { min-height: 12.5em; }
  .cap p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .orbit { width: min(92vw, 50vh); align-self: start; }
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 2vh; padding: calc(var(--nav) + 3vh) 22px 0; text-align: center; }
  .split .stage3d { align-items: flex-start; }
  .split .phone { --pw: min(210px, 52vw, 22vh); --pw: min(210px, 52vw, 22svh); }
  .split h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .lede.left { margin-left: auto; }
  .checks { margin-top: 14px; }
  .checks li { padding: 9px 0; font-size: 16px; text-align: left; }
  .checks small { display: none; }
  .checks .i { width: 22px; height: 22px; }
  .track { --pkw: min(190px, 44vw); height: 200px; }
  .station { top: 104px; }
  .station .i { width: 48px; height: 48px; padding: 12px; }
  .station span { width: 86px; white-space: normal; text-align: center; line-height: 1.2; }
  .wire { top: 127px; }
  .packet { font-size: 15px; }
  .packet.enc { font-size: 12.5px; }
  .station span { font-size: 12px; }
  .ngrid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .tgrid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  .wlabel { min-width: 0; max-width: 46%; white-space: normal; line-height: 1.25; }
  .mine .stage3d { order: 0; }
  .mine .mlink { margin-top: 12px; font-size: 15px; }
  .lockchip { right: -34%; bottom: 12%; padding: 7px 12px; font-size: 12px; gap: 6px; }
}

/* Sin animaciones si la persona lo ha pedido: todo en su estado final y sin escenas altas. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gnav, .brand, .glinks, .gnav .pill { transition: none; }
  .scene { height: auto !important; }
  .sticky { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .reveal, .checks li { opacity: 1; transform: none; transition: none; }
  .hero-title span, .hero .lede, .hero .ctas, .pw .phone, .fin, .ring, .tap.on { animation: none; }
  .scr, .mine .row, .lrow, .nt, .nc, .lockchip { transition: none; }
}
