/* AP Ledger · landing. Sistema del artifact "AP Ledger neomórfico":
   un solo fondo gris azulado; los elementos salen o se hunden con luz y sombra.
   Los colores del logo sólo marcan acciones (violeta), el botón flotante (ámbar) y límites (coral). */

@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(../fonts/Figtree-Regular.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(../fonts/Figtree-Medium.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(../fonts/Figtree-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(../fonts/Figtree-Bold.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(../fonts/Figtree-ExtraBold.ttf) format("truetype"); }

:root {
  --bg: #E7EBF2; --sd: #C5CCD8; --hi: #FFFFFF; --ink: #0B1B3F; --mute: #4A5672; --ph: #6B7590;
  --vio: #5B3DF5; --vio2: #3F22D6; --amb: #FFB020; --cor: #FF5A4E; --line: #D3D9E3;
  --r6: 6px 6px 14px var(--sd), -6px -6px 14px var(--hi);
  --r4: 4px 4px 10px var(--sd), -4px -4px 10px var(--hi);
  --r3: 3px 3px 7px var(--sd), -3px -3px 7px var(--hi);
  --i3: inset 3px 3px 7px var(--sd), inset -3px -3px 7px var(--hi);
  --i6: inset 6px 6px 14px var(--sd), inset -6px -6px 14px var(--hi);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1200px;
  --gut: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--vio2); text-underline-offset: 3px; }
a:hover { color: var(--vio); }
:focus-visible { outline: 2px solid var(--vio); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.04; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--mute); font-weight: 500; max-width: 36ch; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; color: #fff; }

/* ---------- Componentes del sistema ---------- */
.raised { background: var(--bg); box-shadow: var(--r6); }
.inset { background: var(--bg); box-shadow: var(--i3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 16px;
       font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--bg); box-shadow: 5px 5px 12px var(--sd), -5px -5px 12px var(--hi);
       text-decoration: none; cursor: pointer; transition: box-shadow .18s var(--ease), color .18s, transform .18s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:active, .btn[aria-pressed="true"] { box-shadow: inset 4px 4px 9px var(--sd), inset -4px -4px 9px var(--hi); color: var(--vio); }
.btn.pri { background: var(--vio); color: #fff; }
.btn.pri:hover { background: var(--vio2); color: #fff; }
.btn.pri:active { box-shadow: inset 4px 4px 9px var(--vio2), inset -3px -3px 8px #7a62ff; color: #fff; }
.btn.fab { min-height: 56px; border-radius: 20px; padding: 0 22px 0 16px; background: var(--amb); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--mute); }
.input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); border: 0; outline: 0; background: var(--bg); border-radius: 14px; padding: 14px 16px; box-shadow: var(--i3); }
.input:focus-visible { outline: 2px solid var(--vio); outline-offset: 2px; }
.input::placeholder { color: var(--ph); }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A5672' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
                background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.input[aria-invalid="true"] { outline: 2px solid var(--cor); outline-offset: 2px; }
.err { font-size: 13px; font-weight: 600; color: #B42318; min-height: 0; }
.arcs { display: flex; gap: 10px; }
.arcs i { width: 40px; height: 6px; border-radius: 3px; background: var(--cor); }
.arcs i:nth-child(2) { background: var(--amb); }
.arcs i:nth-child(3) { background: var(--vio); }

/* Switch (del sistema) */
.switch { position: relative; width: 56px; height: 32px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 16px; box-shadow: var(--i3); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #9AA3B5; box-shadow: 2px 2px 5px #A9B2C3; transition: left .2s var(--ease), background .2s; }
.switch input:checked + span::after { left: 28px; background: var(--vio); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .7; }
.switch input:focus-visible + span { outline: 2px solid var(--vio); outline-offset: 3px; }

/* ---------- Encabezado (menú de vidrio) ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.top .bar { display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 12px 0 10px; border-radius: 24px;
            background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
            border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 40px rgba(11, 27, 63, .10), inset 0 1px 0 rgba(255, 255, 255, .8); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .tile { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); }
.brand .tile img { width: 24px; }
.brand > img { width: 118px; }
.top nav { display: flex; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.top nav a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.top nav a[aria-current="true"] { color: #fff; background: rgba(91, 61, 245, .88); box-shadow: 0 8px 20px rgba(91, 61, 245, .3); }
.lang { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 14px; }
.lang:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.top .btn { min-height: 48px; }

/* ---------- Portada ---------- */
.hero { padding: 40px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.splash { width: 116px; height: 116px; border-radius: 38px; box-shadow: var(--i6); display: grid; place-items: center; margin-bottom: 30px; }
.splash div { width: 88px; height: 88px; border-radius: 28px; background: var(--bg); box-shadow: 9px 9px 20px var(--sd), -9px -9px 20px var(--hi); display: grid; place-items: center; }
.splash img { width: 46px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 66px); }
.hero h1 span { display: block; }
.hero .lead { margin: 26px 0 34px; }
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.badge { display: inline-flex; align-items: center; height: 56px; border-radius: 12px; }
.badge img { height: 56px; width: auto; }
.badge.gp { width: 188px; overflow: hidden; position: relative; }
.badge.gp img { position: absolute; left: -13.66px; top: -13.66px; height: 83.3px; max-width: none; }
.badge.gp.es img { left: 0; top: -8.46px; height: 72.92px; }
.badge.gp.es { width: 188.4px; }
.badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.platforms { margin-top: 22px; font-size: 15px; color: var(--mute); }
.hero-dev { position: relative; display: grid; place-items: center; height: clamp(560px, calc(100vh - 150px), 780px); }
.hero-dev .fit { position: absolute; inset: 0; }
.hero-dev .cv { width: 414px; height: 868px; }
.hero-dev .ring { position: absolute; width: min(600px, 100%); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 22px 22px 50px #D2D8E2, inset -22px -22px 50px #FAFBFD; }

/* Lienzos escalados (dispositivos y escenario de la historia) */
.fit { position: relative; }
.fit > .cv { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; transform: scale(var(--s, 1)) translate(-50%, -50%); }

/* ---------- Dispositivos ---------- */
.dev { position: absolute; }
.iphone { width: 414px; height: 868px; border-radius: 64px; padding: 12px; background: linear-gradient(145deg, #2A3350, #0E1530);
          box-shadow: 30px 30px 70px #B3BBCA, -26px -26px 60px #FFFFFF, inset 0 0 0 2px #3A4466; }
.android { width: 414px; height: 868px; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #2E3450, #11172C);
           box-shadow: 30px 30px 70px #B3BBCA, -26px -26px 60px #FFFFFF, inset 0 0 0 2px #3A4466; }
.ipad { width: 1238px; height: 878px; border-radius: 52px; padding: 22px; background: linear-gradient(145deg, #2A3350, #0E1530);
        box-shadow: 40px 40px 90px #B3BBCA, -34px -34px 80px #FFFFFF, inset 0 0 0 2px #3A4466; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.3; }
.iphone .screen { border-radius: 52px; }
.android .screen { border-radius: 40px; }
.ipad .screen { border-radius: 30px; }
.island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 18px; background: #05070D; z-index: 20; }
.punch { position: absolute; left: 50%; top: 14px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #05070D; z-index: 20; }
.sbar { position: absolute; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 44px; font-size: 17px; font-weight: 700; z-index: 19; }
.sbar .icons { display: flex; gap: 6px; align-items: center; }
.android .sbar { height: 46px; padding: 0 26px; font-size: 15px; font-weight: 600; }
.ipad .sbar { height: 26px; padding: 0 22px; font-size: 13px; font-weight: 700; }

/* ---------- Pantallas de la app (mismos componentes que la app) ---------- */
.scr { position: absolute; inset: 0; background: var(--bg); overflow: hidden; }
.abs { position: absolute; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hdr { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.hdr h4 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { position: relative; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg); box-shadow: var(--r4); transition: box-shadow .15s; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; border-radius: 16px; padding: 0 16px; box-shadow: var(--i3); color: var(--ph); font-size: 16px; white-space: nowrap; overflow: hidden; }
.scard { position: relative; border-radius: 22px; background: var(--bg); box-shadow: var(--r6); padding: 16px 8px 16px 16px; display: flex; gap: 14px; align-items: center; height: 90px; }
.cnt { width: 58px; height: 58px; border-radius: 18px; box-shadow: var(--i3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.cnt strong { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cnt span { font-size: 11px; font-weight: 600; color: var(--mute); }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tx b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx span { font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { width: 36px; display: flex; justify-content: center; color: var(--mute); flex-shrink: 0; }
.rcard { position: relative; border-radius: 20px; background: var(--bg); box-shadow: var(--r6); padding: 14px 8px 14px 14px; display: flex; gap: 14px; align-items: center; height: 100px; }
.rcard .tx { gap: 3px; }
.rcard .tx b { font-size: 16px; }
.rcard .tx span { font-variant-numeric: tabular-nums; }
.rcard .tx span + span { font-size: 13px; }
.apc { width: 58px; height: 58px; border-radius: 50%; box-shadow: var(--i3); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.mfab { position: absolute; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 18px; border-radius: 20px; background: var(--amb);
        font-size: 16px; font-weight: 700; color: var(--ink); box-shadow: 6px 6px 14px #B9C1CF, -6px -6px 14px #FFFFFF; transition: box-shadow .15s; }
.mbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 16px;
        font-size: 15px; font-weight: 700; background: var(--bg); box-shadow: var(--r4); transition: box-shadow .15s; }
.mbtn.pri { background: var(--vio); color: #fff; }
.lbl { font-size: 13px; font-weight: 600; color: var(--mute); }
.fld { position: relative; display: flex; align-items: center; height: 50px; border-radius: 14px; padding: 0 16px; box-shadow: var(--i3); font-size: 16px; background: var(--bg); white-space: nowrap; overflow: hidden; }
.dd { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; border-radius: 14px; padding: 0 12px 0 16px; box-shadow: var(--r4); font-size: 16px; background: var(--bg); white-space: nowrap; transition: box-shadow .15s; }
.dd .v { position: relative; flex: 1; height: 22px; overflow: hidden; }
.dd .v span { position: absolute; left: 0; top: 0; transition: transform .35s var(--ease), opacity .35s; }
.dd .v span:first-child { color: var(--ph); }
.dd .v span + span { transform: translateY(100%); opacity: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcol { display: flex; flex-direction: column; gap: 8px; }
.focus { position: absolute; inset: -4px; border-radius: 16px; border: 2px solid var(--vio); opacity: 0; transition: opacity .15s; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(11, 27, 63, .28); opacity: 0; transition: opacity .3s; }
.dlg { position: absolute; border-radius: 28px; background: var(--bg); box-shadow: 10px 10px 30px rgba(11, 27, 63, .25), -6px -6px 18px rgba(255, 255, 255, .5);
       padding: 22px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(60px); transition: opacity .3s, transform .35s var(--ease); }
.dlg h5 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.av { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 13px; font-size: 15px; font-weight: 600; background: var(--bg); box-shadow: var(--r3); white-space: nowrap; }
.chip.sel { color: var(--vio); box-shadow: var(--i3); }
.toast { position: absolute; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
         box-shadow: var(--r6); white-space: nowrap; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .35s var(--ease); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ocard { position: relative; border-radius: 22px; background: var(--bg); box-shadow: var(--r6); padding: 16px; display: flex; gap: 16px; align-items: center; height: 92px; }
.otile { width: 58px; height: 58px; border-radius: 18px; box-shadow: var(--i3); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--vio); flex-shrink: 0; }
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 80%; transform: scale(1.4); transform-origin: 60% 82%; }
.side { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; padding: 52px 26px 0; }
.side::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: #D5DBE5; box-shadow: 1px 0 0 #fff; }
.nav { display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 20px; border-radius: 16px; font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.nav.sel { color: var(--vio2); box-shadow: var(--i3); }
.main { position: absolute; left: 300px; right: 0; top: 0; bottom: 0; padding: 48px 40px 0; }
.main h4 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.xls { border-radius: 26px; padding: 20px 22px 24px; background: var(--bg); box-shadow: 16px 16px 40px #B9C1CF, -12px -12px 32px #FFFFFF; font-size: 14px; }
.xls table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.xls th { text-align: left; background: #1D6F42; color: #fff; font-weight: 700; padding: 9px 10px; }
.xls th:first-child { border-radius: 10px 0 0 0; }
.xls th:last-child { border-radius: 0 10px 0 0; }
.xls td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.xls tr:nth-child(even) td { background: #EEF1F6; }

/* Toque y relieve que aparece (inset -> raised) */
.pop { opacity: 0; transform: scale(.9); box-shadow: var(--i3) !important; transition: opacity .25s, transform .4s var(--back), box-shadow .45s var(--ease) .25s; }
.pop.in { opacity: 1; transform: none; box-shadow: var(--r6) !important; }
.press { box-shadow: inset 4px 4px 9px var(--sd), inset -4px -4px 9px var(--hi) !important; }
.mfab.press, .mbtn.pri.press { box-shadow: inset 4px 4px 9px rgba(11, 27, 63, .25), inset -3px -3px 8px rgba(255, 255, 255, .3) !important; }
.tap { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(91, 61, 245, .35); opacity: 0; transform: scale(.3); pointer-events: none; }
.press > .tap { animation: tap .5s var(--ease); }
@keyframes tap { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--vio); margin-left: 2px; vertical-align: -.17em; }
.ph { color: var(--ph); }

/* ---------- Historia con scroll ---------- */
.story { padding: 64px 0 40px; }
.sec-head { max-width: 720px; margin-bottom: 24px; }
.sec-head h2, .devices h2, .watch h2, .contact h2 { font-size: clamp(34px, 4.4vw, 56px); }
.sec-head p { margin-top: 18px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; position: relative; }
.steps { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.rail { position: absolute; left: 0; top: 18vh; bottom: 18vh; width: 10px; border-radius: 5px; box-shadow: var(--i3); }
.rail i { position: absolute; left: 2px; right: 2px; top: 2px; height: calc((100% - 4px) * var(--p, 0)); border-radius: 3px; background: linear-gradient(var(--cor), var(--amb) 50%, var(--vio)); }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: .38; transition: opacity .4s; }
.step.on { opacity: 1; }
.step .num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; box-shadow: var(--r4); font-size: 20px; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; transition: box-shadow .4s var(--ease), color .4s; }
.step.on .num { box-shadow: var(--i3); color: var(--vio); }
.step h3 { font-size: clamp(30px, 3.4vw, 44px); }
.step p { font-size: 19px; line-height: 1.5; color: var(--mute); max-width: 32ch; }
.step ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.step li { font-size: 14px; font-weight: 600; color: var(--mute); padding: 8px 12px; border-radius: 12px; box-shadow: var(--i3); }
.stage { position: sticky; top: 96px; height: calc(100vh - 120px); height: calc(100svh - 120px); min-height: 520px; }
.stage .fit { width: 100%; height: 100%; }
.stage .cv { width: 660px; height: 900px; }
.stage .iphone { left: 230px; top: 16px; z-index: 2; transform: translateX(-107px); transition: transform .6s var(--ease); }
.stage.a-share .iphone, .stage.a-exp .iphone { transform: none; }
.sscr { opacity: 0; transition: opacity .35s; }
.sscr.on { opacity: 1; }
.acc { position: absolute; opacity: 0; transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }

/* 1 · Escenario */
#s-scen .newc { position: absolute; left: 0; right: 0; top: 0; }
#s-scen .list { display: flex; flex-direction: column; gap: 18px; transition: transform .5s var(--ease); }
#s-scen.k1 .mfab { box-shadow: inset 4px 4px 9px rgba(11, 27, 63, .25), inset -3px -3px 8px rgba(255, 255, 255, .3); }
#s-scen.k2 .scrim, #s-cat.k2 .scrim { opacity: 1; }
#s-scen.k2 .dlg, #s-cat.k2 .dlg { opacity: 1; transform: none; }
#s-scen.k5 .scrim, #s-cat.k5 .scrim { opacity: 0; }
#s-scen.k5 .dlg, #s-cat.k5 .dlg { opacity: 0; transform: translateY(40px); }
#s-scen.k6 .list { transform: translateY(108px); }

/* 2 · AP */
#s-ap .num { position: relative; display: inline-block; transition: transform .35s var(--back); }
#s-ap.k1 .num { transform: scale(1.25); }
#s-ap.k2 .num { transform: none; }
#s-ap .dd.set .v span:first-child { transform: translateY(-100%); opacity: 0; }
#s-ap .dd.set .v span + span { transform: none; opacity: 1; }

/* 3 · Foto: la cámara de la app toma el AP y la foto baja a su lugar en el formulario */
#s-photo .shot { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border-radius: 0; z-index: 3;
                 transition: left .65s var(--ease), top .65s var(--ease), width .65s var(--ease), height .65s var(--ease), border-radius .65s var(--ease); }
#s-photo .shot img { transform: scale(1.15); transition: transform .65s var(--ease); }
#s-photo .vf { position: absolute; left: 50%; top: 46%; width: 250px; height: 174px; margin: -87px 0 0 -125px; transition: opacity .2s; }
#s-photo .shade { position: absolute; inset: 0; background: rgba(11, 27, 63, .35); opacity: 0; transition: opacity .3s; }
#s-photo .ringp { position: absolute; left: 50%; top: 50%; margin: -28px 0 0 -28px; opacity: 0; transition: opacity .3s; }
#s-photo .ringp circle + circle { stroke-dashoffset: 138.2; }
#s-photo .ok { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--vio); display: grid; place-items: center;
               box-shadow: 0 4px 12px rgba(11, 27, 63, .3); opacity: 0; transform: scale(.3); transition: opacity .2s, transform .35s var(--back); }
#s-photo .cam { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
                background: rgba(5, 7, 13, .78); color: var(--amb); font-size: 15px; font-weight: 700; letter-spacing: .04em; transition: transform .45s var(--ease); }
#s-photo .shutter { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 4px rgba(5, 7, 13, .78); transition: transform .15s; }
#s-photo .shutter.press { transform: scale(.88); }
#s-photo .flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
#s-photo.k1 .flash { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
#s-photo.k2 .cam { transform: translateY(100%); }
#s-photo.k2 .vf { opacity: 0; }
#s-photo.k2 .shot { left: 20px; top: 392px; width: 350px; height: 200px; border-radius: 20px; }
#s-photo.k2 .shot img { transform: scale(1.4); }
#s-photo.k3 .shade, #s-photo.k3 .ringp { opacity: 1; }
#s-photo.k3 .ringp circle + circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
#s-photo.k4 .shade, #s-photo.k4 .ringp { opacity: 0; }
#s-photo.k4 .ok { opacity: 1; transform: none; }

/* 4 · Catálogos */
#s-cat.k1 .mfab { box-shadow: inset 4px 4px 9px rgba(11, 27, 63, .25), inset -3px -3px 8px rgba(255, 255, 255, .3); }
#s-cat.k7 .toast, #s-share.k3 .toast { opacity: 1; transform: none; }

/* 5 · Compartir */
#acc-android { left: 0; top: 230px; transform: translateX(-40px) scale(.6); transform-origin: 0 0; }
.stage.a-share #acc-android { opacity: 1; transform: scale(.6); }
#acc-sync { left: 0; top: 0; width: 660px; height: 900px; }
#acc-sync svg { position: absolute; inset: 0; overflow: visible; }
#acc-sync .sdot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--vio); offset-rotate: 0deg; offset-anchor: 50% 50%; opacity: 0; box-shadow: 0 0 0 6px rgba(91, 61, 245, .18); }
.stage.a-share.k2 #acc-sync .sdot { animation: travel .9s var(--ease) forwards; }
.stage.a-share.k3 #acc-sync .sdot { opacity: 0; animation: none; }
@keyframes travel { from { offset-distance: 0%; opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.stage.a-share #acc-sync { opacity: 1; z-index: 4; }
#acc-sync path { stroke-dasharray: 2 12; opacity: 0; transition: opacity .3s; }
.stage.a-share.k2 #acc-sync path { opacity: 1; }
.stage.a-share.k4 #acc-sync path { opacity: 0; }
.shift { transition: transform .5s var(--ease); }
.k1 .shift.and, .k3 .shift.ios { transform: translateY(116px); }
.hl { position: absolute; inset: -6px; border-radius: 24px; border: 3px solid var(--vio); opacity: 0; transition: opacity .3s; }
.k3 .hl.ios, .k1 .hl.and { opacity: 1; }
.k5 .hl.ios { opacity: 0; }

/* 6 · Exportar */
#s-exp .sheet { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 32px 32px 0 0; background: var(--bg); padding: 14px 22px 44px; box-shadow: 0 -10px 30px rgba(11, 27, 63, .18); transform: translateY(110%); transition: transform .45s var(--ease); }
#s-exp.k1 .scrim { opacity: 1; }
#s-exp.k1 .sheet { transform: none; }
#s-exp.k3 .scrim { opacity: 0; }
#s-exp.k3 .sheet { transform: translateY(110%); }
#acc-xls { left: -20px; top: 470px; width: 520px; transform: translateY(60px) scale(.2); transform-origin: 100% 50%; z-index: 3; }
.stage.a-exp.k3 #acc-xls { opacity: 1; transform: none; transition: opacity .2s, transform .7s var(--back); }

/* ---------- Plataformas ---------- */
.devices { padding: 120px 0; overflow: clip; }
.devices .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.devices .head p { justify-self: end; }
.trio { width: 100%; aspect-ratio: 1500 / 1000; }
.trio .cv { width: 1500px; height: 1000px; }
.trio .ipad { left: 131px; top: 40px; }
.trio .android { left: 60px; top: 300px; transform: scale(.72); transform-origin: 0 0; }
.trio .iphone { left: 1140px; top: 260px; transform: scale(.76); transform-origin: 0 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trio .ipad { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .trio .android { animation: slide-l linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
    .trio .iphone { animation: slide-r linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  }
}
@keyframes rise { from { transform: translateY(120px) scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slide-l { from { transform: translateX(420px) scale(.6); } to { transform: scale(.72); } }
@keyframes slide-r { from { transform: translateX(-420px) scale(.62); } to { transform: scale(.76); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Video ---------- */
.watch { padding: 40px 0 120px; }
.watch .sec-head p { margin-top: 18px; }
.watch .frame { margin-top: 36px; padding: 18px; border-radius: 40px; box-shadow: var(--i6); }
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--bg); }
.yt > img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .play { position: absolute; left: 24px; bottom: 24px; height: 64px; padding: 0 26px 0 20px; border: 0; border-radius: 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
            font: inherit; font-size: 17px; font-weight: 700; background: var(--bg); color: var(--ink); box-shadow: 10px 10px 24px rgba(11, 27, 63, .22), -8px -8px 20px rgba(255, 255, 255, .8); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.yt .play:hover { transform: scale(1.04); }
.yt .play:active { box-shadow: var(--i6); }
.yt .play svg { width: 26px; height: 26px; color: var(--vio); }
.yt .gate { position: absolute; inset: auto 18px 18px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.45; }
.yt .gate.show { display: flex; }
.yt .gate p { flex: 1 1 280px; }
.yt .gate a { color: #fff; }
.yt .gate .btn { min-height: 44px; }

/* ---------- Contacto ---------- */
.contact { padding: 40px 0 120px; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact .lead { margin-top: 18px; }
.mail { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail a { font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; padding: 14px 20px; border-radius: 18px; box-shadow: var(--i3); }
.mail a:hover { color: var(--vio2); }
.form { border-radius: 30px; padding: 32px; display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form .foot p { font-size: 14px; color: var(--mute); max-width: 38ch; }
.status { display: none; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; }
.status.show { display: flex; }
.status a { color: #fff; }
.status .dot { margin-top: 5px; background: var(--amb); }
.status.err .dot { background: var(--cor); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Pie ---------- */
.foot-site { padding: 40px 0 56px; }
.foot-site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; position: relative; }
.foot-site .wrap::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 4px; border-radius: 2px; box-shadow: var(--i3); }
.foot-site .by { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--mute); }
.foot-site .by img { width: 110px; }
.foot-site nav { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.foot-site nav a, .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; }
.foot-site nav a:hover, .linkbtn:hover { color: var(--vio2); text-decoration: underline; }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 620px; margin-left: auto; border-radius: 28px; padding: 24px; display: none; gap: 16px; flex-direction: column;
          box-shadow: 14px 14px 40px rgba(11, 27, 63, .18), -8px -8px 24px rgba(255, 255, 255, .7); }
.cookie.show { display: flex; animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.cookie h2 { font-size: 20px; letter-spacing: -.01em; }
.cookie p { font-size: 15px; color: var(--mute); }
.cookie .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie .acts .btn { flex: 1 1 140px; }
dialog.prefs { width: min(560px, calc(100vw - 32px)); border: 0; padding: 28px; border-radius: 28px; background: var(--bg); color: var(--ink);
               box-shadow: 10px 10px 30px rgba(11, 27, 63, .25), -6px -6px 18px rgba(255, 255, 255, .5); }
dialog.prefs::backdrop { background: rgba(11, 27, 63, .35); }
dialog.prefs h2 { font-size: 24px; margin-bottom: 8px; }
dialog.prefs > p { color: var(--mute); font-size: 15px; }
.cat { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px; border-radius: 20px; box-shadow: var(--i3); margin-top: 16px; }
.cat b { display: block; font-size: 16px; }
.cat span { display: block; font-size: 14px; color: var(--mute); margin-top: 4px; }
dialog.prefs .acts { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Páginas legales ---------- */
.legal { padding: 24px 0 96px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 14px; }
.legal .meta { color: var(--mute); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 26px; letter-spacing: -.015em; margin: 48px 0 14px; }
.legal h3 { font-size: 19px; letter-spacing: -.01em; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal .tbl { overflow-x: auto; border-radius: 18px; box-shadow: var(--i3); padding: 6px 10px; margin: 18px 0; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.legal th { text-align: left; font-size: 13px; color: var(--mute); font-weight: 600; padding: 12px 10px; }
.legal td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal .toc { padding: 20px 24px; border-radius: 22px; box-shadow: var(--r6); margin-bottom: 8px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: 15px; }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .splash { margin: 0 auto 30px; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); }
.nf p { margin: 16px auto 30px; color: var(--mute); max-width: 36ch; }

/* ---------- Entrada de la portada (un solo momento orquestado) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .splash { animation: sunk .9s var(--ease) both; }
  .js .hero .splash div { animation: lift 1s var(--ease) .15s both; }
  .js .hero h1 span { animation: rise-in .7s var(--ease) both; }
  .js .hero h1 span:nth-child(1) { animation-delay: .35s; }
  .js .hero h1 span:nth-child(2) { animation-delay: .47s; }
  .js .hero h1 span:nth-child(3) { animation-delay: .59s; }
  .js .hero .lead, .js .hero .stores, .js .hero .platforms { animation: rise-in .7s var(--ease) .75s both; }
  .js .hero-dev .ring { animation: ring .9s var(--ease) .2s both; }
  .js .hero-dev .fit { animation: rise-in 1s var(--ease) .45s both; }
  .js .hero-dev .rcard { animation: card .6s var(--ease) both; }
}
@keyframes sunk { from { box-shadow: 0 0 0 var(--sd), 0 0 0 var(--hi); } }
@keyframes lift { from { box-shadow: inset 6px 6px 14px var(--sd), inset -6px -6px 14px var(--hi); transform: scale(.94); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes ring { from { opacity: 0; transform: scale(.9); } }
@keyframes card { from { box-shadow: var(--i3); opacity: 0; transform: scale(.94); } }

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

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .top nav { display: none; }
  .hero { padding-top: 16px; }
  .hero .wrap, .contact .wrap, .devices .head { grid-template-columns: minmax(0, 1fr); }
  .devices .head p { justify-self: start; }
  .hero-dev { min-height: 0; height: 560px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { grid-row: 1; top: 88px; height: 52vh; height: 52svh; min-height: 0; z-index: 5; margin: 0 calc(-1 * var(--gut)); background: var(--bg); border-radius: 0 0 32px 32px; box-shadow: 0 18px 22px -18px var(--sd); }
  .stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 88px; background: var(--bg); }
  .steps { padding-left: 32px; }
  .rail { top: 4vh; bottom: 30vh; width: 8px; }
  .step { min-height: 62vh; justify-content: flex-start; padding-top: 7vh; }
  .step p { font-size: 17px; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  .top { padding: 10px 0; }
  .top .bar { height: 62px; gap: 6px; }
  .brand > img { display: none; }
  .top .btn { padding: 0 16px; }
  .hero-dev { height: 460px; }
  .splash { width: 108px; height: 108px; border-radius: 34px; margin-bottom: 26px; }
  .splash div { width: 80px; height: 80px; border-radius: 26px; }
  .splash img { width: 42px; }
  .form { padding: 22px; border-radius: 26px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .mail a { font-size: 19px; }
  .legal .toc ol { columns: 1; }
  .devices, .watch, .contact { padding-bottom: 80px; }
  .devices { padding-top: 80px; }
  .watch .frame { padding: 10px; border-radius: 28px; }
  .yt .play { left: 12px; bottom: 12px; height: 52px; font-size: 15px; padding: 0 18px 0 14px; border-radius: 18px; }
  .yt .play svg { width: 20px; height: 20px; }
  .watch video { border-radius: 20px; }
}
