:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #e9e7e1;
  --ink: #16161a;
  --ink-2: #4a4a52;
  --ink-3: #75757d;
  --line: #d9d6ce;
  --accent: #e5482a;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgb(40 30 20 / .06), 0 12px 40px rgb(40 30 20 / .08);
  --r: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214;
    --surface: #1c1c20;
    --surface-2: #26262b;
    --ink: #f1efe9;
    --ink-2: #bdbbb5;
    --ink-3: #8d8b86;
    --line: #34343a;
    --accent: #ff6a4a;
    --accent-ink: #16161a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 40px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --surface: #1c1c20; --surface-2: #26262b; --ink: #f1efe9; --ink-2: #bdbbb5;
  --ink-3: #8d8b86; --line: #34343a; --accent: #ff6a4a; --accent-ink: #16161a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
main > section { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-small { padding: 9px 16px; font-size: 15px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-name { font-weight: 700; text-decoration: none; letter-spacing: -.02em; font-size: 19px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  min-height: calc(100dvh - 64px); padding-top: 40px !important; padding-bottom: 56px !important;
}
.hero-who { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); margin-bottom: 28px; }
.hero-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero h1 { font-size: clamp(44px, 6.2vw, 86px); font-weight: 750; letter-spacing: -.04em; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 32ch; margin-top: 26px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.hero-board {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  height: min(620px, 74dvh);
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r); text-decoration: none;
  box-shadow: var(--shadow); background: var(--surface);
  transition: transform .5s var(--ease);
}
.tile:hover { transform: translateY(-4px) rotate(-.4deg); }
.tile-foot {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-family: var(--mono); font-size: 12px; color: #fff;
  background: rgb(10 12 20 / .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 7px 10px; border-radius: 8px; width: fit-content; max-width: calc(100% - 24px);
}
.tile-biz {
  grid-row: span 2; color: #fff; padding: 28px;
  background: radial-gradient(120% 70% at 100% 100%, #0f3a6b 0%, transparent 60%), #0a1530;
  display: flex; flex-direction: column;
}
.tile-mark { font-size: clamp(40px, 4.6vw, 64px); font-weight: 750; letter-spacing: -.04em; margin-top: auto; }
.tile-sub { color: #19d3f0; font-size: 18px; margin-bottom: 64px; }
.tile-video video, .tile-web img { width: 100%; height: 100%; object-fit: cover; }
.tile-video video { object-position: center 30%; }
.tile-web img { object-position: left top; }

/* ---------- datos ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line);
  padding-top: 0 !important; padding-bottom: 0 !important;
}
.facts > div { padding: 26px 20px 26px 0; display: grid; gap: 4px; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { font-size: 30px; letter-spacing: -.03em; }
.facts span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* ---------- proyectos ---------- */
.project { padding-top: 120px !important; }
.proj-head { margin-bottom: 44px; }
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 18px; }
.project h2 { font-size: clamp(48px, 8vw, 112px); font-weight: 750; letter-spacing: -.045em; line-height: .95; }
.project h2.h2-long { font-size: clamp(30px, 7.6vw, 112px); overflow-wrap: anywhere; }
.proj-tag { font-family: var(--mono); font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.proj-intro { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin-top: 22px; }
h3 { font-size: 26px; margin-bottom: 18px; }

/* Dibizum */
.biz-grid { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: start; }
.phone-wrap { display: grid; justify-items: center; gap: 14px; }
.phone-cap { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.phone {
  --navy: #0a1530; --navy-2: #13244a; --cyan: #19d3f0; --blue: #2f7cf6;
  position: relative; width: 300px; height: 610px; border-radius: 46px;
  background: var(--navy); color: #fff; overflow: hidden;
  box-shadow: 0 0 0 10px #050a18, 0 0 0 11.5px #2a3a5e, 0 30px 80px rgb(10 21 48 / .35);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #050a18; z-index: 2; }
.screen {
  position: absolute; inset: 0; padding: 58px 22px 24px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.screen.is-left { transform: translateX(-24px); }
.ph-brand { color: var(--cyan); font-weight: 700; font-size: 14px; }
.ph-title { font-size: 21px; font-weight: 700; }
.ph-amount { font-size: 54px; font-weight: 800; text-align: center; margin: 18px 0 4px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ph-chips { display: flex; gap: 8px; justify-content: center; }
.ph-chips button, .ph-plans button {
  font: inherit; color: #fff; background: var(--navy-2); border: 1px solid #263a66; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.ph-chips button { padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.ph-chips button.on, .ph-plans button.on { border-color: var(--cyan); background: #0f2d55; }
.ph-chips button:active, .ph-plans button:active, .ph-btn:active { transform: scale(.97); }
.ph-to { text-align: center; background: var(--navy-2); border-radius: 12px; padding: 12px; font-size: 14px; margin-top: 12px; }
.ph-btn { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 15px; cursor: pointer; transition: transform .15s, filter .2s; }
.ph-btn:hover { filter: brightness(1.08); }
.ph-btn-cyan { background: var(--cyan); color: var(--navy); }
.ph-btn-blue { background: var(--blue); color: #fff; margin-top: auto; }
.ph-hint { text-align: center; font-size: 12.5px; color: #8fa3cc; font-style: italic; margin-top: -4px; }
.ph-plans { display: grid; gap: 10px; margin: 14px 0 auto; }
.ph-plans button { display: flex; justify-content: space-between; align-items: baseline; padding: 16px; border-radius: 14px; text-align: left; }
.ph-plans b { font-size: 16px; }
.ph-plans span { color: #b9c6e4; font-size: 14px; font-variant-numeric: tabular-nums; }
.ph-link { font: inherit; background: none; border: 0; color: #8fa3cc; cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ph-center { text-align: center; }
.ph-check { width: 84px; height: 84px; border-radius: 50%; background: var(--cyan); margin: 40px auto 10px; position: relative; }
.ph-check::after { content: ""; position: absolute; left: 30px; top: 18px; width: 20px; height: 38px; border: solid var(--navy); border-width: 0 7px 7px 0; transform: rotate(45deg); }
.screen.is-active .ph-check { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ph-big { font-size: 20px; font-weight: 700; }
.ph-soft { color: #b9c6e4; }
.ph-note { font-size: 13px; color: #8fa3cc; margin-top: auto; }

.biz-copy { display: grid; gap: 24px; max-width: 620px; padding-top: 12px; color: var(--ink-2); font-size: 18px; }
.big-quote { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
.biz-model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 4px 0; }
.biz-model dt { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 6px; }
.biz-model dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.result { background: var(--surface); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); color: var(--ink); }
.result-label { font-weight: 700; margin-bottom: 6px; color: var(--accent); }

/* promounivers */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); gap: 14px; align-items: end; }
.reel figure { margin: 0; display: grid; gap: 10px; }
.reel video { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; border-radius: var(--r); background: var(--surface-2); box-shadow: var(--shadow); }
.reel figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.reel-web img { border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.browser {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface);
  border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--line);
}
.browser span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.browser em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: 10px; }
.reel-web { gap: 0 !important; }
.reel-web figcaption { margin-top: 10px; }

.promo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; margin-top: 64px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 8px 15px; font-size: 15px; }
.lessons p { color: var(--ink-2); font-size: 18px; }
.lessons b { color: var(--ink); }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.numbers div { background: var(--surface); border-radius: var(--r); padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.numbers strong { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--ink-3); font-size: 14px; line-height: 1.35; }

/* gafas */
.gafas-stage { position: relative; padding-right: 160px; }
.gafas-shot img { border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.lens-demo {
  --tinte: 0;
  position: absolute; right: 0; bottom: -40px; width: 340px; display: grid; gap: 14px; padding: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.lens-title { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.lens-glasses { display: flex; justify-content: center; align-items: center; padding: 4px 0; }
.lens-glasses span {
  width: 104px; height: 66px; border-radius: 16px 16px 34px 34px; box-shadow: inset 0 0 0 3.5px var(--ink);
  background: color-mix(in srgb, #1d2433 calc(var(--tinte) * 90%), var(--surface-2));
  transition: background-color .5s var(--ease);
}
.lens-glasses i { width: 24px; height: 12px; border-top: 3.5px solid var(--ink); border-radius: 50% 50% 0 0; margin-top: -20px; }
.lens-read { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lens-read span { color: var(--ink-2); font-size: 15px; }
.lens-control { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.lens-control input { width: 100%; accent-color: var(--accent); cursor: pointer; }

.gafas-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; margin-top: 88px; align-items: start; }
.gafas-grid .proj-intro { margin-top: 0; }
.ticks { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }
.status { margin-top: 22px; font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ig img { border-radius: var(--r-sm); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.ig img:nth-child(2) { translate: 0 28px; }
.ig img:hover { transform: scale(1.03); }

/* trayectoria */
.path { padding-top: 140px !important; }
.path > h2, .contact h2 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 750; letter-spacing: -.04em; margin-bottom: 48px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.path h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); margin-bottom: 22px; }
.path article { margin-bottom: 26px; }
.path article p:last-child:not(.where) { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.when { font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-bottom: 4px !important; }
.path h4 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.where { color: var(--ink-3); font-size: 15px; }
.skill-group { margin-bottom: 18px; color: var(--ink-2); font-size: 15.5px; }
.skill-group b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* contacto */
.contact { padding-top: 160px !important; padding-bottom: 80px !important; text-align: left; }
.contact h2 { margin-bottom: 20px; }
.contact > p:not(.foot) { font-size: 20px; color: var(--ink-2); max-width: 44ch; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.foot { margin-top: 120px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* ---------- entrada al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .tile, .btn, .ig img { transition: none !important; }
  .screen.is-active .ph-check { animation: none; }
}

/* ---------- tablet y móvil ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-board { height: 460px; }
  .biz-grid { grid-template-columns: 1fr; gap: 48px; }
  .reel { grid-template-columns: repeat(3, 1fr); }
  .reel-web { grid-column: 1 / -1; }
  .promo-grid, .gafas-grid { grid-template-columns: 1fr; gap: 48px; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .skills { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  main > section { padding: 0 16px; }
  .nav { padding: 0 16px; gap: 14px; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding-top: 28px !important; }
  .lead { font-size: 18px; }
  .hero-board { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .tile-biz { grid-row: auto; grid-column: 1 / -1; min-height: 210px; padding: 22px; }
  .tile-sub { margin-bottom: 48px; }
  .tile-video, .tile-web { aspect-ratio: 3 / 4; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 18px 12px 18px 0 !important; border-left: 0 !important; }
  .facts > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts strong { font-size: 24px; }
  .project { padding-top: 88px !important; }
  .phone { width: 280px; height: 570px; }
  .biz-model { grid-template-columns: 1fr; }
  .reel { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div:last-child { grid-column: 1 / -1; }
  .gafas-stage { padding-right: 0; }
  .lens-demo { position: relative; width: auto; right: auto; bottom: auto; margin: -24px 12px 0; }
  .gafas-grid { margin-top: 56px; }
  .path-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact { padding-top: 110px !important; }
  .foot { margin-top: 72px; }
}
.role { font-size: 16px; color: var(--ink-2); } .role b { color: var(--ink); }
.btn-visit { margin-top: 26px; }
