/* Lariko · propuesta de web de presentación («papel y cuatro piezas»). Sin CDN: fuentes y recursos propios. */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #EDF0F5; --card: #FFFFFF; --ink: #15163C; --muted: #4C4F78; --line: rgba(21,22,60,.13);
  --blue: #4F7EE2; --red: #DE4538; --green: #6CBB41; --yellow: #F1C63D;
  --on-ink: #F1F3F8; --on-ink-muted: #B9BBDD;
  --pad: clamp(18px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --display: Bricolage, Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.casas :focus-visible, .instalar :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: .98; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; margin-top: 20px; text-wrap: pretty; }
.sec-head { max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 56px); padding: 0 var(--pad); }

/* Logo de cuatro piezas */
.mark { --s: 32px; width: var(--s); height: var(--s); border-radius: 19%; background: var(--ink); display: inline-grid; grid-template: 1fr 1fr / 1fr 1fr; gap: calc(var(--s) * .06); padding: calc(var(--s) * .17); flex: none; }
.mark i, .tiles i, .inst-logo i { border-radius: 21%; }
.mark i:nth-child(1), .tiles i:nth-child(1), .inst-logo i:nth-child(1) { background: var(--blue); }
.mark i:nth-child(2), .tiles i:nth-child(2), .inst-logo i:nth-child(2) { background: var(--red); }
.mark i:nth-child(3), .tiles i:nth-child(3), .inst-logo i:nth-child(3) { background: var(--green); }
.mark i:nth-child(4), .tiles i:nth-child(4), .inst-logo i:nth-child(4) { background: var(--yellow); }
.mark.sm { --s: 28px; }
.casas .mark, .foot .mark, .inst-panel .mark { box-shadow: 0 0 0 1px rgba(255,255,255,.22); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 16px; border: 0; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 6px 0 rgba(21,22,60,.16); }
.btn-ink:hover { box-shadow: 0 9px 0 rgba(21,22,60,.16); }
.btn-line { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 13px; font-size: 15px; box-shadow: none; }
.btn-big { min-height: 62px; padding: 0 36px; font-size: 18px; }

/* Aparecer con el scroll (solo si hay JavaScript y no se ha pedido menos movimiento) */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r].in { opacity: 1; transform: none; }

/* ── Barra ── */
.nav { position: fixed; z-index: 50; top: 10px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 20px), var(--max)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 20px; background: rgba(237,240,245,.84); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.nav.lifted { box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(21,22,60,.10); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s; }
.nav-links a:hover { background: rgba(21,22,60,.08); }
.nav-cta { display: flex; align-items: center; gap: 4px; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-login:hover { background: rgba(21,22,60,.08); }
.wide-only { display: none; }
@media (min-width: 420px) { .wide-only { display: inline; white-space: pre; } }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ── Portada ── */
.hero { max-width: var(--max); margin: 0 auto; padding: 112px var(--pad) 0; display: grid; gap: 44px; }
.hero h1 { font-size: clamp(54px, 15.5vw, 132px); line-height: .9; }
.mark.dot { --s: .2em; margin-left: .05em; vertical-align: baseline; border-radius: 0; padding: 0; gap: .024em; background: none; }
.mark.dot i { border-radius: 26%; }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.assure { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--muted); }

.stage { --p: 0; position: relative; width: min(84vw, 460px); aspect-ratio: 1; margin: 34px auto 0; }
.tiles { position: absolute; inset: 0; border-radius: 19%; background: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 13%; rotate: calc(-8deg - var(--p) * 10deg); }
.tiles i { animation: pop .8s var(--spring) backwards; }
.tiles i:nth-child(1) { animation-delay: .15s; translate: calc(var(--p) * -10%) calc(var(--p) * -10%); }
.tiles i:nth-child(2) { animation-delay: .25s; translate: calc(var(--p) * 10%) calc(var(--p) * -10%); }
.tiles i:nth-child(3) { animation-delay: .35s; translate: calc(var(--p) * -10%) calc(var(--p) * 10%); }
.tiles i:nth-child(4) { animation-delay: .45s; translate: calc(var(--p) * 10%) calc(var(--p) * 10%); }
@keyframes pop { from { scale: 0; } }
.phone { --bz: 7px; --pr: 34px; position: relative; border: var(--bz) solid var(--ink); border-radius: var(--pr); background: var(--ink); box-shadow: 0 30px 60px -20px rgba(21,22,60,.45); }
.screen { position: relative; aspect-ratio: 780 / 1688; border-radius: calc(var(--pr) - var(--bz)); overflow: hidden; background: #E9E6DF; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s; }
.screen img.on { opacity: 1; }
.hero-phone { position: absolute; left: 50%; top: -7%; width: 54%; translate: -50% 0; rotate: calc(5deg - var(--p) * 5deg); animation: rise 1s var(--ease) .35s backwards; }
@keyframes rise { from { opacity: 0; translate: -50% 90px; } }
.notif { position: absolute; display: flex; gap: 10px; align-items: flex-start; width: min(230px, 62%); padding: 11px 13px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -10px rgba(21,22,60,.3); font-size: 13px; line-height: 1.35; animation: notif .7s var(--spring) backwards; transition: opacity .3s, transform .3s; }
.notif b { display: block; font-size: 13px; }
.notif p { color: var(--muted); }
.notif.n1 { left: -6%; top: 20%; animation-delay: 1.1s; }
.notif.n2 { right: -6%; bottom: 6%; animation-delay: 1.5s; }
.notif.swap { opacity: 0; transform: translateY(8px) scale(.96); }
@keyframes notif { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.hero { overflow: clip; padding-bottom: 60px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 24px; min-height: min(100svh, 900px); padding-top: 110px; padding-bottom: 70px; overflow: visible; }
  .hero h1 { font-size: clamp(76px, 9.2vw, 138px); }
  .stage { width: min(38vw, 500px); margin: 40px 0 0 auto; right: 3%; }
}

/* ── Lo que se pregunta en casa ── */
.asks { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 9vw, 120px); overflow: clip; }
.ticker { display: grid; gap: 12px; rotate: -2deg; margin: 0 -20px; }
.track { display: flex; gap: 12px; width: max-content; animation: slide 48s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 56s; }
.track span { padding: 12px 22px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.02em; white-space: nowrap; }
.track .c-b { background: var(--blue); color: #fff; box-shadow: none; }
.track .c-r { background: var(--red); color: #fff; box-shadow: none; }
.track .c-y { background: var(--yellow); box-shadow: none; }
.track .c-g { background: var(--green); box-shadow: none; }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }
.asks-copy { max-width: var(--max); margin: clamp(48px, 7vw, 90px) auto 0; padding: 0 var(--pad); }
.asks-copy h2 { max-width: 14em; }

/* ── La app por dentro ── */
.dentro { padding-bottom: clamp(60px, 9vw, 120px); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad) 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: none; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: 15px; transition: background .25s, color .25s, box-shadow .25s; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.caps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px; scroll-padding-left: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.caps::-webkit-scrollbar { display: none; }
.cap { flex: none; width: min(82vw, 340px); scroll-snap-align: start; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cap-shot { height: 300px; background: var(--c); padding: 26px 44px 0; overflow: hidden; }
.cap-shot img { width: 100%; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 7px var(--ink); transition: transform .8s var(--ease); transform: translateY(26px); }
.cap.on .cap-shot img { transform: none; }
.cap-txt { padding: 22px 22px 26px; }
.cap h3 { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -0.03em; }
.cap h3 i { display: inline-block; width: .5em; height: .5em; margin-right: .4em; border-radius: 24%; background: var(--c); }
.cap p { margin-top: 10px; color: var(--muted); }
.cap ul { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.cap li { padding-left: 18px; position: relative; }
.cap li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--ink); }
.scene-phone { display: none; }

@media (min-width: 900px) {
  .chips { display: none; }
  .scene { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .caps { display: block; overflow: visible; padding: 0 0 12vh; }
  .cap { width: auto; min-height: 62vh; background: none; box-shadow: none; border-radius: 0; overflow: visible; justify-content: center; transition: opacity .4s; }
  .js .cap { opacity: .38; }
  .js .cap.on { opacity: 1; }
  .cap-shot { display: none; }
  .cap-txt { padding: 0; max-width: 470px; }
  .cap h3 { font-size: clamp(36px, 3.6vw, 52px); }
  .cap h3 i { transition: transform .5s var(--spring); transform: scale(.6); }
  .cap.on h3 i { transform: scale(1) rotate(90deg); }
  .cap p { font-size: 20px; margin-top: 16px; }
  .cap ul { font-size: 17px; margin-top: 20px; gap: 10px; }
  .scene-phone { display: grid; place-items: center; position: sticky; top: max(84px, calc(50vh - 340px)); height: min(680px, calc(100vh - 100px)); }
  .scene-tile { position: absolute; width: min(100%, 470px); aspect-ratio: 1; border-radius: 19%; background: var(--c, var(--yellow)); rotate: var(--rot, -6deg); transition: background .6s var(--ease), rotate .9s var(--spring); }
  .scene-phone .phone { --bz: 9px; --pr: 44px; width: min(310px, calc((100vh - 130px) * .46)); }
}

/* ── Voz ── */
.voz { padding: 0 clamp(10px, 2.4vw, 32px); }
.voz-panel { max-width: calc(var(--max) + 80px); margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: var(--yellow); padding: clamp(36px, 6vw, 84px) clamp(22px, 5vw, 72px); display: grid; gap: 36px; }
.voz .lead, .voz .siri { color: var(--ink); }
.siri { margin-top: 18px; font-size: 16px; }
.voz-demo { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: 26px 22px; min-height: 290px; display: flex; flex-direction: column; gap: 18px; }
.mic { display: flex; align-items: center; gap: 5px; height: 44px; }
.mic span { width: 7px; height: 12px; border-radius: 4px; background: var(--yellow); transition: height .3s; }
.mic span:nth-child(2) { background: var(--red); } .mic span:nth-child(3) { background: var(--blue); } .mic span:nth-child(4) { background: var(--green); }
.voz-demo.talking .mic span { animation: bar .7s ease-in-out infinite alternate; }
.voz-demo.talking .mic span:nth-child(2) { animation-delay: -.5s; } .voz-demo.talking .mic span:nth-child(3) { animation-delay: -.2s; } .voz-demo.talking .mic span:nth-child(4) { animation-delay: -.6s; } .voz-demo.talking .mic span:nth-child(5) { animation-delay: -.35s; }
@keyframes bar { from { height: 10px; } to { height: 42px; } }
.said { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; min-height: 3.4em; }
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 3px; background: var(--yellow); vertical-align: -0.08em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.heard { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); color: var(--ink); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s, transform .5s var(--spring); }
.heard.show { opacity: 1; transform: none; }
.heard i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.heard div { flex: 1; min-width: 0; }
.heard small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.heard b { font-size: 16px; }
.heard svg { width: 24px; height: 24px; color: var(--green); stroke-width: 3; flex: none; }
@media (min-width: 900px) {
  .voz-panel { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .voz-demo { padding: 36px; min-height: 340px; }
}

/* ── Dos casas ── */
.casas { margin-top: clamp(60px, 9vw, 120px); background: var(--ink); color: var(--on-ink); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; padding: clamp(56px, 8vw, 120px) var(--pad); }
.casas-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.casas-in > *, .casas-demo > *, .det-grid > *, .hero > *, .voz-panel > * { min-width: 0; }
.casas .lead { color: var(--on-ink-muted); }
.pre { font-weight: 800; font-size: 16px; color: var(--yellow); margin-bottom: 14px; }
.casas h2 { font-size: clamp(42px, 6.4vw, 92px); }
.casas-demo { display: grid; gap: 12px; align-content: start; }
.cal-card { background: #1E2050; border-radius: 26px; padding: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.patterns { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 16px; padding: 3px 18px; scrollbar-width: none; }
.patterns::-webkit-scrollbar { display: none; }
.patterns button { flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 0; background: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); font-weight: 700; font-size: 14px; transition: background .25s, color .25s; }
.patterns button[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.cal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.cal-top b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.legend { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .casas-list i { width: 12px; height: 12px; border-radius: 4px; }
.a { background: var(--blue); } .b { background: var(--yellow); }
.cal-days, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-days { font-size: 12px; font-weight: 700; color: var(--on-ink-muted); text-align: center; margin-bottom: 6px; }
.cal div { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 28%; font-weight: 800; font-size: clamp(13px, 3.4vw, 16px); background: rgba(255,255,255,.08); transition: background .3s, color .3s; }
.cal div[data-o="a"] { background: var(--blue); color: #fff; }
.cal div[data-o="b"] { background: var(--yellow); color: var(--ink); }
.cal div[data-eve]::after { content: ""; position: absolute; right: 12%; bottom: 12%; width: 30%; height: 30%; border-radius: 35%; background: var(--yellow); box-shadow: 0 0 0 2px #1E2050; }
.cal div.asked { outline: 2.5px dashed var(--on-ink); outline-offset: 2px; }
.cal div.changed { outline: 2.5px solid var(--on-ink); outline-offset: 2px; }
.cal-say { margin-top: 14px; font-size: 14px; color: var(--on-ink-muted); min-height: 2.9em; }
.ask-card, .now { background: var(--card); color: var(--ink); border-radius: 20px; padding: 16px; }
.ask-card p { font-size: 16px; line-height: 1.4; }
.ask-btns { display: flex; gap: 8px; margin-top: 12px; }
.ask-btns button, .again { min-height: 46px; padding: 0 20px; border-radius: 13px; border: 0; font-weight: 800; font-size: 15px; transition: transform .2s var(--spring); }
.ask-btns button:active, .again:active { transform: scale(.95); }
.ask-btns .yes { background: var(--ink); color: #fff; flex: 1; }
.ask-btns .no, .again { background: none; box-shadow: inset 0 0 0 2px var(--line); }
.again { margin-top: 12px; }
.ask-a { animation: notif .5s var(--spring); }
.now { display: flex; gap: 12px; align-items: center; }
.now b { display: block; font-size: 16px; line-height: 1.25; }
.now small { font-size: 13px; color: var(--muted); }
.casas-list { display: grid; gap: 26px; }
.casas-list li { display: flex; gap: 14px; }
.casas-list i { flex: none; margin-top: 8px; }
.k-b { background: var(--blue); } .k-y { background: var(--yellow); } .k-r { background: var(--red); } .k-g { background: var(--green); }
.casas-list h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.casas-list p { margin-top: 6px; color: var(--on-ink-muted); }
.casas-also { color: var(--on-ink-muted); font-size: 15px; }
@media (min-width: 900px) {
  .casas-in { grid-template-columns: 1fr minmax(380px, 460px); gap: 30px 70px; }
  .casas-head { grid-column: 1; }
  .casas-demo { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 96px; align-self: start; }
  .casas-list { grid-column: 1; gap: 30px; max-width: 520px; }
  .casas-also { grid-column: 1; }
  .cal-card { padding: 24px; }
  .patterns { margin: 0 0 18px; padding: 3px; }
  .cal div { font-size: 16px; }
}

/* ── Los detalles ── */
.detalles { background: var(--ink); padding: 0 clamp(10px, 2.4vw, 32px) clamp(10px, 2.4vw, 32px); }
.detalles > * { position: relative; }
.detalles { --r: clamp(28px, 4vw, 48px); }
.detalles .sec-head, .det-grid { background: var(--paper); max-width: calc(var(--max) + 80px); }
.detalles .sec-head { margin-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 72px) clamp(24px, 3vw, 44px); }
.det-grid { margin: 0 auto; border-radius: 0 0 var(--r) var(--r); padding: 0 clamp(14px, 5vw, 72px) clamp(36px, 6vw, 84px); display: grid; gap: 14px; }
.demo { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.demo-q { background: var(--blue); color: #fff; }
.demo-m { background: var(--green); }
.demo-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.bubble, .med { display: flex; gap: 12px; align-items: center; background: var(--card); color: var(--ink); border-radius: 18px; padding: 14px; }
.bubble p, .med p { font-weight: 700; line-height: 1.3; }
.bubble small, .med small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.ava { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; flex: none; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; }
.answers button { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; transition: transform .25s var(--spring), background .2s, color .2s; }
.answers button:hover { transform: translateY(-2px); }
.answers button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); transform: scale(1.05); }
.demo-out { font-size: 15px; font-weight: 600; min-height: 2.8em; margin-top: auto; }
.demo-q :focus-visible { outline-color: #fff; }
.demo-m :focus-visible { outline-color: var(--ink); }
.pill { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(90deg, var(--red) 50%, var(--yellow) 50%); rotate: -35deg; scale: .8 .42; flex: none; }
.given { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 0; background: var(--ink); color: #fff; font-weight: 800; transition: transform .25s var(--spring), background .25s, color .25s; }
.given svg { width: 0; height: 22px; stroke-width: 3; transition: width .3s var(--spring); }
.given[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.given[aria-pressed="true"] svg { width: 22px; }
.given:active { transform: scale(.96); }
.det-list { display: grid; align-content: start; }
.det-list li { padding: 18px 4px; border-top: 2px solid var(--ink); }
.det-list h3 { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.det-list p { margin-top: 4px; color: var(--muted); font-size: 16px; }
@media (min-width: 700px) {
  .det-grid { grid-template-columns: 1fr 1fr; }
  .det-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 20px; }
}
@media (min-width: 1100px) {
  .det-grid { grid-template-columns: 1fr 1fr 1.25fr; gap: 20px; align-items: start; }
  .det-list { grid-column: auto; grid-template-columns: 1fr; margin-top: 0; padding-left: 20px; }
  .det-list li:first-child { padding-top: 14px; }
}

/* ── Precio ── */
.precio { background: var(--ink); padding: 0 clamp(10px, 2.4vw, 32px) clamp(10px, 2.4vw, 32px); }
.precio-panel { max-width: calc(var(--max) + 80px); margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: var(--green); padding: clamp(30px, 6vw, 80px) clamp(22px, 5vw, 72px) clamp(36px, 6vw, 80px); display: grid; gap: 10px; overflow: hidden; }
.zero { font-family: var(--display); font-weight: 800; font-size: clamp(150px, 30vw, 380px); line-height: .8; letter-spacing: -0.06em; display: flex; align-items: flex-start; gap: .04em; }
.zero span:last-child { font-size: .42em; line-height: 1; margin-top: .12em; }
.js .zero span { display: inline-block; transform: translateY(40%) rotate(-8deg); opacity: 0; transition: transform .9s var(--spring), opacity .4s; }
.js .zero span:last-child { transition-delay: .15s; }
.js .zero.in span { transform: none; opacity: 1; }
.precio-copy p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); max-width: 30em; font-weight: 500; }
.precio-copy a { font-weight: 800; text-underline-offset: 3px; }
@media (min-width: 900px) { .precio-panel { grid-template-columns: auto 1fr; align-items: center; gap: 60px; } }

.donar { margin-top: 22px; }
.precio :focus-visible { outline-color: var(--ink); }

/* ── Dudas ── */
.dudas { background: var(--ink); color: var(--on-ink); padding: clamp(50px, 8vw, 110px) var(--pad); display: grid; gap: 26px; }
.dudas > * { width: 100%; max-width: var(--max); margin: 0 auto; }
.faq { display: grid; }
.faq details { border-top: 1px solid rgba(255,255,255,.2); }
.faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--yellow); transition: transform .4s var(--spring), background .3s; }
.faq details:nth-child(4n+2) summary::after { background: var(--blue); }
.faq details:nth-child(4n+3) summary::after { background: var(--red); }
.faq details:nth-child(4n) summary::after { background: var(--green); }
.faq details[open] summary::after { transform: rotate(45deg) scale(1.2); }
.faq details p { padding: 0 2px 20px; color: var(--on-ink-muted); max-width: 46em; }
.faq details p + p { margin-top: -6px; }
.faq details[open] p { animation: notif .4s var(--ease); }
.dudas :focus-visible { outline-color: var(--yellow); }
@media (min-width: 900px) { .dudas { grid-template-columns: minmax(0, 300px) minmax(0, 860px); justify-content: center; gap: 40px; } .dudas > * { margin: 0; } }

/* ── Instalar ── */
.instalar { background: var(--ink); color: var(--on-ink); padding: clamp(20px, 5vw, 60px) var(--pad) clamp(60px, 9vw, 120px); }
.inst-panel { max-width: 860px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.inst-logo { width: 92px; height: 92px; border-radius: 19%; background: #1E2050; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 6px; padding: 16px; margin-bottom: 28px; }
.js .inst-logo i { transition: transform .9s var(--spring), opacity .4s; opacity: 0; }
.js .inst-logo i:nth-child(1) { transform: translate(-90px, -70px) rotate(-90deg); }
.js .inst-logo i:nth-child(2) { transform: translate(90px, -70px) rotate(90deg); transition-delay: .08s; }
.js .inst-logo i:nth-child(3) { transform: translate(-90px, 70px) rotate(90deg); transition-delay: .16s; }
.js .inst-logo i:nth-child(4) { transform: translate(90px, 70px) rotate(-90deg); transition-delay: .24s; }
.js .inst-logo.in i { transform: none; opacity: 1; }
.instalar .lead { color: var(--on-ink-muted); margin-left: auto; margin-right: auto; }
.inst-box { margin-top: 32px; width: 100%; max-width: 620px; background: #1E2050; border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.os { display: none; }
.inst-box[data-os="android"] .os-android, .inst-box[data-os="ios"] .os-ios { display: block; }
.inst-box[data-os="desktop"] .os-desktop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; text-align: left; }
.hint { margin-top: 16px; font-size: 15px; color: var(--on-ink-muted); }
.steps { counter-reset: s; display: grid; gap: 14px; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 5px 0 5px 50px; min-height: 36px; font-size: 17px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: var(--blue); }
.steps li:nth-child(2)::before { background: var(--yellow); } .steps li:nth-child(3)::before { background: var(--green); }
.share { width: 20px; height: 20px; vertical-align: -3px; }
.qr { width: 168px; height: 168px; padding: 12px; background: #fff; border-radius: 18px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; stroke: none; fill: initial; }
.os-desktop > div:last-child { flex: 1; min-width: 200px; }
.qr-text { margin-bottom: 16px; }
.tip { margin-top: 22px; color: var(--on-ink-muted); }
.tip a { color: var(--on-ink); font-weight: 800; text-underline-offset: 3px; }

/* ── Pie ── */
.foot { background: var(--ink); color: var(--on-ink); padding: 0 var(--pad) 36px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: 26px; }
.foot-brand p { margin-top: 12px; color: var(--on-ink-muted); max-width: 26em; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 -10px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot small { display: block; max-width: var(--max); margin: 26px auto 0; color: var(--on-ink-muted); }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } .foot-links { max-width: 520px; justify-content: flex-end; } }

/* ══════════ Segunda versión: más movimiento y «¿para quién?» ══════════ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--yellow) 75%); transform: scaleX(0); transform-origin: left; }

/* Titular: dos renglones con máscara; la primera palabra va cambiando */
.h1-vis { display: block; }
.ln { display: block; overflow: hidden; padding: .1em .06em .14em 0; margin: -.1em 0 -.14em; white-space: nowrap; }
.rot, .fix { display: inline-block; }
.ch { display: inline-block; will-change: transform; }
.motion:not(.ready) .hero-copy > *, .motion:not(.ready) .stage > * { opacity: 0; }
.motion .tiles i, .motion .hero-phone, .motion .notif { animation: none; }
.motion .notif { transition: none; }
.motion .split { visibility: hidden; }
.split .line { padding-bottom: .12em; margin-bottom: -.12em; }
.hero-phone { --bz: 6px; --pr: 30px; }
@media (min-width: 900px) {
  .hero-phone { --bz: 8px; --pr: 40px; }
  .hero h1 { font-size: clamp(72px, 7.9vw, 114px); }
}

/* Botones y tarjetas: respuesta al ratón */
@media (hover: hover) {
  .demo { transition: transform .5s var(--spring), box-shadow .4s; }
  .demo:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 22px 40px -22px rgba(21,22,60,.5); }
  .demo-m:hover { transform: translateY(-6px) rotate(.8deg); }
  .track span { transition: transform .35s var(--spring); }
  .track span:hover { transform: scale(1.08) rotate(-2deg); }
  .det-list li { transition: padding .35s var(--ease); }
  .det-list li:hover { padding-left: 14px; }
  .cal div { cursor: default; }
  .cal div:hover { transform: scale(1.12); }
}
.cal div { transition: background .3s, color .3s, transform .25s var(--spring); }

/* ── ¿Para quién? ── */
.quien { padding-bottom: clamp(60px, 9vw, 120px); }
.quien-box { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.quien-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quien-tabs button { position: relative; overflow: hidden; min-height: 54px; padding: 0 10px; border-radius: 17px; border: 0; background: none; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 16px; transition: background .3s, color .3s, box-shadow .3s, transform .25s var(--spring); }
.quien-tabs button:hover { transform: translateY(-2px); }
.quien-tabs button:active { transform: scale(.97); }
.quien-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.quien-tabs .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.quien-body { margin-top: 14px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: grid; }
.quien-body > * { min-width: 0; }
.quien-panels { display: grid; padding: 26px 22px 6px; }
.qp { grid-area: 1 / 1; visibility: hidden; }
.qp.on { visibility: visible; }
.qp h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.2vw, 54px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.qp ul { margin-top: 20px; display: grid; gap: 14px; }
.qp li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.4; }
.qp li i { width: 14px; height: 14px; margin-top: .3em; border-radius: 4px; background: var(--c); }
.qp-more { display: inline-flex; align-items: center; min-height: 46px; margin-top: 16px; padding: 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.qp-more:hover { background: var(--ink); color: #fff; }
.quien-art { position: relative; height: 340px; display: grid; justify-items: center; align-items: start; padding-top: 34px; overflow: hidden; }
.q-tile { position: absolute; top: 60px; width: 300px; aspect-ratio: 1; border-radius: 19%; background: var(--blue); rotate: -8deg; }
.quien-art .phone { width: 220px; }
.q-toast { position: absolute; left: 50%; bottom: 22px; width: min(290px, 86%); translate: -50% 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -10px rgba(21,22,60,.35); font-size: 13px; line-height: 1.3; visibility: hidden; }
.q-toast.on { visibility: visible; }
.q-toast b { display: block; font-size: 14px; }
.q-toast small { color: var(--muted); }
@media (min-width: 700px) { .quien-tabs { grid-template-columns: repeat(4, 1fr); gap: 10px; } .quien-tabs button { min-height: 60px; font-size: 18px; } }
@media (min-width: 900px) {
  .quien-body { grid-template-columns: 1.1fr .9fr; margin-top: 18px; border-radius: 40px; }
  .quien-panels { padding: 56px 20px 56px 56px; align-content: center; }
  .qp ul { margin-top: 30px; gap: 18px; }
  .quien-art { height: 520px; padding-top: 50px; }
  .q-tile { width: 400px; top: 90px; }
  .quien-art .phone { --bz: 9px; --pr: 42px; width: 290px; }
  .q-toast { bottom: 44px; }
}

/* ── La app por dentro, con movimiento: escena fija que avanza con el scroll ── */
.motion .dentro { padding-bottom: 0; }
.motion .scene { height: 100vh; height: 100svh; max-width: var(--max); margin: 0 auto; padding: 78px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; }
.motion .chips { display: flex; }
.motion .scene-phone { order: 1; position: relative; top: auto; height: auto; min-height: 0; display: grid; justify-items: center; align-items: start; padding-top: 22px; overflow: hidden; }
.motion .scene-tile { position: absolute; top: 44px; width: min(74vw, 330px); aspect-ratio: 1; border-radius: 19%; background: var(--yellow); rotate: none; transition: none; }
.motion .scene-phone .phone { width: min(56vw, 250px); }
.motion .scene-phone .screen img { opacity: 1; transition: none; }
.motion .caps { order: 2; display: grid; overflow: visible; padding: 16px var(--pad) 22px; scroll-snap-type: none; }
.motion .cap { grid-area: 1 / 1; width: auto; min-height: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; opacity: 1; transition: none; }
.motion .cap:not(:first-child) { visibility: hidden; }
.motion .cap-shot { display: none; }
.motion .cap-txt { padding: 0; }
@media (max-width: 899px) and (max-height: 700px) { .motion .cap ul { display: none; } }
@media (min-width: 900px) {
  .motion .scene { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 92px var(--pad) 30px; column-gap: 40px; }
  .motion .chips { grid-column: 1 / -1; padding: 0 0 6px; }
  .motion .caps { order: 1; padding: 0; align-self: center; }
  .motion .scene-phone { order: 2; height: 100%; align-items: center; overflow: visible; padding: 0; }
  .motion .scene-tile { top: auto; width: min(100%, 460px); }
  .motion .scene-phone .phone { width: min(300px, calc((100svh - 230px) * .46)); }
}

/* ── Luz que sigue al ratón en los bloques oscuros ── */
.casas { background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 10%), rgba(79,126,226,.26), transparent 70%), var(--ink); }
.instalar { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(79,126,226,.22), transparent 70%), var(--ink); }

/* ── Apariencias de la app ── */
.looks { grid-column: 1 / -1; min-width: 0; margin-top: 8px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 24px; }
.looks > * { min-width: 0; }
.looks h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.03em; }
.looks-copy > p { margin-top: 10px; color: var(--muted); max-width: 32em; }
.looks-opts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.looks-opts label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 10px 0 9px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: 14px; line-height: 1.1; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--spring); }
.looks-opts label:hover { transform: translateY(-2px); }
.looks-opts input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.looks-opts input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.sw { flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(21,22,60,.25); }
.sw-claro { --a: #F4F4F2; --b: #2B2C3B; } .sw-beige { --a: #F3F0E9; --b: #15163C; }
.sw-pizarra { --a: #373C47; --b: #4F7EE2; } .sw-grafito { --a: #131416; --b: #4F7EE2; } .sw-noche { --a: #141D47; --b: #4F7EE2; }
.looks-say { font-size: 14px; font-weight: 600; min-height: 2.9em; margin-top: 14px !important; }
@media (min-width: 480px) { .looks-opts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) {
  .looks { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 34px 40px; gap: 40px; margin-top: 14px; }
  .looks-opts { max-width: 520px; }
  .looks-opts label { font-size: 15px; padding-right: 14px; }
}

/* ── Menos movimiento ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-r], .js .zero span, .js .inst-logo i, .js .cap { opacity: 1 !important; transform: none !important; }
  .progress { display: none; }
  .ticker { rotate: none; margin: 0; }
  .track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
  .track span:nth-child(n+7) { display: none; }
  .caret { display: none; }
}
.btn.mag { transition: background .2s, box-shadow .2s, color .2s; }

/* Apariencias: capturas reales de la app, una encima de otra, que se funden al cambiar */
.mini { position: relative; justify-self: center; width: min(100%, 250px); aspect-ratio: 390 / 780; border: 7px solid #15163C; border-radius: 34px; overflow: hidden; background: #15163C; box-shadow: 0 30px 60px -30px rgba(21, 22, 60, .45); }
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.mini img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mini img { transition: none; } }
