/* ==========================================================
   Oscar.ugc · estilos (versión 2: más movimiento al scroll)
   Mezcla de referencias: neiden (secciones numeradas, tipografía grande),
   kanso (texto que se ilumina al bajar), mirastudio (oscuro + acento),
   angelluiscreator (estructura de secciones).
   Para cambiar el rojo: variable --accent.
   ========================================================== */

:root {
  --bg: #000;
  --panel: #131315;
  --panel-2: #1D1D20;
  --ink: #EEEAE4;
  --muted: #A8A39B;
  --line: rgba(238, 234, 228, 0.16);
  --accent: #E3262B;
  --accent-hover: #C81F25;
  --accent-text: #FF5A5F;

  --pad: clamp(20px, 3.2vw, 48px);
  --r: 4px;
  --gap: 24px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);

  --font: "TikTok Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* Bandas claras: se cambian solo las variables de color */
.paper {
  --bg: #EEEAE4;
  --panel: #E3DED6;
  --panel-2: #D8D2C8;
  --ink: #0F0F10;
  --muted: #5E5A54;
  --line: rgba(15, 15, 16, 0.18);
  --accent-text: #C81F25;
  background: var(--bg);
  color: var(--ink);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }

/* ---------- Tipografía ---------- */
.display { font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; }
.label { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.note, .fine { font-size: var(--step-small); color: var(--muted); }

/* Botón (una sola forma en toda la página) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn--block { width: 100%; }

/* Enlace con flecha */
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding-block: 6px; border-bottom: 1px solid currentColor; transition: color 150ms ease; }
.link span { display: inline-block; transition: transform 250ms var(--ease-out); }
.link:hover { color: var(--accent-text); }
.link:hover span { transform: translateX(5px); }

/* ---------- Revelado al hacer scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Máscara: el recorte se aplica al hijo (así el observador sigue viendo la caja entera) */
[data-reveal="mask"] { opacity: 1; transform: none; transition: none; }
[data-reveal="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1200ms var(--ease-in-out) var(--d, 0ms); }
[data-reveal="mask"].is-in > * { clip-path: inset(0 0 0 0); }
html:not(.js) [data-reveal], html:not(.js) [data-reveal] > * { opacity: 1; transform: none; clip-path: none; }

/* Palabras y letras que suben desde una máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: 0.14em; margin-top: -0.14em; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform 900ms var(--ease-out) calc(var(--i, 0) * 60ms + var(--d, 0ms)); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* Texto que se ilumina palabra a palabra */
.lw { opacity: var(--o, 0.14); filter: blur(var(--b, 9px)); will-change: opacity, filter; }

/* Parallax: JS escribe --py */
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---------- Pantalla de carga ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg); color: var(--ink);
  display: grid; grid-template-rows: 1fr auto; padding: var(--pad);
  transition: transform 900ms var(--ease-in-out);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__mark { align-self: center; justify-self: center; font-weight: 800; font-stretch: 125%; letter-spacing: 0.08em; font-size: clamp(1.25rem, 1rem + 1.6vw, 2.25rem); }
.preloader__count { font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; font-size: clamp(3.5rem, 2rem + 9vw, 11rem); line-height: 0.85; color: var(--accent); }

/* ---------- Barra de progreso y cabecera ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--sp, 0)); transform-origin: left; }

.top {
  position: fixed; top: 14px; left: 0; right: 0; margin-inline: auto; z-index: 100;
  width: min(calc(100% - 2 * var(--pad)), 780px); height: 56px; padding: 0 8px 0 22px;
  display: flex; align-items: center; justify-content: space-between; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 55%), rgba(22,22,25,.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1.5px 0 rgba(255,255,255,.3), 0 14px 40px -14px rgba(0,0,0,.65);
  transition: transform 450ms var(--ease-out), background-color 300ms ease;
}
.top.is-solid { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 55%), rgba(18,18,20,.68); }
.top.is-hidden { transform: translateY(-140%); }
.top__logo { font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; font-size: 1.0625rem; color: #EEEAE4; }
.top__logo .dot { display: inline-block; font-size: 1.9em; line-height: 0; color: var(--accent); margin: 0 .02em; vertical-align: -0.05em; animation: recBlink 2.4s ease-in-out infinite; }
@keyframes recBlink { 0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(227,38,43,.8); } 50% { opacity: .18; text-shadow: none; } }
.top__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 0.9375rem; }
.top__nav a { color: #A8A39B; transition: color 150ms ease; }
.top__nav a:hover { color: #EEEAE4; }
.top__nav .top__cta { color: #fff; background: var(--accent); padding: 10px 20px; border-radius: 999px; transition: background-color 150ms ease; }
.top__nav .top__cta:hover { background: var(--accent-hover); }
.top__burger { display: none; background: none; border: 0; padding: 12px 16px 12px 12px; font-size: 0.9375rem; color: #EEEAE4; }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; padding: 128px var(--pad) clamp(48px, 7vw, 100px);
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
}
.hero__meta {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 999px; color: #D9D5CE; font-size: var(--step-small);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), rgba(22,22,25,.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.22);
}
.hero__meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero__title {
  margin-top: clamp(20px, 3vw, 32px); max-width: 15ch; will-change: transform;
  font-size: clamp(2.2rem, 0.2rem + 7vw, 8.4rem); font-weight: 800; font-stretch: 115%;
  text-transform: uppercase; line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance;
}
.hero__title .is-accent { font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; padding-right: 0.06em; }
.hero__foot { display: grid; justify-items: center; gap: 26px; margin-top: clamp(20px, 3vw, 36px); }
.hero__scroll { display: none; }
.hero__sub { color: #C9C5BE; max-width: 46ch; }
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 28px; }
.hero__photo { position: relative; z-index: 3; margin: clamp(40px, 6vw, 80px) 0 0; width: clamp(260px, 34vw, 540px); aspect-ratio: 4 / 5; }
.hero__photo-in { position: absolute; inset: 0; background: var(--panel); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px -36px rgba(0,0,0,.9); }
.hero__photo-in img, .hero__photo-in canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__scroll i { display: block; width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-100%); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Showreel que se expande ---------- */
.showreel { position: relative; height: 320svh; }
.showreel__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.showreel__frame {
  position: absolute; inset: 0; --p: 0; background: var(--panel); overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 30svh) calc((1 - var(--p)) * 28vw) round calc((1 - var(--p)) * 6px));
}
.showreel__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
.showreel__frame > video.is-ready { opacity: 1; }
.showreel__frame .stills { transform: scale(calc(1.18 - 0.18 * var(--p))); }
.frame__title { position: absolute; right: 18px; bottom: 16px; font-size: var(--step-small); letter-spacing: 0.12em; font-weight: 600; }

.stills { position: absolute; inset: 0; }
.still { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms ease; overflow: hidden; }
.still.is-on { opacity: 1; }
.still::before, .still::after { content: ""; position: absolute; }
.still--a { background: #17141A; }
.still--a::before { left: 58%; top: 0; width: 14%; height: 100%; background: rgba(238, 234, 228, 0.14); }
.still--a::after { left: 22%; bottom: 16%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: 0.85; }
.still--b { background: #121618; }
.still--b::before { left: 34%; top: 14%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: rgba(238, 234, 228, 0.12); }
.still--b::after { left: 0; bottom: 0; width: 100%; height: 24%; background: #0C0E0F; }
.still--c { background: #1A1412; }
.still--c::before { left: 30%; bottom: 0; width: 40%; height: 70%; border-radius: 999px 999px 0 0; background: rgba(238, 234, 228, 0.1); }
.still--c::after { right: 16%; top: 14%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: 0.85; }

.rec { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 8px; font-size: var(--step-small); font-weight: 600; letter-spacing: 0.12em; z-index: 2; color: #EEEAE4; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tc { position: absolute; left: 18px; bottom: 16px; font-size: var(--step-small); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; z-index: 2; color: #EEEAE4; }

/* ---------- Tira de marcas (se mueve de izquierda a derecha) ---------- */
.brands { padding-block: clamp(56px, 8vw, 120px) clamp(24px, 4vw, 48px); }
.brands__title { padding-inline: var(--pad); color: var(--muted); font-size: var(--step-small); margin-bottom: 28px; }
.marquee { overflow: hidden; padding-block: 10px; }
.marquee__track { display: flex; width: max-content; animation: slideRight 40s linear infinite; }
@keyframes slideRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee__set { display: flex; flex: none; align-items: center; gap: clamp(56px, 7vw, 112px); padding-right: clamp(56px, 7vw, 112px); }
.marquee__set li { flex: none; display: grid; place-items: center; height: 72px; }
.marquee__set img { height: 34px; width: auto; max-width: 180px; object-fit: contain; opacity: 0.82; transition: opacity 200ms ease; }
.marquee__set li:hover img { opacity: 1; }
.marquee__set .ph span { display: block; padding: 14px 26px; border: 1px dashed var(--muted); border-radius: var(--r); color: var(--muted); font-size: var(--step-small); white-space: nowrap; }

/* ---------- Sobre mí ---------- */
.about { padding-block: clamp(72px, 10vw, 150px) clamp(88px, 12vw, 180px); }
.about .label { grid-column: 1 / 13; margin-bottom: 36px; }
.about__text { grid-column: 1 / 9; font-size: clamp(1.625rem, 1rem + 2.4vw, 3.25rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.01em; }
.about__side { grid-column: 10 / 13; display: grid; gap: 28px; align-content: start; }
.about__photo { position: relative; aspect-ratio: 4 / 5; }
.about__photo .slot { position: absolute; inset: 0; --t: #1B1B1E; }
.about__side .btn { justify-self: start; }

/* ---------- Secciones de trabajo ---------- */
.work { padding-block: clamp(88px, 12vw, 180px); }
.work__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 6vw, 96px); }
.work__head .label { grid-column: 1 / 13; margin-bottom: 24px; }
.work__head h2 { grid-column: 1 / 9; font-size: clamp(2.25rem, 0.5rem + 6.2vw, 7.25rem); }
.work__head .side { grid-column: 9 / 13; display: grid; gap: 22px; justify-items: start; }
.work__more { display: flex; justify-content: center; margin-top: clamp(48px, 7vw, 96px); }

/* Huecos de vídeo/foto: dibujados en código, se rellenan solos al añadir el archivo */
.slot { position: relative; overflow: hidden; background: var(--t, #17151A); border-radius: var(--r); }
.slot--reel::before, .slot--wide::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; transform: translate(-40%, -50%);
  background: rgba(238, 234, 228, 0.55); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.slot::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: var(--step-small); color: #A8A39B; }
.slot--wide::after { top: 14px; bottom: auto; }
.slot[data-label=""]::before, .slot[data-label=""]::after { display: none; }
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot video { opacity: 0; transition: opacity 500ms ease; }
.slot img { filter: brightness(0.9) contrast(1.05) saturate(0.92); }
.slot .is-ready { opacity: 1; }
.slot.has-media::before, .slot.has-media::after { display: none; }
.slot[data-lightbox].has-media { cursor: pointer; }
.slot--reel { aspect-ratio: 9 / 16; }
.slot--wide { aspect-ratio: 16 / 9; }

/* Vídeos UGC (3 columnas con desfases) */
.trio { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); align-items: flex-start; width: min(100%, 1120px); margin-inline: auto; }
.trio .reel { width: calc((100% - 2 * var(--gap)) / 3); }
.trio .reel:nth-child(2) { margin-top: clamp(40px, 9vw, 150px); }
.trio .reel:nth-child(3) { margin-top: clamp(20px, 4.5vw, 70px); }

/* Vídeo edición: tarjetas que se apilan */
.stack { padding-inline: var(--pad); }
.stack-item { position: sticky; top: var(--top, 96px); margin-bottom: 14svh; }
.stack-item:last-child { margin-bottom: 0; }
.stack-card {
  width: min(100%, calc((100svh - 200px) * 16 / 9), 1180px); margin-inline: auto;
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel);
  transform: scale(var(--s, 1)); transform-origin: center top; filter: brightness(var(--b, 1)); will-change: transform;
}
.stack-card .slot { border-radius: 0; }
.stack-card__bar { position: absolute; inset: auto 0 0 0; padding: 56px 22px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); display: flex; justify-content: space-between; align-items: end; gap: 16px; pointer-events: none; color: #EEEAE4; }

/* Fotografía: 3 selectas con máscara y parallax */
.photos3 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.sel { position: relative; overflow: hidden; border-radius: var(--r); }
.sel .slot { position: absolute; inset: 0; border-radius: 0; }
.sel img[data-speed] { transform: translate3d(0, var(--py, 0px), 0) scale(1.2); }
.sel { aspect-ratio: 2 / 3; }
.sel--1 { grid-column: 1 / 5; }
.sel--2 { grid-column: 5 / 9; margin-top: clamp(60px, 10vw, 160px); }
.sel--3 { grid-column: 9 / 13; margin-top: clamp(20px, 3vw, 48px); }
.sel .slot::after { top: 14px; bottom: auto; }

/* ---------- Servicios (banda clara) ---------- */
.services { padding-block: clamp(88px, 12vw, 180px); }
.services > .wrap > h2 { font-size: clamp(2.25rem, 0.5rem + 6.2vw, 7.25rem); margin-bottom: clamp(40px, 6vw, 88px); }
.svc > li { border-top: 1px solid var(--line); }
.svc > li:last-child { border-bottom: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.svc__txt { grid-column: 1 / 7; display: grid; gap: 20px; justify-items: start; }
.svc__n { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--panel-2); font-size: 0.875rem; }
.svc__go { display: inline-flex; gap: 10px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color 200ms ease; }
.svc__txt h3 { font-size: clamp(2rem, 0.8rem + 3.6vw, 4.75rem); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: 1; transition: color 200ms ease; }
.svc__txt > p { color: var(--muted); max-width: 40ch; }
.svc__go span { display: inline-block; transition: transform 250ms var(--ease-out); }
.svc__img { grid-column: 8 / 13; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.svc__img .slot { position: absolute; inset: 0; border-radius: 0; --t: #CFC9BE; }
.svc__img .slot::after { color: #5E5A54; }
.svc__img img[data-speed] { transform: translate3d(0, var(--py, 0px), 0) scale(1.18); transition: filter 400ms ease; }
.svc > li:nth-child(even) .svc__txt { grid-column: 7 / 13; grid-row: 1; padding-left: clamp(0px, 3vw, 48px); }
.svc > li:nth-child(even) .svc__img { grid-column: 1 / 6; grid-row: 1; }
.svc__row:hover h3, .svc__row:hover .svc__go { color: var(--accent-text); }
.svc__row:hover .svc__go span { transform: translateX(6px); }
.svc__row:hover .svc__img img { filter: brightness(1.06); }

/* Sobre mí: datos y cifras + recuadro de fotos + tarjeta flotante */
.facts { grid-column: 1 / 13; margin-top: clamp(64px, 9vw, 140px); }
.facts__panel { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); align-items: start; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); margin-bottom: clamp(48px, 7vw, 110px); border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.02) 55%, rgba(255,255,255,.04)), rgba(255,255,255,.015);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.22), 0 30px 70px -40px rgba(0,0,0,.9); transition: box-shadow 380ms cubic-bezier(.23, 1, .32, 1); }
.facts__panel::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); pointer-events: none; }
.stat + .stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 12%; bottom: 12%; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.16), transparent); }
.stat { grid-column: span 6; display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px; }
.stat__n { font-weight: 800; font-stretch: 125%; font-size: clamp(2.75rem, 1.2rem + 4.6vw, 6.25rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { font-size: 1.0625rem; font-weight: 500; margin-top: 12px; color: #A8A39B; letter-spacing: .01em; }
.stat__d { color: var(--muted); font-size: 0.9375rem; max-width: 26ch; margin-inline: auto; }
.gear { grid-column: 9 / 13; grid-row: 2; margin-bottom: clamp(-120px, -8vw, -56px); align-self: end; position: relative; z-index: 2; }
.gear__in {
  background: #EEEAE4; color: #0F0F10; border-radius: 28px; padding: 14px 14px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: grid; gap: 10px; animation: floaty 7s ease-in-out infinite;
}
.gear__photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.gear__photo { aspect-ratio: 7 / 6; border-radius: 18px; --t: #CFC9BE; }
.gear__photo::after { color: #5E5A54; }
.gear__in h3 { font-size: 1.25rem; font-weight: 700; padding-inline: 8px; margin-top: 6px; }
.gear__in ul { padding-inline: 8px; display: grid; gap: 4px; color: #4A4742; font-size: 0.9375rem; }
.gear__in .gear__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.gear__chips li { padding: 8px 14px; border-radius: 999px; background: rgba(15,15,16,.05); box-shadow: inset 0 0 0 1px rgba(15,15,16,.11); color: #2B2926; font-size: .875rem; line-height: 1.2; white-space: nowrap; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(0.8deg); } }

/* ---------- Proceso: línea que se dibuja al bajar ---------- */
.proc { padding-block: clamp(88px, 12vw, 180px); }
.proc__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.proc__side { grid-column: 1 / 6; position: sticky; top: 120px; display: grid; gap: 24px; }
.proc__side h2 { font-size: clamp(2rem, 0.8rem + 4.4vw, 5.25rem); }
.proc__list { grid-column: 7 / 13; position: relative; display: grid; gap: clamp(64px, 11vw, 170px); padding-left: clamp(36px, 4vw, 64px); padding-block: 8px 24px; }
.proc__list::before, .proc__list::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; }
.proc__list::before { background: var(--panel-2); }
.proc__list::after { background: var(--accent); transform: scaleY(var(--pp, 0)); transform-origin: top; }
.pstep { opacity: 0.5; transition: opacity 500ms ease; }
.pstep.is-active { opacity: 1; }
.pn { display: block; font-weight: 800; font-stretch: 125%; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 5rem); line-height: 1; color: var(--muted); transition: color 500ms ease; }
.pstep.is-active .pn { color: var(--accent-text); }
.pstep h3 { font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); font-weight: 600; line-height: 1.15; margin-top: 18px; }
.pstep p { color: var(--muted); margin-top: 12px; max-width: 40ch; }

/* ---------- Contacto ---------- */
.contact { padding-block: clamp(88px, 12vw, 180px); background: var(--panel); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.contact__head { grid-column: 1 / 7; display: grid; gap: 28px; justify-items: start; }
.contact__head h2 { font-size: clamp(2.25rem, 0.8rem + 5.2vw, 6rem); }
.contact__card { grid-column: 8 / 13; background: var(--bg); border-radius: var(--r); padding: 32px; }
.contact__card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.contact__card form { margin-top: 24px; display: grid; gap: 16px; }
.f label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.f label span { opacity: 0.8; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 1rem; }
.f textarea { resize: vertical; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.4em; font-size: var(--step-small); }
.status.is-error { color: #ff8a8d; }

/* ---------- Pie ---------- */
.foot { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 110px) 0 32px; overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; gap: 32px; font-size: 1rem; margin-bottom: clamp(48px, 9vw, 140px); }
.foot__top nav, .foot__contact { display: grid; gap: 8px; align-content: start; }
.foot__contact { justify-items: end; }
.foot__top a { transition: color 150ms ease; }
.foot__top a:hover { color: var(--accent-text); }
.foot__mark { text-align: center; white-space: nowrap; padding: 0 var(--pad) .06em; font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: -0.01em; font-size: 15vw; line-height: 1; color: #EEEAE4; }
.foot__mark .dot { display: inline-block; font-size: 1.9em; line-height: 0; color: var(--accent); margin: 0 .02em; vertical-align: -0.05em; animation: recBlink 2.4s ease-in-out infinite; }
.reduce .foot__mark .dot { animation: none; }
.foot__legal { margin-top: 24px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Páginas de sección (todos los vídeos / fotos) ---------- */
.phead { padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(40px, 6vw, 88px); }
.phead .back { display: inline-flex; margin-bottom: clamp(28px, 4vw, 56px); }
.phead h1 { font-size: clamp(2.5rem, 0.6rem + 8vw, 9.5rem); }
.phead .lead { margin-top: clamp(24px, 3vw, 40px); }
.pgrid { padding-bottom: clamp(88px, 12vw, 180px); }
.reels { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 48px var(--gap); }
.reels .reel { width: calc((100% - 3 * var(--gap)) / 4); }
.reels .reel:nth-child(4n+2) { margin-top: clamp(24px, 5vw, 80px); }
.reels .reel:nth-child(4n+4) { margin-top: clamp(12px, 2.5vw, 40px); }
.edits { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 56px var(--gap); }
.edits .edit { width: calc((100% - var(--gap)) / 2); }
.edits .edit:nth-child(2n) { margin-top: clamp(24px, 5vw, 80px); }
.gallery { columns: 3; column-gap: var(--gap); }
.gallery .shot { break-inside: avoid; margin-bottom: var(--gap); position: relative; overflow: hidden; border-radius: var(--r); }
.gallery .shot .slot { position: absolute; inset: 0; border-radius: 0; }
.gallery .r23 { aspect-ratio: 2 / 3; } .gallery .r54 { aspect-ratio: 5 / 4; } .gallery .r45 { aspect-ratio: 4 / 5; } .gallery .r11 { aspect-ratio: 1; } .gallery .r32 { aspect-ratio: 3 / 2; }
.gallery .slot img { transition: transform 700ms var(--ease-out); }
.gallery .shot:hover .slot img { transform: scale(1.04); }
.reel .slot video, .edit .slot video { transition: opacity 500ms ease; }
.next { display: block; padding-block: clamp(56px, 8vw, 120px); background: var(--panel); }
.next__in { display: grid; gap: 14px; }
.next__t { font-size: clamp(2rem, 0.8rem + 5.4vw, 6.5rem); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: color 200ms ease; }
.next__t span { transition: transform 350ms var(--ease-out); }
.next:hover .next__t { color: var(--accent-text); }
.next:hover .next__t span { transform: translateX(16px); }

/* ---------- Cursor "Ver" y ventana de ampliación ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0); }
.cursor span { display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.875rem; font-weight: 600; opacity: 0; transform: scale(0.4); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.cursor.is-on span { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { [data-cursor] .slot.has-media, [data-cursor].has-media { cursor: none; } }

.lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.lb::backdrop { background: rgba(0, 0, 0, 0.9); }
.lb__in { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.96); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.lb.is-open .lb__in { opacity: 1; transform: none; }
.lb__in video, .lb__in img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--r); background: #000; }
.lb__x { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, 0.12); font-size: 1.5rem; color: #fff; z-index: 2; transition: background-color 150ms ease; }
.lb__x:hover { background: var(--accent); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .about__text, .about__side { grid-column: 1 / 13; }
  .about__side { grid-template-columns: 1fr 1fr; margin-top: 40px; align-items: end; }
  .work__head h2, .work__head .side { grid-column: 1 / 13; }
  .work__head .side { margin-top: 24px; }
  .svc__txt, .svc > li:nth-child(even) .svc__txt { grid-column: 1 / 13; grid-row: 1; padding-left: 0; }
  .svc__img, .svc > li:nth-child(even) .svc__img { grid-column: 1 / 13; grid-row: 2; margin-top: 28px; }
  .stat { grid-column: span 6; }
    .gear { grid-column: 1 / 13; grid-row: auto; max-width: 380px; margin-bottom: 0; justify-self: center; }
  .proc__side { grid-column: 1 / 13; position: static; margin-bottom: 56px; }
  .proc__list { grid-column: 1 / 13; }
  .contact__head, .contact__card { grid-column: 1 / 13; }
  .contact__card { margin-top: 48px; }
  .reels { gap: 40px 16px; }
  .reels .reel { width: calc((100% - 16px) / 2); }
  .gallery { columns: 2; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  .top__nav { position: fixed; top: 80px; left: var(--pad); right: var(--pad); border-radius: 28px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 14px; background: rgba(20,20,22,.8); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .top__nav a { padding: 14px 0; color: #EEEAE4; }
  .top__nav .top__cta { background: none; padding: 14px 0; color: var(--accent-text); }
  .top.is-open { transform: none; }
  .top.is-open .top__nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .top__burger { display: block; }
  .hero__title { font-size: clamp(2rem, 10.6vw, 3.6rem); }
  .hero__photo { width: min(80vw, 360px); }
  .showreel { height: 200svh; }
  .showreel__frame { clip-path: inset(calc((1 - var(--p)) * 32svh) calc((1 - var(--p)) * 10vw) round calc((1 - var(--p)) * 6px)); }
  .hero__cta { flex-wrap: wrap; }
  .about__side { grid-template-columns: 1fr; }
  .about__photo { max-width: 70%; }
  .trio { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; width: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio .reel { flex: none; width: 68vw; scroll-snap-align: start; margin-top: 0 !important; }
  .stack-item { top: 84px !important; margin-bottom: 10svh; }
  .stack-card { width: 100%; }
  .photos3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .sel--1, .sel--2, .sel--3 { grid-column: 1; margin-top: 0; }
  .proc__list { padding-left: 32px; }
  .reels { gap: 32px 12px; }
  .reels .reel { width: calc((100% - 12px) / 2); }
  .reels .reel:nth-child(n) { margin-top: 0; }
  .edits .edit { width: 100%; }
  .edits .edit:nth-child(n) { margin-top: 0; }
  .gallery { columns: 1; }

  .contact__card { padding: 24px; }
}

/* ---------- Menos movimiento ---------- */
.reduce [data-reveal], .reduce [data-reveal="mask"] > * { opacity: 1; transform: none; clip-path: none; transition: none; }
.reduce .w > span { transform: none; transition: none; }
.reduce .lw { opacity: 1; filter: none; }
.reduce .showreel { height: 100svh; }
.reduce .showreel__frame { --p: 1; }
.reduce .marquee { overflow-x: auto; }
.reduce .marquee__track { animation: none; transform: none; }
.reduce .hero__scroll i::after { animation: none; }
.reduce .pstep { opacity: 1; }
.reduce .gear__in { animation: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }



/* ---------- Carrusel de fotos inclinado ---------- */
.tilt { grid-column: 1 / 8; grid-row: 2; align-self: end; margin-bottom: clamp(-60px, -3vw, -20px); transform: rotate(-6deg); transform-origin: 20% 80%; }
.tilt__view { overflow: hidden; padding-block: 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tilt__track { display: flex; width: max-content; animation: tiltSlide 46s linear infinite; }
.tilt__set { display: flex; gap: 18px; padding-right: 18px; }
.tilt__card { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--panel-2); flex: none; }
.tilt__card:nth-child(odd) { transform: translateY(-18px) rotate(-2deg); }
.tilt__card:nth-child(even) { transform: translateY(18px) rotate(2deg); }
.tilt__card { background: radial-gradient(ellipse 80% 55% at 50% 42%, rgba(255,255,255,.07), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.015) 60%), #0d0d0f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tilt__card img { position: absolute; inset: 9% 9% 17% 9%; width: 82%; height: 74%; object-fit: contain; filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent); mask-composite: intersect; }
.tilt__tag { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-size: .72rem; letter-spacing: .02em; color: #BDB8B0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tiltSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reduce .tilt__track { animation: none; }
@media (max-width: 1000px) { .tilt { grid-column: 1 / 13; grid-row: auto; margin-bottom: 0; transform: rotate(-4deg); } }

/* ---------- Efecto cristal sutil en marcos de foto y vídeo ---------- */
.glass { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(150deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 72%, rgba(255,255,255,.06) 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,.05), inset 0 -10px 22px -12px rgba(0,0,0,.35); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.6), rgba(255,255,255,.1) 38%, rgba(255,255,255,.05) 62%, rgba(255,255,255,.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------- Cámara por fotogramas que gira con el scroll ---------- */
.cam { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cam__view { position: relative; width: min(115vw, 150svh, 1500px); aspect-ratio: 16 / 9; will-change: transform, opacity; transform-origin: 50% 55%; }
.cam__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 62%, transparent 100%); }
@media (max-width: 720px) { .showreel { height: 260svh; } }
.reduce .top__logo .dot { animation: none; }
.showreel__stick > .rec { top: 88px; }

/* ---------- Negro puro con textura muy leve ---------- */
body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Luz blanca suave detrás de marcos y botones al pasar el ratón (solo en zonas oscuras) ---------- */
.slot:not(.paper .slot), .tilt__card, .showreel__frame, .hero__photo-in, .gear, .contact__card, .btn:not(.paper .btn), .top__cta {
  transition: box-shadow 380ms cubic-bezier(.23, 1, .32, 1), background-color 150ms ease, transform 160ms ease;
}
@media (hover: hover) {
  .slot:not(.paper .slot):hover, .tilt__card:hover, .showreel__frame:hover, .hero__photo-in:hover, .gear:hover, .contact__card:hover, .facts__panel:hover,
  .btn:not(.paper .btn):hover, .top__cta:hover {
    box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 44px 4px rgba(255,255,255,.13), 0 0 110px 14px rgba(255,255,255,.06);
  }
  .top:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 40px 2px rgba(255,255,255,.1); }
}

/* ---------- Fondo con diseño en las zonas oscuras ---------- */
.has-deco { position: relative; isolation: isolate; }
.bgdeco { --lx: max(calc(var(--pad) - 14px), calc((100vw - 1680px) / 2 + var(--pad) - 14px)); position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none; overflow: hidden; }
.bgdeco::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,.075), rgba(255,255,255,.075)) var(--lx) 0 / 1px 100% no-repeat, linear-gradient(rgba(255,255,255,.075), rgba(255,255,255,.075)) calc(100% - var(--lx)) 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.bgdeco i { position: absolute; width: min(56vw, 760px); height: min(36vw, 460px); max-height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,.4) 1px, transparent 1.4px) 0 0 / 15px 15px; }
.bgdeco b { position: absolute; width: min(110vw, 1100px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.11);
  background: radial-gradient(circle, rgba(255,255,255,.035), transparent 62%); }
.bgdeco[data-v="0"] i { left: 0; bottom: 4%; -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 68%); mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 68%); }
.bgdeco[data-v="0"] b { right: -34%; top: -22%; -webkit-mask-image: radial-gradient(circle at 30% 70%, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 30% 70%, #000 20%, transparent 72%); }
.bgdeco[data-v="1"] i { right: 0; top: 6%; -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%); }
.bgdeco[data-v="1"] b { left: -34%; bottom: -26%; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 72%); }
@media (max-width: 720px) { .bgdeco i { width: 80vw; height: 260px; } }

/* ---------- Vídeo de fondo de la portada + grano de película ---------- */
.hero__bg { position: absolute; inset: 0 0 -2px 0; z-index: -1; pointer-events: none; overflow: hidden; will-change: transform, opacity; opacity: 0; transition: opacity 1400ms cubic-bezier(.23, 1, .32, 1); }
.hero__bg.is-on { opacity: 1; }
.hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(.5) contrast(1.08) saturate(.8); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(0,0,0,.05), rgba(0,0,0,.5) 100%), linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.1) 30%, rgba(0,0,0,.25) 60%, #000 100%); }
.hero__grain { position: absolute; inset: -60px; z-index: 1; opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: filmGrain .7s steps(1) infinite; }
@keyframes filmGrain { 0% { transform: translate(0, 0); } 17% { transform: translate(-34px, 21px); } 33% { transform: translate(27px, -38px); } 50% { transform: translate(-19px, -26px); } 67% { transform: translate(40px, 30px); } 83% { transform: translate(-30px, 12px); } }
.reduce .hero__grain { animation: none; }

/* ---------- Pie de vídeo: marca, título y qué hice yo (glass) ---------- */
.cap { position: relative; display: grid; gap: 8px; margin-top: 14px; padding: 14px 16px 16px; border-radius: 18px; overflow: hidden; text-align: left; color: #EEEAE4;
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.025) 62%), rgba(22,22,25,.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px -18px rgba(0,0,0,.9);
  transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 520ms cubic-bezier(.23, 1, .32, 1), box-shadow 520ms cubic-bezier(.23, 1, .32, 1); }
.cap::before { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%); background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.17) 50%, transparent 64%); }
.cap__brand { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A8A39B; }
.cap__brand::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: recBlink 2.4s ease-in-out infinite; }
.cap__title { font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
.cap__role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.cap__role em { font-style: normal; font-size: .72rem; color: #8B867E; margin-right: 2px; }
.cap__role i { font-style: normal; font-size: .78rem; line-height: 1; padding: 6px 11px; border-radius: 999px; color: #E6E2DB; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
  opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), background-color 250ms ease; }
.cap.is-in .cap__role i { opacity: 1; transform: none; transition-delay: calc(var(--d, 0ms) + 220ms + var(--i) * 70ms); }
@media (hover: hover) {
  figure:hover > .cap, figure:hover .cap, .stack-card:hover .cap { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.3), 0 0 36px 2px rgba(255,255,255,.09), 0 18px 34px -18px rgba(0,0,0,.9); }
  figure:hover .cap::before, .stack-card:hover .cap::before { transform: translateX(120%); transition: transform 1000ms cubic-bezier(.23, 1, .32, 1); }
  figure:hover .cap__role i:hover, .stack-card:hover .cap__role i:hover { background: rgba(255,255,255,.14); }
}
.stack-card__bar { align-items: flex-end; justify-content: flex-start; padding: 56px 18px 18px; }
.stack-card__bar .cap { margin-top: 0; max-width: min(100%, 520px); background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 62%), rgba(14,14,16,.55); }
.reduce .cap__role i { opacity: 1; transform: none; transition: none; }
.reduce .cap__brand::before { animation: none; }

/* ---------- Fondo del pie: vídeo desenfocado con ondas de agua al pasar el ratón ---------- */
.foot__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #000 url("img/final-fondo.jpg") center / cover; }
.foot__bg video { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; }
.foot__bg canvas { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(5px) brightness(.55) saturate(.85); }
.foot__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0, rgba(0,0,0,.35) 30%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.7) 100%); }

/* Marcos sin vídeo: no se ven hasta que pongas su archivo en videos/ */
.is-empty { display: none !important; }
.empty-note { width: 100%; text-align: center; color: var(--muted); padding: clamp(40px, 8vw, 120px) 0; }
.svc__img video { object-position: 50% 22%; }

/* YouTube en bucle dentro de los marcos */
.slot[data-yt] { background: #000; }
.slot[data-yt] iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; transform: scale(1.14); }
.lb__in .lb__yt { width: min(92vw, 1280px); height: auto; aspect-ratio: 16 / 9; max-height: 88vh; border: 0; border-radius: var(--r); background: #000; }
