/* ==========================================================
   Copa Ciudad de La Plata · Desafío 2026
   ========================================================== */

@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-medium-oblique.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-extrabold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Integral CF'; src: url('../fonts/integralcf-heavy.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Black Signature'; src: url('../fonts/black-signature.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --navy: #0d0e4c;
  --navy-2: #040528;
  --navy-3: #010314;
  --crema: #f8f1e0;
  --crema-2: #fcf7e6;
  --degrade: linear-gradient(90deg, #f9af00 0%, #f8ac01 33%, #f7a407 50%, #f69710 65%, #f4831e 77%, #f16a2f 88%, #ed4c44 98%, #ed454a 100%);
  --degrade-diag: linear-gradient(135deg, #f9af00 0%, #f7a407 40%, #f4831e 70%, #ed454a 100%);
  --margen: clamp(16px, 4vw, 60px);
  --ancho: min(1426px, 100% - 2 * var(--margen));
  --radio: clamp(18px, 1.85vw, 35px);
  --fuente: 'Integral CF', 'Arial Black', Arial, sans-serif;
  --firma: 'Black Signature', 'Brush Script MT', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--crema-2);
  font-family: var(--fuente);
  font-weight: 400;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.contenedor { width: var(--ancho); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Encabezado ---------- */
/* Fijo arriba; al bajar se compacta (clase .encabezado--compacto desde main.js) */
:root { --alto-encabezado: clamp(72px, 11vw, 212px); }
body { padding-top: var(--alto-encabezado); }
.encabezado {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  transition: background-color .45s ease, box-shadow .45s ease;
}
.encabezado::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--degrade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.encabezado--compacto {
  background: rgba(13, 14, 76, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(1, 3, 20, .35);
}
.encabezado--compacto::after { transform: scaleX(1); }
.encabezado__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 2.1vw, 40px) clamp(16px, 2.86vw, 55px);
  min-height: var(--alto-encabezado);
  transition: min-height .45s cubic-bezier(.2, .8, .2, 1), padding .45s cubic-bezier(.2, .8, .2, 1);
}
.encabezado__logo { flex: none; width: clamp(150px, 18.5vw, 356px); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.encabezado--compacto .encabezado__fila { min-height: clamp(60px, 4.6vw, 88px); padding-block: 8px; }
.encabezado--compacto .encabezado__logo { width: clamp(120px, 9vw, 176px); }
.encabezado__logo img { width: 100%; height: auto; }

.menu { display: flex; align-items: center; gap: clamp(22px, 3.3vw, 64px); }
.menu__lista { display: flex; align-items: center; gap: clamp(22px, 3.3vw, 64px); list-style: none; margin: 0; padding: 0; }
.menu a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(11px, .885vw, 17px);
  letter-spacing: .01em;
  white-space: nowrap;
  padding-block: 6px;
  background: var(--degrade) left bottom / 0 3px no-repeat;
  transition: background-size .25s ease;
}
.menu__lista a:hover, .menu__lista a:focus-visible, .menu__lista a[aria-current="page"] { background-size: 100% 3px; }
.menu__instagram { display: inline-flex; padding: 4px !important; background: none !important; }
.menu__instagram svg { width: clamp(20px, 1.5vw, 28px); height: auto; transition: transform .2s ease; }
.menu__instagram:hover svg { transform: scale(1.12); }

.menu-boton {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--crema-2);
}
.menu-boton span { display: block; width: 26px; height: 3px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-abierto .menu-boton span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-abierto .menu-boton span:nth-child(2) { opacity: 0; }
.menu-abierto .menu-boton span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-boton { display: block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 16px 24px;
    border-bottom: 4px solid #f4831e;
    display: none;
  }
  .menu-abierto .menu { display: flex; }
  .menu__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__lista li { border-bottom: 1px solid rgba(252, 247, 230, .12); }
  .menu__lista a { display: block; padding: 16px 4px; font-size: 16px; background: none; }
  .menu__lista a[aria-current="page"] { color: #f7a407; }
  .menu__instagram { align-self: flex-start; margin-top: 16px; }
  .menu__instagram svg { width: 28px; }
}

/* ---------- Portada ---------- */
.portada { background: var(--crema); position: relative; }
.portada::after { content: ""; display: block; height: clamp(3px, .35vw, 7px); background: var(--degrade); }
.portada__lienzo { position: relative; max-width: 1920px; margin: 0 auto; aspect-ratio: 1920 / 854; }
.portada__escena { position: absolute; left: 19.79%; top: .94%; width: 57.81%; aspect-ratio: 1110 / 830; }
.portada__escena > * { position: absolute; }
.portada__desafio { left: 21.8%; top: 1.08%; width: 62.07%; }
.portada__anio { left: 20.99%; top: 12.53%; width: 62.52%; }
.portada__jugadores { left: 1.53%; top: 22.05%; width: 96.86%; height: auto; }
.portada__nombres { left: 18.56%; top: 91.8%; width: 65.5%; display: flex; justify-content: space-between; align-items: flex-start; }
.portada__nombres img:nth-child(1) { width: 18.98%; }
.portada__nombres img:nth-child(2) { width: 21.05%; }
.portada__nombres img:nth-child(3) { width: 19.67%; }
.portada__nombres img:nth-child(4) { width: 21.32%; }
.portada__fecha { position: absolute; left: 7.14%; top: 59.6%; width: 13.75%; }
.portada__club { position: absolute; left: 79.43%; top: 53.98%; width: 13.44%; }
.portada__datos { display: contents; }

@media (max-width: 720px) {
  .portada__lienzo { aspect-ratio: auto; padding: 18px 12px 22px; }
  .portada__escena { position: relative; left: auto; top: auto; width: 100%; }
  .portada__datos { display: flex; align-items: center; justify-content: space-around; gap: 16px; margin-top: 26px; }
  .portada__fecha, .portada__club { position: static; }
  .portada__fecha { width: 42%; max-width: 200px; }
  .portada__club { width: 30%; max-width: 150px; }
}

/* ---------- Bienvenida + tarjetas ---------- */
.bienvenida { padding: clamp(36px, 3.6vw, 69px) 0 0; }
.titulo-seccion {
  margin: 0 0 clamp(26px, 4.6vw, 88px);
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(19px, 2.94vw, 56.5px);
  line-height: 1.15;
}
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3.8%, 54px); }
.tarjeta {
  position: relative;
  aspect-ratio: 437 / 545;
  border-radius: var(--radio);
  overflow: hidden;
  isolation: isolate;
}
.tarjeta > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tarjeta:hover > img:first-child { transform: scale(1.04); }
.tarjeta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(1, 3, 20, .35), rgba(1, 3, 20, 0) 70%); z-index: 1; }
.tarjeta__texto { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 65%; height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.tarjeta__texto--fiesta { width: 64.3%; }
.tarjeta__texto svg { width: 100%; height: auto; overflow: visible; }

@media (max-width: 720px) {
  .tarjetas { grid-template-columns: 1fr; }
  .tarjeta { aspect-ratio: 4 / 3; }
  .tarjeta__texto { width: 62%; max-width: 300px; }
}

/* ---------- Barra de entradas ---------- */
.barra-entradas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 8vw, 150px);
  margin-top: clamp(24px, 3.25vw, 62px);
  min-height: clamp(56px, 5.2vw, 100px);
  padding: 12px clamp(20px, 3vw, 48px);
  background: var(--crema);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.barra-entradas:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(249, 175, 0, .25); }
.barra-entradas img:nth-child(1) { width: clamp(120px, 17.1vw, 329px); }
.barra-entradas img:nth-child(3) { width: clamp(170px, 24.9vw, 479px); }
/* Ticket de PlateaUno: más alto que la barra, apenas inclinado */
.barra-entradas__ticket {
  width: clamp(100px, 11vw, 210px);
  margin-block: clamp(-34px, -1.8vw, -14px);
  margin-inline: clamp(-60px, -4vw, -6px);
  rotate: -6deg;
  filter: drop-shadow(0 6px 10px rgba(1, 3, 20, .3));
  transition: rotate .3s cubic-bezier(.2, .9, .3, 1.4), scale .3s cubic-bezier(.2, .9, .3, 1.4);
}
.barra-entradas:hover .barra-entradas__ticket { rotate: 2deg; scale: 1.08; }

@media (max-width: 560px) {
  .barra-entradas { flex-direction: column; gap: 10px; border-radius: 28px; padding: 18px 20px; }
  .barra-entradas img:nth-child(1) { width: 52%; }
  .barra-entradas img:nth-child(3) { width: 82%; }
  .barra-entradas__ticket { width: 42%; margin: 2px 0; }
}

/* ---------- Video + tarjeta Desafío ---------- */
.bloque-video { position: relative; margin-top: clamp(20px, 2.4vw, 46px); aspect-ratio: 1426 / 545; }
.bloque-video__medio {
  position: absolute;
  inset: 0 auto 0 0;
  width: 65.64%;
  border-radius: var(--radio);
  overflow: hidden;
  background: #1a1b5c;
}
.bloque-video__medio video, .bloque-video__medio img { width: 100%; height: 100%; object-fit: cover; }
.desafio-tarjeta {
  position: absolute;
  inset: 0 0 0 auto;
  width: 40.74%;
  container-type: inline-size;
  border-radius: var(--radio);
  background: var(--degrade-diag);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: -12px 0 40px rgba(1, 3, 20, .25);
}
.desafio-tarjeta__firma { font-family: var(--firma); font-weight: 400; line-height: .9; letter-spacing: -.02em; }
.desafio-tarjeta__desafio { color: var(--navy); font-size: 20.6cqw; transform: translateX(-2cqw); }
.desafio-tarjeta__grande {
  color: var(--crema-2);
  font-weight: 800;
  font-size: 14.1cqw;
  line-height: .8;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-top: 1cqw;
}
.desafio-tarjeta__anio { color: var(--navy); font-size: 8.6cqw; letter-spacing: .02em; margin-top: 1.2cqw; line-height: 1; }
.desafio-tarjeta__preparate { color: var(--crema-2); font-size: 13.65cqw; margin-top: 2.5cqw; transform: translateX(-1cqw); }

@media (max-width: 720px) {
  .bloque-video { aspect-ratio: auto; display: flex; flex-direction: column; }
  .bloque-video__medio, .desafio-tarjeta { position: relative; inset: auto; width: 100%; }
  .bloque-video__medio { aspect-ratio: 16 / 10; }
  .desafio-tarjeta { margin-top: -28px; padding: 30px 20px 34px; }
  .desafio-tarjeta__desafio { font-size: 16cqw; }
  .desafio-tarjeta__grande { font-size: 12cqw; }
  .desafio-tarjeta__anio { font-size: 7.5cqw; }
  .desafio-tarjeta__preparate { font-size: 11.5cqw; }
}

.direccion {
  margin: 0;
  padding: clamp(24px, 2.6vw, 50px) 0 clamp(26px, 2.75vw, 53px);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(12px, 1.74vw, 33.4px);
  line-height: 1.5;
}
.direccion span { white-space: nowrap; }

/* ---------- Mapa ---------- */
.mapa-franja { position: relative; display: block; height: clamp(220px, 24.3vw, 467px); overflow: hidden; isolation: isolate; }
.mapa-franja img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.mapa-franja::before { content: ""; position: absolute; inset: 0; background: var(--navy-2); mix-blend-mode: color; z-index: 1; }
.mapa-franja__boton {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--crema-2);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(13px, 1.1vw, 20px);
  box-shadow: 0 12px 30px rgba(1, 3, 20, .35);
  transition: transform .2s ease;
}
.mapa-franja:hover .mapa-franja__boton { transform: translate(-50%, -50%) scale(1.05); }
.mapa-franja__pin { width: 18px; height: 18px; flex: none; }

/* ---------- Sponsors ---------- */
.sponsors { background: var(--navy-2); padding: clamp(32px, 2vw, 38px) 0 clamp(40px, 4vw, 72px); }
/* Tres niveles: principales (centrados, separados), medianos y chicos (a todo el ancho) */
.sponsors__principales {
  display: grid;
  grid-template-columns: 12.3% 42.4% 10.4%;
  justify-content: center;
  align-items: center;
  column-gap: 7.5%;
}
.sponsor-hospital svg { width: 100%; height: auto; }
.sponsor-energia {
  margin: 0;
  border: 2px solid var(--crema);
  padding: clamp(10px, 1.5vw, 26px) clamp(14px, 3vw, 58px) clamp(14px, 2vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 60px);
  min-width: 0;
}
.sponsor-energia legend {
  padding: 0 clamp(8px, 1vw, 16px);
  margin-inline: auto;
  text-transform: uppercase;
  font-size: clamp(10px, 1.31vw, 25.2px);
  letter-spacing: .02em;
  color: var(--crema);
}
.sponsor-energia__divisor { width: 3px; align-self: stretch; background: var(--crema); }
.sponsor-energia img { width: 100%; height: auto; }
.sponsor-lpcapital img { width: 100%; height: auto; }

.sponsors__medianos, .sponsors__chicos { display: flex; align-items: center; justify-content: space-between; }
.sponsors__medianos { margin-top: clamp(48px, 5vw, 96px); }
.sponsors__chicos { margin-top: clamp(40px, 4.2vw, 80px); }
.sponsors__medianos img, .sponsors__chicos img { width: calc(var(--w) * 1%); height: auto; }

@media (max-width: 900px) {
  .sponsors__principales { grid-template-columns: 1fr 1fr; justify-items: center; gap: 32px 24px; }
  .sponsor-energia { grid-column: 1 / -1; order: -1; width: 100%; }
  .sponsor-hospital { width: min(200px, 80%); }
  .sponsor-lpcapital { width: min(140px, 60%); }
  .sponsors__principales { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .sponsors__medianos, .sponsors__chicos { flex-wrap: wrap; justify-content: space-around; row-gap: 28px; column-gap: 20px; }
  .sponsors__medianos img { width: calc(var(--w) * 2.6%); }
  .sponsors__chicos img { width: calc(var(--w) * 3.2%); }
}

/* ---------- Pie ---------- */
.pie { background: var(--navy-3); }
.pie__fila {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: clamp(70px, 5.8vw, 111px);
  padding: 18px clamp(16px, 4.2vw, 81px);
  text-transform: uppercase;
  font-size: clamp(9px, .79vw, 15.2px);
}
.pie__fila p { margin: 0; }
.pie__maui { width: clamp(40px, 3.2vw, 61px); }
.pie__maui svg { width: 100%; height: auto; }
.pie__tanque { justify-self: end; }
.pie__tanque a { text-decoration: none; }
.pie__tanque a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .pie__fila { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 16px; }
  .pie__maui { order: -1; width: 48px; }
  .pie__tanque { justify-self: center; }
}

/* ==========================================================
   Páginas internas
   ========================================================== */
.pagina { padding: clamp(40px, 5vw, 96px) 0 clamp(56px, 6vw, 120px); min-height: 55vh; }
.pagina__titulo {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 86px);
  line-height: 1;
}
.pagina__titulo .firma { display: block; font-family: var(--firma); font-weight: 400; text-transform: none; color: #f7a407; font-size: .8em; line-height: 1.1; letter-spacing: -.02em; }
.pagina__bajada { margin: 0 0 clamp(28px, 3.5vw, 56px); max-width: 60ch; text-transform: uppercase; font-size: clamp(13px, 1.1vw, 20px); line-height: 1.6; color: rgba(252, 247, 230, .8); }
.pagina__linea { height: 4px; width: 120px; background: var(--degrade); border: 0; margin: 0 0 clamp(24px, 3vw, 44px); }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--degrade-diag);
  color: var(--navy);
  font-family: var(--fuente);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 18px);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249, 175, 0, .3); }
.boton--claro { background: var(--crema); }

.proximamente {
  border: 1px dashed rgba(252, 247, 230, .3);
  border-radius: var(--radio);
  padding: clamp(28px, 4vw, 64px);
  text-align: center;
  text-transform: uppercase;
  color: rgba(252, 247, 230, .75);
  font-size: clamp(12px, 1vw, 18px);
  line-height: 1.7;
}
.proximamente strong { display: block; color: var(--crema-2); font-size: 1.5em; margin-bottom: 8px; font-weight: 700; }

/* Cómo llegar */
.mapa-google { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radio); overflow: hidden; background: #1a1b5c; }
.mapa-google { isolation: isolate; }
.mapa-google iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Mismo tono azul que la franja del mapa en el inicio; no bloquea los clics */
.mapa-google::after { content: ""; position: absolute; inset: 0; background: var(--navy-2); mix-blend-mode: color; pointer-events: none; z-index: 1; }
.mapa-acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 clamp(48px, 6vw, 110px); }
.mapa-acciones p { margin: 0; text-transform: uppercase; font-size: clamp(12px, 1.1vw, 20px); line-height: 1.5; }
.subtitulo { margin: 0 0 20px; text-transform: uppercase; font-weight: 700; font-size: clamp(20px, 2vw, 38px); }
@media (max-width: 720px) { .mapa-google { aspect-ratio: 4 / 5; } }

/* Contacto */
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 980px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: rgba(252, 247, 230, .85); }
.campo input, .campo textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--crema);
  color: var(--navy);
  font: 500 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo textarea { min-height: 180px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: #f4831e; box-shadow: 0 0 0 4px rgba(244, 131, 30, .25); }
.formulario__trampa { position: absolute; left: -9999px; }
.formulario__pie { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.formulario__nota { margin: 0; font: 400 14px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: rgba(252, 247, 230, .7); }
.aviso { max-width: 980px; margin: 0 0 28px; padding: 18px 22px; border-radius: 14px; font: 500 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.aviso--ok { background: rgba(70, 190, 120, .16); border: 1px solid rgba(70, 190, 120, .6); }
.aviso--error { background: rgba(237, 69, 74, .16); border: 1px solid rgba(237, 69, 74, .7); }
@media (max-width: 640px) { .formulario { grid-template-columns: 1fr; } }

/* Cronograma */
.cronograma { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.dia {
  position: relative;
  border-radius: var(--radio);
  background: rgba(252, 247, 230, .04);
  border: 1px solid rgba(252, 247, 230, .12);
  padding: clamp(24px, 3vw, 52px);
}
.dia--principal { background: linear-gradient(rgba(13, 14, 76, .92), rgba(13, 14, 76, .92)) padding-box, var(--degrade-diag) border-box; border: 2px solid transparent; }
.dia__cabecera { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: clamp(22px, 2.6vw, 44px); }
.dia__nombre { font-family: var(--firma); color: #f7a407; font-size: clamp(42px, 4.4vw, 84px); line-height: .9; letter-spacing: -.02em; }
.dia__fecha { font-weight: 800; font-size: clamp(34px, 3.4vw, 64px); line-height: 1; text-transform: uppercase; }
.dia__fecha span { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dia__lista { list-style: none; margin: 0; padding: 0 0 0 clamp(22px, 2vw, 34px); position: relative; }
.dia__lista::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(#f9af00, #ed454a); opacity: .55; border-radius: 2px; }
.actividad { position: relative; padding: 0 0 clamp(18px, 1.8vw, 28px); }
.actividad:last-child { padding-bottom: 0; }
.actividad::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(22px, 2vw, 34px));
  top: .35em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #f7a407;
}
.actividad--partido::before, .actividad--destacada::before { background: var(--degrade-diag); border-color: transparent; box-shadow: 0 0 0 4px rgba(247, 164, 7, .18); }
.actividad h2 { margin: 0; font-weight: 700; font-size: clamp(15px, 1.15vw, 22px); line-height: 1.3; text-transform: uppercase; letter-spacing: .01em; }
.actividad p { margin: 6px 0 0; font-size: clamp(11px, .8vw, 15px); line-height: 1.6; text-transform: uppercase; color: rgba(252, 247, 230, .7); }
.actividad__etiqueta {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px 3px;
  border-radius: 999px;
  background: rgba(247, 164, 7, .14);
  color: #f9af00;
  font-size: clamp(9px, .62vw, 12px);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.partido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding: clamp(14px, 1.4vw, 22px) clamp(14px, 1.6vw, 26px);
  border-radius: 16px;
  background: var(--crema);
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.15;
  box-shadow: 0 10px 30px rgba(1, 3, 20, .25);
  transition: transform .25s ease;
}
.partido:hover { transform: translateY(-2px) rotate(-.5deg); }
.partido__vs { font-family: var(--firma); font-weight: 400; text-transform: none; font-size: 1.9em; line-height: .8; color: #f4831e; padding-inline: 4px; }
.cronograma__cierre { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 64px); }

@media (max-width: 860px) {
  .cronograma { grid-template-columns: 1fr; }
  .dia--principal { order: 0; }
}
@media (max-width: 480px) {
  .partido { flex-direction: column; gap: 2px; }
  .partido__vs { font-size: 1.6em; }
}

/* Prensa */
.prensa-grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.prensa-bloque { border-radius: var(--radio); background: rgba(252, 247, 230, .05); border: 1px solid rgba(252, 247, 230, .12); padding: clamp(24px, 3vw, 48px); }
.prensa-bloque h2 { margin: 0 0 10px; text-transform: uppercase; font-weight: 700; font-size: clamp(18px, 1.6vw, 30px); }
.prensa-bloque p { margin: 0; text-transform: uppercase; color: rgba(252, 247, 230, .65); font-size: clamp(11px, .85vw, 15px); line-height: 1.7; }
.prensa-grilla { grid-template-columns: repeat(3, 1fr); align-items: start; }
.prensa-bloque--notas { grid-column: 1 / -1; }
.prensa-bloque--logo { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.prensa-bloque--logo h2 { margin-bottom: 0; }
/* Video de prensa: portada con play y visor */
.prensa-bloque--video { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.prensa-bloque--video h2 { margin-bottom: 0; }
.video-portada {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid rgba(252, 247, 230, .14);
  border-radius: 14px;
  overflow: hidden;
  background: #1a1b5c;
  color: var(--crema-2);
  font-family: var(--fuente);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.video-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 5, 40, .92) 0%, rgba(4, 5, 40, .35) 38%, rgba(4, 5, 40, 0) 60%); }
.video-portada:hover img { transform: scale(1.05); }
.video-portada__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 5.5vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--degrade-diag);
  color: var(--navy);
  box-shadow: 0 0 0 10px rgba(249, 175, 0, .22), 0 14px 34px rgba(1, 3, 20, .45);
  transition: scale .3s cubic-bezier(.2, .9, .3, 1.4), box-shadow .3s ease;
}
.video-portada__play svg { width: 44%; margin-left: 8%; }
.video-portada:hover .video-portada__play { scale: 1.1; box-shadow: 0 0 0 16px rgba(249, 175, 0, .18), 0 14px 34px rgba(1, 3, 20, .45); }
.video-portada__texto { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 7%; display: flex; flex-direction: column; }
.video-portada__firma { font-family: var(--firma); color: #f7a407; font-size: clamp(28px, 2.4vw, 46px); line-height: 1; letter-spacing: -.02em; }
.video-portada__titulo { font-weight: 800; font-size: clamp(20px, 1.7vw, 32px); line-height: 1.05; text-transform: uppercase; }
.video-portada__duracion { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 5px 10px 4px; border-radius: 999px; background: rgba(4, 5, 40, .7); font-size: 12px; letter-spacing: .06em; }

.visor { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.visor::backdrop { background: rgba(1, 3, 20, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.visor video { display: block; height: min(88vh, 1280px); max-width: 92vw; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 16px; background: #000; }
.visor__cerrar {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--crema);
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(1, 3, 20, .4);
}
@media (max-width: 560px) {
  .visor video { height: auto; width: 92vw; max-height: 82vh; }
  .visor__cerrar { top: -54px; right: 0; }
}

.descarga { display: block; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid rgba(252, 247, 230, .14); }
.descarga img { width: 100%; transition: transform .5s ease; }
.descarga:hover img { transform: scale(1.04); }
.notas { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.nota {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "fecha boton" "titulo boton" "bajada boton";
  align-items: center;
  gap: 6px clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2vw, 30px);
  border-radius: 16px;
  background: var(--crema);
  color: var(--navy);
}
.nota__fecha { grid-area: fecha; font-size: clamp(10px, .7vw, 13px); letter-spacing: .1em; text-transform: uppercase; color: var(--naranja, #f4831e); }
.nota h3 { grid-area: titulo; margin: 0; font-weight: 800; font-size: clamp(15px, 1.3vw, 24px); line-height: 1.2; text-transform: uppercase; }
.nota p { grid-area: bajada; margin: 4px 0 0; font: 500 clamp(14px, .95vw, 17px)/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; text-transform: none; color: rgba(13, 14, 76, .8); }
.nota .boton { grid-area: boton; white-space: nowrap; }
@media (max-width: 900px) { .prensa-grilla { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .nota { grid-template-columns: 1fr; grid-template-areas: "fecha" "titulo" "bajada" "boton"; }
  .nota .boton { justify-self: start; margin-top: 10px; }
}

/* ==========================================================
   Animaciones (sólo si el sistema no pide reducir movimiento)
   Se usan las propiedades translate/scale sueltas para no pisar
   los transform propios de los SVG ni los efectos de hover.
   ========================================================== */
@keyframes aparecer-abajo { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes aparecer-arriba { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@keyframes letra-sube { from { opacity: 0; translate: 0 70%; scale: 1 .6; } to { opacity: 1; translate: 0 0; scale: 1 1; } }
@keyframes letra-firma { from { opacity: 0; translate: -8% 0; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes digito { 0% { opacity: 0; translate: 0 55%; scale: .8; filter: blur(8px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); } }
@keyframes linea-crece { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes jugadores { from { opacity: 0; translate: 0 7%; filter: blur(12px) saturate(.4); } to { opacity: 1; translate: 0 0; filter: blur(0) saturate(1); } }
@keyframes desde-izq { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes desde-der { from { opacity: 0; translate: 40px 0; rotate: 8deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes franja { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes foto-entra { from { scale: 1.18; filter: brightness(.55); } to { scale: 1; filter: brightness(1); } }
@keyframes tarjeta-entra { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes linea-izq { from { opacity: 0; translate: -18% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes linea-der { from { opacity: 0; translate: 18% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes letra-pop { 0% { opacity: 0; scale: .3; } 70% { opacity: 1; scale: 1.15; } 100% { opacity: 1; scale: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Encabezado: entrada */
  .js .encabezado__logo { animation: aparecer-arriba .8s cubic-bezier(.2, .8, .2, 1) both; }
  .js .menu__lista li, .js .menu__instagram { animation: aparecer-arriba .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--n, 0) * 70ms); }
  .js .menu__lista li:nth-child(2) { --n: 1; }
  .js .menu__lista li:nth-child(3) { --n: 2; }
  .js .menu__lista li:nth-child(4) { --n: 3; }
  .js .menu__lista li:nth-child(5) { --n: 4; }
  .js .menu__instagram { --n: 5; }

  /* Portada: nada se ve hasta que la foto está lista */
  .js .portada:not(.portada--lista) :is(.portada__desafio, .portada__anio, .portada__jugadores, .portada__nombres img, .portada__fecha, .portada__club) { opacity: 0; }
  .js .portada:not(.portada--lista)::after { scale: 0 1; }

  .portada--lista::after { animation: franja 1.4s cubic-bezier(.7, 0, .2, 1) both; }
  .portada__desafio line { transform-box: fill-box; }
  .portada__desafio line:first-of-type { transform-origin: right center; }
  .portada__desafio line:last-of-type { transform-origin: left center; }
  .portada--lista .portada__desafio line { animation: linea-crece .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
  .portada--lista .portada__desafio path { animation: letra-firma .6s ease-out both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }

  .portada__anio path { transform-box: fill-box; transform-origin: 50% 100%; }
  .portada--lista .portada__anio path { animation: digito 1s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(.45s + var(--i, 0) * 110ms); }

  .portada--lista .portada__jugadores { animation: jugadores 1.3s cubic-bezier(.2, .8, .2, 1) .8s both; }
  .portada--lista .portada__nombres img { animation: aparecer-abajo .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.5s + var(--n, 0) * 100ms); }
  .portada__nombres img:nth-child(2) { --n: 1; }
  .portada__nombres img:nth-child(3) { --n: 2; }
  .portada__nombres img:nth-child(4) { --n: 3; }
  .portada--lista .portada__fecha { animation: desde-izq 1s cubic-bezier(.2, .8, .2, 1) 1.2s both; }
  .portada--lista .portada__club { animation: desde-der 1s cubic-bezier(.2, .8, .2, 1) 1.35s both; }

  /* Portada: profundidad y disolución al bajar (--p va de 0 a 1, desde main.js) */
  .portada__escena { opacity: calc(1 - var(--p, 0) * .55); }
  .portada__desafio { translate: 0 calc(var(--p, 0) * 140%); }
  .portada__anio { translate: 0 calc(var(--p, 0) * 30%); }
  .portada__jugadores { translate: 0 calc(var(--p, 0) * -4%); }
  .portada__fecha, .portada__club { translate: 0 calc(var(--p, 0) * -35%); opacity: calc(1 - var(--p, 0) * .6); }
  .portada--lista :is(.portada__jugadores, .portada__fecha, .portada__club) { animation-fill-mode: backwards; }

  /* Bloques que aparecen al bajar (cronograma) */
  .js .revelar:not(.visible) { opacity: 0; }
  .revelar.visible { animation: tarjeta-entra .8s cubic-bezier(.2, .8, .2, 1) both; }
  .dia__lista .revelar.visible { animation-name: aparecer-abajo; animation-delay: calc(var(--n, 0) * 90ms); }

  /* Tarjetas: entran al aparecer en pantalla (.visible desde main.js) */
  .js .tarjeta:not(.visible) { opacity: 0; }
  .js .tarjeta:not(.visible) .tarjeta__texto path, .js .tarjeta:not(.visible) .tarjeta__texto text { opacity: 0; }
  .tarjeta.visible { animation: tarjeta-entra .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n, 0) * 160ms); }
  .tarjeta.visible > img:first-child { animation: foto-entra 1.8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n, 0) * 160ms); }
  .tarjeta:nth-child(2) { --n: 1; }
  .tarjeta:nth-child(3) { --n: 2; }
  @media (max-width: 720px) { .tarjeta:nth-child(n) { --n: 0; } }

  .tarjeta__texto path { transform-box: fill-box; transform-origin: 50% 100%; }
  /* Una copa: letra por letra desde abajo */
  .tarjeta.visible .tarjeta__texto--copa path { animation: letra-sube .7s cubic-bezier(.2, .9, .25, 1.2) both; animation-delay: calc(.45s + var(--i, 0) * 35ms); }
  /* Master class: cada renglón entra de un costado distinto */
  .tarjeta.visible .tarjeta__texto--master svg > g > g:nth-child(odd) path { animation: linea-izq .8s cubic-bezier(.2, .8, .2, 1) both; }
  .tarjeta.visible .tarjeta__texto--master svg > g > g:nth-child(even) path { animation: linea-der .8s cubic-bezier(.2, .8, .2, 1) both; }
  .tarjeta.visible .tarjeta__texto--master path { animation-delay: calc(.6s + var(--linea, 0) * 160ms + var(--j, 0) * 18ms) !important; }
  /* Fiesta del tenis: la firma se escribe y TENIS salta letra por letra */
  .tarjeta.visible .tarjeta__texto--fiesta text { animation: letra-firma 1s ease-out .75s both; }
  .tarjeta__texto--fiesta path { transform-origin: 50% 50%; }
  .tarjeta.visible .tarjeta__texto--fiesta path { animation: letra-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(1.15s + var(--i, 0) * 80ms); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
