@font-face { font-family: 'Bebas Neue'; src: url(fonts/bebas-neue-400-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url(fonts/bebas-neue-400-latin-ext.woff2) format('woff2'); font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Lora'; font-style: italic; src: url(fonts/lora-400-italic-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lora'; font-style: italic; src: url(fonts/lora-400-italic-latin-ext.woff2) format('woff2'); font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Space Mono'; src: url(fonts/space-mono-400-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(fonts/space-mono-400-latin-ext.woff2) format('woff2'); font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --night: #12100e;        /* casi negro, cálido: nunca negro puro */
  --panel: #1a1815;
  --fg: #efebe4;
  --mute: #8f887d;
  --line: rgba(239, 235, 228, .13);
  --red: #ff3b30;          /* el punto de REC: el único color */
  --display: 'Bebas Neue', Impact, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--fg); font: 17px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.display { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: .01em; margin: 0; font-size: clamp(52px, 8vw, 132px); }
.display.huge { font-size: clamp(64px, 11vw, 190px); }
.label, .mono, .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.label { color: var(--mute); margin: 0 0 20px; }
.red { color: var(--red); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border: 1px solid var(--fg); border-radius: 99px; background: var(--fg); color: var(--night); font: 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 11px; background: transparent; color: var(--fg); }
.link { font: 13px var(--mono); letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link:hover { color: var(--red); }

/* Cabecera: navegación, logo al centro, botón */
.top { position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 16px var(--pad); transition: background .35s, padding .35s; }
.top.scrolled { background: rgba(18, 16, 14, .86); backdrop-filter: blur(10px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.nav { grid-column: 1; grid-row: 1; display: flex; gap: 26px; }
.nav a { font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: .75; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.top .brand { grid-column: 2; grid-row: 1; }
.top > .btn, .menu { grid-column: 3; grid-row: 1; justify-self: end; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; margin: 0; }
.mark { display: block; width: 104px; aspect-ratio: 5 / 1; background: currentColor; -webkit-mask: url(img/snap-mark.png) center / contain no-repeat; mask: url(img/snap-mark.png) center / contain no-repeat; }
.sub { font: 7.5px/1 var(--mono); letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }
.menu { display: none; background: none; border: 0; width: 34px; height: 34px; position: relative; padding: 0; }
.menu i { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu i:first-child { top: 13px; } .menu i:last-child { top: 20px; }
.menu[aria-expanded="true"] i:first-child { top: 16px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { top: 16px; transform: rotate(-45deg); }

/* Portada: pantalla en formato cine */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 4vh, 44px); padding: 110px var(--pad) clamp(36px, 7vh, 80px); }
.screen { position: relative; width: 100%; aspect-ratio: 2.39 / 1; max-height: 58svh; overflow: hidden; background: var(--panel); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
/* Mientras la portada sea el logo, se ve entero; el showreel irá a sangre */
.screen:has(.fit-logo) { background: var(--night); outline: 1px solid var(--line); }
.screen video.fit-logo { object-fit: contain; }
.hud { position: absolute; inset: 14px 18px; display: flex; justify-content: space-between; align-items: flex-start; font: 11px var(--mono); letter-spacing: .14em; color: rgba(239,235,228,.85); pointer-events: none; }
.hud .meta { position: absolute; left: 0; bottom: 0; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero .kicker { color: var(--mute); margin: 0 0 16px; }
.hero h1 { font-size: clamp(50px, 7.4vw, 124px); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 22px; }
.lead { font-style: italic; font-size: clamp(17px, 1.5vw, 21px); color: #bdb6ab; margin: 0; max-width: 40ch; }
.ctas { display: flex; align-items: center; gap: 28px; }

/* Secciones */
.manifesto, .services, .work, .events, .contact { padding: clamp(80px, 13vh, 160px) var(--pad); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(40px, 7vh, 72px); }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.big { font: italic clamp(30px, 4.4vw, 68px)/1.15 var(--serif); margin: 0; max-width: 22ch; }
.big em { color: var(--red); }

/* Servicios */
.srv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.srv-list li { padding: 28px 28px 34px 0; border-bottom: 1px solid var(--line); }
.srv-list .n { font: 12px var(--mono); color: var(--red); }
.srv-list h3 { font: clamp(40px, 4.4vw, 68px)/.9 var(--display); font-weight: 400; margin: 14px 0 12px; transition: color .3s; }
.srv-list p { margin: 0; color: var(--mute); font-size: 16px; max-width: 30ch; }
.srv-list li:hover h3 { color: var(--red); }

/* Trabajos: fotogramas en fila */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shot { margin: 0; scroll-snap-align: start; }
.shot img, .shot video, .ph { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: var(--panel); }
.ph { position: relative; }
.ph::before { content: 'REC'; position: absolute; left: 14px; top: 12px; font: 10px var(--mono); letter-spacing: .14em; color: var(--mute); padding-left: 14px; background: radial-gradient(circle at 4px 50%, var(--red) 3.5px, transparent 4px); }
.shot figcaption { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.shot b { font: 26px/1 var(--display); font-weight: 400; }
.shot span { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* 360 Eventos */
.events { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--panel); }
.events-media video { width: 100%; aspect-ratio: 1; object-fit: cover; }
.events-text > p:not(.label) { color: #bdb6ab; max-width: 44ch; margin: 26px 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.how { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 15px; color: #bdb6ab; }
.how b { font: 12px var(--mono); color: var(--red); margin-right: 8px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-head p { color: #bdb6ab; max-width: 36ch; margin: 26px 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label > span, .form legend { display: block; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.form input:not([type=radio]), .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(239,235,228,.3); padding: 10px 0; font: 17px var(--serif); color: var(--fg); border-radius: 0; color-scheme: dark; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { padding: 0; margin-bottom: 12px; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font: 12px var(--mono); letter-spacing: .06em; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--fg); color: var(--night); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; color: var(--mute); }
.hp { position: absolute; left: -9999px; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 9vh, 100px) var(--pad) 28px; color: #cfc9be; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-cols a { display: block; text-decoration: none; margin-top: 8px; }
.foot-cols a:hover { color: #fff; }
.foot .brand { align-items: flex-start; margin-bottom: 14px; color: #fff; }
.foot .mark { width: 130px; }
.foot .mono { color: var(--mute); }
.foot-legal { margin: 64px 0 0; font-size: 11px; }
.foot-legal a { color: inherit; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px; padding: var(--pad); background: var(--night); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav a { font: 54px/1 var(--display); letter-spacing: .02em; opacity: 1; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .menu { display: block; }
  .top > .btn { display: none; }
  .screen { aspect-ratio: 4 / 5; max-height: 62svh; }
  .srv-list { grid-template-columns: 1fr 1fr; }
  .events, .contact { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mark { width: 86px; }
  .srv-list, .form, .how { grid-template-columns: 1fr; }
  .strip { grid-auto-columns: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec i { animation: none; }
}
