:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #8e8e93;
  --dim: #48484a;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Scrubber (barra de progreso tipo YouTube) ---------- */
.scrubber {
  position: fixed; inset: auto 0 0 0; height: 14px; z-index: 60;
  display: flex; align-items: flex-end; padding: 0 0 0; pointer-events: none;
}
.scrubber__track { display: flex; gap: 3px; width: 100%; height: 3px; transition: height .2s var(--ease); }
.scrubber:hover .scrubber__track { height: 5px; }
.seg { position: relative; flex: 1; background: rgba(255,255,255,.14); overflow: hidden; }
.seg__fill { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(56px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(16px, calc((100vw - 1120px) / 2));
  background: rgba(10,10,10,.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.mono-badge {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #000; font-size: 11px; font-weight: 800; letter-spacing: -.02em;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: #c7c7cc; }
.nav__links a:hover { color: #fff; }
.nav__cta { background: #fff; color: #000 !important; padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.nav__cta:hover { background: #d1d1d6; }

/* ---------- Layout ---------- */
section { padding: 120px max(16px, calc((100vw - 1120px) / 2)); }
.chapter-tag { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.section-head { margin-bottom: 56px; }
h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c7c7cc;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px;
  background: rgba(255,255,255,.03);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
.hero__title {
  font-size: clamp(60px, 13vw, 176px); line-height: .9; letter-spacing: -.03em; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #6e6e73 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .dot { color: #fff; -webkit-text-fill-color: #fff; }
.hero__sub { max-width: 620px; margin: 28px auto 64px; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); line-height: 1.35; letter-spacing: -.01em; }

/* ---------- Player ---------- */
.player {
  max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 120px -30px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.8);
  text-align: left;
}
.player__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 90% at 50% 110%, #2c2c2e 0%, #0a0a0a 60%); }
.player__orb { position: absolute; border-radius: 50%; opacity: .55; }
.player__orb--a { width: 46%; aspect-ratio: 1; left: -8%; top: -18%; background: radial-gradient(closest-side, #8e8e93, transparent); animation: drift 14s ease-in-out infinite alternate; }
.player__orb--b { width: 38%; aspect-ratio: 1; right: -6%; bottom: -22%; background: radial-gradient(closest-side, #f5f5f7, transparent); opacity: .3; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(18%, 14%) scale(1.15); } }
.player__grain {
  position: absolute; inset: 0; z-index: 2; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.player__caption { position: absolute; left: 5%; bottom: 9%; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.player__caption .mono { font-size: 12px; color: rgba(255,255,255,.55); }
.player__caption strong { font-size: clamp(22px, 4vw, 44px); letter-spacing: -.035em; font-weight: 700; line-height: 1; }
.player__play {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: transform .4s var(--ease), background .3s;
}
.player__play svg { margin-left: 4px; }
.player__play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; color: #000; }
.player__bar { padding: 10px 16px 12px; background: linear-gradient(0deg, #000, #050505); }
.player__progress { position: relative; height: 4px; background: rgba(255,255,255,.18); border-radius: 2px; margin-bottom: 10px; }
.player__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: 2px; }
.player__knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.player__controls { display: flex; justify-content: space-between; align-items: center; color: #e5e5ea; font-size: 13px; }
.player__left, .player__right { display: flex; align-items: center; gap: 14px; }
.player__chapter { color: #c7c7cc; }
.hd { font-size: 10px; font-weight: 700; border: 1px solid #c7c7cc; border-radius: 3px; padding: 0 3px; }

/* ---------- Statement ---------- */
.statement { padding-top: 120px; }
.statement__text {
  font-size: clamp(32px, 5vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 1000px;
}
.statement__text .w { color: var(--dim); transition: color .35s; }
.statement__text .w.on { color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 80px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 36px 32px 40px; }
.pillar__n { font-size: 12px; color: var(--muted); }
.pillar h3 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 8px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* ---------- Services: tarjetas tipo vídeo ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.vcard { cursor: default; }
.vcard__thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.vcard:hover .vcard__thumb { transform: scale(1.025); border-radius: 10px; }
.vcard__label { font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; color: #fff; mix-blend-mode: difference; }
.thumb-1 { border-color: transparent; background: linear-gradient(135deg, #f5f5f7 0%, #f5f5f7 48%, #1c1c1e 48%, #000 100%); }
.thumb-2 { background: radial-gradient(circle at 70% 30%, #8e8e93 0, #2c2c2e 35%, #000 70%); }
.thumb-3 { background: repeating-linear-gradient(90deg, #111 0 22px, #1d1d1f 22px 23px), #111; }
.thumb-3::after { content: ""; position: absolute; width: 38%; aspect-ratio: 3/4; background: #f5f5f7; border-radius: 4px; transform: rotate(-8deg); z-index: 0; box-shadow: 18px 18px 0 -2px #6e6e73; }
.thumb-3 .vcard__label { position: relative; z-index: 1; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.vcard__meta { display: flex; gap: 12px; padding-top: 14px; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2c2c2e; font-size: 11px; font-weight: 700; }
.vcard h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 6px; }
.vcard p { font-size: 15px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.vcard__sub { font-size: 13px; color: #6e6e73; }

/* ---------- Method ---------- */
.method { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #3a3a3c; }
.step { position: relative; padding: 28px 24px 0 0; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.step .mono { font-size: 12px; color: var(--muted); }
.step h3 { font-size: 26px; letter-spacing: -.03em; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-top: 160px; padding-bottom: 160px; }
.contact__title { font-size: clamp(48px, 9vw, 112px); line-height: .98; letter-spacing: -.05em; }
.contact__actions { margin: 48px 0 18px; }
.btn-sub {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; font-weight: 600; font-size: 17px;
  padding: 16px 28px; border-radius: 999px; transition: transform .3s var(--ease), background .3s;
}
.btn-sub:hover { transform: scale(1.04); background: #e5e5ea; }

/* ---------- Footer ---------- */
.footer { padding: 40px max(16px, calc((100vw - 1120px) / 2)) 56px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: #c7c7cc; flex-wrap: wrap; }
.footer__links a:hover, .footer a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 640px) {
  section { padding-top: 96px; padding-bottom: 96px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .player { border-radius: 16px; }
  .player__play { width: 60px; height: 60px; }
  .player__chapter, .player__right svg { display: none; }
  .steps { grid-template-columns: 1fr; }
  .statement, .contact { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
