/* Universal Success, web de cerraduras. Marca: negro y dorado.
   Paleta: negros #0A0A0A/#131313, marfil #F5F0E6 y #EDE6D8 en las secciones claras, y oro #C9A44C (claro #E2C98A, oscuro #8A6526).
   Tipografía: Satoshi + Roboto Mono, y Julius Sans One para la marca. Acabado: rejilla de líneas, grano y desenfoque progresivo abajo. */
:root {
  --negro: #0a0a0a; --negro-2: #131313; --negro-3: #171717;
  --gris: #797979; --gris-2: #a9a9a9; --gris-3: #d8d0c2; --linea: #e4dccd; --gris-calido: #625c52;
  --marfil: #f5f0e6; --humo: #ede6d8; --blanco: #fff;
  --oro: #c9a44c; --oro-claro: #e2c98a; --oro-osc: #8a6526;
  --oro-metal: linear-gradient(115deg, #b0873a 0%, #cfab5a 34%, #e8cd88 50%, #c9a44c 64%, #a7802f 100%);
  --ok: #3ddc84; --err: #ff5a4e;
  --display: "Satoshi", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --marca: "Julius Sans One", "Satoshi", sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--negro); color: var(--blanco); font: 500 17px/1.45 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
[data-theme="light"] :focus-visible, [data-theme="oro"] :focus-visible, .nav.t-light :focus-visible, .nav.t-oro :focus-visible { outline-color: var(--negro); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: -0.01em; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--negro); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(46px, 7.2vw, 116px); letter-spacing: -0.06em; line-height: 0.9; }
.sec-sub { max-width: 30em; margin: 26px 0 0; font-size: clamp(17px, 1.3vw, 19px); opacity: 0.66; }

/* ---------- acabado: rejilla, grano, desenfoque progresivo ---------- */
.grain { position: fixed; inset: -50%; z-index: 31; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-size: 256px; animation: grain 0.45s steps(1) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 12% { transform: translate(-7%, 4%) } 25% { transform: translate(5%, -9%) } 37% { transform: translate(-11%, -3%) } 50% { transform: translate(9%, 7%) } 62% { transform: translate(-3%, 11%) } 75% { transform: translate(12%, -5%) } 87% { transform: translate(-8%, -10%) } }
.pblur { position: fixed; left: 0; right: 0; bottom: 0; height: 110px; z-index: 29; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
body.past-hero .pblur { opacity: 1; }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { backdrop-filter: blur(0.4px); -webkit-mask: linear-gradient(transparent 0%, #000 12%); mask: linear-gradient(transparent 0%, #000 12%); }
.pblur i:nth-child(2) { backdrop-filter: blur(1.4px); -webkit-mask: linear-gradient(transparent 12%, #000 24%); mask: linear-gradient(transparent 12%, #000 24%); }
.pblur i:nth-child(3) { backdrop-filter: blur(3px); -webkit-mask: linear-gradient(transparent 24%, #000 36%); mask: linear-gradient(transparent 24%, #000 36%); }
.pblur i:nth-child(4) { backdrop-filter: blur(5.5px); -webkit-mask: linear-gradient(transparent 36%, #000 48%); mask: linear-gradient(transparent 36%, #000 48%); }
.pblur i:nth-child(5) { backdrop-filter: blur(9px); -webkit-mask: linear-gradient(transparent 48%, #000 60%); mask: linear-gradient(transparent 48%, #000 60%); }
.pblur i:nth-child(6) { backdrop-filter: blur(14px); -webkit-mask: linear-gradient(transparent 60%, #000 72%); mask: linear-gradient(transparent 60%, #000 72%); }
@media (hover: none), (max-width: 899px), (prefers-reduced-transparency: reduce) { .pblur { display: none; } }

/* ---------- botones: el texto rueda al pasar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; height: 52px; padding: 0 16px 0 20px; border-radius: 10px; border: 0; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s; }
.btn-lg { height: 60px; font-size: 17px; padding: 0 18px 0 24px; }
.btn-full { width: 100%; }
.btn-oro { background: var(--oro); color: var(--negro); }
.btn-oro:hover { background: var(--oro-claro); }
.btn-negro { background: var(--negro); color: var(--oro-claro); }
.btn-negro:hover { background: #000; color: #fff; }
.roll { display: block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
.roll > span { display: block; position: relative; transition: transform 0.5s var(--spring); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.btn:hover .roll > span, .btn:focus-visible .roll > span { transform: translateY(-100%); }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.5s var(--spring); }
.btn:hover .ico { transform: translateX(3px); }

/* titulares palabra a palabra y apariciones */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.06em 0.24em 0.02em; margin: -0.14em -0.06em -0.24em -0.02em; } /* holgura para acentos, colas (q, p, g) y el ¿ */
.js [data-split] .wi { display: inline-block; transform: translateY(100%); opacity: 0; filter: blur(10px); transition: transform 1s var(--spring) var(--d, 0s), opacity 0.9s var(--ease) var(--d, 0s), filter 0.9s var(--ease) var(--d, 0s); }
.js [data-split].in .wi { transform: none; opacity: 1; filter: none; }
.js .reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--spring) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; height: 76px; padding: 0 var(--pad); color: #fff; background: transparent; transition: transform 0.5s var(--spring), background 0.3s, color 0.3s; }
.nav.is-scrolled { background: var(--nav-bg, var(--negro)); }
.nav.t-light { color: var(--negro); --nav-bg: var(--marfil); }
.nav.t-dark { --nav-bg: var(--negro); }
.nav.t-oro { color: var(--negro); --nav-bg: var(--oro); }
.nav.t-oro .nav-cta { background: var(--negro); color: var(--oro-claro); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-blend { flex: 1; display: flex; align-items: center; gap: 30px; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--oro); transition: color 0.3s; }
.nav.t-light .nav-brand, .nav.t-oro .nav-brand { color: var(--negro); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--marca); font-size: 16px; letter-spacing: 0.16em; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { height: 44px; font-size: 15px; gap: 16px; }
.nav-menu { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; cursor: pointer; }
.nav-menu i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-menu i:first-of-type { top: 17px; } .nav-menu i:last-of-type { top: 25px; }
.nav-menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--negro); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 90px var(--pad) 48px; }
.menu[hidden] { display: none; }
.menu a { font-weight: 700; font-size: 46px; letter-spacing: -0.05em; text-decoration: none; line-height: 1.1; }
.menu .menu-cta { color: var(--oro); margin-top: 18px; }

/* ---------- hero directo: titular, botón de precio y garantías; la cerradura al lado ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; background: var(--negro); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; min-height: 100svh; padding-top: 110px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker { margin: 0 0 26px; font-size: 13px; color: var(--gris-2); }
.hero-title { font-size: clamp(56px, 6.2vw, 112px); letter-spacing: -0.06em; line-height: 0.92; max-width: 7.4em; }
.hero-title em { font-style: normal; color: var(--oro); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) { .hero-title em .wi { background: var(--oro-metal); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.hero-sub { margin: 30px 0 0; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--gris-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 38px; }
.hero-cta { min-width: 260px; }
.hero-link { font-weight: 700; font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color 0.3s, color 0.3s; }
.hero-link:hover { color: var(--oro-claro); border-color: var(--oro); }
.hero-pruebas { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 36px; margin: 46px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.hero-pruebas li { display: flex; align-items: center; gap: 10px; }
.tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--oro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-stage { position: relative; min-height: 560px; }
.hero-stage::before { content: ""; position: absolute; inset: 6% 2% 0 8%; background: radial-gradient(closest-side, rgba(201, 164, 76, 0.16), rgba(201, 164, 76, 0)); pointer-events: none; }
.hero-canvas { position: absolute; inset: -20px -40px 0 0; }
.lock-canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.lock-canvas.is-ready { opacity: 1; }
.lock-canvas:focus, .lock-canvas:focus-visible { outline: none; }
.seg-off { stroke: currentColor; opacity: 0.12; }
.seg-on { stroke: currentColor; }

/* ---------- cinta de titular ---------- */
.marquee { position: relative; z-index: 2; background: var(--negro); overflow: hidden; padding: 10px 0 26px; border-top: 1px solid var(--negro-3); }
.marquee-track { display: flex; align-items: center; gap: 0.32em; width: max-content; animation: marquee 34s linear infinite; font-weight: 700; font-size: clamp(64px, 10vw, 168px); letter-spacing: -0.06em; line-height: 1; }
.marquee-track b { width: 0.16em; height: 0.16em; background: var(--oro); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- frase revelada ---------- */
.statement { position: relative; z-index: 2; background: var(--marfil); color: var(--negro); padding: clamp(110px, 20vh, 220px) 0; }
.statement-text { margin: 0; max-width: 17.5em; font-weight: 700; font-size: clamp(34px, 4.6vw, 76px); letter-spacing: -0.05em; line-height: 1.02; }
.statement-text .sw { opacity: 0.1; transition: opacity 0.25s linear; }

/* ---------- historia fijada ---------- */
.story { --bg: var(--humo); --fg: var(--negro); --dim: rgba(10, 10, 10, 0.12); --dim-hover: rgba(10, 10, 10, 0.4); position: relative; z-index: 2; background: var(--bg); color: var(--fg); transition: background 0.8s var(--ease), color 0.8s var(--ease); }
.story.is-dark { --bg: var(--negro); --fg: #fff; --dim: rgba(255, 255, 255, 0.13); --dim-hover: rgba(255, 255, 255, 0.45); }
.story-anchor { position: absolute; top: 0; }
.story-pin { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.story-text { display: flex; flex-direction: column; justify-content: center; padding: 90px 0 60px; }
.story-kicker { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px; padding-right: 8%; font-size: 13px; }
.story-tabs { display: flex; flex-wrap: wrap; gap: 0 20px; }
.story-tabs button { appearance: none; background: none; border: 0; border-bottom: 1px solid transparent; padding: 12px 0; font: inherit; color: inherit; opacity: 0.55; cursor: pointer; transition: opacity 0.3s, border-color 0.3s; }
.story-tabs button:hover { opacity: 0.85; }
.story-tabs button[aria-selected="true"] { opacity: 1; border-bottom-color: var(--oro); }
.story-kicker em { margin-left: auto; font-style: normal; opacity: 0.6; }
.story-btn { appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.story-list li:not(.is-active) h3:hover { color: var(--dim-hover); }
.story-hint { margin: 26px 0 0; font-size: 12px; opacity: 0.6; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; }
.story-list[data-list="b"] { position: absolute; visibility: hidden; }
.story.is-dark .story-list[data-list="a"] { position: absolute; visibility: hidden; }
.story.is-dark .story-list[data-list="b"] { position: static; visibility: visible; }
.story-list li h3 { font-size: clamp(46px, 6vw, 100px); letter-spacing: -0.065em; line-height: 0.95; color: var(--dim); transition: color 0.25s var(--ease); }
.story-list li.is-active h3 { color: var(--fg); }
/* la lista no se mueve: la descripción de la opción activa sale siempre en el mismo hueco, debajo */
.story-desc { display: none; }
.story-now { margin: 22px 0 0; max-width: 25em; min-height: 2.9em; font-size: clamp(16px, 1.2vw, 18px); opacity: 0.7; transition: opacity 0.16s; }
.story-now.is-swap { opacity: 0; }
.story-btn:focus-visible { outline: none; text-decoration: underline 3px var(--oro); text-underline-offset: 0.1em; }
.story-stage { position: relative; }
.story-stage .lock-canvas { position: absolute; inset: 0; }

/* ---------- cifras ---------- */
.cifras { position: relative; z-index: 2; background-color: var(--oro); color: var(--negro); padding: clamp(80px, 11vw, 150px) 0; }
.cifras-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifra { padding: 0 20px 0 18px; border-left: 1px solid rgba(10, 10, 10, 0.25); }
.cifra p { margin: 0; }
.cifra p:last-child { margin-top: 14px; font-size: 15px; opacity: 0.8; max-width: 13em; }
.odo { --h: 1.2em; display: flex; font-weight: 700; font-size: clamp(56px, 7.4vw, 124px); letter-spacing: -0.06em; line-height: var(--h); margin-block: -0.1em; }
.odo .col { position: relative; display: inline-block; height: var(--h); clip-path: inset(0 -0.3em); } /* recorta solo arriba y abajo: el interletrado negativo ya no corta los lados */
.odo .col > b { visibility: hidden; font-weight: inherit; }
.odo .col > span { position: absolute; left: 50%; top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; transition: transform 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) var(--d, 0s); }
.odo .col > span > i { font-style: normal; height: var(--h); }

/* ---------- app: pasos con tarjeta deslizante ---------- */
.app { position: relative; z-index: 2; background: var(--marfil); color: var(--negro); }
.app-pin { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 90px; }
.app-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); grid-template-areas: "head phone steps"; gap: clamp(24px, 3vw, 48px); align-items: center; }
.app-head { grid-area: head; display: contents; }
.app-head h2 { grid-area: head; align-self: start; font-size: clamp(44px, 5.4vw, 92px); }
.app-get { grid-area: head; align-self: end; }
.app-get .sec-sub { margin: 0; max-width: 19em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stores a { display: block; border-radius: 9px; transition: transform 0.4s var(--spring); }
.stores a:hover { transform: translateY(-3px); }
.stores img { height: 48px; width: auto; }
.phone { grid-area: phone; justify-self: center; height: min(66svh, 580px); aspect-ratio: 9 / 19; border-radius: 42px; padding: 10px; background: var(--negro); box-shadow: 0 0 0 1px #2a2a2a, 0 40px 70px -40px rgba(201, 164, 76, 0.5); }
.phone-screen { position: relative; height: 100%; border-radius: 33px; background: var(--negro-2); color: #fff; overflow: hidden; padding: 48px 18px 18px; display: flex; flex-direction: column; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ph-view { position: absolute; left: 18px; right: 18px; top: 92px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.7s var(--spring); }
.phone-screen[data-s="0"] [data-v="0"], .phone-screen[data-s="1"] [data-v="1"], .phone-screen[data-s="2"] [data-v="2"], .phone-screen[data-s="3"] [data-v="3"] { opacity: 1; transform: none; }
.ph-label { margin: 0 0 14px; font-size: 11px; color: var(--gris-2); }
.ph-big { margin: 0; font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1.05; }
.ph-small { margin: 6px 0 0; color: var(--gris-2); font-size: 13px; }
.ph-code { height: 38px; margin-top: 22px; color: var(--oro); }
.ph-code svg { height: 100%; width: auto; overflow: visible; display: block; }
.ph-log, .ph-apps { list-style: none; margin: 0; padding: 0; }
.ph-log li { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid #262626; font-size: 13px; }
.ph-log time { color: var(--gris-2); font-family: var(--mono); font-size: 12px; }
.ph-apps li { font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1.15; }
.ph-unlock { margin-top: auto; height: 56px; border-radius: 14px; background: var(--oro); color: var(--negro); display: grid; place-items: center; font-weight: 700; font-size: 15px; position: relative; overflow: hidden; }
.ph-unlock::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28); transform: scaleX(0); transform-origin: left; }
.phone-screen[data-s="0"] .ph-unlock::before { animation: hold 2.6s var(--ease) 0.6s infinite; }
@keyframes hold { 0% { transform: scaleX(0) } 45%, 70% { transform: scaleX(1) } 100% { transform: scaleX(1); opacity: 0 } }
.ph-unlock span { position: relative; }
.steps { grid-area: steps; position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.step { appearance: none; width: 100%; background: none; font: inherit; color: var(--negro); text-align: left; cursor: pointer; position: relative; z-index: 1; min-height: clamp(190px, 26svh, 250px); padding: 22px 22px 24px; display: flex; flex-direction: column; border: 1px solid var(--linea); margin: 0 -1px -1px 0; transition: color 0.4s var(--ease), background 0.3s; }
.step:not(.is-active):hover { background: rgba(10, 10, 10, 0.03); }
.step-n { font-size: 12px; color: var(--gris-calido); transition: color 0.4s; }
.step-t { margin-top: auto; font-weight: 700; font-size: clamp(21px, 1.7vw, 27px); letter-spacing: -0.04em; line-height: 1.05; }
.step-d { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--gris-calido); transition: color 0.4s; }
.step.is-active { color: #fff; }
.step.is-active .step-n { color: var(--oro); }
.step.is-active .step-d { color: var(--gris-2); }
/* barra dorada: cuánto falta para pasar solo al siguiente */
.step.is-active::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--oro); transform-origin: left; animation: appbar 3.4s linear forwards; }
@keyframes appbar { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.steps-card { position: absolute; left: 0; top: 0; z-index: 0; background: var(--negro); border-radius: 4px; transition: transform 0.55s var(--spring), width 0.55s var(--spring), height 0.55s var(--spring); }

/* ---------- modelos ---------- */
.modelos { position: relative; z-index: 2; background: var(--negro); padding: clamp(110px, 13vw, 190px) 0; }
.mod-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(60px, 7vw, 110px); align-items: start; }
.mod-group { margin: 0 0 34px; }
.mod-group > p { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; color: var(--gris); }
.mod-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--negro-3); padding: 10px 0; text-align: left; cursor: pointer; color: rgba(255, 255, 255, 0.3); transition: color 0.3s; }
.mod-item h3 { font-size: clamp(32px, 3.6vw, 58px); letter-spacing: -0.06em; line-height: 1; transition: transform 0.5s var(--spring); }
.mod-item small { font-family: var(--mono); font-size: 12px; color: var(--gris); text-align: right; }
.mod-item:hover, .mod-item[aria-selected="true"] { color: #fff; }
.mod-item:hover h3, .mod-item[aria-selected="true"] h3 { transform: translateX(14px); }
.mod-item[aria-selected="true"] small { color: var(--oro); }
.mod-detail { position: sticky; top: 100px; }
.mod-photo { position: relative; aspect-ratio: 1 / 1; background: var(--humo); border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.mod-photo::before, .mod-photo::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--negro); z-index: 1; }
.mod-photo::before { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.mod-photo::after { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.mod-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 7%; transition: opacity 0.4s, transform 0.9s var(--spring); }
.mod-photo.is-swap img { opacity: 0; transform: scale(0.96); }
.mod-photo .mod-nophoto { color: var(--gris); font-family: var(--mono); font-size: 13px; }
.mod-info { padding-top: 24px; }
.mod-info h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -0.06em; }
.mod-info .mod-line { margin: 12px 0 0; color: var(--gris-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 30em; }
.mod-specs { margin: 22px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 26px; border-top: 1px solid var(--negro-3); }
.mod-specs dt, .mod-specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--negro-3); font-size: 15px; }
.mod-specs dt { color: var(--gris); font-family: var(--mono); font-size: 12px; padding-top: 15px; }

/* ---------- preguntas ---------- */
.faq { position: relative; z-index: 2; background: var(--humo); color: var(--negro); padding: clamp(110px, 13vw, 190px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq .sec-head { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--gris-3); }
.faq details { border-bottom: 1px solid var(--gris-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-weight: 700; font-size: clamp(21px, 1.8vw, 28px); letter-spacing: -0.04em; line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(#fff, #fff) center / 12px 1.6px no-repeat, linear-gradient(#fff, #fff) center / 1.6px 12px no-repeat, var(--negro); transition: background-size 0.4s var(--spring), background-color 0.3s; }
.faq details[open] summary::after { background: linear-gradient(var(--negro), var(--negro)) center / 12px 1.6px no-repeat, linear-gradient(var(--negro), var(--negro)) center / 1.6px 0 no-repeat, var(--oro); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 60px 28px 0; max-width: 36em; color: var(--gris-calido); font-size: clamp(16px, 1.2vw, 18px); }

/* ---------- contacto ---------- */
.contacto { position: relative; z-index: 2; background-color: var(--oro); color: var(--negro); padding: clamp(110px, 13vw, 190px) 0; }
.contacto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contacto .sec-sub { opacity: 0.8; }
.form { display: grid; gap: 26px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.f { display: grid; gap: 6px; }
.f > span, .f-choice legend { font-family: var(--mono); font-size: 12px; color: #1e1a12; }
.f em { font-style: normal; opacity: 0.7; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(10, 10, 10, 0.4); border-radius: 0; background: transparent; color: var(--negro); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; outline: none; transition: border-color 0.2s; }
.f textarea { resize: vertical; min-height: 64px; }
.f input::placeholder, .f textarea::placeholder { color: #3a3020; }
.f select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--negro) 50%) calc(100% - 12px) 22px / 6px 6px no-repeat, linear-gradient(135deg, var(--negro) 50%, transparent 50%) calc(100% - 6px) 22px / 6px 6px no-repeat; }
.f select option { color: var(--negro); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--negro); }
.f input.is-bad { border-color: #8b1a12; }
.f-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 16px; border-radius: 8px; background: rgba(10, 10, 10, 0.1); font-size: 15px; font-weight: 700; transition: background 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--negro); color: var(--oro-claro); }
.seg input:focus-visible + span { outline: 2px solid var(--negro); outline-offset: 2px; }
.f-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #1e1a12; }
.f-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--negro); flex: none; }
.f-info { margin: -6px 0 0 32px; font-size: 12px; line-height: 1.45; color: rgba(30, 26, 18, 0.7); } /* primera capa de información (RGPD) */
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 700; }
.form-msg.bad { color: #8b1a12; }
.form.is-sent .btn { background: var(--negro); color: #fff; }

/* ---------- pie que aparece por debajo ---------- */
.foot { position: sticky; bottom: 0; z-index: 1; background: var(--negro); color: #fff; padding: 40px 0 0; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font-size: 15px; color: var(--gris-2); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-row a { text-decoration: none; } .foot-row a:hover { color: var(--oro); }
.foot-row p { margin: 0; font-size: 13px; }
.foot-word { margin: 6vw 0 0; padding-bottom: 0.12em; font-family: var(--marca); font-weight: 400; font-size: 9vw; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; color: var(--oro); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) { .foot-word { background: var(--oro-metal); -webkit-background-clip: text; background-clip: text; color: transparent; } }
main { position: relative; z-index: 2; background: var(--negro); }

/* ---------- tableta y móvil ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 899px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 100px; padding-bottom: 44px; }
  .hero-copy { display: contents; }
  .hero-kicker { order: 1; margin-bottom: 16px; font-size: 12px; }
  .hero-title { order: 2; font-size: clamp(48px, 13vw, 84px); }
  .hero-sub { order: 3; margin-top: 20px; }
  .hero-ctas { order: 4; margin-top: 28px; }
  .hero-stage { order: 5; min-height: 0; height: 46svh; margin: 4px calc(-1 * var(--pad)) 0; }
  .hero-canvas { inset: 0; }
  .hero-pruebas { order: 6; margin-top: 8px; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: 50svh auto; min-height: 0; padding: 0; }
  .story-stage { order: -1; }
  .story-text { justify-content: flex-start; padding: 8px var(--pad) 64px; }
  .story-kicker { margin-bottom: 10px; padding-right: 0; }
  .story-list li h3 { font-size: clamp(32px, 9vw, 48px); }
  .cifras-grid { grid-template-columns: 1fr 1fr; row-gap: 46px; }
  .app { height: auto; padding: 110px 0; }
  .app-pin { position: static; height: auto; display: block; padding: 0; }
  .app-grid { grid-template-columns: 1fr; grid-template-areas: "head" "sub" "phone" "steps"; }
  .app-head h2 { grid-area: head; }
  .app-get { grid-area: sub; margin-top: 22px; }
  .phone { height: 520px; margin: 18px 0; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 22px 20px; }
  .step-t { margin-top: 26px; }
  .mod-grid, .faq-grid, .contacto-grid { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
  .mod-detail { position: static; display: none; }
  .mod-item { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 13px; letter-spacing: 0.12em; }
  .f-row { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; min-width: 0; }
  .hero-ctas { width: 100%; justify-content: center; }
  .hero-pruebas { grid-template-columns: 1fr; gap: 10px; }
}
.mod-inline { display: none; }
@media (max-width: 899px) { .mod-item[aria-selected="true"] + .mod-inline { display: block; padding: 18px 0 30px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .grain { animation: none; }
}

/* rejilla de 4 columnas en el fondo de cada sección, alineada con el contenido (2 en móvil) */
:root {
  --cw: calc(min(100vw, calc(var(--max) + 2 * var(--pad))) - 2 * var(--pad));
  --cx: calc((100vw - min(100vw, calc(var(--max) + 2 * var(--pad)))) / 2 + var(--pad));
  --cols: 4;
}
main [data-theme], .foot { --ln: rgba(255, 255, 255, 0.07); background-image: linear-gradient(90deg, var(--ln) 1px, transparent 1px); background-size: calc(var(--cw) / var(--cols)) 100%; background-position: var(--cx) 0; }
main [data-theme="light"] { --ln: rgba(10, 10, 10, 0.07); }
main [data-theme="oro"] { --ln: rgba(10, 10, 10, 0.1); background-image: linear-gradient(90deg, var(--ln) 1px, transparent 1px), var(--oro-metal); background-size: calc(var(--cw) / var(--cols)) 100%, 100% 100%; background-position: var(--cx) 0, 0 0; background-repeat: repeat, no-repeat; }
.story.is-dark { --ln: rgba(255, 255, 255, 0.07); }
@media (max-width: 899px) { :root { --cols: 2; } }
main .hero[data-theme] { background-image: none; }
.nav { padding-left: var(--cx); padding-right: var(--cx); }
