/* ==========================================================================
   Marc Puig Studio — main.css
   1. Fuentes  2. Tokens  3. Base  4. Utilidades  5. Header  6. Hero
   7. Marquee  8. Secciones  9. Trabajos  10. Cifras  11. Servicios
   12. Proceso  13. Sobre mí  14. Contacto  15. Footer  16. Reproductor
   17. Animaciones  18. Responsive
   ========================================================================== */

/* 1. Fuentes (autoalojadas, sin peticiones a terceros) */
@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 2. Tokens */
:root {
  --bg: #0a0a0a;
  --bg-2: #111112;
  --bg-3: #18181a;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f4f4f2;
  --muted: #a3a3a0;
  --dim: #6e6e6b;
  --red: #ff1f1f;
  --red-2: #d90f0f;
  --red-glow: rgba(255, 31, 31, .35);

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 13vw, 180px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* 4. Utilidades */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .08em; text-transform: uppercase; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .06;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow .dash { width: 28px; height: 2px; background: var(--red); }

/* Botones */
.btn {
  --h: 56px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 40px -12px var(--red-glow); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn--primary:hover { color: var(--bg); }
.btn--primary:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(8px); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.1); }
.btn:active { transform: scale(.97); }
.btn__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); margin-left: -12px; transition: background-color .3s; }
.btn__icon svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
.btn--primary:hover .btn__icon { background: var(--red); color: #fff; }

/* 5. Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: transform .5s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-solid { background: rgba(10,10,10,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav__link { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.lang__opt { padding: 4px 2px; transition: color .3s; }
.lang__opt:hover, .lang__opt.is-active { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--bg); padding: calc(var(--header-h) + 40px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.mobile-menu[hidden] { display: flex; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 10vw, 56px); letter-spacing: -.03em; line-height: 1.15; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .3s; }
.mobile-menu nav a:hover { color: var(--red); }
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; } .mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; } .mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); flex-wrap: wrap; }

/* 6. Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #000 url("/assets/img/poster-hero.webp") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); opacity: 0; transition: opacity 1.2s; }
.hero__video.is-ready { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,.15) 30%, rgba(10,10,10,.35) 60%, var(--bg) 100%),
  radial-gradient(120% 80% at 0% 100%, rgba(10,10,10,.85) 0%, transparent 60%),
  radial-gradient(60% 60% at 100% 0%, rgba(255,31,31,.18), transparent 70%); }

.viewfinder { position: absolute; inset: calc(var(--header-h) + 16px) var(--gutter) 24px; pointer-events: none; }
.vf { position: absolute; width: 26px; height: 26px; border-color: rgba(255,255,255,.55); border-style: solid; border-width: 0; }
.vf--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-rec { position: absolute; top: 14px; right: 40px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.85); }
.vf-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.4s steps(2) infinite; }
.vf-meta { position: absolute; bottom: 14px; right: 40px; font-size: 11px; color: rgba(255,255,255,.7); }
@keyframes blink { 50% { opacity: .15; } }

.hero__content { position: relative; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, 10.5vw, 168px); line-height: .94; letter-spacing: -.045em; margin-bottom: clamp(24px, 3vw, 36px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__title mark { background: var(--red); color: #fff; padding: 0 .14em .04em; border-radius: .08em; margin-left: -.02em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { max-width: 560px; color: rgba(244,244,242,.82); font-size: clamp(16px, 1.25vw, 19px); margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }

/* 7. Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -.02em; white-space: nowrap; }
.marquee__track b { color: var(--red); font-size: .6em; font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Secciones */
.section { padding-block: var(--section); position: relative; }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 880px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section__title, .contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 6.2vw, 96px); line-height: .98; letter-spacing: -.045em; }
.section__title em, .contact__title em, .footer__big em { font-style: normal; color: var(--red); }
.section__lead { color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); max-width: 560px; margin-top: 26px; }
.section__head--split .section__lead { margin-top: 0; }

/* 9. Trabajos */
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { grid-column: span 6; position: relative; cursor: pointer; outline: none; }
.card--xl { grid-column: span 12; }
.card--wide { grid-column: span 12; }
.card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.card--xl .card__media { aspect-ratio: 21 / 9; }
.card--wide .card__media { aspect-ratio: 21 / 9; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.04); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.card__play { position: absolute; z-index: 2; left: 24px; bottom: 24px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; transform: scale(.85); opacity: .95; transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 10px 40px -10px var(--red-glow); }
.card__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.card:hover .card__play, .card:focus-visible .card__play { transform: scale(1); box-shadow: 0 0 0 10px rgba(255,31,31,.2); }
.card:focus-visible .card__media { outline: 2px solid var(--red); outline-offset: 4px; }
.card__info { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; padding: 20px 4px 8px; }
.card__index { color: var(--red); font-size: 12px; grid-row: span 2; padding-top: 4px; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.card__title span { color: var(--muted); font-weight: 500; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: 11px; }

/* Cursor personalizado (solo ratón) */
.cursor { position: fixed; z-index: 110; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s var(--ease); will-change: transform; }
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }

/* 10. Cifras */
.stats { background: radial-gradient(80% 120% at 100% 50%, rgba(255,31,31,.12), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: border-color .4s, background-color .4s; }
.stat::after { content: ""; position: absolute; left: clamp(22px, 2.6vw, 34px); right: clamp(22px, 2.6vw, 34px); top: calc(clamp(22px, 2.6vw, 34px) + clamp(48px, 5.4vw, 84px) + 8px); height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.stat.is-in::after { transform: scaleX(1); }
.stat:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.stat strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 5.4vw, 84px); line-height: 1; letter-spacing: -.05em; padding-bottom: 14px; }
.stat sup { font-size: .38em; color: var(--red); vertical-align: top; position: relative; top: .3em; margin-left: .06em; letter-spacing: 0; }
.stat > span { color: var(--muted); font-size: 14px; }

/* 11. Servicios */
.services__list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service { padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); }
.service__num { color: var(--red); font-size: 12px; padding-top: 10px; grid-row: span 3; }
.service__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 10px; transition: transform .5s var(--ease), color .3s; }
.service:hover .service__title { transform: translateX(8px); color: #fff; }
.service__text { color: var(--muted); max-width: 460px; }
.service__tags { color: var(--dim); font-size: 11px; margin-top: 18px; }

/* 12. Proceso */
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { padding: 28px 24px 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-6px); border-color: rgba(255,31,31,.5); }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--red); font-size: 12px; margin-bottom: 40px; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* 13. Sobre mí */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.about__media.is-in img { transform: scale(1); }
.about__media figcaption { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(10,10,10,.6); backdrop-filter: blur(8px); font-size: 10px; }
.about__media figcaption i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
.about__text > p:not(.eyebrow) { color: var(--muted); margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.15vw, 18px); }
.about__text .section__title { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chips li { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text); transition: background-color .3s, border-color .3s; }
.chips li:hover { background: var(--red); border-color: var(--red); }

/* 14. Contacto */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__title { font-size: clamp(40px, 5.4vw, 84px); }
.contact__direct { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.contact__label { color: var(--dim); font-size: 11px; }
.contact__email { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.02em; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); word-break: break-all; }
.contact__email:hover { background-size: 100% 2px; }
.copy { font-size: 11px; color: var(--muted); padding: 6px 0; border-bottom: 1px dashed var(--line-2); transition: color .3s; }
.copy:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: background-color .3s, border-color .3s; }
.socials a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); }
.field { grid-column: span 2; display: grid; gap: 8px; position: relative; }
.field--half { grid-column: span 1; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field label small { color: var(--dim); font-size: 12px; font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .3s, background-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--bg-3); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #1c1c1e; box-shadow: 0 0 0 4px rgba(255,31,31,.15); }
.field__error { display: none; color: #ff6b6b; font-size: 12px; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff6b6b; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 4px 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.field--check label { font-size: 13px; line-height: 1.5; }
.field--check label a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; }
.form .btn { grid-column: span 2; margin-top: 4px; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form.is-sending .btn__spinner { display: block; }
.form.is-sending .btn { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { grid-column: span 2; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form__status.is-ok { color: #6ee7a8; }
.form__status.is-error { color: #ff6b6b; }
.form__status a { text-decoration: underline; }

/* 15. Footer */
.footer { padding: clamp(80px, 10vw, 140px) 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 9vw, 150px); line-height: .95; letter-spacing: -.055em; margin-bottom: clamp(56px, 8vw, 110px); transition: color .4s; }
.footer__big:hover { color: #fff; }
.footer__big:hover em { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 84px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover, .footer__mail:hover { color: var(--text); }
.footer__mail { color: var(--muted); font-size: 12px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; color: var(--dim); font-size: 11px; }
.footer__legal a:hover { color: var(--text); }

/* 16. Reproductor */
.player { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.player::backdrop { background: rgba(5,5,5,.92); backdrop-filter: blur(10px); }
.player[open] { animation: pop .5s var(--ease); }
.player[open]::backdrop { animation: fade .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.player__bar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 14px; gap: 16px; }
.player__title { font-size: 12px; color: var(--muted); }
.player__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, transform .4s var(--ease); flex: none; }
.player__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.player__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.player__video { width: 100%; max-height: calc(94vh - 70px); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 17. Animaciones de entrada */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .grain { display: none; }
}

/* 18. Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .stats__inner, .about__inner { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 10; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 38px; }
  .header__cta { display: none; }
  .header__actions > .lang { display: none; }
  .card, .card--xl, .card--wide { grid-column: span 12; }
  .card--xl .card__media, .card--wide .card__media { aspect-ratio: 16 / 9; }
  .card__play { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .services__list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 32px 0; border-right: 0; grid-template-columns: 44px 1fr; }
  .service:nth-child(odd) { border-right: 0; }
  .process__steps { grid-template-columns: 1fr; }
  .step__num { margin-bottom: 24px; }
  .stats__grid { gap: 10px; }
  .stat > span { font-size: 13px; }
  .form { grid-template-columns: 1fr; }
  .field, .field--half, .form .btn, .form__status { grid-column: span 1; }
  .vf-meta, .vf-rec { right: 34px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .player__video { border-radius: 6px; }
}
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .cursor { display: none; } }

/* 19. Páginas simples (legal, 404) */
.page-simple .header { background: rgba(10,10,10,.85); backdrop-filter: blur(18px); border-color: var(--line); }
.legal { padding: calc(var(--header-h) + 80px) 0 120px; }
.legal .container { max-width: 860px; }
.legal h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; margin-bottom: 18px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; margin: 64px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { background: rgba(255,31,31,.15); color: #ffb3b3; padding: 0 6px; border-radius: 4px; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(96px, 22vw, 260px); letter-spacing: -.06em; line-height: .9; }
.notfound h1 span { color: var(--red); }
.notfound p { color: var(--muted); margin: 18px auto 36px; max-width: 460px; }
.notfound .btn + .btn { margin-left: 10px; }
