/* Atelier IA — portfolio. Negro-violeta profundo, un acento esmeralda, vídeo en grande y en movimiento. */

@font-face { font-family: "Clash Display"; src: url("fonts/clash-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("fonts/clash-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("fonts/clash-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #08070d;
  --bg-2: #0d0c15;
  --card: #12111b;
  --line: rgba(244, 242, 250, 0.09);
  --line-2: rgba(244, 242, 250, 0.17);
  --text: #f4f2fa;
  --muted: #aaa5bf;
  --dim: #7b7691;
  --accent: #3ee6a4;
  --accent-ink: #04170f;
  --glow: rgba(62, 230, 164, 0.3);
  --violet: 124, 92, 255;

  --c-drama: #ff8fa8;
  --c-anim3d: #ffbe5c;
  --c-motion: #62d2f0;
  --c-illus: #b9a6ff;
  --c-ugc: #3ee6a4;

  --display: "Clash Display", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --z-grain: 30;
  --z-nav: 40;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* grano: rompe lo plano del negro */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.07;
  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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .nav__name, .foot__name { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--spring), background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 250ms ease-out, color 200ms ease-out;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow); }
.btn--ghost { background: rgba(244, 242, 250, 0.05); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(244, 242, 250, 0.1); border-color: rgba(244, 242, 250, 0.34); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 56px; padding: 0 26px 0 14px; font-size: 1rem; }
.btn--ghost.btn--lg { padding: 0 26px; }
.btn--xl { height: 64px; padding: 0 30px; font-size: 1.0625rem; }
.btn__play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-ink); display: grid; place-items: center; flex: none; }
.btn__play svg { width: 11px; height: 11px; fill: var(--accent); margin-left: 2px; }

/* ---------- navegación flotante ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: var(--z-nav);
  width: min(1040px, calc(100vw - 32px));
  height: 60px;
  padding: 0 10px 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 12, 21, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(244, 242, 250, 0.07), 0 16px 44px rgba(4, 3, 10, 0.5);
}
.nav__name { margin-right: auto; font-size: 1.1875rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color 200ms ease-out; }
.nav__links a:hover { color: var(--text); }
.btn--nav { height: 40px; padding: 0 18px; font-size: 0.875rem; }

.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(244, 242, 250, 0.06); }
.lang button {
  height: 30px;
  min-width: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.lang button:hover { color: var(--text); }
.lang button:active { background: rgba(244, 242, 250, 0.14); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- inicio: muro de vídeos ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(100px, 14vh, 128px) var(--gutter) clamp(36px, 7vh, 72px);
}
.hero__glow {
  position: absolute;
  z-index: 0;
  top: -18%;
  right: -12%;
  width: 78vw;
  height: 78vw;
  max-width: 1300px;
  max-height: 1300px;
  background:
    radial-gradient(closest-side, rgba(var(--violet), 0.26), rgba(var(--violet), 0) 72%);
  pointer-events: none;
}
.hero__wall {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -9vw;
  width: min(1240px, 78vw);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__tilt {
  transform: perspective(1500px) rotateX(24deg) rotateY(-16deg) rotateZ(9deg) scale(1.16);
  transform-origin: 55% 50%;
  animation: wall-in 1400ms var(--ease) both;
}
.hero__video { display: block; }
.hero__video--desk { width: 100%; height: auto; aspect-ratio: 1360 / 1080; }
.hero__video--mob { display: none; }
.hero__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 7, 13, 0) 20%, rgba(8, 7, 13, 0) 72%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 7, 13, 0.92) 26%, rgba(8, 7, 13, 0.55) 46%, rgba(8, 7, 13, 0) 66%);
}
.hero__in { position: relative; z-index: 3; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero__in > * { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(244, 242, 250, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 700;
}
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2200ms ease-out infinite; }

.hero h1 {
  max-width: 800px;
  margin: 20px 0 20px;
  font-size: clamp(2.5rem, min(5.4vw, 9.6vh), 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }

.stats { display: flex; gap: clamp(24px, 3.4vw, 48px); margin-top: clamp(28px, 5.5vh, 56px); padding-top: clamp(20px, 3vh, 28px); border-top: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-size: clamp(1.75rem, 2.9vw, 2.625rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dt small { font-size: 0.5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stats dd { margin-top: 8px; color: var(--muted); font-size: 0.875rem; line-height: 1.3; }

/* entrada del inicio (sin depender de JS) */
.in { animation: rise 900ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wall-in { from { opacity: 0; transform: perspective(1500px) rotateX(30deg) rotateY(-20deg) rotateZ(12deg) scale(1.3); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- banda de formatos ---------- */

/* Grupos pequeños (menos de 2.048 px cada uno) que se desplazan todos un mismo periodo, y sin máscara: los fundidos
   son dos velos. En su Safari la versión anterior (una sola pista animada de ~11.000 px bajo una máscara) salía
   en blanco; la causa exacta no está confirmada, así que se quitan las dos sospechosas. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band::before, .band::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 12%; pointer-events: none; }
.band::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(8, 7, 13, 0)); }
.band::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(8, 7, 13, 0)); }
.band__track { display: flex; width: max-content; }
.band__group { display: flex; flex: none; align-items: center; gap: 40px; padding-right: 40px; animation: band var(--dur, 20s) linear infinite; }
.band__track span {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 250, 0.38);
}
.band__track span.is-solid { color: var(--text); -webkit-text-stroke: 0; }
.band__track i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes band { to { transform: translateX(var(--shift, -200%)); } }

/* ---------- secciones ---------- */

.sec { position: relative; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(88px, 11vw, 148px) var(--gutter); }
.sec--duo { padding-bottom: clamp(24px, 4vw, 56px); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.sec__head p { color: var(--muted); max-width: 50ch; }

.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(10px); transition: opacity 850ms var(--ease), transform 850ms var(--ease), filter 850ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

/* filtros */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, transform 200ms var(--spring);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--text); border-color: rgba(244, 242, 250, 0.36); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* rejilla de películas */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid.is-all { padding-bottom: 64px; }
.grid.is-all .card:nth-child(4n + 2), .grid.is-all .card:nth-child(4n + 4) { translate: 0 64px; }

.card {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 420ms var(--spring), box-shadow 350ms ease-out;
}
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity 280ms ease-out; }
.card.is-playing video { opacity: 1; }
.card__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 7, 13, 0) 48%, rgba(8, 7, 13, 0.92) 100%); pointer-events: none; }
.card__spot { position: absolute; inset: 0; z-index: 2; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 242, 250, 0.16), rgba(244, 242, 250, 0) 62%); transition: opacity 300ms ease-out; pointer-events: none; }
.card__ring { position: absolute; inset: 0; z-index: 3; border: 1px solid rgba(244, 242, 250, 0.11); border-radius: inherit; transition: border-color 300ms ease-out; pointer-events: none; }
.card__meta { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: 16px; }
.card__fmt { display: flex; align-items: center; gap: 7px; color: var(--c); font-size: 0.75rem; font-weight: 700; }
.card__fmt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.card__t { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(1.125rem, 1.7vw, 1.4375rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.card__d { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.card__play {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(8, 7, 13, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 250ms ease-out, border-color 250ms ease-out, transform 300ms var(--spring);
}
.card__play svg { width: 12px; height: 12px; fill: var(--text); margin-left: 2px; transition: fill 250ms ease-out; }
.card:hover, .card:focus-visible { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 70px rgba(4, 3, 10, 0.7), 0 0 44px rgba(62, 230, 164, 0.12); }
.card:hover .card__ring, .card:focus-visible .card__ring { border-color: rgba(62, 230, 164, 0.6); }
.card:hover .card__spot { opacity: 1; }
.card:hover .card__play, .card:focus-visible .card__play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.card:hover .card__play svg, .card:focus-visible .card__play svg { fill: var(--accent-ink); }
.card:active { transform: translateY(-4px) scale(0.99); }
.nojs { color: var(--muted); }

/* tarjeta de la bobina: última casilla de la rejilla (con 15 películas cierra la cuarta fila); banda ancha sólo en pantallas medias */
.card--reel img { opacity: 0.5; }
.card--reel .card__shade { background: linear-gradient(180deg, rgba(8, 7, 13, 0.3) 0%, rgba(8, 7, 13, 0.92) 100%); }
.card--reel .card__t { font-size: clamp(1.375rem, 2.05vw, 1.75rem); line-height: 1.04; letter-spacing: -0.02em; margin-top: 8px; }
.card--reel .card__d { margin-top: 6px; }
.card--reel .card__fmt { color: var(--accent); }
.card--reel .card__play { top: 36%; right: 50%; width: 72px; height: 72px; margin: -36px -36px 0 0; background: var(--accent); border-color: var(--accent); }
.card--reel .card__play svg { width: 26%; height: 26%; fill: var(--accent-ink); margin-left: 4%; }

/* un guion, dos direcciones */
.duo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.duo__text p { color: var(--muted); margin: 24px 0 32px; max-width: 46ch; }
.duo__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 4% 72px; }
.duo__card {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 36px 90px rgba(4, 3, 10, 0.75);
  transition: transform 520ms var(--spring), box-shadow 350ms ease-out;
}
.duo__card img, .duo__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo__card video { opacity: 0; transition: opacity 280ms ease-out; }
.duo__card.is-playing video { opacity: 1; }
.duo__card::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(244, 242, 250, 0.14); border-radius: inherit; pointer-events: none; }
.duo__card--a { z-index: 1; transform: rotate(-5deg) translateX(7%); }
.duo__card--b { z-index: 2; transform: rotate(4deg) translate(-7%, 52px); }
.duo__card:hover, .duo__card:focus-visible { z-index: 3; transform: rotate(0deg) scale(1.04); box-shadow: 0 40px 100px rgba(4, 3, 10, 0.8), 0 0 50px rgba(62, 230, 164, 0.14); }
.duo__tag {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* método */
.method { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method__head { position: sticky; top: 120px; }
.method__head p { color: var(--muted); margin-top: 24px; max-width: 38ch; }
.steps { position: relative; counter-reset: paso; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 22px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 22px; background: var(--line-2); }
.steps::after { height: calc((100% - 44px) * var(--prog, 0)); background: var(--accent); box-shadow: 0 0 18px var(--glow); }
.steps li { position: relative; z-index: 1; counter-increment: paso; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 24px; padding: 0 0 44px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(paso);
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color 400ms ease-out, color 400ms ease-out, border-color 400ms ease-out;
}
.steps li.is-on::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; padding-top: 8px; }
.steps p { color: var(--muted); margin-top: 8px; max-width: 56ch; }

/* perfil */
.state { font-family: var(--display); font-size: clamp(1.625rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.022em; max-width: 24em; }
.js .state span { opacity: 0.2; transition: opacity 350ms ease-out; }
.js .state span.is-on { opacity: 1; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 88px); }
.tile {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(244, 242, 250, 0.06), rgba(244, 242, 250, 0.02));
  box-shadow: inset 0 1px 0 rgba(244, 242, 250, 0.06);
  overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 230, 164, 0.13), rgba(62, 230, 164, 0) 60%); transition: opacity 300ms ease-out; }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 4; }
.tile__k { color: var(--dim); font-size: 0.8125rem; font-weight: 700; margin-bottom: 16px; }
.tile__big { font-family: var(--display); font-size: clamp(1.375rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.018em; max-width: 26em; }
.tile__v { font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.tile__ok { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--accent); font-size: 0.875rem; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: 0.875rem; font-weight: 500; line-height: 1.2; }

/* contacto */
.sec--contact { max-width: none; overflow: hidden; text-align: center; padding-top: clamp(112px, 14vw, 190px); padding-bottom: clamp(112px, 14vw, 190px); }
.contact__glow { position: absolute; left: 50%; bottom: -55%; width: min(1200px, 120vw); height: min(1200px, 120vw); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(62, 230, 164, 0.2), rgba(62, 230, 164, 0) 70%); pointer-events: none; }
.contact { position: relative; max-width: 980px; margin: 0 auto; }
.contact h2 { font-size: clamp(2.5rem, 7.4vw, 6.25rem); line-height: 0.98; letter-spacing: -0.04em; }
.contact p { color: var(--muted); margin: 24px auto 40px; max-width: 46ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__cta a { text-decoration: none; }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter) 44px; border-top: 1px solid var(--line); }
.foot__name { font-size: 1.125rem; margin-right: auto; }
.foot__small { color: var(--dim); font-size: 0.8125rem; max-width: 62ch; }

/* ---------- visor ---------- */

.vw {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.vw::backdrop { background: rgba(5, 4, 10, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.vw__in {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(280px, 380px);
  gap: 28px;
  justify-content: center;
  align-items: center;
  padding: 28px;
  overflow-y: auto;
}
.vw__video {
  width: min(440px, calc((100vh - 56px) * 0.5625));
  width: min(440px, calc((100dvh - 56px) * 0.5625));
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px rgba(2, 1, 6, 0.8), 0 0 0 1px rgba(244, 242, 250, 0.1);
}
.vw__video video { width: 100%; height: 100%; object-fit: cover; }
.vw__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 17, 27, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(244, 242, 250, 0.06);
}
.vw__meta h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); line-height: 1.02; }
.vw__desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.vw__meta > .btn { align-self: flex-start; }
.vw__nav { display: flex; gap: 8px; }
.vw__note { color: var(--dim); font-size: 0.8125rem; }
.fmt { display: flex; align-items: center; gap: 8px; color: var(--c, var(--muted)); font-size: 0.8125rem; font-weight: 700; }
.fmt__sw { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--dim)); }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--dim); font-size: 0.8125rem; font-weight: 500; }
.kv dd { font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vw__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(18, 17, 27, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: background-color 200ms ease-out, transform 220ms var(--spring);
}
.vw__close svg { width: 20px; height: 20px; }
.vw__close:hover { background: rgba(244, 242, 250, 0.16); transform: rotate(90deg); }
.vw__close:active { transform: rotate(90deg) scale(0.94); }
.vw[open] .vw__video, .vw[open] .vw__meta { animation: rise 520ms var(--ease) both; }
.vw[open] .vw__meta { animation-delay: 90ms; }

/* ---------- pantallas medias ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.is-all .card:nth-child(4n + 2), .grid.is-all .card:nth-child(4n + 4) { translate: none; }
  .grid.is-all .card:nth-child(3n + 2) { translate: 0 56px; }
  /* tres columnas: las 15 películas llenan cinco filas y la bobina ocupa una banda entera debajo */
  .card--reel { grid-column: span 3; aspect-ratio: auto; min-height: 260px; }
  .grid.is-all .card--reel { translate: none; margin-top: 56px; }
  .card--reel .card__shade { background: linear-gradient(90deg, rgba(8, 7, 13, 0.94) 0%, rgba(8, 7, 13, 0.6) 48%, rgba(8, 7, 13, 0.25) 100%); }
  .card--reel .card__meta { left: clamp(20px, 3vw, 44px); right: auto; bottom: 50%; transform: translateY(50%); max-width: min(30ch, 62%); }
  .card--reel .card__t { font-size: clamp(1.5rem, 3.1vw, 2.75rem); line-height: 1.02; letter-spacing: -0.025em; margin-top: 12px; }
  .card--reel .card__d { margin-top: 12px; font-size: 0.9375rem; }
  .card--reel .card__play { top: 50%; right: clamp(24px, 6vw, 96px); width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); margin: calc(clamp(64px, 7vw, 96px) / -2) 0 0 0; }
  .hero__wall { width: 92vw; right: -24vw; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
}

/* ---------- móvil ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav { top: 10px; width: calc(100vw - 20px); height: 54px; padding: 0 7px 0 18px; gap: 10px; }
  .nav__links { display: none; }
  .nav__name { font-size: 1.0625rem; }
  .lang button { min-width: 32px; padding: 0 6px; }
  .btn--nav { padding: 0 14px; }

  .hero { align-items: flex-end; padding: 96px var(--gutter) 40px; }
  .hero__wall, .hero__glow { display: none; }
  .hero__video--mob { display: block; position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
  .hero__shade { background: linear-gradient(180deg, rgba(8, 7, 13, 0.72) 0%, rgba(8, 7, 13, 0.42) 20%, rgba(8, 7, 13, 0.74) 50%, var(--bg) 88%); }
  .hero h1 { margin: 18px 0 16px; font-size: clamp(2.25rem, 10.6vw, 3.25rem); }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; margin-top: 36px; padding-top: 24px; }

  .band { padding: 18px 0; }
  .band__group { gap: 24px; padding-right: 24px; }
  .band__track i { width: 8px; height: 8px; }

  .sec__head { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid.is-all { padding-bottom: 36px; }
  .grid.is-all .card:nth-child(3n + 2) { translate: none; }
  .grid.is-all .card:nth-child(2n) { translate: 0 36px; }
  .card { border-radius: 18px; }
  .card__meta { left: 12px; right: 12px; bottom: 12px; }
  .card__play { top: 10px; right: 10px; width: 34px; height: 34px; }
  .card:hover, .card:focus-visible { transform: none; }
  .card--reel { grid-column: span 1; aspect-ratio: 9 / 16; height: auto; min-height: 0; }
  .grid.is-all .card--reel { translate: 0 36px; margin-top: 0; }
  .card--reel .card__shade { background: linear-gradient(180deg, rgba(8, 7, 13, 0.3) 0%, rgba(8, 7, 13, 0.92) 100%); }
  .card--reel .card__meta { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; }
  .card--reel .card__t { font-size: 1.25rem; margin-top: 6px; }
  .card--reel .card__d { margin-top: 4px; font-size: 0.8125rem; }
  .card--reel .card__play { top: 34%; right: 50%; margin: 0 -28px 0 0; width: 56px; height: 56px; }

  .duo, .method { grid-template-columns: 1fr; }
  .duo__cards { padding: 8px 2% 60px; }
  .method__head { position: static; }
  .steps li { column-gap: 16px; padding-bottom: 36px; }
  .steps h3 { font-size: 1.3125rem; }

  .bento { grid-template-columns: 1fr; margin-top: 44px; }
  .tile, .tile--wide { grid-column: auto; padding: 24px; border-radius: 22px; }

  .contact__cta { flex-direction: column; align-items: stretch; }
  .btn--xl { height: 58px; padding: 0 20px; font-size: 1rem; }
  .foot__name { width: 100%; }

  .vw__in { grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: center; gap: 16px; padding: 76px 16px 24px; }
  .vw__video { width: min(calc(100vw - 32px), calc((100vh - 330px) * 0.5625)); width: min(calc(100vw - 32px), calc((100dvh - 330px) * 0.5625)); border-radius: 20px; }
  .vw__meta { width: 100%; padding: 22px; border-radius: 20px; }
  .vw__close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .in, .hero__tilt, .vw[open] .vw__video, .vw[open] .vw__meta { animation: none; }
  .band__group { animation: none; }
  .pill__dot::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .state span { opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
