/* Zetgo ID · landing. Tokens primero; todo lo demás deriva de ellos. */
:root {
  --sc-canvas: #f4f5f8;
  --sc-surface: #ffffff;
  --sc-ink: #0f1222;
  --sc-ink-soft: #4a5068;
  --sc-accent: #3f37c9;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-shadow-color: 228 30% 30%;
  --night: #0b0d17;
  --night-ink: #eef0fb;
  --night-soft: #a9aecb;
  --ok: #0f7a3d;
  --dossier-w: 0px;
  --bar-h: 64px;
  color-scheme: light;
}
@media (min-width: 1180px) { :root { --dossier-w: 300px; } }

html { scroll-padding-top: calc(var(--bar-h) + 12px); }
body { background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); }
img { max-width: 100%; }
a { color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sc-ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Botones y enlaces ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--sc-accent); color: var(--sc-accent-ink); text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 0.85rem 1.4rem; border-radius: 999px;
  box-shadow: 0 6px 18px -8px hsl(var(--sc-shadow-color) / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: #3129b0; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.link { color: var(--sc-ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }

/* ── Barra ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 clamp(16px, 3vw, 40px);
  background: color-mix(in srgb, var(--sc-canvas) 92%, transparent);
  border-bottom: 1px solid transparent; transition: border-color 200ms, background-color 200ms;
}
.bar.is-scrolled { border-bottom-color: rgb(15 18 34 / 0.08); background: var(--sc-canvas); }
.bar.is-night { background: color-mix(in srgb, var(--night) 94%, transparent); color: var(--night-ink); border-bottom-color: rgb(255 255 255 / 0.06); }
.bar__mark { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.bar__mark span { color: var(--sc-accent); }
.bar.is-night .bar__mark span { color: #9d97ff; }
.bar__nav { display: flex; gap: 1.6rem; font-size: 0.95rem; }
.bar__nav a { text-decoration: none; opacity: 0.78; transition: opacity 150ms; }
.bar__nav a:hover { opacity: 1; }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.bar__login { text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.85; }
@media (max-width: 860px) { .bar__nav { display: none; } .bar { gap: 1rem; } }

/* ── 1 · Héroe en capas ── */
.hero { position: relative; min-height: 100svh; overflow: clip; display: flex; align-items: flex-end; }
.hero__scene { position: absolute; inset: 0; pointer-events: none; }
.plane { position: absolute; will-change: transform; }
.plane img { display: block; max-width: none; width: 100%; height: 100%; object-fit: cover; }
/* Mientras no haya fotos: un atardecer bogotano en capas, solo con color. */
.plane--far { inset: -6% -4% -10% -4%; background:
  radial-gradient(120% 70% at 70% 92%, #f2b27a 0%, rgb(242 178 122 / 0) 55%),
  linear-gradient(180deg, #1c2346 0%, #3a3f74 38%, #8a6f8f 66%, #e3a07a 100%); }
.plane--glow { inset: 0; background: radial-gradient(40% 50% at 72% 58%, rgb(255 214 170 / 0.35), transparent 70%); mix-blend-mode: screen; }
.plane--subject { right: calc(var(--dossier-w, 0px) + 3%); bottom: 0; height: min(90svh, 980px); aspect-ratio: 1383 / 2200; }
.plane--subject img { object-fit: contain; object-position: bottom; }
.plane--near { inset: auto -6% -8% -6%; height: 34%; }
.plane--near img { object-position: top; }
/* Velo a la izquierda: el titular y el subtítulo se leen sobre las luces de la ciudad */
.hero__scene::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(9 11 24 / 0.78) 0%, rgb(9 11 24 / 0.5) 34%, transparent 62%); }
@media (max-width: 700px) {
  .hero__title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .hero__for { display: none; }
  .hero__eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
  .scan__tag { font-size: 0.72rem; bottom: -2.2rem; }
}
@media (max-width: 700px) { .hero__scene::after { background: linear-gradient(0deg, rgb(9 11 24 / 0.85) 0%, rgb(9 11 24 / 0.4) 45%, transparent 70%); } }
.hero__floor { position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(180deg, transparent, rgb(9 11 24 / 0.72)); }
.hero__copy {
  position: relative; z-index: 2; color: #fff; max-width: min(58rem, 100%);
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 12vh, 128px);
}
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; margin: 0 0 1.1rem; }
.hero__title { max-width: none; font-size: clamp(2.3rem, 4.5vw, 4.4rem); }
@media (min-width: 701px) { .hero__title, .hero__title .hero__dim { white-space: nowrap; } }
.hero__dim { color: rgb(255 255 255 / 0.55); }
.hero__eyebrow { margin: 0 0 1.1rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b5ff; }
.hero__for { margin: 2.2rem 0 0; max-width: 30rem; font-size: 0.9rem; line-height: 1.5; color: rgb(255 255 255 / 0.62); }

/* Marco biométrico sobre el rostro (posición = caja de la cara medida en la foto) */
.scan { position: absolute; left: 29%; top: 5%; width: 45%; height: 30%; z-index: 2; pointer-events: none;
  animation: scan-in 900ms 500ms var(--sc-ease-out, ease-out) both; }
.scan i { position: absolute; width: 22%; height: 16%; border: 2px solid #fff; opacity: 0.9; }
.scan i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scan i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan__line { position: absolute; left: 4%; right: 4%; height: 2px; top: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #9d97ff, transparent); box-shadow: 0 0 16px #7b73ff;
  animation: scan-sweep 1.6s 700ms ease-in-out 2 both; }
.scan__tag { position: absolute; left: 50%; bottom: -2.6rem; transform: translateX(-50%); white-space: nowrap;
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff;
  background: rgb(15 18 34 / 0.72); border: 1px solid rgb(255 255 255 / 0.22); backdrop-filter: blur(8px);
  animation: scan-tag 500ms 3.9s var(--sc-ease-out, ease-out) both; }
.scan__tag b { color: #4ade80; margin-right: 0.25rem; }
@keyframes scan-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes scan-sweep { 0% { top: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 96%; opacity: 0; } }
@keyframes scan-tag { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .scan, .scan__line, .scan__tag { animation: none; } .scan__line { display: none; } }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 30rem; color: rgb(255 255 255 / 0.86); margin: 0 0 1.8rem; }
.hero__cta { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.hero__cta .link { color: #fff; }
@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .plane--subject { right: -12%; height: 50svh; top: calc(var(--bar-h, 64px) + 8px); bottom: auto; }
  .hero__copy { padding-bottom: 72px; }
}

/* ── 2 · La duda ── */
.doubt { background: var(--night); color: var(--night-ink); }
.doubt__stage { display: grid; align-items: center; padding: 0 clamp(20px, 6vw, 96px); padding-right: calc(var(--dossier-w) + clamp(20px, 6vw, 96px)); }
.doubt__img { position: absolute; inset: 0; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.doubt__img img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.doubt__lines { position: relative; display: grid; max-width: 40rem; }
.doubt__lines > * { grid-area: 1 / 1; }
.doubt .sc-lede { color: var(--night-ink); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.015em; }
.doubt__q { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.035em; color: #fff; }

/* ── 3 · Un link ── */
.onelink { padding-right: var(--dossier-w); }
.onelink__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.onelink__fig { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #dfe3f2, #c9cde4); box-shadow: 0 30px 60px -30px hsl(var(--sc-shadow-color) / 0.45); }
.onelink__fig img { width: 100%; height: 100%; object-fit: cover; }
.onelink__list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.55rem; font-weight: 500; }
.onelink__list li::before { content: "✓"; color: var(--sc-accent); margin-right: 0.6rem; font-weight: 700; }
.sc-label { color: var(--sc-accent); font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 860px) { .onelink__grid { grid-template-columns: 1fr; } .onelink__fig { max-height: 62vh; } }

/* ── 4 · El expediente (pico) ── */
.peak { background: linear-gradient(180deg, var(--sc-canvas), #e9ebf3); }
.peak__stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--bar-h) + 16px) clamp(20px, 5vw, 72px) 24px; padding-right: calc(var(--dossier-w) + clamp(20px, 4vw, 56px)); }
.peak__card { position: relative; height: min(68vh, 560px); display: grid; place-items: center; }
.idcard {
  --x: 0; position: relative; width: min(100%, 470px); aspect-ratio: 1.586; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #fbfcff 0%, #eef1fb 55%, #e3e8fb 100%);
  box-shadow: 0 40px 70px -30px hsl(var(--sc-shadow-color) / 0.55), inset 0 1px 0 #fff;
  display: grid; grid-template-columns: 34% 1fr; grid-template-rows: auto 1fr; gap: 0 4%; padding: 0 5% 5%;
  transform: translateY(calc(var(--card-y, 0) * 1px)) scale(var(--card-s, 1)); transform-origin: 50% 40%;
}
.idcard__band { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-accent); padding: 4.5% 0 3.5%; }
.idcard__photo { border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #cdd3ea, #b4bbdb); align-self: stretch; }
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.idcard__fields { margin: 0; display: grid; align-content: start; gap: 0.5rem; }
.idcard__fields div { padding: 3px 6px; border-radius: 6px; transition: background-color 220ms var(--sc-ease-out), box-shadow 220ms var(--sc-ease-out); }
.idcard__fields dt { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.idcard__fields dd { margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(0.78rem, 1.2vw, 0.98rem); letter-spacing: -0.01em; }
.idcard__fields div.is-read { background: rgb(63 55 201 / 0.09); box-shadow: inset 0 0 0 1px rgb(63 55 201 / 0.25); }
.idcard__scan { position: absolute; inset: 0; pointer-events: none; opacity: var(--scan-o, 0);
  background: linear-gradient(180deg, transparent calc(var(--scan, 0) * 100% - 8%), rgb(63 55 201 / 0.22) calc(var(--scan, 0) * 100%), transparent calc(var(--scan, 0) * 100% + 1%)); }
.face { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; opacity: var(--face-o, 0); }
.face__doc, .face__live { position: absolute; width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, #cdd3ea, #b4bbdb); box-shadow: 0 24px 50px -20px hsl(var(--sc-shadow-color) / 0.6), 0 0 0 4px #fff; }
.face__doc { transform: translateX(calc(var(--face-gap, 1) * -120px)); }
.face__live { transform: translateX(calc(var(--face-gap, 1) * 120px)); overflow: visible; }
.face__live img, .face__doc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.face__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--sc-accent); opacity: var(--ring-o, 0); transform: scale(var(--ring-s, 1)); }
.peak__overlay { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.chip { background: var(--sc-surface); border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.85rem; font-weight: 500;
  box-shadow: 0 10px 24px -14px hsl(var(--sc-shadow-color) / 0.6); opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out); }
.chip.is-on { opacity: 1; transform: none; }
.chip b { color: var(--ok); }
.peak__copy { display: grid; }
.peak__copy > .beat { grid-area: 1 / 1; max-width: 30rem; }
.beat h2 { margin: 0 0 0.8rem; }
@media (max-width: 860px) {
  .peak__stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: end; padding-bottom: 88px; }
  .peak__card { height: 44vh; }
  .face__doc, .face__live { width: 120px; }
}

/* ── 5 · Empresas ── */
.kyb { background: #e9ebf3; }
.kyb__stage { display: flex; align-items: center; overflow: hidden; }
.kyb__bg { position: absolute; inset: 0; opacity: 0.22; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.kyb__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.rail { position: relative; display: flex; gap: clamp(16px, 2vw, 28px); align-items: stretch; padding: 0 clamp(20px, 5vw, 72px); padding-right: calc(var(--dossier-w) + 72px); }
.rail__lead { flex: 0 0 min(30rem, 80vw); align-self: center; padding-right: 2rem; }
.slab { flex: 0 0 clamp(16rem, 24vw, 21rem); background: var(--sc-surface); border-radius: 18px; padding: 2rem 1.6rem; min-height: 15rem;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 24px 48px -28px hsl(var(--sc-shadow-color) / 0.5), inset 0 1px 0 #fff; }
.slab h3 { font-family: var(--sc-font-display); font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.slab p { margin: 0; color: var(--sc-ink-soft); line-height: 1.5; }
/* Vista de muestra del resultado de cada verificación KYB (markup, datos de ejemplo) */
.slab { display: flex; flex-direction: column; }
.vis { position: relative; flex: 1; margin: 0 0 1.6rem; padding: 1.1rem 1.1rem 1rem; border-radius: 14px; background: #f3f4f9;
  border: 1px solid #e4e6f0; font-size: 0.86rem; color: var(--sc-ink); padding-top: 1.9rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 11rem; }
.vis__tag { position: absolute; top: 0.7rem; right: 0.8rem; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.vis__name { margin: 0 !important; font-weight: 700; color: var(--sc-ink) !important; }
.vis__meta { margin: 0 !important; font-size: 0.78rem; }
.vis dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; }
.vis dt { color: var(--sc-ink-soft); } .vis dd { margin: 0; font-weight: 600; }
.vis .ok, .vis b { color: #16a34a; font-weight: 700; }
.vis__person { display: flex; gap: 0.8rem; align-items: center; }
.vis__person img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #16a34a; }
.vis__seal { margin: auto 0 0 !important; align-self: flex-start; padding: 0.35rem 0.75rem; border-radius: 999px; background: #e8f7ee; color: #15803d !important; font-weight: 700; font-size: 0.8rem; }
.vis__root { margin: 0 !important; font-weight: 700; color: var(--sc-ink) !important; padding: 0.4rem 0.7rem; background: #fff; border-radius: 8px; align-self: flex-start; border: 1px solid #e4e6f0; }
.vis__tree, .vis__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.vis__tree { padding-left: 1rem; border-left: 2px solid #d6d9e8; margin-left: 0.8rem; }
.vis__tree li, .vis__checks li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.6rem; background: #fff; border-radius: 8px; border: 1px solid #e4e6f0; }
.vis__tree li.sub { margin-left: 1.2rem; }
.vis__checks { margin-top: 0.2rem; }
.rail__note { flex: 0 0 20rem; align-self: center; }

/* ── 6 · Su marca ── */
.brand { padding-right: var(--dossier-w); }
.brand__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px) clamp(32px, 6vw, 96px); align-items: center; }
.brand__phones { position: relative; height: 480px; }
.phone { position: absolute; width: 220px; aspect-ratio: 9 / 19; border-radius: 34px; background: #0f1222; padding: 10px; box-shadow: 0 40px 70px -30px hsl(var(--sc-shadow-color) / 0.6); }
.phone--a { left: 6%; top: 8%; }
.phone--b { left: 44%; top: 0; }
.phone__screen { height: 100%; border-radius: 26px; padding: 26px 18px; display: flex; flex-direction: column; gap: 0.5rem; }
.phone--a .phone__screen { background: #fff7ef; color: #3b1d0a; }
.phone--b .phone__screen { background: #0e3b33; color: #e8fff8; }
.phone__brand { font-family: var(--sc-font-display); font-weight: 800; margin: 0 0 auto; }
.phone__t { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin: 0; }
.phone__s { margin: 0 0 1rem; opacity: 0.75; font-size: 0.9rem; }
.phone__btn { align-self: stretch; text-align: center; border-radius: 12px; padding: 0.75rem; font-weight: 600; font-size: 0.92rem; }
.phone--a .phone__btn { background: #c2410c; color: #fff; }
.phone--b .phone__btn { background: #34d399; color: #062b24; }
.brand__note { position: absolute; bottom: -8px; left: 6%; font-size: 0.8rem; color: var(--sc-ink-soft); margin: 0; }
.brand__points { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); border-top: 1px solid rgb(15 18 34 / 0.1); padding-top: 2rem; }
.brand__points h3 { font-family: var(--sc-font-display); font-size: 1.15rem; letter-spacing: -0.015em; margin: 0 0 0.4rem; }
.brand__points p { margin: 0; color: var(--sc-ink-soft); line-height: 1.55; }
@media (max-width: 860px) { .brand__grid, .brand__points { grid-template-columns: 1fr; } .brand__phones { height: 420px; } .phone { width: 180px; } }

/* ── Preguntas ── */
.faq { padding-right: var(--dossier-w); padding-top: 0; }
.faq__wrap { max-width: 56rem; }
.faq__list { display: grid; border-top: 1px solid rgb(15 18 34 / 0.12); }
.faq details { border-bottom: 1px solid rgb(15 18 34 / 0.12); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sc-accent); transition: transform 180ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; color: var(--sc-ink-soft); line-height: 1.6; max-width: 62ch; }

/* ── 7 · Decisión ── */
.close { background: var(--night); color: var(--night-ink); }
.close__stage { display: grid; grid-template-rows: 1fr auto; padding: calc(var(--bar-h) + 24px) clamp(20px, 6vw, 96px) 24px; padding-right: calc(var(--dossier-w) + clamp(20px, 6vw, 96px)); }
.close__inner { align-self: center; max-width: 44rem; }
.close h2 { color: #fff; margin: 0 0 1rem; }
.close__sub { color: var(--night-soft); margin: 0 0 2rem; max-width: 34rem; }
.close__stamp { display: inline-block; font-family: var(--sc-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.95rem;
  color: #7ee0a6; border: 2px solid currentColor; border-radius: 8px; padding: 0.35rem 0.8rem; transform: rotate(-4deg); margin: 0 0 1.6rem; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--night-soft); border-top: 1px solid rgb(255 255 255 / 0.08); padding-top: 1rem; }
.foot a { color: var(--night-ink); text-underline-offset: 3px; }

/* ── El expediente (gesto distintivo) ── */
.dossier {
  position: fixed; z-index: 40; right: 0; top: var(--bar-h); bottom: 0; width: var(--dossier-w);
  background: var(--sc-surface); border-left: 1px solid rgb(15 18 34 / 0.08); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 1rem; transform: translateX(100%); transition: transform 320ms var(--sc-ease-out);
}
.dossier.is-on { transform: none; }
.dossier__head { display: flex; justify-content: space-between; align-items: center; margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.dossier__tag { font-family: var(--sc-font-text); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); border: 1px solid rgb(15 18 34 / 0.15); border-radius: 999px; padding: 0.2rem 0.55rem; }
.dossier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.dossier__list a { display: grid; grid-template-columns: 1.2rem 1fr; column-gap: 0.6rem; padding: 0.55rem 0.5rem; border-radius: 10px; text-decoration: none; transition: background-color 150ms; }
.dossier__list a:hover { background: var(--sc-canvas); }
.dossier__list a::before { content: ""; grid-row: 1 / 3; width: 0.8rem; height: 0.8rem; margin-top: 0.25rem; border-radius: 50%; border: 1.5px solid rgb(15 18 34 / 0.25); transition: background-color 200ms, border-color 200ms; }
.dossier__list li.is-done a::before { background: var(--ok); border-color: var(--ok); }
.dl__k { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); font-weight: 600; }
.dl__v { font-size: 0.92rem; font-weight: 500; min-height: 1.3em; }
.dossier__stamp { margin: auto 0 0; text-align: center; }
.dossier__stamp span { display: inline-block; font-family: var(--sc-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ok); border: 2.5px solid currentColor; border-radius: 10px; padding: 0.55rem 1.2rem; font-size: 1.15rem;
  opacity: 0; transform: rotate(-6deg) scale(1.6); transition: opacity 260ms var(--sc-ease-out), transform 420ms var(--sc-ease-out); }
.dossier.is-sealed .dossier__stamp span { opacity: 1; transform: rotate(-6deg) scale(1); }

/* Teléfono: el expediente es una tira abajo, se despliega al tocar. */
@media (max-width: 1179px) {
  .dossier { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 64px; padding: 0.7rem 1rem; border-radius: 16px; border: 1px solid rgb(15 18 34 / 0.1);
    box-shadow: 0 18px 40px -16px hsl(var(--sc-shadow-color) / 0.5); transform: translateY(calc(100% + 24px)); overflow: hidden; gap: 0.6rem; transition: transform 320ms var(--sc-ease-out), max-height 320ms var(--sc-ease-out); }
  .dossier.is-open { max-height: 80vh; overflow: auto; }
  .dossier__head { cursor: pointer; }
  .dossier__stamp { display: none; }
  .dossier.is-sealed .dossier__head .dossier__tag { color: var(--ok); border-color: var(--ok); }
}

/* Movimiento reducido: todo presente, nada se desplaza. */
@media (prefers-reduced-motion: reduce) {
  .plane { transform: none !important; }
  .chip, .dossier, .dossier__stamp span { transition: none; }
}
