/* =========================================================
   CIERTIS — hoja de estilos
   Diseño y desarrollo: Félix Loureiro · github.com/danakotech
   ========================================================= */

:root {
  --bg: #050b16;
  --bg-2: #08121f;
  --surface: rgba(18, 32, 52, .55);
  --surface-solid: #0d1a2b;
  --line: rgba(120, 180, 210, .14);
  --line-strong: rgba(120, 200, 220, .28);
  --text: #e6eef7;
  --muted: #8ea3ba;
  --blue: #3a6eb5;
  --blue-2: #4f86d0;
  --teal: #3ec7b4;
  --teal-2: #7ff0dc;
  --ok: #34d399;
  --warn: #f87171;
  --grad: linear-gradient(120deg, #5b8fdc 0%, #3ec7b4 55%, #8ff3e2 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(62, 199, 180, .35); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--teal); color: #031; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Fondo ---------- */
#bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 180, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 220, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: -20% -10% auto; height: 90vh; z-index: -3; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(58, 110, 181, .35), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(62, 199, 180, .25), transparent 70%);
  filter: blur(20px);
  animation: glow 18s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate3d(0, 6%, 0) scale(1.08); } }

/* ---------- Texto ---------- */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.underline { position: relative; white-space: nowrap; }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 4px;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  animation: draw 1.2s 1s var(--ease) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .18em; color: var(--teal-2);
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(62, 199, 180, .06);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { color: #04131a; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -10px rgba(62, 199, 180, .6); }
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(62, 199, 180, .8); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--teal); background: rgba(62, 199, 180, .08); transform: translateY(-2px); }
.btn--tg { color: #fff; background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 10px 30px -10px rgba(42, 171, 238, .6); }
.btn--tg:hover { transform: translateY(-2px); }
.btn__orb {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff, #8ff3e2 35%, #2a6fb5 80%);
  box-shadow: 0 0 10px rgba(255, 255, 255, .7), inset 0 0 4px rgba(0, 0, 0, .3);
  animation: orb 3s ease-in-out infinite;
}
@keyframes orb { 50% { transform: scale(1.18); box-shadow: 0 0 16px rgba(143, 243, 226, .9); } }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 11, 22, .72); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--f-display); letter-spacing: .12em; }
.brand img { filter: drop-shadow(0 0 10px rgba(62, 199, 180, .35)); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__links .nav__app { display: none; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; min-height: calc(100svh - 72px); padding-block: 40px 60px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 82px); font-weight: 700; margin: 22px 0 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.hero__visual { display: grid; place-items: center; perspective: 1000px; }
.seal { position: relative; width: min(460px, 82vw); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.seal__logo { width: 56%; position: relative; z-index: 3; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(62, 199, 180, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.seal__halo { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(62, 199, 180, .35), rgba(58, 110, 181, .15) 50%, transparent 70%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.seal__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.seal__ring--1 { inset: 0; border-style: dashed; border-color: rgba(62, 199, 180, .3); animation: spin 60s linear infinite; }
.seal__ring--2 { inset: 9%; border-top-color: var(--teal); border-right-color: transparent; border-width: 2px; animation: spin 9s linear infinite; }
.seal__ring--3 { inset: 16%; border-bottom-color: var(--blue-2); border-left-color: transparent; border-width: 2px; animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal__scan { position: absolute; inset: 20%; border-radius: 50%; overflow: hidden; z-index: 4; pointer-events: none; }
.seal__scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(127, 240, 220, .25), transparent); animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; white-space: nowrap;
  background: rgba(10, 22, 38, .75); border: 1px solid var(--line-strong); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.chip b { color: var(--teal-2); font-weight: 600; }
.chip--a { top: 8%; left: -4%; }
.chip--b { bottom: 14%; right: -6%; animation-delay: -2s; }
.chip--c { bottom: 2%; left: 4%; color: var(--muted); animation-delay: -4s; }
.ok { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #04201a; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: rgba(8, 18, 31, .6); overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; font: 400 13px/1 var(--f-mono); color: var(--muted); }
.ticker__track span { display: inline-flex; gap: 10px; align-items: center; }
.ticker__track b { color: var(--teal); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 56px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font: 700 clamp(32px, 4vw, 48px)/1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); display: grid; justify-items: center; gap: 18px; }
.section__head--left { text-align: left; justify-items: start; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; max-width: 820px; }
.section__sub { color: var(--muted); max-width: 640px; font-size: 17px; }
.section__sub strong { color: var(--text); }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px); overflow: hidden; transition: border-color .3s, transform .3s var(--ease);
}
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(62, 199, 180, .14), transparent 40%); opacity: 0; transition: opacity .3s; }
.pillar:hover { border-color: var(--line-strong); }
.pillar:hover::before { opacity: 1; }
.pillar__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(58, 110, 181, .3), rgba(62, 199, 180, .2)); border: 1px solid var(--line-strong); margin-bottom: 22px; }
.pillar__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Fichas (flip) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { perspective: 1200px; min-height: 340px; outline: none; cursor: pointer; }
.card__inner { position: relative; height: 100%; min-height: 340px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
@media (hover: hover) { .card:hover .card__inner { transform: rotateY(180deg); } }
.card:focus-visible .card__inner { box-shadow: 0 0 0 2px var(--teal); border-radius: var(--radius); }
.card__face {
  position: absolute; inset: 0; padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line);
}
.card__front { background: linear-gradient(160deg, rgba(20, 36, 58, .9), rgba(10, 20, 34, .9)); }
.card__back { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(20, 70, 80, .95), rgba(14, 40, 70, .95)); border-color: rgba(62, 199, 180, .4); }
.card h3 { font-size: 22px; }
.card .problem { color: var(--muted); }
.card__metric { margin-top: auto; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(248, 113, 113, .08); border: 1px dashed rgba(248, 113, 113, .35); color: #fecaca; font-size: 15px; }
.card__result { margin-top: auto; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #d1fae5; }
.card__result b { color: var(--ok); }
.card__back p { color: #cfe3ee; font-size: 15px; }
.flip-hint { font: 500 12px/1 var(--f-mono); color: var(--teal); letter-spacing: .06em; }
.tag { align-self: flex-start; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; color: var(--teal-2); background: rgba(62, 199, 180, .1); border: 1px solid rgba(62, 199, 180, .25); }
.tag--ok { color: #d1fae5; background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .4); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(52, 211, 153, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 6%; right: 22%; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 34px; left: 6%; height: 2px; width: calc(72% * var(--p, 0)); background: var(--grad); box-shadow: 0 0 12px var(--teal); transition: width .2s linear; }
.step { position: relative; z-index: 1; display: grid; gap: 18px; }
.step__n { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font: 700 20px/1 var(--f-display); color: var(--teal-2); background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: 0 0 0 8px var(--bg); transition: all .4s var(--ease); }
.step.is-lit .step__n { background: var(--grad); color: #04131a; border-color: transparent; box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(62, 199, 180, .5); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { border-color: var(--line-strong); }
.plan--hot { border-color: rgba(62, 199, 180, .5); background: linear-gradient(170deg, rgba(30, 80, 100, .55), rgba(14, 30, 52, .7)); box-shadow: 0 30px 80px -30px rgba(62, 199, 180, .45); }
.plan__badge { align-self: flex-start; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan--hot .plan__badge { color: #04131a; background: var(--grad); padding: 7px 10px; border-radius: 8px; }
.plan h3 { font-size: 26px; }
.plan__price { font: 700 40px/1 var(--f-display); }
.plan__price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .ticks { flex: 1; color: var(--muted); font-size: 15px; }

.pricehook { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: -12px auto 34px; padding: 16px 22px; border-radius: 18px; background: linear-gradient(120deg, rgba(58, 110, 181, .22), rgba(62, 199, 180, .16)); border: 1px solid rgba(62, 199, 180, .45); box-shadow: 0 20px 60px -30px rgba(62, 199, 180, .55); }
.pricehook__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); }
.pricehook__icon svg { width: 22px; height: 22px; fill: #04131a; }
.pricehook p { color: var(--muted); font-size: 15px; }
.pricehook b { display: block; color: var(--text); font: 700 clamp(17px, 2vw, 21px)/1.3 var(--f-display); margin-bottom: 2px; }
.plan__eur { margin-top: -10px; font: 500 13px/1.3 var(--f-mono); color: var(--teal-2); }
.final p strong { color: var(--text); }

/* ---------- Casos / prueba ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uses li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; transition: transform .3s var(--ease), border-color .3s; }
.uses li:hover { transform: translateX(6px); border-color: var(--teal); }
.uses span { font-size: 22px; }
.proof { padding: 34px; border-radius: 24px; background: linear-gradient(160deg, rgba(58, 110, 181, .18), rgba(62, 199, 180, .1)); border: 1px solid var(--line-strong); }
.proof h3 { font-size: 24px; margin-bottom: 20px; }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: p; }
.proof__list li { counter-increment: p; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.proof__list li::before { content: counter(p, decimal-leading-zero); font: 600 12px/1 var(--f-mono); color: var(--teal); }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Banner guía */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: linear-gradient(120deg, rgba(58, 110, 181, .3), rgba(62, 199, 180, .18)); border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 240, 220, .3), transparent 70%); pointer-events: none; }
.banner h2 { font-size: clamp(22px, 2.8vw, 32px); margin-top: 14px; max-width: 640px; }
.banner .btn { position: relative; z-index: 1; flex: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(18, 40, 60, .7); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 600 17px/1.4 var(--f-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }
.faq a { color: var(--teal-2); }

/* CTA final */
.final { position: relative; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); border-radius: 32px; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, rgba(58, 110, 181, .35), rgba(5, 11, 22, .9) 60%); border: 1px solid var(--line-strong); display: grid; justify-items: center; gap: 16px; }
.final h2 { font-size: clamp(30px, 4.8vw, 58px); max-width: 820px; position: relative; }
.final p { color: var(--muted); font-size: 18px; position: relative; }
.final .hero__ctas { justify-content: center; margin-top: 18px; position: relative; }
.final__orb { position: absolute; width: 420px; height: 420px; top: -210px; left: 50%; margin-left: -210px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(143, 243, 226, .55), rgba(58, 110, 181, .25) 50%, transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(3, 8, 16, .8); margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 360px; font-size: 15px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.footer nav a { color: var(--text); text-decoration: none; font-size: 15px; opacity: .85; }
.footer nav a:hover { opacity: 1; color: var(--teal-2); }
.footer__legal { border-top: 1px solid var(--line); padding-block: 22px 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* Telegram flotante */
.tg-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; text-decoration: none; font: 600 14px/1 var(--f-display); box-shadow: 0 14px 40px -10px rgba(42, 171, 238, .7); transition: transform .3s var(--ease); }
.tg-float svg { width: 22px; height: 22px; fill: #fff; }
.tg-float:hover { transform: translateY(-3px) scale(1.03); }
.tg-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #2aabee; animation: ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ring { to { transform: scale(1.35); opacity: 0; } }

/* ---------- Guía: enlace del faucet ---------- */
.gstep__cta { justify-self: start; margin-top: 6px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Página de guía ---------- */
.guide-hero { padding-block: 64px 24px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.guide-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 900px; }
.guide-hero .lead { margin-inline: auto; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--teal-2); text-decoration: none; }
.gsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: g; }
.gsteps > li { counter-increment: g; position: relative; padding: 26px 26px 26px 92px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.gsteps > li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 24px; top: 24px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 700 16px/1 var(--f-display); color: #04131a; background: var(--grad); }
.gsteps h2 { font-size: 21px; margin-bottom: 8px; }
.gsteps p { color: var(--muted); }
.gsteps code { font-family: var(--f-mono); color: var(--teal-2); font-size: .92em; }
.gsteps > li { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
.gstep__txt { display: grid; gap: 8px; align-content: start; }
.gstep__txt h2 { margin-bottom: 0; }
.gfig { margin: 0; padding: 6px; border-radius: 16px; background: linear-gradient(160deg, rgba(58, 110, 181, .14), rgba(62, 199, 180, .06)); border: 1px solid var(--line); }
.gfig svg { display: block; width: 100%; height: auto; overflow: visible; }
.gfig svg * { transform-box: fill-box; transform-origin: center; }
/* piezas de las ilustraciones */
.f-panel { fill: #0d1a2b; stroke: var(--line-strong); stroke-width: 1.2; }
.f-bar { fill: rgba(255, 255, 255, .06); }
.f-in { fill: rgba(0, 0, 0, .3); stroke: var(--line-strong); }
.f-line { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-linecap: round; }
.f-acc { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f-ok { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f-dkst { fill: none; stroke: #04201a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-warn { fill: none; stroke: var(--warn); stroke-width: 3; stroke-linecap: round; }
.f-accf { fill: var(--teal); }
.f-okf { fill: var(--ok); }
.f-okbg { fill: rgba(52, 211, 153, .14); stroke: rgba(52, 211, 153, .5); }
.f-sel { fill: rgba(62, 199, 180, .12); stroke: var(--teal); }
.f-hash { fill: rgba(62, 199, 180, .08); stroke: rgba(62, 199, 180, .45); }
.f-chip { fill: rgba(62, 199, 180, .18); }
.f-chipt { font: 600 8px var(--f-mono); fill: var(--teal-2); }
.f-orange { fill: #f6851b; }
.f-blue { fill: var(--blue-2); }
.f-white { fill: #fff; }
.f-dk { fill: #0b1a2b; }
.f-mut { fill: var(--muted); }
.f-mutf { fill: #5b7088; }
.f-paper { fill: #eef5f9; }
.f-pslot { fill: #c9d8e4; }
.f-pline { fill: none; stroke: #c9d8e4; stroke-width: 4; stroke-linecap: round; }
.f-pipe { fill: none; stroke: #5b7088; stroke-width: 14; stroke-linecap: round; }
.f-drop { fill: var(--teal-2); opacity: 0; }
.f-t { font: 500 11px var(--f-mono); fill: var(--text); }
.f-s { font: 400 10.5px var(--f-body); fill: var(--muted); }
.f-b { font: 700 14px var(--f-display); fill: var(--text); }
.f-btn { font: 700 12px var(--f-display); fill: #04131a; }
.f-pt { font: 500 8.5px var(--f-mono); fill: #5b7088; }
text.f-teal-t { fill: var(--teal-2); }
text.f-ok-t { fill: var(--ok); }
text.f-white { fill: #fff; }
/* animaciones de las ilustraciones */
.a-bob { animation: gbob 1.6s ease-in-out infinite; }
@keyframes gbob { 50% { transform: translateY(5px); } }
.a-drip { animation: gdrip 1.8s ease-in infinite; }
@keyframes gdrip { 0% { transform: translateY(0); opacity: 0; } 15%, 75% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
.a-dash { stroke-dasharray: 6 6; animation: gdash 1s linear infinite; }
@keyframes gdash { to { stroke-dashoffset: -12; } }
.a-blink { animation: gblink 1s steps(2) infinite; }
@keyframes gblink { 50% { opacity: 0; } }
.a-pop { animation: gpop 3.2s ease-in-out infinite; }
@keyframes gpop { 0%, 20% { opacity: 0; transform: translateY(6px); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.a-pulse { animation: gpulse 2s ease-in-out infinite; }
@keyframes gpulse { 50% { transform: scale(1.1); } }
.alert { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fields div { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fields h3 { font-size: 17px; margin-bottom: 6px; }
.fields p { color: var(--muted); font-size: 15px; }


/* =========================================================
   Escena 3D (WebGL)
   ========================================================= */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: none; transition: opacity .2s linear; }
.webgl-ready #scene { display: block; }
.webgl-ready #bg-net, .webgl-ready .bg-glow { display: none; }
.webgl-ready .bg-grid { opacity: .55; }
/* sobre la escena, el sello 2D deja paso al documento 3D (se mantiene como respaldo) */
.webgl-ready .seal__ring, .webgl-ready .seal__logo, .webgl-ready .seal__halo, .webgl-ready .seal__scan { display: none; }
.webgl-ready .hero__visual { min-height: 520px; }
.webgl-ready .seal { width: min(520px, 82vw); }
.chip--d { top: 34%; left: -10%; color: var(--teal-2); animation-delay: -3s; }
.webgl-ready .chip--b { right: auto; left: -4%; bottom: 26%; }
.webgl-ready .chip--c { left: 2%; bottom: 6%; }
.chip--d .lock { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 3px; position: relative; margin-top: 4px; }
.chip--d .lock::before { content: ""; position: absolute; left: 1px; right: 1px; bottom: 100%; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
html:not(.webgl-ready) .chip--d { display: none; }

/* Superficies algo más opacas para leer bien sobre el 3D */
.webgl-ready .stat, .webgl-ready .pillar, .webgl-ready .plan, .webgl-ready .uses li, .webgl-ready .faq details { background: rgba(10, 22, 38, .72); backdrop-filter: blur(12px); }

/* =========================================================
   Viaje de los datos
   ========================================================= */
.journey { padding-block: clamp(64px, 10vw, 120px) 40px; }
.journey__head { max-width: 560px; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 500px; }
.jstep {
  position: relative; display: grid; align-content: center; gap: 14px;
  padding: 34px 30px 34px 34px;
  border-radius: var(--radius); background: rgba(8, 18, 31, .55); border: 1px solid var(--line);
  backdrop-filter: blur(6px); opacity: .45; transform: translateX(-10px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s, background .6s;
}
.journey__steps { padding-block: 10vh 30vh; gap: 42vh; }
.jstep.is-active, html:not(.webgl-ready) .jstep { opacity: 1; transform: none; border-color: rgba(62, 199, 180, .45); background: rgba(8, 20, 34, .82); box-shadow: 0 30px 80px -40px rgba(62, 199, 180, .45); }
.jstep::before { content: ""; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease); }
.jstep.is-active::before { transform: scaleY(1); }
.jstep__n { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-2); }
.jstep h3 { font-size: clamp(22px, 2.4vw, 30px); }
.jstep p { color: var(--muted); }
.jstep p strong { color: var(--text); }
.jstep__code { justify-self: start; max-width: 100%; overflow-wrap: anywhere; font: 500 12.5px/1.5 var(--f-mono); color: var(--teal-2); padding: 9px 12px; border-radius: 10px; background: rgba(62, 199, 180, .07); border: 1px solid rgba(62, 199, 180, .25); }
html:not(.webgl) .journey__steps { gap: 18px; padding-block: 0; max-width: none; grid-template-columns: repeat(2, 1fr); }

/* =========================================================
   Transición: documento que se evapora en texto cifrado
   ========================================================= */
.launch {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(120% 90% at 50% 40%, rgba(10, 28, 46, .96), rgba(2, 6, 12, .995));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.launch.is-on { opacity: 1; visibility: visible; }
.is-launching body > :not(.launch):not(script) { visibility: hidden; }
.is-launching body > :not(.launch) *, .is-launching body > :not(.launch) *::before, .is-launching body > :not(.launch) *::after { animation-play-state: paused !important; }
.launch canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.launch__stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; width: min(560px, 100%); perspective: 1200px; }
.vault {
  position: relative; width: 100%; padding: clamp(20px, 4vw, 34px); border-radius: 18px; overflow: hidden;
  color: #0b1a2b; background: linear-gradient(160deg, #f8fbff, #e2eef5);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .4);
  transform: rotateX(16deg) translateY(30px) scale(.94); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s var(--ease), background 1s var(--ease), color 1s, box-shadow 1s;
}
.vault::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(58, 110, 181, .04) 0 2px, transparent 2px 12px); pointer-events: none; transition: opacity 1s; }
.launch.is-on .vault { transform: none; opacity: 1; }
.vault.is-sealed { background: linear-gradient(160deg, rgba(8, 26, 42, .92), rgba(4, 14, 26, .95)); color: var(--teal-2); box-shadow: 0 0 0 1px rgba(127, 240, 220, .55), 0 0 60px -10px rgba(62, 199, 180, .55), 0 40px 90px -30px rgba(0, 0, 0, .8); }
.vault.is-sealed::before { opacity: 0; }
.vault.is-gone { transform: translateY(-40px) scale(1.04); opacity: 0; filter: blur(10px); transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s; }
.vault__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #cfdde8; transition: border-color 1s; }
.vault.is-sealed .vault__head { border-color: rgba(127, 240, 220, .25); }
.vault__head img { width: 120px; transition: filter 1s; }
.vault.is-sealed .vault__head img { filter: brightness(1.6) drop-shadow(0 0 10px rgba(62, 199, 180, .5)); }
.vault__stamp { font: 600 10px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; text-align: center; color: #0f766e; border: 2px solid currentColor; border-radius: 10px; padding: 6px 10px; transform: rotate(-6deg); transition: color 1s; }
.vault.is-sealed .vault__stamp { color: var(--ok); }
.vault__stamp b { font-size: 14px; }
.vault__title { font: 700 clamp(20px, 3vw, 26px)/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 6px; }
.vault__meta { font: 500 12px/1.5 var(--f-mono); color: #3a6eb5; margin-bottom: 14px; }
.vault__body { font-size: 14.5px; line-height: 1.6; color: #33475e; margin-bottom: 10px; }
.vault__hash { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(62, 199, 180, .12); border: 1px solid rgba(15, 118, 110, .4); display: grid; gap: 4px; }
.vault__hash small { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; color: #0f766e; }
.vault__hash code { font: 500 12px/1.5 var(--f-mono); word-break: break-all; color: #0b1a2b; }
.vault.is-sealed .vault__meta, .vault.is-sealed .vault__body, .vault.is-sealed .vault__hash code, .vault.is-sealed .vault__title { color: inherit; }
.vault__scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(127, 240, 220, .28) 70%, rgba(200, 255, 248, .95) 99%, transparent); }
.vault.is-scanning .vault__scan { animation: vscan var(--scan, 1.6s) linear forwards; }
@keyframes vscan { 0% { opacity: 1; transform: translateY(-90px); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--h, 520px)); } }

/* letras: original (i) + cifrado (b) superpuesto */
.vault .w { white-space: nowrap; }
.vault .c { position: relative; display: inline-block; }
.vault .c > i { font-style: normal; display: inline-block; transition: transform .75s var(--ease), opacity .6s var(--ease); }
.vault .c > b { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font: 500 .8em/inherit var(--f-mono); line-height: 1.9; color: var(--teal-2); opacity: 0; text-shadow: 0 0 8px rgba(127, 240, 220, .7); transition: opacity .35s .15s, color .6s; pointer-events: none; }
.vault .c.is-evap > i { transform: translate(var(--dx, 0), -20px) scale(1.4); opacity: 0; }
.vault .c.is-evap > b { opacity: 1; }
.vault.is-sealed .c > b { color: #9ff7e8; }

.launch__hud { width: 100%; display: grid; gap: 12px; justify-items: center; text-align: center; }
.launch__txt { font: 500 13px/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-2); min-height: 1.4em; }
.launch__bar { width: min(320px, 80%); height: 3px; border-radius: 3px; background: rgba(127, 240, 220, .12); overflow: hidden; }
.launch__bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--teal); }
.launch__to { font-size: 12px; color: var(--muted); letter-spacing: .08em; }


/* =========================================================
   Certificado de ejemplo + visor
   ========================================================= */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.sample .section__head { margin-bottom: 26px; }
.sample__list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.sample__list li { position: relative; padding-left: 30px; color: var(--muted); }
.sample__list li b { color: var(--text); font-weight: 600; }
.sample__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.sample .hero__ctas { margin-top: 0; }
.sample .btn svg { fill: none; }
.sample__note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.sample__note a { color: var(--teal-2); }

.sample__stack { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 640 / 905; padding: 0; border: 0; background: none; cursor: zoom-in; perspective: 1400px; }
.sample__page { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.sample__page--1 { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-2deg); }
.sample__page--2 { transform: translate(34px, -22px) rotateY(-14deg) rotateX(6deg) rotateZ(3deg) scale(.96); filter: brightness(.7); }
.sample__stack:hover .sample__page--1, .sample__stack:focus-visible .sample__page--1 { transform: rotateY(-4deg) rotateX(2deg) translateY(-8px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(62, 199, 180, .45); }
.sample__stack:hover .sample__page--2 { transform: translate(60px, -36px) rotateY(-4deg) rotateZ(6deg) scale(.96); }
.sample__badge { position: absolute; left: -6%; bottom: 10%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 13px; white-space: nowrap; color: var(--text); background: rgba(10, 22, 38, .85); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
.sample__zoom { position: absolute; right: 4%; top: 4%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--f-display); color: #04131a; background: var(--grad); box-shadow: 0 10px 24px -8px rgba(62, 199, 180, .7); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.sample__zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sample__stack:hover .sample__zoom, .sample__stack:focus-visible .sample__zoom { opacity: 1; transform: none; }
@media (hover: none) { .sample__zoom { opacity: 1; transform: none; } }

.pdfview { width: min(980px, calc(100vw - 24px)); max-width: none; height: min(92vh, 1400px); max-height: none; padding: 0; margin: auto; border: 1px solid var(--line-strong); border-radius: 20px; background: #07111e; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(62, 199, 180, .4); overflow: hidden; }
.pdfview[open] { display: flex; flex-direction: column; animation: pdfIn .45s var(--ease); }
.pdfview::backdrop { background: rgba(2, 6, 12, .82); backdrop-filter: blur(8px); }
@keyframes pdfIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pdfview__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.pdfview__title { display: grid; gap: 4px; min-width: 0; }
.pdfview__title b { font: 700 16px/1.2 var(--f-display); }
.pdfview__title small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfview__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pdfview__close { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.pdfview__close span { position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
.pdfview__close span + span { transform: rotate(-45deg); }
.pdfview__close:hover { border-color: var(--teal); }
.pdfview__pages { flex: 1; overflow: auto; overscroll-behavior: contain; padding: clamp(12px, 3vw, 32px); display: grid; gap: 22px; justify-items: center; background: radial-gradient(120% 60% at 50% 0%, rgba(58, 110, 181, .18), transparent 70%); }
.pdfview__pages img { width: 100%; max-width: 820px; height: auto; border-radius: 6px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links a { padding: 8px 8px; }
}
@media (max-width: 920px) {
  .gsteps > li { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; padding: 16px var(--gutter) 24px;
    background: rgba(5, 11, 22, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; margin: 0;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 16px; }
  .nav__burger { display: block; }
  .nav__cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 32px; }
  .hero__copy { display: grid; justify-items: center; }
  .lead { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__visual { order: -1; }
  .seal { width: min(340px, 78vw); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before, .steps::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; }
  .sample__stack { width: min(340px, 86%); order: -1; margin-bottom: 20px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .webgl-ready .hero__visual { min-height: 56vh; }
  .journey__steps { max-width: none; gap: 50vh; padding-block: 20vh 40vh; }
  .jstep { background: rgba(8, 18, 31, .78); }
  html:not(.webgl) .journey__steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__cta .btn { display: none; }
  .nav__links .nav__app { display: inline-flex; margin-top: 10px; padding: 0 22px; color: #04131a; font-size: 15px; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .card, .card__inner { min-height: 320px; }
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: auto 1fr; align-items: start; }
  .step__n { width: 54px; height: 54px; font-size: 17px; }
  .uses { grid-template-columns: 1fr; }
  .chip { font-size: 11px; padding: 8px 10px; }
  .chip--a { left: 0; } .chip--b { right: 0; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .tg-float span { display: none; }
  .sample__badge { left: 0; font-size: 11px; padding: 8px 10px; }
  .sample__page--2 { transform: translate(14px, -14px) rotateY(-14deg) rotateX(6deg) rotateZ(3deg) scale(.96); }
  .sample__stack { width: min(300px, 78%); }
  .pdfview { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .pdfview__bar { padding: 10px 10px 10px 14px; }
  .pdfview__open { display: none; }
  .pdfview__actions .btn { padding: 0 14px; }
  .tg-float { padding: 14px; }
  .footer__inner { grid-template-columns: 1fr; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; text-align: center; }
  .gsteps > li { padding: 84px 20px 22px; }
  .gfig { max-width: 420px; }
  .fields { grid-template-columns: 1fr; }
  .chip--d { left: 0; top: 30%; }
  .webgl-ready .chip--b { left: auto; right: 0; }
  .vault__body:last-of-type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .f-drop { opacity: 1; }
  .a-pop { opacity: 1; }
}
