/* =========================================================
   PORTADA DEL DOMINGO · finales en vivo
   ========================================================= */
.pag-portada .fx-top { padding: 56px 0 26px; background:
  radial-gradient(ellipse 60% 70% at 85% 0%, rgba(217,173,60,.16), transparent 70%),
  radial-gradient(ellipse 50% 60% at 0% 100%, rgba(200,22,30,.12), transparent 70%); }
.fx-head { display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: 28px; align-items: center; }
.fx-titulo { margin: 6px 0 14px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 7vw, 86px); line-height: .92; }
.fx-titulo span { color: var(--oro-claro); }
.fx-estado { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fx-estado .r-actualizado { margin: 0; font-size: 14px; color: var(--gris); }

.fx-sede { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--cal);
  background: linear-gradient(180deg, #221c12, #120f0a); border: 1.5px solid rgba(217,173,60,.6); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 40px rgba(217,173,60,.12);
  transition: transform .25s var(--ease), box-shadow .25s; }
.fx-sede:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 50px rgba(217,173,60,.25); }
.fx-sede img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex: none; }
.fx-sede small { display: block; font-family: var(--f-label); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--oro); }
.fx-sede b { display: block; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.05; margin-top: 2px; }
.fx-sede span { display: block; font-family: var(--f-label); font-size: 17px; margin-top: 2px; }
.fx-sede em { display: inline-block; font-style: normal; margin-top: 6px; font-family: var(--f-label); font-weight: 600; font-size: 14px; color: #1b1003; background: var(--oro); padding: 4px 12px; border-radius: 20px; }

.fx-progreso { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fx-progreso li { position: relative; overflow: hidden; padding: 10px 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--linea); display: flex; justify-content: space-between; align-items: baseline; }
.fx-progreso b { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--gris); }
.fx-progreso span { font-family: var(--f-dato); font-weight: 600; font-size: 15px; color: var(--gris); }
.fx-progreso i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--oro-osc), var(--oro-claro)); transition: transform .8s var(--ease); }
.fx-progreso li.activo { border-color: rgba(255,59,66,.55); }
.fx-progreso li.activo b, .fx-progreso li.activo span { color: var(--cal); }
.fx-progreso li.hecho b, .fx-progreso li.hecho span { color: var(--oro-claro); }

/* sub navegación pegajosa */
.fx-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(10,9,7,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--linea); }
.fx-nav .contenedor { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.fx-nav a { flex: none; font-family: var(--f-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--cal); text-decoration: none; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--linea); }
.fx-nav a:hover { border-color: var(--oro); color: var(--oro-claro); }
.fx-sec { padding: 34px 0 18px; scroll-margin-top: calc(var(--nav-h) + 60px); }
.fx-h { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 34px); color: var(--cal); }
.fx-punto { width: 12px; height: 12px; border-radius: 50%; background: #ff3b42; box-shadow: 0 0 0 0 rgba(255,59,66,.6); animation: fx-pulso 1.6s infinite; }
@keyframes fx-pulso { 70% { box-shadow: 0 0 0 12px rgba(255,59,66,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,66,0); } }
.fx-nota { margin: -6px 0 16px; color: var(--gris); font-size: 15px; }
.fx-vacio { margin: 0; padding: 18px; border-radius: 12px; border: 1px dashed var(--linea); color: var(--gris); }

/* ---------- logos circulares ---------- */
.lg-eq { --t: 44px; flex: none; width: var(--t); height: var(--t); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #2c2416, #0d0a06); box-shadow: 0 0 0 2px rgba(217,173,60,.55), 0 6px 14px rgba(0,0,0,.5); }
.lg-eq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-eq.lg-vacio b { font-family: var(--f-display); font-weight: 400; color: var(--oro); font-size: calc(var(--t) * .36); }
.lg-eq.lg { --t: 84px; }
.lg-eq.xl { --t: 130px; box-shadow: 0 0 0 4px var(--oro), 0 0 50px rgba(217,173,60,.5); }

/* ---------- tarjeta de partido ---------- */
.fx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.fx-cards-vivo { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.fx-card { position: relative; border-radius: 16px; padding: 12px 14px 16px; background: linear-gradient(180deg, #1f1a12, #110e09); border: 1px solid var(--linea); box-shadow: 0 10px 26px rgba(0,0,0,.35); overflow: hidden; }
.fx-card header { display: flex; align-items: center; gap: 8px; font-family: var(--f-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.fx-card .fx-ronda { color: var(--oro); font-weight: 600; }
.fx-card .fx-dc { margin-left: auto; }
.fx-card .fx-dc em { font-style: normal; color: var(--oro-claro); font-weight: 600; }
.fx-b { flex: none; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: #2a241a; color: var(--cal); }
.fx-b-vivo { background: #c8161e; color: #fff; }
.fx-b-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: fx-parp 1s infinite; }
@keyframes fx-parp { 50% { opacity: .2; } }
.fx-b-fin { background: var(--oro); color: #1b1003; }
.fx-cuerpo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
.fx-eq { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.fx-eq b { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.1; color: var(--cal); overflow-wrap: anywhere; }
.fx-eq.tbd b { color: var(--gris); font-weight: 600; font-size: 14px; }
.fx-eq.gana b { color: var(--oro-claro); }
.fx-eq.gana .lg-eq { box-shadow: 0 0 0 3px var(--oro), 0 0 24px rgba(217,173,60,.6); }
.fx-eq.pierde { opacity: .5; }
.fx-eq.pierde .lg-eq { filter: grayscale(.8); }
.fx-sc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 130px; font-family: var(--f-display); font-size: 44px; line-height: 1; color: #fff; }
.fx-sc i { font-style: normal; color: var(--gris); font-size: 30px; }
.fx-sc small { flex-basis: 100%; text-align: center; font-family: var(--f-label); font-size: 12px; letter-spacing: .08em; color: var(--oro); text-transform: uppercase; }
.fx-sc-vs { font-size: 26px; color: var(--rojo-claro); text-shadow: 0 0 14px rgba(255,74,79,.45); }

.fx-card.est-en_juego { border-color: rgba(255,59,66,.7); box-shadow: 0 0 0 1px rgba(255,59,66,.35), 0 12px 30px rgba(200,22,30,.25); }
.fx-card.est-en_juego::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, #ff3b42, transparent); animation: fx-barra 2.2s linear infinite; }
@keyframes fx-barra { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.fx-card.est-final { border-color: rgba(217,173,60,.35); }
.fx-card.grande { padding: 16px 18px 22px; }
.fx-card.grande .lg-eq { --t: 76px; }
.fx-card.grande .fx-eq b { font-size: 20px; }
.fx-card.grande .fx-sc { font-size: 64px; max-width: 170px; }
.fx-card.chica .lg-eq, .fx-cards-chicas .lg-eq { --t: 36px; }
.fx-cards-chicas .fx-eq b { font-size: 14px; }
.fx-cards-chicas .fx-sc { font-size: 34px; }
.fx-card.cambio, .bk.cambio { animation: fx-cambio 1.2s ease 3; }
@keyframes fx-cambio { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,90,0); } 40% { box-shadow: 0 0 0 4px rgba(255,215,90,.9), 0 0 40px rgba(255,215,90,.6); transform: scale(1.015); } }

/* campeón */
.fx-campeon { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; margin: 6px 0 22px; padding: 26px; border-radius: 20px; background: linear-gradient(135deg, #3a2a08, #1a1206 60%, #3a2a08); border: 2px solid var(--oro); box-shadow: 0 0 60px rgba(217,173,60,.35); }
.fx-campeon p { margin: 0; font-family: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-claro); }
.fx-campeon h3 { margin: 4px 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 6vw, 70px); line-height: 1; }
.fx-campeon span { color: var(--gris); }
.fx-conf { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,232,163,.9) 1.5px, transparent 2px); background-size: 38px 38px; animation: fx-conf 6s linear infinite; opacity: .35; }
@keyframes fx-conf { to { background-position: 0 380px; } }

/* ---------- llave ---------- */
.contenedor.fx-ancho { max-width: calc(1560px + 2 * var(--gutter)); }
.fx-rondas { display: none; margin-bottom: 12px; }
#llave-movil { display: none; }
.bk-marco { overflow-x: auto; padding-bottom: 8px; }
.bk-cuadro { min-width: 1240px; }
.bk-cab, .bk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); column-gap: 10px; }
.bk-col-t { margin: 0 0 10px; text-align: center; font-family: var(--f-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; color: var(--oro); }
.bk-grid { grid-template-rows: repeat(16, 52px); }
.bk-slot { display: flex; align-items: center; min-width: 0; }
.bk { width: 100%; border-radius: 10px; padding: 6px 8px; background: linear-gradient(180deg, #221d14, #15110b); border: 1px solid #3a3122; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.bk-h { margin: 0 0 4px; display: flex; white-space: nowrap; gap: 6px; align-items: center; font-family: var(--f-label); font-size: 11.5px; letter-spacing: .04em; color: #c9bda4; }
.bk-h em { font-style: normal; color: var(--oro-claro); font-weight: 600; }
.bk-vivo { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: #c8161e; color: #fff; padding: 1px 6px; border-radius: 10px; animation: fx-parp 1.2s infinite; }
.bk-f { display: flex; align-items: center; gap: 6px; padding: 2px 0; min-width: 0; }
.bk-f .lg-eq { --t: 24px; box-shadow: 0 0 0 1.5px rgba(217,173,60,.5); }
.bk-f b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 13.5px; color: var(--cal); }
.bk-f em { font-style: normal; font-family: var(--f-display); font-size: 18px; color: #fff; min-width: 16px; text-align: right; }
.bk-f em sup { font-family: var(--f-label); font-size: 10px; color: var(--oro); margin-left: 2px; }
.bk-f.tbd b { color: #8f846f; font-weight: 500; text-transform: none; font-size: 13px; }
.bk-f.gana b, .bk-f.gana em { color: var(--oro-claro); }
.bk-f.pierde { opacity: .45; }
.bk.est-en_juego { border-color: #ff3b42; box-shadow: 0 0 0 1px rgba(255,59,66,.4), 0 0 20px rgba(255,59,66,.25); }
.bk.est-final { border-color: rgba(217,173,60,.45); }
.bk-final { padding: 12px; border: 2px solid var(--oro); background: radial-gradient(ellipse at 50% 0%, rgba(217,173,60,.25), transparent 70%), #17120a; box-shadow: 0 0 40px rgba(217,173,60,.25); }
.bk-final .bk-f .lg-eq { --t: 34px; }
.bk-final .bk-f b { font-size: 15px; }
.bk-gf { margin: 0 0 6px; text-align: center; font-family: var(--f-display); text-transform: uppercase; font-size: 22px; color: var(--oro-claro); }
.bk-premio { margin: 8px 0 0; text-align: center; font-family: var(--f-label); font-size: 12px; color: var(--oro); letter-spacing: .05em; }

/* ---------- horarios ---------- */
.hz { margin-bottom: 18px; border-radius: 16px; border: 1px solid var(--linea); background: rgba(26,23,18,.6); padding: 12px; }
.hz-h { display: flex; align-items: center; gap: 12px; margin: 0 4px 10px; }
.hz-h b { font-family: var(--f-display); font-weight: 400; font-size: 30px; color: var(--oro-claro); }
.hz-h span { font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.hz-h .fx-b { margin-left: auto; }
.hz-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hz-g .fx-card { padding: 10px 10px 12px; }
.hz-g .lg-eq { --t: 40px; }
.hz-g .fx-eq b { font-size: 13.5px; }
.hz-g .fx-sc { font-size: 32px; }
.hz-g .fx-card header .fx-ronda { display: none; }
.hz-vivo { border-color: rgba(255,59,66,.5); }
.hz-hecho { opacity: .78; }

/* ---------- mi equipo ---------- */
.mi-caja { border-radius: 18px; padding: 20px; background: linear-gradient(180deg, #1f1a12, #110e09); border: 1px solid var(--linea); }
.mi-caja .fx-h { margin-top: 0; }
#sel-equipo { width: 100%; max-width: 480px; font: 600 17px var(--f-label); padding: 12px 14px; border-radius: 10px; background: #0d0b08; color: var(--cal); border: 1.5px solid var(--oro); }
#mi-info { margin-top: 18px; }
.mi-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.mi-cab h3 { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 34px; }
.mi-est { margin: 4px 0 0; font-family: var(--f-label); font-weight: 600; font-size: 16px; }
.mi-est.vivo { color: #ff8d90; } .mi-est.sig { color: var(--oro-claro); } .mi-est.fuera { color: var(--gris); } .mi-est.campeon { color: var(--oro-claro); font-size: 20px; }
.mi-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mi-mapa { display: inline-block; margin-top: 14px; color: var(--oro-claro); font-family: var(--f-label); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hz-g { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .fx-head { grid-template-columns: 1fr; }
  .fx-progreso { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .fx-progreso li { flex-direction: column; align-items: flex-start; padding: 8px 8px 12px; }
  .fx-progreso b { font-size: 11px; letter-spacing: .02em; }
  .bk-marco { display: none; }
  .fx-rondas { display: flex; flex-wrap: wrap; gap: 6px; }
  #llave-movil { display: grid; }
}
@media (max-width: 560px) {
  .fx-cards, .fx-cards-vivo, .mi-lista { grid-template-columns: 1fr; }
  .hz-g { grid-template-columns: 1fr; }
  .fx-card.grande .lg-eq { --t: 60px; }
  .fx-card.grande .fx-sc { font-size: 52px; }
  .fx-sede img { width: 72px; height: 72px; }
  .fx-sede b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .fx-card.est-en_juego::before, .fx-conf, .fx-punto { animation: none; } }
