:root {
  --bg-dark: #0A0E13;
  --bar1: #2C333E;
  --bar2: #3C5060;
  --accent: #10C4CE;
  --accent-on-light: #0E8FA0;
  --ink-text: #1E2530;
  --muted: #5B6B78;
  --bg: #FCFDFD;
  --panel-border: #E4E9ED;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body {
  margin: 0;
  color: var(--ink-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(700px 400px at 85% 8%, rgba(16,196,206,.10), transparent 55%),
    radial-gradient(600px 340px at 10% 55%, rgba(16,196,206,.06), transparent 55%),
    radial-gradient(600px 340px at 90% 92%, rgba(16,196,206,.06), transparent 55%),
    var(--bg);
}
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .brand, .btn, .eyebrow { font-family: "Space Grotesk", -apple-system, sans-serif; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { line-height: 1.65; }
a { color: inherit; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-on-light);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.grad {
  background: linear-gradient(90deg, var(--ink-text), var(--accent-on-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tag, .idx-n { font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; padding: 12px 20px; border-radius: 9px;
  text-decoration: none; background: var(--bg-dark); color: var(--accent);
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }

/* Reveal-on-scroll target state -- GSAP anima desde acá en script.js.
   Sin JS (o con reduced-motion) el contenido queda visible igual. */
.reveal { opacity: 1; transform: none; }
.js-gsap-ready .reveal { opacity: 0; transform: translateY(24px); }

section { scroll-margin-top: 80px; padding: 90px 0; }

/* ---------- nav ---------- */
nav.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--panel-border); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink-text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 100px; }
.hero-watermark {
  position: absolute; right: -30px; bottom: -110px; font-size: 320px; font-weight: 700;
  font-family: "Space Grotesk", sans-serif; color: var(--ink-text); opacity: .03;
  letter-spacing: -0.05em; line-height: 1; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-index { display: flex; flex-direction: row; gap: 18px; padding-top: 8px; }
@media (min-width: 861px) { .hero-index { flex-direction: column; gap: 16px; } }
.idx-item {
  all: unset; cursor: pointer; font-size: 12px; font-weight: 700; color: #B7C0C6;
  display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid transparent;
}
.idx-item .idx-n { font-size: 10px; color: #B7C0C6; }
.idx-item.active { color: var(--ink-text); border-bottom-color: var(--accent); }
.idx-item.active .idx-n { color: var(--accent-on-light); }

.hero-shot { position: relative; grid-column: 2; grid-row: 1 / span 2; margin-right: -24px; border-radius: 14px 0 0 14px; overflow: hidden; border: 1px solid var(--panel-border); box-shadow: -30px 30px 70px -20px rgba(10,20,25,.25); min-height: 360px; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .hero-shot { grid-column: 1; margin-right: 0; border-radius: 14px; } }
.hero-shot .shot-img { width: 100%; display: block; transition: opacity .35s ease; }
.hero-shot .shot-img[hidden] { display: none; }
.hero-shot .shot-badge { display: none; padding: 60px; }
.hero-shot .shot-badge[data-visible="true"] { display: flex; }

.hero-glass {
  grid-column: 1 / span 2; max-width: 420px; z-index: 2; margin-top: 24px;
  background: rgba(255,255,255,.84); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.8); border-radius: 16px; padding: 26px;
  box-shadow: 0 24px 60px -18px rgba(10,20,25,.18);
}
@media (min-width: 861px) { .hero-glass { grid-column: 2; grid-row: 2; margin-top: -80px; margin-left: 24px; } }
.hero-headline { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; margin-top: 12px; }
.hero-sub { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 34ch; }
.hero-glass .btn { margin-top: 18px; }

/* ---------- album de casos ---------- */
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin-top: 10px; margin-bottom: 50px; }

.album-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 70px; }
.album-row:last-child { margin-bottom: 0; }
.album-row--reverse { direction: rtl; }
.album-row--reverse > * { direction: ltr; }
@media (max-width: 780px) { .album-row, .album-row--reverse { grid-template-columns: 1fr; direction: ltr; } }

.album-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--panel-border); box-shadow: 0 24px 50px -20px rgba(10,20,25,.2); }
.album-media img { width: 100%; display: block; }
.album-media--badge { display: flex; align-items: center; justify-content: center; padding: 50px; background: var(--bg-dark); }

.album-text .tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-on-light); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.album-text h3 { font-size: 24px; }
.album-text p { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.album-proof { font-style: italic; color: var(--ink-text) !important; border-left: 2px solid var(--accent); padding-left: 12px; margin-top: 16px !important; }

/* ---------- nichos ---------- */
.niche-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--panel-border); }
.niche-list li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--panel-border); }
.niche-list .idx-n { font-size: 13px; color: var(--accent-on-light); font-weight: 700; flex-shrink: 0; width: 28px; }
.niche-list h4 { font-size: 16px; font-weight: 700; }
.niche-list p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- proceso ---------- */
.proceso-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-left: 30px; }
@media (max-width: 780px) { .proceso-grid { grid-template-columns: 1fr; } }
.proceso-line { position: absolute; left: 0; top: 6px; width: 4px; height: calc(100% - 12px); }
.step .idx-n { font-size: 13px; color: var(--accent-on-light); font-weight: 700; }
.step h4 { font-size: 16.5px; margin-top: 10px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- cta final ---------- */
.cta-final { background: linear-gradient(155deg, #131920 0%, var(--bg-dark) 72%); color: #F2F6F9; padding: 84px 0; margin-top: 20px; }
.cta-final h2 { font-size: clamp(26px, 4vw, 38px); max-width: 20ch; margin-top: 14px; }
.cta-final p { color: #9FB0B8; max-width: 52ch; font-size: 16px; margin-top: 12px; }
.cta-final .btn { margin-top: 22px; background: var(--accent); color: #04191B; }

/* ---------- footer ---------- */
footer { padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
footer .footer-links a { text-decoration: none; }
footer .footer-links a:hover { color: var(--ink-text); }
footer .fine { font-size: 12.5px; color: var(--muted); }

/* ---------- intro 3D ---------- */
.intro3d { position: relative; height: 400vh; padding: 0; }
.intro3d-stage {
  position: relative; height: 100vh; overflow: hidden;
  background: var(--bg-dark); z-index: 5;
  display: flex; align-items: center; justify-content: center;
}

.intro3d-persp { position: relative; width: 1px; height: 1px; perspective: 1000px; }

.i3d-prism-group { position: absolute; top: 0; left: 0; transform-style: preserve-3d; }

.i3d-bar { position: absolute; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.5); transform-style: preserve-3d; }
.i3d-bar-1 { width: 170px; height: 30px; left: -85px; top: -56px; background: #10C4CE; }
.i3d-bar-2 { width: 166px; height: 30px; left: -70px; top: -13px; background: #5B7280; }
.i3d-bar-3 { width: 160px; height: 30px; left: -56px; top: 30px; background: #8A97A3; }

.i3d-wordmark {
  position: absolute; left: -140px; top: 70px; width: 280px; text-align: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; color: #F2F6F9;
  opacity: 0;
}
.i3d-wordmark span { color: var(--accent); }

.i3d-plate {
  position: absolute; width: 220px; padding: 16px 20px; border-radius: 12px; box-sizing: border-box;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #F2F6F9; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4); opacity: 0;
}
.i3d-plate[data-plate="1"] { left: -330px; top: -120px; }
.i3d-plate[data-plate="2"] { left: 20px;   top: -120px; }
.i3d-plate[data-plate="3"] { left: -330px; top: 20px; }
.i3d-plate[data-plate="4"] { left: 20px;   top: 20px; }

.i3d-node {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 24px rgba(16,196,206,.7); opacity: 0;
}
.i3d-node[data-node="1"] { left: -90px; top: -10px; }
.i3d-node[data-node="2"] { left: 0px;   top: -60px; }
.i3d-node[data-node="3"] { left: 72px;  top: -10px; }

.i3d-trust-text {
  position: absolute; left: -220px; top: 40px; width: 440px; text-align: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 20px;
  color: #F2F6F9; opacity: 0;
}

.i3d-cta {
  position: absolute; left: -100px; top: 120px; width: 200px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
  visibility: hidden;
  text-decoration: none;
}
.i3d-cta span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.i3d-arrow { width: 22px; height: 22px; }

/* Reduced-motion static block: hidden unless .intro3d.i3d-reduced is set by script.js */
.i3d-reduced-static { display: none; }
.intro3d.i3d-reduced { height: 100vh; }
.intro3d.i3d-reduced .intro3d-persp { display: none; }
.intro3d.i3d-reduced .i3d-reduced-static {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.i3d-badge-static { width: 56px; height: 56px; }
.i3d-wordmark-static { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; color: #F2F6F9; }
.i3d-wordmark-static span { color: var(--accent); }
.i3d-cta-static { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; text-decoration: none; }
.i3d-cta-static span { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.i3d-cta-static svg { width: 22px; height: 22px; }
