/* mejoras.css — Versión A · Agencia Nº 10
   Mejoras pedidas por David (2026-06-18): vídeos reales en home, visor modal,
   ficha a 2 columnas con paginación, fuente legible en "Sobre nosotros",
   botones de redes en Contacto. Reutiliza la paleta de styles.css (var(--...)). */

/* ===== 1. (Sobre nosotros mantiene la fuente original Bodoni Moda) ===== */

/* ===== 2. Disparador de vídeo (miniatura real) ===== */
.agn-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  font: inherit;
  color: inherit;
}
.agn-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Play = triángulo blanco SIN círculo; al hover, un poco más grande y rojo */
.agn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.agn-play svg { width: 46px; height: 46px; fill: #fff; filter: drop-shadow(0 2px 10px #0009); transition: fill .25s; }
.agn-trigger:hover .agn-play,
.agn-reel:hover .agn-play { transform: translate(-50%,-50%) scale(1.18); }
.agn-trigger:hover .agn-play svg,
.agn-reel:hover .agn-play svg { fill: var(--red); }
.agn-num {
  position: absolute;
  bottom: 10px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: #f5f2ea2e;
  pointer-events: none;
  user-select: none;
}
/* Cursor "cinta de cine" sobre miniaturas (guiño pedido en notas previas) */
.agn-poster .agn-trigger, .agn-reel .agn-trigger { cursor: pointer; }

/* Home: caption sobre el poster (proyecto + persona·perfil) */
.agn-reelcap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: linear-gradient(0deg, #080c0cd9, #0000);
  color: var(--cream);
  pointer-events: none;
}
.agn-reelcap span:first-child { font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.agn-reelcap span:last-child { font-size: 11px; color: #f5f2eab3; }
.agn-cardname { text-decoration: none; color: inherit; }
/* Talentos: subrayado rojo más pegado al nombre + nombre en rojo al pasar el ratón */
.TalentGrid-module__NQ0v9a__name { line-height: 1; background-position: 0 calc(100% - 1px); }
.TalentGrid-module__NQ0v9a__card:hover .TalentGrid-module__NQ0v9a__name,
.agn-cardname:hover .TalentGrid-module__NQ0v9a__name { color: var(--red); }

/* ===== 3. Visor modal de vídeo ===== */
.agn-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(.2,.7,.15,1); /* apertura estandarizada 1.5s */
}
.agn-modal[hidden] { display: none; }
.agn-modal.is-open { opacity: 1; }
.agn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #060a0af2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.agn-modal-dialog {
  position: relative;
  z-index: 1;
  transform: scale(.97);
  transition: transform 1.5s cubic-bezier(.2,.7,.15,1);
}
.agn-modal.is-open .agn-modal-dialog { transform: scale(1); }
/* El vídeo ocupa el 85% del alto de pantalla, sin deformar (16:9) */
.agn-modal-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  height: min(85vh, calc(92vw * 9 / 16));
  width: auto;
  background: #000;
  border: 1px solid #f5f2ea1a;
  overflow: hidden;
}
.agn-modal-frame { position: absolute; inset: 0; }
.agn-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* X DENTRO del vídeo, esquina superior derecha */
.agn-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 6;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #060a0a8c;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .25s;
}
.agn-modal-close:hover { background: var(--red); }
/* Título + persona/perfil, con más margen inferior, por encima de los controles */
.agn-modal-caption {
  position: absolute;
  left: 0; right: 0; bottom: 66px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 26px;
  color: var(--cream);
  pointer-events: none;
  text-shadow: 0 1px 12px #000a;
}
.agn-cap-project { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 28px); font-weight: 500; }
.agn-cap-person { font-size: 13px; color: #f5f2eacc; letter-spacing: .04em; text-transform: uppercase; }
/* Controles propios (los de Vimeo van ocultos con controls=0) */
.agn-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(0deg, #060a0aec, #0000);
}
.agn-ctrl {
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--cream); cursor: pointer;
  border-radius: 50%;
  transition: color .2s, transform .2s;
}
.agn-ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.agn-ctrl:hover { color: var(--red); transform: scale(1.08); }
.agn-time { flex: none; font-size: 12px; color: #f5f2eacc; font-variant-numeric: tabular-nums; min-width: 96px; text-align: center; }
.agn-seek {
  flex: 1;
  height: 4px;
  -webkit-appearance: none; appearance: none;
  background: #f5f2ea3d;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}
.agn-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; }
.agn-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; }
@media (max-width: 600px) {
  .agn-modal-caption { bottom: 58px; padding: 0 16px; }
  .agn-controls { padding: 10px 12px; gap: 8px; }
  .agn-time { min-width: 78px; font-size: 11px; }
}

/* ===== 4. Ficha a 2 columnas (compacta, centrada) ===== */
.agn-ficha2 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.agn-ficha2 .agn-ficha-left { position: sticky; top: 92px; }
/* aprovechar el ancho: el texto llena su 50% (sin el tope de 60ch) */
.agn-ficha2 .ficha-module__Zq846W__bio { max-width: none; margin-bottom: clamp(24px, 3vw, 36px); }
/* cabecera: nombre a la izquierda + foto cuadrada a la derecha */
.agn-fichahead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.agn-fichahead-txt { flex: 1; min-width: 0; }
.agn-ficha2 .ficha-module__Zq846W__name { font-size: clamp(30px, 4vw, 52px); }
.agn-avatar {
  flex: none;
  width: clamp(76px, 10vw, 104px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
/* tech más compacta en una sola columna dentro del 50% */
.agn-ficha2 .agn-tech { grid-template-columns: 1fr; margin-bottom: 0; }
.agn-ficha2 .agn-tech .ficha-module__Zq846W__techRow { padding: 12px 0; }
.agn-ficha-right .ficha-module__Zq846W__portfolioTitle { margin-bottom: 18px; }

.agn-reelgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.agn-reelgrid .agn-reel.is-hidden { display: none; }
.agn-reel { display: flex; flex-direction: column; }
.agn-reel-btn {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink) !important;
  overflow: hidden;
}
.agn-reel-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, #0000 44%, #ffffff0a 50%, #0000 56%);
  z-index: 1;
}
.agn-reel-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.agn-reel-project { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.agn-reel-role { font-size: 12px; color: var(--muted); }

/* Paginación */
.agn-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2.5vw, 28px);
}
.agn-pager:empty { display: none; }
.agn-pagebtn {
  font-family: var(--font-text);
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.agn-pagebtn:hover { border-color: var(--ink); }
.agn-pagebtn.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

@media (max-width: 860px) {
  .agn-ficha2 { grid-template-columns: 1fr; }
  .agn-ficha2 .agn-ficha-left { position: static; }
}

/* ===== 5. Botones de redes sociales (Contacto) ===== */
.agn-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.agn-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  transition: border-color .25s, background .25s, color .25s;
}
.agn-social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.agn-social-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============================================================
   RONDA 4 (David) — overrides
   ============================================================ */

/* 1. Fuente Fraunces en TODA la web (sustituye a Bodoni Moda como display) */
:root { --font-display: "Fraunces", "Bodoni Moda", serif; }

/* 2. Play de miniatura: un pelín más grande, blanco al 50%, rojo al 100% */
.agn-play svg { width: 54px; height: 54px; fill: #fff; opacity: .5; filter: drop-shadow(0 2px 10px #0009); transition: fill .25s, opacity .25s; }
.agn-trigger:hover .agn-play svg,
.agn-reel:hover .agn-play svg { fill: var(--red); opacity: 1; }

/* 4. Talentos: subrayado del nombre aún más pegado */
.TalentGrid-module__NQ0v9a__name { line-height: .84; background-position: 0 100%; }

/* 5. Ficha: sin 50/50 — datos a la izquierda, vídeos a la derecha, a todo el
   ancho con un margen lateral, bloque centrado horizontalmente */
.agn-ficha2 {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 56px);
  padding-right: clamp(16px, 3.5vw, 56px);
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(28px, 4vw, 64px);
}

/* 3. Visor: capa de clic (toggle), icono central, auto-ocultar y fullscreen */
.agn-clicklayer {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agn-center { pointer-events: none; opacity: .4; transition: opacity .25s; }
.agn-center svg { width: 84px; height: 84px; fill: #fff; filter: drop-shadow(0 2px 16px #000a); }
.agn-controls, .agn-modal-close, .agn-modal-caption, .agn-center { transition: opacity .3s; }
/* ratón quieto -> se ocultan los mandos y el cursor (estilo YouTube) */
.agn-modal-stage.agn-idle { cursor: none; }
.agn-modal-stage.agn-idle .agn-controls,
.agn-modal-stage.agn-idle .agn-modal-close,
.agn-modal-stage.agn-idle .agn-modal-caption,
.agn-modal-stage.agn-idle .agn-center { opacity: 0; pointer-events: none; }
/* pantalla completa: nuestro contenedor llena la pantalla y CONSERVA los mandos */
.agn-modal-stage:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border: 0; }
.agn-modal-stage:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border: 0; }

/* ============================================================
   RONDA 4b (David) — ficha: arreglar desbordamiento + vídeos más pequeños
   ============================================================ */
.agn-ficha2 {
  max-width: 1400px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-left: clamp(16px, 3vw, 44px);
  padding-right: clamp(16px, 3vw, 44px);
}
.agn-ficha-right { min-width: 0; }            /* evita que el grid se salga de la pantalla */
.agn-reelgrid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));  /* vídeos más pequeños y llenan el ancho */
  min-width: 0;
}
.agn-reel { min-width: 0; }

/* ============================================================
   RONDA 4c (David) — portfolio: 3 vídeos por fila × 2 filas (6/página), más grandes
   ============================================================ */
.agn-reelgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px)  { .agn-reelgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .agn-reelgrid { grid-template-columns: 1fr; } }

/* ============================================================
   RONDA 5 (Angel) — titular del hero en rojo + tira de carrete (negativo) en el hero
   ============================================================ */

/* Titular "Representamos talento audiovisual" TODO en rojo */
.Hero-module__ZARIfG__claim { color: var(--red); }

/* Tira de carrete de cine vertical, a la derecha del titular (solo escritorio) */
.agn-filmstrip {
  position: absolute;
  z-index: 4;
  top: 11vh;
  bottom: 17vh;
  right: clamp(24px, 5vw, 84px);
  width: clamp(168px, 15vw, 208px);
  background: transparent;        /* sin fondo: las perforaciones dejan ver el hero */
  overflow: hidden;
  filter: drop-shadow(0 20px 40px #0007);
  -webkit-mask-image: linear-gradient(180deg, #0000, #000 9%, #000 91%, #0000);
  mask-image: linear-gradient(180deg, #0000, #000 9%, #000 91%, #0000);
}
/* cuerpo rojo central (detrás de los fotogramas; los huecos entre ellos se ven rojos) */
.agn-film-body {
  position: absolute;
  left: 13px; right: 13px; top: 0; bottom: 0;
  z-index: 0;
  background: var(--red);
}
/* raíles laterales: rojo con perforaciones TRANSPARENTES (negativo real, sin crema) */
.agn-filmstrip::before,
.agn-filmstrip::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 13px; z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--red) 0 12px, transparent 12px 22px);
}
.agn-filmstrip::before { left: 0; }
.agn-filmstrip::after { right: 0; }
.agn-filmstrip-track {
  position: absolute;
  left: 13px; right: 13px; top: 0;
  z-index: 2;
  display: flex; flex-direction: column;
  padding: 0;
  animation: agn-roll 34s linear infinite;
}
.agn-filmstrip:hover .agn-filmstrip-track { animation-play-state: paused; }
@keyframes agn-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.agn-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;          /* el hueco entre fotogramas deja ver el rojo de la cinta */
  background: var(--ink);
  border: 0; padding: 0; cursor: pointer; display: block;
  box-shadow: inset 0 0 0 1px #0e141440;
  transition: outline-color .2s;
}
.agn-frame .agn-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agn-frame:hover { outline: 2px solid var(--cream); outline-offset: -2px; }
@media (max-width: 900px) { .agn-filmstrip { display: none; } }

/* ============================================================
   RONDA 6 (Angel) — cinta más ancha y perforaciones que se MUEVEN con los
   fotogramas (negativo real). Tamaño fijo para que el bucle case sin saltos:
   12 fotogramas (6×2) de 146px + 14px de hueco = celda 160px; media tira = 960px
   = 6 celdas = 30 periodos de perforación (32px) -> bucle perfecto.
   ============================================================ */
.agn-filmstrip {
  top: 10vh;
  bottom: 14vh;
  right: clamp(24px, 5vw, 90px);
  width: 300px;                 /* más ancha */
}
/* anular los raíles estáticos de la ronda 5 (ahora van dentro del track) */
.agn-filmstrip::before,
.agn-filmstrip::after { content: none; }
.agn-filmstrip-track {
  left: 0; right: 0;
  animation: agn-roll 30s linear infinite;
}
@keyframes agn-roll { from { transform: translateY(0); } to { transform: translateY(-960px); } }
.agn-film-center {            /* cuerpo rojo (detrás de fotogramas y huecos), se mueve con el track */
  position: absolute;
  left: 20px; right: 20px; top: 0; bottom: 0;
  z-index: 0;
  background: var(--red);
}
.agn-film-rail {              /* raíles: rojo con perforaciones TRANSPARENTES, se mueven con el track */
  position: absolute;
  top: 0; bottom: 0; width: 20px;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--red) 0 20px, transparent 20px 32px);
}
.agn-film-rail-l { left: 0; }
.agn-film-rail-r { right: 0; }
.agn-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 146px;              /* 260×146 ≈ 16:9 */
  aspect-ratio: auto;
  margin-bottom: 14px;        /* hueco rojo (lo aporta .agn-film-center por detrás) */
  padding: 0 20px;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
}
.agn-frame .agn-thumb { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   RONDA 7 (Angel) — carrete visto en ángulo oblicuo (3D), con canto/lateral rojo
   ============================================================ */
.agn-filmstrip {
  transform: perspective(1300px) rotateY(-28deg) rotateX(4deg);
  transform-origin: 100% 50%;
  /* "grosor" del carrete: capas rojas extruidas hacia el lateral (se ve el canto) */
  box-shadow:
    5px 0 0 #a81910,
    10px 0 0 #911510,
    16px 0 0 #79120b,
    22px 0 0 #610f09,
    30px 20px 50px #0009;
}

/* ============================================================
   RONDA 8 (Angel) — CARRETE 3D: la película curvada sobre el rollo
   (cilindro de fotogramas), vista en ángulo oblicuo y girando.
   14 fotogramas alrededor; h=136, R=300 -> película continua y curva.
   ============================================================ */
.agn-reel-scene {
  position: absolute;
  top: 6vh; bottom: 8vh;
  right: clamp(8px, 4vw, 64px);
  width: 300px;
  z-index: 4;
  perspective: 1100px;
}
.agn-reel {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(-8deg);   /* ángulo oblicuo: se ve el lateral */
}
.agn-reel-film {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  animation: agn-roll 42s linear infinite;       /* la cinta corre sobre el carrete */
}
.agn-reel-scene:hover .agn-reel-film { animation-play-state: paused; }
@keyframes agn-roll { from { transform: rotateX(0deg); } to { transform: rotateX(360deg); } }

.agn-reel-film .agn-frame {
  position: absolute;
  width: 230px; height: 136px;
  left: -115px; top: -68px;                      /* centra el fotograma en el eje */
  transform: rotateX(calc(var(--i) * 25.714deg)) translateZ(300px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--red);                         /* base de la película (rojo) */
  border: 0; padding: 0; margin: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px #00000026;
  aspect-ratio: auto;
}
/* ventana del fotograma (deja borde rojo arriba/abajo y raíles a los lados) */
.agn-reel-film .agn-frame-img {
  position: absolute;
  inset: 0; margin: 13px 18px;
  overflow: hidden;
  background: #000;
}
.agn-reel-film .agn-frame-img .agn-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* perforaciones a ambos lados (rojo + agujeros en rojo oscuro), se mueven con el fotograma */
.agn-reel-film .agn-frame::before,
.agn-reel-film .agn-frame::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 18px;
  background: repeating-linear-gradient(180deg, var(--red) 0 11px, #5a0e08 11px 18px);
}
.agn-reel-film .agn-frame::before { left: 0; }
.agn-reel-film .agn-frame::after { right: 0; }
/* (disco lateral del carrete: reservado para siguiente iteración) */
.agn-reel-flange { display: none; }

@media (max-width: 900px) { .agn-reel-scene { display: none; } }

/* ============================================================
   RONDA 9 (Angel) — VINTAGE · Fase 1: atmósfera global (grano + viñeta + flicker)
   Overlays fijos, no interactivos, por debajo del visor modal.
   ============================================================ */
/* Viñeta: esquinas oscurecidas (proyección antigua) */
html::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 40; pointer-events: none;
  background:
    radial-gradient(125% 125% at 50% 42%, #0000 58%, #0e14141a 80%, #0e14143b 100%);
  mix-blend-mode: multiply;
}
/* Grano de película animado ("boil") */
body::after {
  content: "";
  position: fixed; inset: -40px;
  z-index: 41; pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: agn-grain .6s steps(4) infinite;
}
@keyframes agn-grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6px, 4px); }
  50%  { transform: translate(5px, -5px); }
  75%  { transform: translate(-4px, -3px); }
  100% { transform: translate(4px, 5px); }
}
/* Parpadeo de proyector (oscurecimientos breves e irregulares) */
html::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 42; pointer-events: none;
  background: #0a0f0f;
  opacity: 0;
  animation: agn-flicker 7s steps(1) infinite;
}
@keyframes agn-flicker {
  0%, 12%, 40%, 41%, 70%, 100% { opacity: 0; }
  12.5% { opacity: .06; }
  40.5% { opacity: .05; }
  70.5% { opacity: .07; }
  85%   { opacity: 0; }
  85.5% { opacity: .04; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, html::after { animation: none; }
}

/* ============================================================
   RONDA 10 (Angel) — VINTAGE · Fase 2: intro tipo "leader" de cine (solo home)
   Cuenta atrás 3·2·1 con cruz, círculo y barrido; se va a los 3,2 s.
   ============================================================ */
.agn-leader {
  position: fixed; inset: 0;
  z-index: 1200;
  background: #0a0f0f;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  pointer-events: none;
  animation: agn-leader-out .6s ease 3.2s forwards;
}
/* cruz/retícula a pantalla completa */
.agn-leader-cross::before,
.agn-leader-cross::after {
  content: ""; position: absolute; background: #f5f2ea24;
}
.agn-leader-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.agn-leader-cross::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
/* círculo + barrido tipo radar */
.agn-leader-dial {
  position: relative;
  width: min(62vh, 62vw); height: min(62vh, 62vw);
  border: 1px solid #f5f2ea3d; border-radius: 50%;
  box-shadow: 0 0 0 1px #0a0f0f, inset 0 0 80px #0006;
}
.agn-leader-dial::before {     /* círculo interior */
  content: ""; position: absolute; inset: 14%;
  border: 1px solid #f5f2ea26; border-radius: 50%;
}
.agn-leader-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #e2261755, #e2261700 26%, #0000 100%);
  animation: agn-sweep 1s linear infinite;
}
@keyframes agn-sweep { to { transform: rotate(360deg); } }
/* números de la cuenta atrás */
.agn-leader-nums span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Fraunces", "Bodoni Moda", serif;
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 500; color: var(--cream);
  opacity: 0;
}
.agn-leader-nums span:nth-child(1) { animation: agn-num 1s ease 0s both; }
.agn-leader-nums span:nth-child(2) { animation: agn-num 1s ease 1s both; }
.agn-leader-nums span:nth-child(3) { animation: agn-num 1s ease 2s both; }
@keyframes agn-num {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
}
.agn-leader-label {
  position: absolute; bottom: 8%;
  letter-spacing: .34em; text-transform: uppercase;
  font-size: 11px; color: #f5f2ea7a;
}
@keyframes agn-leader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .agn-leader { display: none; } }

/* ============================================================
   RONDA 11 (Angel) — light-leak SOLO en la intro (leader) + grano sutil
   ============================================================ */
.agn-leader-leak {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .8;
  mix-blend-mode: screen;     /* el negro del clip desaparece; solo quedan los destellos */
  pointer-events: none;
}
.agn-leader-cross, .agn-leader-dial, .agn-leader-nums, .agn-leader-label { z-index: 1; }
.agn-leader-dial { z-index: 1; }

/* ============================================================
   RONDA 12 (Angel) — el light-leak de la intro: círculo centrado, bordes difuminados
   ============================================================ */
.agn-leader-leak {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(78vh, 78vw);
  height: min(78vh, 78vw);
  object-fit: cover;
  border-radius: 50%;
  opacity: .9;
  mix-blend-mode: screen;
  /* máscara radial: nítido en el centro, difuminado y transparente en el borde */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, #0006 55%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, #0006 55%, transparent 72%);
}

/* ============================================================
   RONDA 13 (Angel) — la intro arranca con el ACOLCHADO TURQUESA de fondo (no negro)
   ============================================================ */
.agn-leader {
  background: #2f8f8a url("hero-bg.jpg") center / cover no-repeat;
}
/* leve oscurecido para que la cuenta atrás y la cruz contrasten sobre el turquesa */
.agn-leader::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 120% at 50% 45%, #08141433 0%, #08141480 100%);
  pointer-events: none;
}

/* ============================================================
   RONDA 14 (Angel) — quitar el parpadeo global (molestaba)
   ============================================================ */
html::after { display: none !important; animation: none !important; }

/* ============================================================
   RONDA 15 (Angel) — continuidad: la intro NO pinta su propio turquesa;
   deja ver el acolchado del hero por debajo -> sin corte al terminar la cuenta atrás.
   Solo queda un velo oscuro que se desvanece con la cuenta atrás.
   ============================================================ */
.agn-leader { background: transparent !important; }
.agn-leader::before {
  background: radial-gradient(120% 120% at 50% 45%, #0814141a 0%, #08141461 100%);
}

/* ============================================================
   RONDA 16 (Angel) — durante la cuenta atrás SOLO se ve el acolchado + la cuenta atrás.
   La intro pinta el mismo hero-bg con idéntica escala/ken-burns (en fase) -> tapa el
   contenido pero sin corte al terminar.
   ============================================================ */
.agn-leader-bg-stage {
  position: absolute; inset: -40px;
  z-index: 0; overflow: hidden;
}
.agn-leader-bg {
  position: absolute; inset: 0;
  background: #2f8f8a url("hero-bg.jpg") center / cover no-repeat;
  transform-origin: 52% 48%;
  will-change: transform;
  animation: 32s ease-in-out infinite alternate Hero-module__ZARIfG__kenburns;
}
/* capas por encima del fondo */
.agn-leader-leak { z-index: 1; }
.agn-leader::before { z-index: 1; }
.agn-leader-cross, .agn-leader-dial, .agn-leader-nums, .agn-leader-label { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .agn-leader-bg { animation: none; } }

/* ============================================================
   RONDA 17 (Angel) — VINTAGE · Fase 3
   (a) Visor de vídeo estilo monitor CRT  (b) discos del carrete
   ============================================================ */

/* (a) CRT: scanlines + viñeta de tubo + fogonazo de encendido. El vídeo sigue nítido. */
.agn-modal-stage { border-radius: 12px; }
.agn-modal-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  pointer-events: none; border-radius: 12px;
  background:
    repeating-linear-gradient(to bottom, #0000 0 2px, #00000022 2px 3px),
    radial-gradient(135% 135% at 50% 50%, #0000 58%, #000000a8 100%);
  opacity: .55;
}
.agn-modal-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 4;
  pointer-events: none; background: #fff; opacity: 0;
}
.agn-modal.is-open .agn-modal-stage::before { animation: agn-crt-on .55s ease forwards; }
@keyframes agn-crt-on {
  0% { opacity: 0; }
  6% { opacity: .8; }
  16% { opacity: .06; }
  32% { opacity: .22; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .agn-modal.is-open .agn-modal-stage::before { animation: none; }
}

/* (b) Disco/tapa del carrete (bobina roja) en el lateral del cilindro */
.agn-reel-flange {
  display: block;
  position: absolute; top: 50%; left: 50%;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  transform: translateX(-152px) rotateY(90deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #0814140a 0 8%, #5a0e08 8% 12%, #c81d12 12% 82%, #7d130b 82% 92%, #4f0c07 92% 100%);
  box-shadow: 0 18px 50px #0008;
}
.agn-reel-flange::before {   /* radios de la bobina */
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  background: repeating-conic-gradient(#0e141426 0 5deg, #0000 5deg 36deg);
}
.agn-reel-flange::after {     /* eje central */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16%; height: 16%; margin: -8% 0 0 -8%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0805 0 55%, #7d130b 56% 100%);
}

/* ============================================================
   RONDA 18 — el disco salía de canto (invisible) y recargaba; se deja el carrete
   curvo solo (que se ve bien). Disco aparcado.
   ============================================================ */
.agn-reel-flange { display: none !important; }

/* ============================================================
   RONDA 19 (Angel) — DISCO/RUEDA de la bobina, de cara, tumbado y girando
   ============================================================ */
.agn-reel-disc {
  position: absolute;
  top: 0%; left: 50%;
  width: 244px; height: 244px;
  transform: translateX(-50%) rotateX(44deg);
  transform-style: preserve-3d;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #08141400 0 13%, #5a0e08 13% 18%, #c81d12 18% 83%, #7d130b 83% 92%, #4f0c07 92% 100%);
  box-shadow: 0 26px 50px #0007;
  z-index: 1;
  animation: agn-disc-spin 9s linear infinite;
}
.agn-reel-disc::before {   /* radios / huecos de la bobina */
  content: ""; position: absolute; inset: 18%;
  border-radius: 50%;
  background: repeating-conic-gradient(#0e141438 0 9deg, #0000 9deg 60deg);
}
.agn-reel-disc::after {    /* eje central */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 18%; height: 18%; margin: -9% 0 0 -9%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0805 0 52%, #7d130b 53% 100%);
}
@keyframes agn-disc-spin { to { transform: translateX(-50%) rotateX(44deg) rotateZ(360deg); } }
@media (prefers-reduced-motion: reduce) { .agn-reel-disc { animation: none; } }

/* ============================================================
   RONDA 20 (Angel) — la bobina rellena el hueco cóncavo de la cinta:
   disco de cara, centrado, DETRÁS de la cinta, mismo tamaño que la curva.
   ============================================================ */
.agn-reel-disc {
  top: 50% !important; left: 50% !important;
  width: 400px !important; height: 400px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 0 !important;             /* detrás de la cinta */
  animation: agn-disc-spin-flat 12s linear infinite !important;
}
@keyframes agn-disc-spin-flat { to { transform: translate(-50%, -50%) rotateZ(360deg); } }

/* ============================================================
   RONDA 21 (Angel) — CARRETE = bobina real: anillo de fotogramas + disco rojo
   rellenando el centro (mismo tamaño que el hueco). Gira EN SENTIDO ANTIHORARIO.
   Sustituye al cilindro de rondas anteriores.
   ============================================================ */
.agn-reel-scene {
  position: absolute;
  top: 12vh; bottom: auto;
  right: clamp(8px, 4vw, 70px);
  width: 460px; height: 460px;
  z-index: 4;
  perspective: 1100px;
}
.agn-reel {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(16deg);
  animation: agn-reel-spin 30s linear infinite;   /* antihorario */
}
.agn-reel-scene:hover .agn-reel { animation-play-state: paused; }
@keyframes agn-reel-spin { to { transform: rotateX(16deg) rotateZ(-360deg); } }

/* disco rojo que rellena el hueco central de la bobina */
.agn-reel-disc {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #08141400 0 11%, #5a0e08 11% 15%, #c81d12 15% 86%, #7d130b 86% 93%, #4f0c07 93% 100%);
  box-shadow: 0 26px 60px #0007, inset 0 0 60px #0004;
  z-index: 0;
  transform: none; animation: none;
}
.agn-reel-disc::before {   /* radios / huecos de la bobina */
  content: ""; position: absolute; inset: 16%;
  border-radius: 50%;
  background: repeating-conic-gradient(#0e141440 0 8deg, #0000 8deg 60deg);
}
.agn-reel-disc::after {    /* eje central */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15%; height: 15%; margin: -7.5% 0 0 -7.5%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0805 0 52%, #7d130b 53% 100%);
}

/* fotogramas distribuidos en anillo (la película enrollada en la bobina) */
.agn-reel-film { position: absolute; inset: 0; transform-style: preserve-3d; z-index: 1; }
.agn-reel-film .agn-frame {
  position: absolute; top: 50%; left: 50%;
  width: 150px; height: 86px;
  margin: -43px 0 0 -75px;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-188px);
  background: var(--red);
  border: 0; padding: 0; cursor: pointer; display: block;
  box-shadow: inset 0 0 0 1px #00000026;
  aspect-ratio: auto;
}
.agn-reel-film .agn-frame-img { position: absolute; inset: 0; margin: 8px 14px; overflow: hidden; background: #000; }
.agn-reel-film .agn-frame-img .agn-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agn-reel-film .agn-frame::before,
.agn-reel-film .agn-frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background: repeating-linear-gradient(180deg, var(--red) 0 8px, #5a0e08 8px 13px);
}
.agn-reel-film .agn-frame::before { left: 0; }
.agn-reel-film .agn-frame::after { right: 0; }
@media (prefers-reduced-motion: reduce) { .agn-reel { animation: none; } }
@media (max-width: 900px) { .agn-reel-scene { display: none; } }

/* RONDA 22 — fix: el anillo de fotogramas comparte centro con el disco
   (anula restos width:0/height:0 del cilindro anterior) */
.agn-reel-film { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; }

/* RONDA 23 — oculto el carrete CSS (cutre) mientras integramos el carrete 3D realista (Higgsfield) */
.agn-reel-scene { display: none !important; }

/* ============================================================
   RONDA 24 (Angel) — carrete 3D REALISTA (imagen Higgsfield) girando antihorario
   ============================================================ */
.agn-reel-scene {
  display: block !important;
  position: absolute;
  top: 9vh; bottom: auto;
  right: clamp(-30px, 1vw, 30px);
  width: clamp(300px, 30vw, 440px);
  height: auto;
  z-index: 4;
  pointer-events: none;
}
.agn-reel-img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 50px #0006);
  animation: agn-reel-rot 26s linear infinite;   /* antihorario */
}
.agn-reel-scene:hover .agn-reel-img { animation-play-state: paused; }
@keyframes agn-reel-rot { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .agn-reel-img { animation: none; } }
@media (max-width: 900px) { .agn-reel-scene { display: none !important; } }

/* ============================================================
   RONDA 25 (Angel) — carrete en POSICIÓN OBLICUA (inclinado en 3D) y girando
   ============================================================ */
.agn-reel-scene { perspective: 1200px; }
.agn-reel-tilt {
  transform: rotateX(38deg) rotateY(20deg) rotateZ(-8deg);
  transform-style: preserve-3d;
}
.agn-reel-img { filter: drop-shadow(0 36px 46px #0007); }

/* ============================================================
   RONDA 26 — Hero editorial premium: fuera el carrete-pegatina de la esquina.
   ============================================================ */
.agn-reel-scene { display: none !important; }

/* ============================================================
   RONDA 27 — Hero editorial premium: titular con presencia + profundidad
   ============================================================ */
/* velo diagonal para dar profundidad y que el texto respire sobre el acolchado */
.Hero-module__ZARIfG__hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(72deg, #06121299 0%, #0612125c 26%, #0000 50%);
}
.Hero-module__ZARIfG__center { z-index: 5; max-width: 720px; padding-bottom: 6vh; }
.Hero-module__ZARIfG__claim {
  font-size: clamp(46px, 7.2vw, 112px);
  line-height: .94;
  letter-spacing: -.018em;
  max-width: 16ch;
  text-shadow: 0 4px 40px #06121266;
}
.Hero-module__ZARIfG__sub { max-width: 42ch; opacity: .94; }
/* kicker editorial sobre el titular */
.Hero-module__ZARIfG__center::before {
  content: "Representación de talento audiovisual";
  display: block;
  font-family: var(--font-text);
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
  margin-bottom: 20px;
}

/* ============================================================
   RONDA 28 (Angel) — velo UNIFORME en todo el hero (baja el brillo del acolchado por igual)
   ============================================================ */
.Hero-module__ZARIfG__hero::after {
  background: #0812125c !important;   /* veil uniforme en todo el acolchado */
}

/* ============================================================
   RONDA 29 (cliente) — fondo = acolchado turquesa EXACTO del cliente + sin velo oscuro
   (el color debe coincidir con su referencia; el velo lo apagaba)
   ============================================================ */
.Hero-module__ZARIfG__hero::after { background: transparent !important; }
/* un toque mínimo de profundidad SOLO abajo, sin alterar el color del acolchado */
.Hero-module__ZARIfG__veil { background: linear-gradient(0deg, #06121233 0%, #0000 30%) !important; }

/* ============================================================
   RONDA 30 — color del acolchado intacto (cliente) + legibilidad del titular:
   velo SOLO localizado abajo-izquierda (donde va el texto), el resto color real.
   ============================================================ */
.Hero-module__ZARIfG__veil {
  background: radial-gradient(135% 105% at 18% 92%, #061212b3 0%, #0612123d 30%, #0000 56%) !important;
}

/* ============================================================
   RONDA 31 — HERO: tira de película 35 mm en ROJO de la paleta (realista)
   Perforaciones, número de fotograma, thumbnails reales, oblicua y en bucle.
   ============================================================ */
.agn-reel-scene {
  display: block !important;
  position: absolute;
  top: -6vh; bottom: -6vh;
  right: clamp(20px, 7vw, 130px);
  width: 230px;
  z-index: 4;
  overflow: hidden;
  perspective: 1400px;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(180deg, #0000, #000 12%, #000 88%, #0000);
  mask-image: linear-gradient(180deg, #0000, #000 12%, #000 88%, #0000);
}
.agn-strip-wrap {
  position: absolute; inset: 0;
  transform: rotate(8deg) scale(1.12);
  transform-origin: center;
}
.agn-strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; gap: 0;
  padding: 0 20px;                         /* raíles laterales para perforaciones */
  background:
    /* perforaciones: huecos crema en los raíles, repetidos */
    repeating-linear-gradient(180deg, #f5f2ea 0 9px, #0000 9px 24px) left  / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, #f5f2ea 0 9px, #0000 9px 24px) right / 12px 100% no-repeat,
    var(--red);                            /* base de película = rojo de la paleta */
  animation: agn-run 26s linear infinite;  /* la película corre */
}
.agn-reel-scene:hover .agn-strip { animation-play-state: paused; }
@keyframes agn-run { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.agn-cell {
  position: relative;
  display: block; width: 100%;
  margin: 0 0 10px;                        /* separación = base roja entre fotogramas */
  padding: 0; border: 0; background: none; cursor: pointer;
}
.agn-gate {
  display: block; position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0f0f;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #00000040;
}
.agn-gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agn-gate::after {                         /* leve grano/viñeta del fotograma */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 50%, #0000 60%, #0008 100%);
}
.agn-edge {
  position: absolute; right: 4px; bottom: 3px;
  font-family: var(--font-text); font-size: 8px; letter-spacing: .12em;
  color: #f5f2eacc; opacity: .8;
  z-index: 2;
}
.agn-cell:hover .agn-gate { box-shadow: inset 0 0 0 2px var(--cream); }
@media (prefers-reduced-motion: reduce) { .agn-strip { animation: none; } }
@media (max-width: 900px) { .agn-reel-scene { display: none !important; } }

/* ============================================================
   RONDA 32 — la tira se difumina arriba/abajo y termina por ENCIMA de los botones
   ============================================================ */
.agn-reel-scene {
  top: -2vh !important;
  bottom: 19vh !important;     /* deja libres los enlaces de disciplina de abajo */
  -webkit-mask-image: linear-gradient(180deg, #0000 0%, #000 13%, #000 78%, #0000 100%) !important;
  mask-image: linear-gradient(180deg, #0000 0%, #000 13%, #000 78%, #0000 100%) !important;
}

/* ============================================================
   RONDA 33 — el contenedor (campo de visión) más ancho que la cinta, para que la
   tira oblicua no se recorte por los lados. Cinta estrecha y centrada dentro.
   ============================================================ */
.agn-reel-scene { width: 380px !important; right: clamp(0px, 4vw, 70px) !important; }
.agn-strip-wrap {
  inset: auto !important;
  top: 0 !important; bottom: 0 !important;
  left: 50% !important; right: auto !important;
  width: 232px !important;
  transform: translateX(-50%) rotate(8deg) scale(1.04) !important;
  transform-origin: center !important;
}

/* ============================================================
   RONDA 34 — la tira arranca por debajo del menú y se difumina antes de llegar a él
   ============================================================ */
.agn-reel-scene {
  top: 9vh !important;
  bottom: 18vh !important;
  -webkit-mask-image: linear-gradient(180deg, #0000 0%, #000 18%, #000 80%, #0000 100%) !important;
  mask-image: linear-gradient(180deg, #0000 0%, #000 18%, #000 80%, #0000 100%) !important;
}

/* RONDA 35 — la tira llega un poco más abajo (sin tocar los botones) */
.agn-reel-scene { bottom: 12vh !important; }

/* ============================================================
   RONDA 36 — perforaciones TRANSPARENTES (se ve el acolchado a través), no blancas.
   Rojo solo en el centro (content-box); raíles = dientes rojos + huecos transparentes.
   ============================================================ */
.agn-strip {
  background: var(--red) !important;
  background-clip: content-box !important;
  -webkit-background-clip: content-box !important;
}
.agn-strip::before, .agn-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 20px; z-index: 0;
  background: repeating-linear-gradient(180deg, var(--red) 0 14px, transparent 14px 24px);
}
.agn-strip::before { left: 0; }
.agn-strip::after { right: 0; }
.agn-cell { z-index: 1; }

/* RONDA 37 — cinta más ancha (reels más grandes), manteniendo aire para la oblicua */
.agn-reel-scene { width: 480px !important; right: clamp(0px, 3vw, 56px) !important; }
.agn-strip-wrap { width: 300px !important; }

/* ============================================================
   RONDA 38 — perforaciones REALISTAS: agujeros redondeados (transparentes) con
   película roja alrededor, como un 35 mm de verdad. Máscara SVG.
   ============================================================ */
.agn-strip::before, .agn-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 0;
  background: var(--red) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26'%3E%3Crect width='22' height='26' fill='white'/%3E%3Crect x='6' y='6' width='10' height='13' rx='3.2' fill='black'/%3E%3C/svg%3E") 0 0 / 22px 26px repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26'%3E%3Crect width='22' height='26' fill='white'/%3E%3Crect x='6' y='6' width='10' height='13' rx='3.2' fill='black'/%3E%3C/svg%3E") 0 0 / 22px 26px repeat-y;
}
.agn-strip::before { left: 0; }
.agn-strip::after { right: 0; }
/* un poco más de padding para que el centro rojo no pise las perforaciones */
.agn-strip { padding: 0 22px !important; }

/* ============================================================
   RONDA 39 — perforaciones FIABLES con máscara radial (longhand). Agujeros ovalados
   transparentes regulares en los raíles rojos.
   ============================================================ */
.agn-strip::before, .agn-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 0;
  background: var(--red) !important;
  -webkit-mask-image: radial-gradient(ellipse 6px 7.5px at 11px 13px, #0000 0 56%, #000 62%);
  mask-image: radial-gradient(ellipse 6px 7.5px at 11px 13px, #0000 0 56%, #000 62%);
  -webkit-mask-size: 22px 26px; mask-size: 22px 26px;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
  -webkit-mask-position: center top; mask-position: center top;
}
.agn-strip::before { left: 0 !important; }
.agn-strip::after { right: 0 !important; }

/* ============================================================
   RONDA 40 — perforaciones RECTANGULARES con esquinas ligeramente redondeadas
   (forma real de negativo 35 mm), más grandes. Máscara SVG en longhand.
   ============================================================ */
.agn-strip::before, .agn-strip::after {
  width: 24px !important;
  background: var(--red) !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32'%3E%3Crect width='24' height='32' fill='white'/%3E%3Crect x='5.5' y='6' width='13' height='20' rx='2.5' ry='2.5' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32'%3E%3Crect width='24' height='32' fill='white'/%3E%3Crect x='5.5' y='6' width='13' height='20' rx='2.5' ry='2.5' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px 32px; mask-size: 24px 32px;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
  -webkit-mask-position: center top; mask-position: center top;
}
.agn-strip { padding: 0 24px !important; }

/* RONDA 41 — la máscara SVG por LUMINANCIA (negro = agujero) para perforar de verdad */
.agn-strip::before, .agn-strip::after {
  -webkit-mask-mode: luminance; mask-mode: luminance;
  -webkit-mask-type: luminance;
}

/* RONDA 42 — cinta aún más ancha: los vídeos toman protagonismo */
.agn-reel-scene { width: 600px !important; right: clamp(-10px, 2vw, 36px) !important; }
.agn-strip-wrap { width: 392px !important; }

/* RONDA 43 — la cinta corre en sentido contrario y más despacio */
.agn-strip {
  animation-duration: 40s !important;
  animation-direction: reverse !important;
}

/* RONDA 44 — cinta VERTICAL (sin inclinación) y contenedor ajustado a su ancho */
.agn-strip-wrap { transform: translateX(-50%) rotate(0deg) scale(1) !important; }
.agn-reel-scene { width: 430px !important; right: clamp(6px, 3vw, 48px) !important; }

/* RONDA 45 — cinta vertical aún más ancha: máximo protagonismo a los reels */
.agn-reel-scene { width: 540px !important; right: clamp(0px, 2vw, 30px) !important; }
.agn-strip-wrap { width: 480px !important; }

/* ============================================================
   RONDA 46 — GRID de talento: cada reel como FOTOGRAMA de película 35 mm roja
   (perforaciones arriba/abajo, vídeo en el cuadro, número). Coherente con el hero.
   ============================================================ */
.TalentGrid-module__NQ0v9a__poster.agn-poster {
  position: relative;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 3px;
  overflow: hidden;
  padding: 16px 0;                 /* raíles arriba/abajo para perforaciones */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Crect x='5' y='3' width='12' height='10' rx='2.5' fill='%23f5f2ea'/%3E%3C/svg%3E") repeat-x top / 22px 16px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Crect x='5' y='3' width='12' height='10' rx='2.5' fill='%23f5f2ea'/%3E%3C/svg%3E") repeat-x bottom / 22px 16px,
    var(--red);
}
.agn-poster.agn-poster::before { display: none; }   /* fuera el brillo del poster original */
.agn-poster .TalentGrid-module__NQ0v9a__tag,
.agn-poster .agn-reelcap { display: none; }         /* limpio: solo cuadro + play + nº */
.agn-poster .agn-poster-btn {
  position: relative; display: block;
  width: 100%; height: auto !important;
  aspect-ratio: 16 / 9;
  background: #0a0f0f;
  overflow: hidden;
}
.agn-poster .agn-poster-btn .agn-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agn-poster .agn-num { bottom: 6px; right: 10px; font-size: clamp(28px, 4vw, 52px); }

/* RONDA 47 — más protagonismo a la tira del hero: aún más ancha (reels más grandes) */
.agn-reel-scene { width: 660px !important; right: clamp(-20px, 1vw, 18px) !important; }
.agn-strip-wrap { width: 580px !important; }

/* RONDA 48 — hover del nombre de talento: nombre TURQUESA + subrayado ROJO */
.TalentGrid-module__NQ0v9a__card:hover .TalentGrid-module__NQ0v9a__name,
.agn-cardname:hover .TalentGrid-module__NQ0v9a__name {
  color: var(--turquoise) !important;
}

/* RONDA 49 — fuente un poco más grande en los botones de sección de la home */
.Hero-module__ZARIfG__disc { font-size: clamp(13px, 1.75vw, 22px) !important; }
.Header-module__hBw1pG__nav a { font-size: 14px !important; }

/* RONDA 50 — fuente más pequeña en las disciplinas del hero (que quepa el bilingüe) */
.Hero-module__ZARIfG__disc { font-size: clamp(10px, 1.15vw, 15px) !important; }
@media (max-width: 600px) {
  .Hero-module__ZARIfG__disc { gap: 4px 10px !important; font-size: 10.5px !important; }
  .Hero-module__ZARIfG__disc a { padding: 0 6px !important; }
}

/* RONDA 51 — en móvil, disciplinas apiladas en vertical (una por línea), sin separadores */
@media (max-width: 600px) {
  .Hero-module__ZARIfG__disc { flex-direction: column !important; align-items: flex-start !important; gap: 7px !important; }
  .Hero-module__ZARIfG__disc .Hero-module__ZARIfG__sep { display: none !important; }
  .Hero-module__ZARIfG__disc a { padding: 0 !important; }
}

/* RONDA 52 — móvil: que la línea larga de disciplinas entre completa */
@media (max-width: 600px) {
  .Hero-module__ZARIfG__disc { font-size: 9.5px !important; }
  .Hero-module__ZARIfG__disc a { letter-spacing: .03em !important; line-height: 1.35; overflow-wrap: anywhere; }
}

/* RONDA 53 — móvil: cada disciplina ocupa el ancho y la línea larga envuelve dentro */
@media (max-width: 600px) {
  .Hero-module__ZARIfG__disc { align-items: stretch !important; }
  .Hero-module__ZARIfG__disc a { width: 100% !important; white-space: normal !important; }
}

/* RONDA 54 — móvil: forzar que la línea larga envuelva (sin desbordar) */
@media (max-width: 600px) {
  .Hero-module__ZARIfG__disc a { display: block !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  .Hero-module__ZARIfG__hero { overflow-x: hidden; }
}

/* RONDA 55 — móvil: menú superior más compacto para que no se salga */
@media (max-width: 600px) {
  .Header-module__hBw1pG__nav { gap: 9px !important; }
  .Header-module__hBw1pG__nav a { font-size: 8.5px !important; letter-spacing: .08em !important; }
  .Header-module__hBw1pG__logo { font-size: 18px !important; }
}

/* ============================================================
   RONDA 56 — menú HAMBURGUESA en móvil (el menú bilingüe se colapsa en ☰)
   ============================================================ */
.agn-navtoggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.agn-burger { display: none; }
@media (max-width: 760px) {
  .agn-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 30px; cursor: pointer; z-index: 60;
  }
  .agn-burger span { display: block; width: 26px; height: 2px; background: var(--red); transition: transform .25s, opacity .2s; }
  .Header-module__hBw1pG__nav {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 22px var(--pad) 26px;
    background: #0a1414f5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid #f5f2ea1f;
  }
  .agn-navtoggle:checked ~ .Header-module__hBw1pG__nav { display: flex !important; }
  .Header-module__hBw1pG__nav a { color: var(--cream) !important; opacity: 1 !important; font-size: 13px !important; letter-spacing: .18em !important; }
  .agn-navtoggle:checked ~ .agn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .agn-navtoggle:checked ~ .agn-burger span:nth-child(2) { opacity: 0; }
  .agn-navtoggle:checked ~ .agn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   RONDA 57 — MÓVIL: tira de película HORIZONTAL arriba del título (reels pasando)
   + menú en fila pequeña (descartado el hamburguesa).
   ============================================================ */
.agn-hscene { display: none; }
@media (max-width: 900px) {
  .agn-hscene {
    display: block;
    position: absolute; top: 15vh; left: 0; right: 0; height: 116px;
    overflow: hidden; z-index: 4; pointer-events: auto;
    -webkit-mask-image: linear-gradient(90deg, #0000, #000 9%, #000 91%, #0000);
    mask-image: linear-gradient(90deg, #0000, #000 9%, #000 91%, #0000);
  }
  .agn-hstrip {
    position: absolute; top: 0; left: 0; height: 116px;
    display: flex; flex-direction: row; align-items: stretch;
    padding: 14px 0; box-sizing: border-box;
    background: var(--red); background-clip: content-box; -webkit-background-clip: content-box;
    animation: agn-hrun 40s linear infinite;
  }
  @keyframes agn-hrun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .agn-hscene:active .agn-hstrip { animation-play-state: paused; }
  .agn-hstrip::before, .agn-hstrip::after {
    content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 0;
    background: var(--red);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14'%3E%3Crect width='30' height='14' fill='white'/%3E%3Crect x='8' y='4' width='14' height='7' rx='2.2' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14'%3E%3Crect width='30' height='14' fill='white'/%3E%3Crect x='8' y='4' width='14' height='7' rx='2.2' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 30px 14px; mask-size: 30px 14px;
    -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
    -webkit-mask-mode: luminance; mask-mode: luminance;
  }
  .agn-hstrip::before { top: 0; }
  .agn-hstrip::after { bottom: 0; }
  .agn-hstrip .agn-cell { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 16 / 9; width: auto; margin: 0 8px 0 0; display: block; }
  .agn-hstrip .agn-gate { height: 100%; width: auto; aspect-ratio: 16 / 9; }
}
/* menú móvil: fila pequeña bajo el logo (sin hamburguesa) */
@media (max-width: 760px) {
  .agn-burger { display: none !important; }
  .Header-module__hBw1pG__top { flex-wrap: wrap; row-gap: 7px; }
  .Header-module__hBw1pG__nav {
    display: flex !important; position: static !important; width: 100%;
    flex-direction: row !important; flex-wrap: wrap; align-items: center !important;
    gap: 7px 14px; padding: 0 !important; background: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important;
  }
  .Header-module__hBw1pG__nav a { font-size: 9.5px !important; letter-spacing: .1em !important; }
}

/* ============================================================
   RONDA 58 — restaurar el menú HAMBURGUESA en móvil (anula la fila de la ronda 57)
   ============================================================ */
@media (max-width: 760px) {
  .agn-burger { display: flex !important; }
  .Header-module__hBw1pG__top { flex-wrap: nowrap !important; }
  .Header-module__hBw1pG__nav {
    display: none !important;
    position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; width: auto !important;
    flex-direction: column !important; align-items: flex-start !important; gap: 16px !important;
    padding: 22px var(--pad) 26px !important;
    background: #0a1414f5 !important; -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #f5f2ea1f !important;
  }
  .agn-navtoggle:checked ~ .Header-module__hBw1pG__nav { display: flex !important; }
  .Header-module__hBw1pG__nav a { color: var(--cream) !important; font-size: 13px !important; letter-spacing: .18em !important; }
}
