/* ITBD FiduciaryOS — landing. Colores de la marca: azul (#1d4ed8 → #3b82f6), verde (#22a447) y plata. */
:root {
  --navy: #0b1b3f;
  --ink: #0f172a;
  --muted: #55627a;
  --blue: #1d4ed8;
  --blue-2: #3b82f6;
  --green: #22a447;
  --green-2: #4ade80;
  --silver: #94a3b8;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e3e8f2;
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(15, 35, 95, .35), 0 12px 30px -18px rgba(15, 35, 95, .25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.grad { background: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 45%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-light { background: linear-gradient(100deg, #93c5fd, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .9rem; }

/* Progreso de lectura */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--green)); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-primary { color: #fff; background: linear-gradient(110deg, var(--blue), var(--blue-2) 60%, #2f9e5a); box-shadow: 0 14px 30px -12px rgba(29, 78, 216, .7); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--navy); backdrop-filter: blur(8px); }
.play { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .62rem; }

/* Navegación */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1200px, 100% - 24px); display: flex; align-items: center;
  gap: 1.5rem; padding: .55rem .7rem .55rem 1rem; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(15,35,95,.35); transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255,255,255,.9); box-shadow: 0 16px 40px -20px rgba(15,35,95,.45); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 44px; height: auto; }
.brand span { display: flex; align-items: baseline; gap: 0; font-size: 1.15rem; color: var(--navy); }
.brand strong { font-weight: 800; }
.brand em { font-style: normal; font-weight: 800; color: var(--green); }
.brand small { margin-left: .45rem; font-size: .72rem; color: var(--muted); font-weight: 600; }
.links { display: flex; gap: 1.4rem; margin-left: auto; font-weight: 600; font-size: .95rem; color: #334155; }
.links a:hover { color: var(--blue); }
.menu { display: none; margin-left: auto; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); }

/* HERO */
.hero { position: relative; min-height: 100vh; padding: 140px 0 80px; overflow: hidden; overflow: clip; display: flex; align-items: center; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; filter: blur(70px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; animation: float 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -8vw; top: -10vw; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: 0; background: radial-gradient(circle, rgba(34,164,71,.35), transparent 65%); animation-duration: 22s; }
.aurora i:nth-child(3) { width: 36vw; height: 36vw; left: 35vw; top: 30vw; background: radial-gradient(circle, rgba(29,78,216,.30), transparent 65%); animation-duration: 26s; }
@keyframes float { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,35,95,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,35,95,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center; }
.hero-emblem { width: 190px; height: auto; margin: 0 0 1.2rem -10px; filter: drop-shadow(0 18px 30px rgba(29,78,216,.35)); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; color: var(--navy); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 37rem; margin: 1.3rem 0 2rem; }
.cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { font-size: .82rem; font-weight: 600; color: #1e3a8a; background: rgba(219,234,254,.7); border: 1px solid #bfdbfe; padding: .38rem .8rem; border-radius: 999px; }

.browser { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(15,35,95,.12); box-shadow: var(--shadow); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(#f8fafc, #eef2f8); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser .bar i:nth-child(2) { background: #fbbf24; }
.browser .bar i:nth-child(3) { background: #34d399; }
.browser .bar span { margin-left: 12px; font-size: .76rem; color: #64748b; background: #fff; border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.browser video, .browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #f1f5f9; }

.hero-visual { position: relative; perspective: 1400px; }
.tilt { transform: rotateY(-9deg) rotateX(4deg) rotateZ(.5deg); transform-origin: 30% 50%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-visual:hover .tilt { transform: rotateY(-3deg) rotateX(1deg); }
.glass { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(15,35,95,.45); border-radius: 16px; }
.float { position: absolute; display: grid; gap: .1rem; padding: .85rem 1.05rem; font-size: .82rem; color: var(--muted); will-change: transform; }
.float b { color: var(--navy); font-size: .9rem; }
.float strong { color: var(--green); font-size: 1rem; }
.f1 { left: -46px; bottom: 16%; }
.f2 { right: -22px; top: 10%; grid-template-columns: auto 1fr; column-gap: .5rem; }
.f2 span:not(.dot), .f3 span:not(.dot) { grid-column: 2; }
.f3 { right: 6%; bottom: -26px; grid-template-columns: auto 1fr; column-gap: .5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; grid-row: span 2; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 5px rgba(34,164,71,.18); }
.dot.info { background: var(--blue-2); box-shadow: 0 0 0 5px rgba(59,130,246,.18); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(15,35,95,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Números */
.numbers { padding: 30px 0 90px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.num { padding: 1.6rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px -24px rgba(15,35,95,.4); }
.num strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--navy); line-height: 1; }
.num span { display: block; margin-top: .6rem; color: var(--muted); font-size: .92rem; }

/* Encabezados de sección */
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; color: var(--navy); }
.section-head .sub { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { color: #93c5fd; }

/* Recorrido (scrollytelling) */
.story { padding: 110px 0 60px; }
.story-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 3.5rem; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step-n { font-weight: 800; font-size: .9rem; color: var(--green); letter-spacing: .12em; }
.step h3 { font-size: 1.9rem; color: var(--navy); margin: .5rem 0 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 2rem; color: #334155; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); }
.story-stage { position: sticky; top: 14vh; height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.stage .shots { position: relative; aspect-ratio: 16 / 10; }
.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.03) translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.shot.is-on { opacity: 1; transform: none; }
.stage-dots { list-style: none; display: flex; gap: .45rem; justify-content: center; margin: 0; padding: 0; }
.stage-dots li { width: 28px; height: 5px; border-radius: 3px; background: #cbd5e1; transition: background .4s, width .4s; }
.stage-dots li.is-on { width: 48px; background: linear-gradient(90deg, var(--blue), var(--green)); }

/* Módulos: cuadrícula vertical */
.modules { padding: 120px 0; color: #fff; background: radial-gradient(ellipse at 20% 0%, #163a8f 0%, var(--navy) 55%, #060f26 100%); }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card.mod { padding: 1.7rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14); transition: transform .35s, border-color .35s, opacity .8s ease; }
.card.mod:hover { transform: translateY(-6px); border-color: rgba(147,197,253,.6); }
.card.mod .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(34,164,71,.35)); }
.card.mod h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card.mod p { color: #cbd5e1; margin: 0; font-size: .95rem; }
.card.mod.accent { grid-column: span 3; background: linear-gradient(120deg, rgba(34,164,71,.35), rgba(59,130,246,.25)); border-color: rgba(134,239,172,.5); }

/* En acción */
.action { padding: 120px 0; }
.player { display: grid; grid-template-columns: 280px 1fr; grid-template-areas: "tabs screen" "tabs notes"; gap: 1.5rem 2rem; }
.player-tabs { grid-area: tabs; display: grid; gap: .7rem; align-content: start; }
.player-tabs button { text-align: left; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit;
  display: grid; gap: .15rem; transition: border-color .25s, box-shadow .25s, transform .25s; }
.player-tabs button b { color: var(--navy); }
.player-tabs button span { color: var(--muted); font-size: .86rem; }
.player-tabs button.is-on { border-color: var(--blue-2); box-shadow: 0 14px 30px -18px rgba(29,78,216,.6); transform: translateX(6px); }
.player-screen { grid-area: screen; }
.player-notes { grid-area: notes; }

/* Seguridad */
.security { position: relative; padding: 130px 0; color: #e2e8f0; background: radial-gradient(ellipse at 80% 10%, #14316f 0%, var(--navy) 50%, #050c1f 100%); overflow: hidden; overflow: clip; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sec-list { display: grid; gap: 1.2rem; }
.sec { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sec > span { font-size: 1.6rem; }
.sec h3 { font-size: 1.08rem; color: #fff; margin-bottom: .25rem; }
.sec p { margin: 0; color: #a9b6cc; font-size: .95rem; }
.sec-visual { display: grid; gap: 1.4rem; }
.layer { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }

/* Países */
.countries { padding: 120px 0; }
.flags { display: grid; grid-template-columns: repeat(7, 1fr); gap: .9rem; }
.flag { display: grid; justify-items: center; text-align: center; gap: .3rem; padding: 1.4rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  transition: transform .3s, box-shadow .3s; }
.flag:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.flag span { font-size: 2.3rem; }
.flag b { color: var(--navy); font-size: .95rem; }
.flag small { color: var(--muted); font-size: .76rem; }
.flag.is-main { border-color: var(--blue-2); box-shadow: 0 18px 40px -26px rgba(29,78,216,.7); }

/* Implementación */
.timeline { padding: 40px 0 130px; }
.tl { list-style: none; counter-reset: tl; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 0; margin: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 3px; background: #dbe3f0; }
.tl::after { content: ""; position: absolute; left: 4%; top: 22px; height: 3px; width: calc(92% * var(--tl, 0)); background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .2s linear; }
.tl li { position: relative; padding-top: 64px; display: grid; gap: .4rem; }
.tl li::before { counter-increment: tl; content: counter(tl); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); box-shadow: 0 0 0 6px var(--bg); z-index: 1; }
.tl b { color: var(--navy); font-size: 1.05rem; }
.tl span { color: var(--muted); font-size: .93rem; }

/* Contacto */
.contact { position: relative; padding: 120px 0 140px; overflow: hidden; overflow: clip; }
.aurora.soft { opacity: .5; inset: 0; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy img { width: 130px; height: auto; margin-bottom: 1rem; }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy); }
.contact-copy > p { color: var(--muted); font-size: 1.08rem; margin: 1rem 0 1.5rem; }
.contact-copy .direct { margin-top: 1.8rem; display: grid; gap: .7rem; justify-items: start; }
.contact-copy .direct p { margin: 0; color: var(--muted); }
.channel { display: grid; gap: .35rem; justify-items: start; }
.channel-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.wa-link { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600;
  box-shadow: 0 12px 26px -14px rgba(37,211,102,.9); transition: transform .2s; }
.wa-link:hover { transform: translateY(-2px); }
.mail-link { color: var(--blue); font-weight: 700; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; box-shadow: 0 16px 34px -14px rgba(18,140,68,.9); transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; }
.foot a { color: var(--blue); font-weight: 600; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: .85rem; } }
.contact-form { padding: 2rem; border-radius: 28px; background: rgba(255,255,255,.88); border: 1px solid #fff; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.contact-form h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 1.2rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.fields label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; color: #334155; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { font: inherit; font-weight: 500; padding: .75rem .9rem; border-radius: 12px; border: 1px solid #cfd8e6; background: #fff; color: var(--ink); }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: 2px solid rgba(59,130,246,.45); border-color: var(--blue-2); }
.fields .invalid { border-color: #dc2626; }
.fields .consent { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; font-weight: 500; color: var(--muted); font-size: .85rem; }
.fields .consent input { margin-top: .2rem; width: 18px; height: 18px; }
.contact-form { position: relative; }
.fields .hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-msg { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #dc2626; }

.footer { padding: 40px 0 60px; border-top: 1px solid var(--line); background: #fff; }
.foot { display: grid; gap: .45rem; color: var(--muted); font-size: .92rem; }
.foot p { margin: 0; }
.foot .brand { margin-bottom: .5rem; }
.foot .fine { margin-top: .8rem; }
.credits { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; margin-bottom: .6rem; }
.credits p { display: grid; gap: .1rem; }
.credits span { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.credits b { color: var(--navy); font-size: 1rem; }
.foot .brand img { width: 36px; }
.fine { font-size: .8rem; color: #8090a8; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1080px) {
  .links { display: none; }
  .menu { display: block; }
  .nav .btn-sm { display: none; }
  .nav.open .links { display: flex; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; padding: .6rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .nav.open .links a { padding: .8rem 1rem; }
  .hero-grid, .security-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .tilt { transform: none; }
  .f1 { left: 8px; } .f2 { right: 8px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { position: sticky; top: 76px; height: auto; z-index: 2; background: var(--bg); padding: .5rem 0 1rem; order: -1;
    box-shadow: 0 -90px 0 var(--bg), 0 26px 22px 6px var(--bg); }
  .step { min-height: 60vh; }
  .player { grid-template-columns: 1fr; grid-template-areas: "screen" "tabs" "notes"; }
  .player-tabs { grid-template-columns: repeat(2, 1fr); }
  .player-tabs button.is-on { transform: none; }
  .flags { grid-template-columns: repeat(4, 1fr); }
  .tl { grid-template-columns: 1fr; gap: 1.4rem; }
  .tl::before, .tl::after { display: none; }
  .tl li { padding: 0 0 0 64px; min-height: 46px; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .card.mod.accent { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-emblem { width: 140px; }
  .float { display: none; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .flags { grid-template-columns: repeat(2, 1fr); }
  .mod-grid, .fields { grid-template-columns: 1fr; }
  .card.mod.accent { grid-column: auto; }
  .contact-form { padding: 1.4rem; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Vista ampliada (overlay) de capturas y videos */
[data-zoom] { position: relative; cursor: zoom-in; }
.zoom-btn { position: absolute; z-index: 3; right: 12px; top: 52px; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6); background: rgba(11,27,63,.72); color: #fff; font: 600 .82rem var(--font); cursor: pointer; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
[data-zoom]:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .zoom-btn { opacity: 1; transform: none; } }
img.layer[data-zoom] { transition: transform .3s, box-shadow .3s; }
img.layer[data-zoom]:hover { transform: scale(1.01); box-shadow: 0 40px 90px -30px rgba(59,130,246,.55); }

body.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr; align-items: center; animation: lb-in .25s ease; }
.lightbox::backdrop { background: rgba(5, 12, 31, .9); backdrop-filter: blur(6px); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lb-count { font-size: .9rem; color: #cbd5e1; }
.lb-close, .lb-nav { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; border-radius: 999px; transition: background .2s; }
.lb-close { width: 44px; height: 44px; font-size: 1.1rem; }
.lb-nav { width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; justify-self: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .8rem; min-width: 0; }
.lb-media img, .lb-media video { display: block; max-width: min(1600px, calc(100vw - 150px)); max-height: calc(100vh - 150px); width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); background: #0b1b3f; }
.lb-caption { text-align: center; color: #e2e8f0; font-size: .95rem; max-width: 70ch; }
@media (max-width: 700px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
  .lb-figure { grid-column: 1 / -1; grid-row: 2; padding: 0 8px; }
  .lb-nav { grid-row: 3; margin: 12px 0 20px; }
  .lb-media img, .lb-media video { max-width: calc(100vw - 16px); max-height: calc(100vh - 190px); }
}
