@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff2') format('woff2'); font-weight: 500 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dmsans.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jbmono.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0A0A0A;
  --bg-2: #131313;
  --bg-3: #1C1C1C;
  --fg: #F2F2EE;
  --muted: #A3A3A8;
  --rule: rgba(242, 242, 238, 0.28);
  --rule-soft: rgba(242, 242, 238, 0.14);
  --accent: #C8FF00;
  --on-accent: #0A0A0A;

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 72px; --s-6: 112px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 600; transition: transform .2s var(--ease); }
.skip:focus { transform: translateY(76px); }

h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h1, h2 { text-transform: uppercase; font-weight: 800; font-stretch: 70%; line-height: .92; letter-spacing: 0; }
h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 46ch; text-wrap: pretty; }
.mono, .label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--muted); }
.mark { display: inline-block; width: 13px; height: 13px; background: var(--accent); flex: none; }
.brand img { display: block; height: 30px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: 1.3rem; text-transform: uppercase; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0 var(--pad); background: rgba(10,10,10,.94); border-bottom: 1px solid var(--rule); }
.nav-links { display: none; gap: var(--s-4); font-size: 15px; font-weight: 500; }
.nav-links a { padding: 4px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .25s var(--ease); }
.nav-links a:hover { background-size: 100% 3px; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* BOTONES */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 30px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--f-body); cursor: pointer; border-radius: 0; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--fg); border-color: var(--fg); transform: translate(-2px, -2px); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: rgba(242,242,238,.5); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-white { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn-white:hover { background: var(--fg); color: var(--on-accent); border-color: var(--fg); }
.btn-line { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
.btn-line:hover { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }

/* HERO: Realidad | ficcionada */
.hero { display: flex; flex-direction: column; min-height: calc(100dvh - 68px); }
.stage { --pos: 50%; position: relative; flex: 1; min-height: 520px; display: flex; overflow: hidden; background: var(--bg); }
.pane { position: relative; overflow: hidden; align-self: stretch; }
.pane-real { width: var(--pos); flex: none; }
.pane-fic { flex: 1; min-width: 0; }
.pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pane::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10,10,10,.88), rgba(10,10,10,.05) 55%, rgba(10,10,10,.6)); }
.seam { position: absolute; z-index: 6; left: var(--pos); top: 0; bottom: 0; width: 48px; transform: translateX(-50%); border: 0; padding: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.seam::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: translateX(-50%); }
.seam span { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 22px/1 var(--f-body); transform: translate(-50%, -50%); }
.seam:focus-visible { outline: none; }
.seam:focus-visible span { outline: 3px solid var(--fg); outline-offset: 3px; }
.stage h1 { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.stage h1 span { position: absolute; display: block; }
.h-top { top: 32px; left: var(--pad); font-size: clamp(1.8rem, 4.2vw, 4rem); max-width: 7.2em; line-height: .92; }
.h-real, .h-fic { bottom: 24px; font-size: clamp(2.2rem, 8.4vw, 8.4rem); line-height: .9; }
.h-real { left: var(--pad); }
.h-fic { right: var(--pad); color: var(--accent); }
.hero-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: 20px var(--pad); border-top: 1px solid var(--rule); }
.hero-bar .lede { margin: 0; }
.hero-bar .cta-row { margin: 0; }

/* entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  .stage h1 span { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
  .h-real { animation-delay: .25s !important; } .h-fic { animation-delay: .5s !important; }
}
@keyframes rise { to { opacity: 1; transform: none; } }


/* SECCIONES */
.section { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--pad) 0; }
.section > h2 { margin-bottom: var(--s-4); }

/* FILTROS */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.filter { padding: 10px 18px; border: 1.5px solid var(--rule); border-radius: 0; background: transparent; color: var(--fg); font: 500 14px var(--f-body); cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filter:hover { transform: translateY(-2px); border-color: var(--fg); }
.filter:active { transform: scale(.98); }
.filter[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* GRID DE TRABAJO */
.grid { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.work, .bts-item { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 0; background: var(--accent); transition: transform .3s var(--ease); }
.work:hover .frame::before, .work:focus-visible .frame::before, .bts-item:hover .frame::before, .bts-item:focus-visible .frame::before { transform: translate(10px, 10px); }
.thumb { position: relative; overflow: hidden; background: var(--bg-2); border: 1.5px solid var(--rule); transition: transform .3s var(--ease); }
.work .thumb { aspect-ratio: 9/16; }
.bts-item .thumb { aspect-ratio: 16/9; }
.work:hover .thumb, .work:focus-visible .thumb, .bts-item:hover .thumb, .bts-item:focus-visible .thumb { transform: translate(-3px, -3px); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work .thumb video { opacity: 0; transition: opacity .3s var(--ease); }
.work.is-playing .thumb video { opacity: 1; }
.play { position: absolute; right: 0; bottom: 0; z-index: 2; width: 46px; height: 46px; background: var(--accent); display: grid; place-items: center; }
.play::before { content: ""; border-left: 12px solid var(--on-accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.bts-item .play { width: 60px; height: 60px; }
.info { padding: 22px 2px 0; }
.info h3 { font-size: 1.25rem; }
.info p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.info .mono { margin-top: 8px; color: var(--fg); }
.work[hidden] { display: none; }

/* DETRAS DE CAMARA */
.bts { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--s-6); }
.bts-in { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--pad); display: grid; gap: var(--s-2); }
.bts .lede { margin-bottom: var(--s-3); }
.bts-grid { display: grid; gap: var(--s-4) var(--s-3); }
@media (min-width: 900px) { .bts-grid { grid-template-columns: 1fr 1fr; } }

/* SERVICIOS: bento asimetrico */
.bento { display: grid; gap: var(--s-2); }
.tile { padding: var(--s-4); display: grid; gap: var(--s-2); align-content: end; min-height: 260px; border: 1.5px solid var(--rule); }
.tile p { max-width: 44ch; color: var(--muted); }
.tile h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-stretch: 85%; }
.t-ugc { background: var(--accent); color: var(--on-accent); border-color: var(--accent); min-height: 340px; }
.t-ugc p { color: rgba(10,10,10,.78); }
.t-ia { background: var(--bg-3); }
.t-edit { background: var(--bg-2); }
.t-motion { background: var(--bg); }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .t-ugc { grid-column: span 4; } .t-ia { grid-column: span 2; }
  .t-edit { grid-column: span 2; } .t-motion { grid-column: span 4; }
}

/* PROCESO */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { padding: var(--s-3) 0; border-top: 1.5px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--muted); font-size: 16px; max-width: 34ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }

/* CONTACTO */
.contact { margin-top: var(--s-6); background: var(--accent); color: var(--on-accent); }
.contact-in { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--pad); display: grid; gap: var(--s-2); }
.contact h2 { font-size: clamp(2.6rem, 12.5vw, 10rem); }
.contact-in > * { min-width: 0; }
.contact .lede { color: rgba(10,10,10,.8); }
.footer { max-width: var(--max); margin: 0 auto; padding: var(--s-4) var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); align-items: center; }
.footer .mono { color: var(--muted); }
.footer nav { display: flex; gap: var(--s-3); font-size: 15px; font-weight: 500; }

/* PAGINA DE IDENTIDAD */
.id { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 0; display: grid; gap: var(--s-5); }
.id-top { display: grid; gap: var(--s-5); align-items: end; }
.id-head h1 { font-size: clamp(3.4rem, 11vw, 9rem); text-transform: uppercase; font-weight: 800; font-stretch: 70%; line-height: .92; }
.id-head .lede { margin-top: var(--s-3); max-width: 52ch; }
.portrait { position: relative; margin: 0 14px 14px 0; max-width: 440px; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translate(14px, 14px); }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border: 1.5px solid var(--rule); }
@media (min-width: 900px) { .id-top { grid-template-columns: 1.4fr 1fr; } .portrait { justify-self: end; margin-right: 14px; } }
.id-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .id-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.id-copy { display: grid; gap: var(--s-2); }
.id-copy p { color: var(--muted); max-width: 52ch; }
.facts { margin: var(--s-3) 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--s-2); padding: 14px 0; border-top: 1.5px solid var(--rule); }
.facts div:last-child { border-bottom: 1.5px solid var(--rule); }
.facts dt { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.socials li { border-top: 1.5px solid var(--rule); }
.socials li:last-child { border-bottom: 1.5px solid var(--rule); }
.socials a { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: baseline; padding: 20px 4px; transition: background-color .2s var(--ease), color .2s var(--ease), padding .25s var(--ease); }
.socials a:hover, .socials a:focus-visible { background: var(--accent); color: var(--on-accent); padding-inline: 18px; }
.socials .net { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; line-height: 1; }
.socials .handle { font: 500 14px var(--f-mono); letter-spacing: .04em; }

/* LIGHTBOX */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--fg); overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(10,10,10,.96); }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 3; padding: 12px 18px; border: 1.5px solid var(--rule); background: var(--bg); color: var(--fg); font: 600 14px var(--f-body); cursor: pointer; border-radius: 0; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lb-close:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.lb-body { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); padding: 72px var(--pad) var(--s-3); }
.lb-body video { max-height: 74vh; max-width: min(100%, 1100px); background: #000; border: 1.5px solid var(--rule); }
.lb-meta { text-align: center; max-width: 60ch; }
.lb-meta .mono { color: var(--accent); }
.lb-meta h3 { margin-top: 6px; font-size: 1.7rem; }
.lb-meta p:last-child { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .filter, .thumb, .frame::before, .nav-links a, .skip, .socials a { transition: none; }
}
