/* Torneo: tabla, partidos, resultados, goleadores, sanciones, fotos */

.t-hero { padding-bottom: clamp(100px, 12vw, 160px); }
.t-hero-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.t-hero-logo { width: clamp(120px, 15vw, 210px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: flota 7s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-10px); } }
.t-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.t-stats div { padding: 10px 18px 12px; background: rgba(4, 5, 26, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.t-stats b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; line-height: 1; }
.t-stats small { font-family: var(--tech); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); }

/* sub-navegación fija */
.subnav { position: sticky; top: calc(var(--nav) + var(--live)); z-index: 40; margin-top: -42px; transition: top .45s var(--ease); }
.nav-hide .subnav { top: var(--live); }
.subnav .wrap { display: flex; justify-content: center; }
.subnav nav { display: flex; gap: 2px; padding: 5px; overflow-x: auto; scrollbar-width: none; max-width: 100%; background: #0A0F33; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--line-2); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 10px 16px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .3s, color .3s; }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: linear-gradient(100deg, var(--cyan), #5FB2FF); color: var(--n950); }

/* inscripción (apartado propio) */
.ins-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: linear-gradient(135deg, #111C68, var(--n850)); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.ins-box::before { content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 224, 240, .22), transparent); }
.ins-flyer { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .9); transition: transform .7s var(--spring); }
.ins-flyer:hover { transform: scale(1.02) rotate(-1deg); }
.ins-flyer img { width: 100%; }
.ins-info { position: relative; }
.ins-info .lead { margin-top: 14px; }
.ins-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.ins-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ins-list small { font-family: var(--tech); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); padding-top: 3px; }
.ins-list b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.15; }
.ins-cerrada { padding: 30px; text-align: center; color: var(--muted); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }

/* tabla de posiciones */
.tabla-wrap { overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -40px rgba(10, 20, 90, .6); }
.tabla { width: 100%; border-collapse: collapse; min-width: 640px; color: var(--ink); }
.tabla th { position: sticky; top: 0; background: var(--ink); color: #fff; font-family: var(--tech); font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 14px 8px; text-align: center; }
.tabla th:nth-child(2) { text-align: left; }
.tabla td { padding: 12px 8px; text-align: center; font-family: var(--tech); font-weight: 600; font-size: 15px; border-bottom: 1px solid #E5E9F8; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background .2s; }
.tabla tbody tr:hover { background: #F4F6FF; }
.tabla td.pos { width: 54px; position: relative; font-size: 17px; }
.tabla td.pos::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cyan); }
.tabla tr.fuera td.pos::before { background: var(--blue); }
.tabla td.eq { text-align: left; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 19px; text-transform: uppercase; }
.tabla td.eq div { display: flex; align-items: center; gap: 12px; }
.tabla td.pts { font-size: 19px; color: var(--blue); }
.forma { display: inline-flex; gap: 3px; }
.forma i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; }
.forma .G { background: #12B76A; } .forma .E { background: #98A2B3; } .forma .P { background: var(--red); }
.leyenda { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-family: var(--tech); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.leyenda span::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--cyan); }
.leyenda span.fuera::before { background: var(--blue); }

/* tarjetas de partido */
.fecha-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin-bottom: 20px; }
.fecha-chips::-webkit-scrollbar { display: none; }
.fecha-chips button { flex: none; height: 44px; padding: 0 18px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .25s, color .25s; }
.fecha-chips button:hover { color: var(--text); }
.fecha-chips button[aria-pressed="true"] { background: linear-gradient(100deg, var(--cyan), #5FB2FF); color: var(--n950); box-shadow: none; }
.fecha-chips button.pend { opacity: .7; }
.fecha-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.fecha-stats div { padding: 14px; text-align: center; border-left: 1px solid var(--line); }
.fecha-stats div:first-child { border-left: 0; }
.fecha-stats b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; line-height: 1; }
.fecha-stats small { font-family: var(--tech); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partidos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.partido { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 16px 14px; border-radius: 20px; background: linear-gradient(180deg, var(--n800), var(--n850)); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: transform .5s var(--ease), box-shadow .4s; }
button.partido { cursor: pointer; width: 100%; }
button.partido:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(63, 224, 240, .45), 0 24px 40px -26px rgba(63, 224, 240, .6); }
.partido .eq { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.partido .eq span { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; text-transform: uppercase; line-height: 1.05; }
.partido .eq.win span { color: var(--cyan); }
.partido .marcador { min-width: 104px; }
.partido .estado { display: inline-block; font-family: var(--tech); font-size: 10px; font-weight: 700; letter-spacing: .16em; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.partido .estado.fin { background: rgba(63, 224, 240, .14); color: var(--cyan); }
.partido .goles { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 46px; line-height: 1; margin: 6px 0 4px; }
.partido .hora { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; margin: 8px 0 4px; color: var(--text); }
.partido .cuando { font-size: 12px; color: var(--muted); }
.partido .ver { position: absolute; right: 12px; top: 10px; font-family: var(--tech); font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.descanso { margin-top: 12px; font-family: var(--tech); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.descanso b { color: var(--text); }

/* detalle de partido */
.md { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.md[hidden] { display: none; }
.md-scrim { position: absolute; inset: 0; background: rgba(2, 3, 16, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .35s; }
.md-panel { position: relative; width: min(620px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; border-radius: 26px; background: linear-gradient(180deg, #121C66, var(--n900) 40%); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line-2); animation: pop .55s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.md-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.md-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 34px 22px 22px; text-align: center; }
.md-head .eq { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.md-head .eq span { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.md-head .res { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 64px; line-height: 1; }
.md-head small { display: block; font-family: var(--tech); font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-top: 6px; }
.md-body { padding: 0 22px 26px; }
.md-body h4 { margin: 0 0 10px; font-family: var(--tech); font-size: 12px; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.md-goles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.md-goles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.md-goles li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.md-goles li b { font-family: var(--tech); color: var(--cyan); }
.md-goles .v li { flex-direction: row-reverse; text-align: right; }
.md-nota { margin-top: 14px; font-size: 13px; color: var(--dim); }
.md-fotos { width: 100%; margin-top: 16px; }
.md-mvp { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(63, 224, 240, .1); font-weight: 600; }

/* goleadores */
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 26px; }
.podio-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 14px 20px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -40px rgba(10, 20, 90, .7); }
.podio-item.p1 { padding-top: 34px; background: linear-gradient(160deg, var(--blue-2), var(--blue)); color: #fff; }
.podio-item .lugar { position: absolute; top: -18px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.podio-item.p1 .lugar { background: var(--cyan); color: var(--n950); }
.podio-item .n { font-size: 74px; line-height: .85; margin: 10px 0 6px; }
.podio-item.p1 .n { font-size: 96px; }
.podio-item b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.podio-item small { font-family: var(--tech); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.gol-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; counter-reset: g 3; }
.gol-row { display: grid; grid-template-columns: 34px 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #DCE2F7; }
.gol-row .pos { font-family: var(--tech); font-weight: 700; color: var(--ink-2); }
.gol-row b { font-weight: 600; line-height: 1.2; }
.gol-row b small { display: block; font-family: var(--tech); font-weight: 500; font-size: 11px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.gol-row .g { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; color: var(--blue); }
.mas { display: flex; justify-content: center; margin-top: 18px; }

/* sanciones */
.sanc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: linear-gradient(120deg, rgba(255, 46, 77, .16), rgba(255, 46, 77, .04) 50%, transparent), var(--n850); box-shadow: inset 0 0 0 1px rgba(255, 46, 77, .3); }
.sanc-cards { display: flex; gap: 8px; margin-bottom: 14px; }
.sanc-cards i { width: 26px; height: 36px; border-radius: 4px; transform: rotate(-8deg); }
.sanc-cards i:first-child { background: #FFD400; } .sanc-cards i:last-child { background: var(--red); transform: rotate(6deg); }
.sanc-lista { width: 100%; border-collapse: collapse; font-size: 14px; }
.sanc-lista th { text-align: left; font-family: var(--tech); font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding: 8px; }
.sanc-lista td { padding: 10px 8px; border-top: 1px solid var(--line); }

/* fotos */
.galeria { columns: 4 240px; column-gap: 14px; }
.galeria button { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; }
.galeria img { width: 100%; transition: transform .8s var(--ease); }
.galeria button:hover img { transform: scale(1.04); }
.galeria button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(4, 5, 26, .9)); font-family: var(--tech); font-size: 12px; font-weight: 600; text-align: left; opacity: 0; transition: opacity .3s; }
.galeria button:hover span { opacity: 1; }
.lb { position: fixed; inset: 0; z-index: 85; display: grid; grid-template-rows: 1fr auto; background: rgba(2, 3, 16, .94); }
.lb[hidden] { display: none; }
.lb-img { display: grid; place-items: center; padding: 60px 64px 10px; min-height: 0; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; animation: pop .5s var(--ease); }
.lb-cap { text-align: center; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); font-family: var(--tech); font-size: 13px; color: var(--muted); }
.lb .icon-btn { position: absolute; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; margin-top: -22px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

.promo-nota { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: rgba(63, 224, 240, .1); box-shadow: inset 0 0 0 1px rgba(63, 224, 240, .3); font-size: 15px; }
.promo-nota b { color: var(--cyan); }
.galeria .es-video .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 46, 77, .92); font-style: normal; font-size: 22px; padding-left: 4px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); transition: transform .4s var(--spring); }
.galeria .es-video:hover .play { transform: scale(1.12); }
.galeria .es-video span { opacity: 1; }
.galeria .sin-mini { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--n800); font-size: 30px; }
.lb-video { width: min(100%, 1100px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.lb-video iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .t-hero-in { grid-template-columns: 1fr; }
  .t-hero-logo { width: 110px; }
  .ins-box, .sanc { grid-template-columns: 1fr; }
  .ins-flyer { max-width: 420px; justify-self: center; }
  .partidos { grid-template-columns: 1fr; }
  .gol-lista { grid-template-columns: 1fr; }
  .subnav { margin-top: -30px; }
}
@media (max-width: 760px) {
  .fecha-stats b { font-size: 26px; }
  .fecha-stats small { font-size: 9px; letter-spacing: .08em; }
  .partido { padding: 16px 10px 12px; }
  .partido .eq span { font-size: 14px; }
  .partido .marcador { min-width: 84px; }
  .partido .goles { font-size: 38px; }
  .podio { gap: 8px; }
  .podio-item { padding: 22px 8px 14px; }
  .podio-item .n { font-size: 52px; } .podio-item.p1 .n { font-size: 68px; }
  .podio-item b { font-size: 15px; }
  .ins-list li { grid-template-columns: 1fr; gap: 2px; }
  .md-head .res { font-size: 48px; }
  .md-goles { grid-template-columns: 1fr; }
  .md-goles .v li { flex-direction: row; text-align: left; }
  .lb-img { padding: 60px 8px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; }
  .galeria { columns: 2; column-gap: 8px; }
  .galeria button { margin-bottom: 8px; border-radius: 12px; }
  .tabla { min-width: 0; }
  .tabla .ocultar { display: none; }
  .tabla td, .tabla th { padding: 10px 4px; font-size: 13px; }
  .tabla td.eq { font-size: 15px; }
  .tabla td.eq div { gap: 8px; }
  .tabla td.pos { width: 34px; }
}

/* fotos y jugadas destacadas: una sola línea que se mueve sola */
.cinta { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cinta-pista { display: flex; gap: 14px; width: max-content; animation: cinta var(--dur, 60s) linear infinite; }
.cinta:hover .cinta-pista, .cinta:focus-within .cinta-pista { animation-play-state: paused; }
.cinta-pista button { flex: none; position: relative; width: 236px; height: 295px; border-radius: 16px; overflow: hidden; background: var(--n800); }
.cinta-pista img, .cinta-pista video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.cinta-pista button:hover img, .cinta-pista button:hover video { transform: scale(1.05); }
.cinta-pista button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(4, 5, 26, .9)); font-family: var(--tech); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-align: left; }
.cinta-pista .es-video .play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 46, 77, .92); font-style: normal; font-size: 18px; padding-left: 3px; }
@keyframes cinta { to { transform: translateX(-50%); } }
.lb-vid { max-width: 100%; max-height: 82vh; border-radius: 12px; background: #000; }
@media (max-width: 760px) { .cinta-pista { gap: 10px; } .cinta-pista button { width: 178px; height: 222px; border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .cinta { overflow-x: auto; } .cinta-pista { animation: none; } }

/* videos que se reproducen solos dentro de la cinta */
.cinta-pista .yt { position: absolute; inset: 0; overflow: hidden; background: #000; }
.cinta-pista .yt iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 100%; width: auto; aspect-ratio: 16 / 9; border: 0; pointer-events: none; }
.cinta-pista .yt.short iframe { height: 142%; }
.cinta-pista video { pointer-events: none; }

/* el ícono de play de los videos subidos solo se ve si el celular no los dejó arrancar solos */
.cinta-pista .es-video.auto-ok .play { display: none; }
