/* Triunfemos 1.2.7 · tarjeta-póster rígida: misma composición en cualquier ancho */
.match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.match-card-modern{container-type:inline-size;position:relative;isolation:isolate;overflow:hidden;width:100%;max-width:520px;aspect-ratio:1.08/1;margin:0 auto;padding:0!important;border:1px solid rgba(117,165,220,.5);border-radius:24px;background:#06101b url('match-card-stadium-127.svg') center/cover no-repeat!important;box-shadow:0 22px 58px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.1);display:block!important;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.match-card-modern:hover{transform:translateY(-4px);border-color:#f0c341;box-shadow:0 30px 72px rgba(0,0,0,.62),0 0 0 1px rgba(240,195,65,.15) inset}
.match-card-modern:before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.01) 62%,rgba(0,0,0,.14));pointer-events:none}
.match-card-glow{display:none!important}
.match-card-duel{position:absolute!important;left:0;right:0;top:0;height:60%;display:block!important;min-height:0!important;padding:0!important;z-index:2}
.match-team{position:absolute!important;top:0;width:50%;height:100%;display:block!important;padding:0!important;min-width:0;z-index:3}
.match-team-local{left:0}.match-team-away{right:0}
.match-team-logo{position:absolute;top:7.2%;width:57%;height:56%;display:grid;place-items:center;text-decoration:none;filter:drop-shadow(0 1.8cqw 1.7cqw rgba(0,0,0,.5));transition:transform .18s ease;z-index:4}
.match-team-local .match-team-logo{left:12%}.match-team-away .match-team-logo{right:12%}
.match-team-logo:hover{transform:scale(1.025)}
.match-team-logo img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain;margin:0!important}
.match-logo-fallback{font-size:18cqw;line-height:1}
.match-team-name{position:absolute!important;top:67%;width:92%!important;height:23%!important;max-width:none!important;margin:0!important;padding:1.4cqw 2.4cqw!important;display:flex!important;align-items:center;justify-content:center!important;text-align:center;text-decoration:none!important;color:#fff!important;text-transform:uppercase;font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-weight:1000;font-size:4.15cqw!important;line-height:.98!important;letter-spacing:.005em;text-shadow:0 .45cqw 1.05cqw rgba(0,0,0,.75);overflow:hidden;z-index:5;transform:none!important}
.match-team-local .match-team-name{left:1.5%!important}.match-team-away .match-team-name{right:1.5%!important}
.match-team-name:before{content:"";position:absolute;inset:0;z-index:-1;border:0!important;box-shadow:0 1.8cqw 3cqw rgba(0,0,0,.28)}
.match-team-local .match-team-name:before{clip-path:polygon(0 15%,91% 0,100% 86%,8% 100%);background:linear-gradient(90deg,#0b4fd1 0%,#1478ff 52%,#075ad8 100%)}
.match-team-away .match-team-name:before{clip-path:polygon(9% 0,100% 15%,92% 100%,0 86%);background:linear-gradient(90deg,#c50827 0%,#f01336 52%,#c00827 100%)}
.match-vs{position:absolute!important;left:50%;top:15%;width:19%;height:44%!important;transform:translateX(-50%);display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;z-index:8;pointer-events:none}
.match-vs span{position:relative;display:block;font-family:Impact,Haettenschweiler,'Arial Black',sans-serif;font-size:14.7cqw!important;line-height:.86!important;font-weight:900;letter-spacing:-.08em;color:#fff;text-transform:uppercase;transform:skewX(-9deg)!important;text-shadow:0 .75cqw 0 rgba(0,0,0,.32),0 0 1.7cqw rgba(255,255,255,.8),0 0 3cqw rgba(255,255,255,.24)}
.match-vs span:before{content:"";position:absolute;left:50%;top:-2.7cqw;width:1.25cqw;height:26cqw;z-index:-1;transform:translateX(-50%) rotate(9deg);background:linear-gradient(180deg,#26a0ff 0%,#e9f7ff 48%,#ff173e 100%);box-shadow:0 0 2cqw rgba(255,255,255,.42)}
.match-card-info{position:absolute!important;left:9%!important;right:9%!important;bottom:18%!important;width:auto!important;height:21%!important;margin:0!important;padding:3.0cqw 3cqw 2.3cqw!important;border:1px solid rgba(115,167,224,.38)!important;border-radius:4.2cqw!important;background:linear-gradient(180deg,rgba(3,14,29,.97),rgba(1,8,18,.97))!important;box-shadow:0 3.2cqw 6.5cqw rgba(0,0,0,.42)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:7}
.match-card-modern .match-card-info h3{width:100%;margin:0 0 2.4cqw!important;color:#fff!important;text-align:center;font-size:4.0cqw!important;line-height:1.08!important;font-weight:950!important;text-shadow:0 .45cqw .95cqw rgba(0,0,0,.46);white-space:normal}
.match-card-modern .match-card-info h3:before,.match-card-modern .match-card-info h3:after{content:""!important;display:inline-block!important;width:5cqw!important;height:.22cqw!important;margin:0 2.2cqw 1.05cqw!important;background:rgba(218,235,252,.48)!important;vertical-align:middle}
.match-schedule{display:flex!important;align-items:center!important;justify-content:center!important;gap:2.3cqw!important;width:100%;color:#f8fbff!important;font-size:3.55cqw!important;font-weight:650!important;line-height:1!important;white-space:nowrap}
.match-schedule span{display:inline-flex!important;align-items:center!important;gap:1.4cqw!important}.match-schedule b{font-size:3.7cqw!important;color:#fff!important;line-height:1}.match-schedule i{display:block!important;width:.24cqw!important;height:5cqw!important;background:rgba(223,235,247,.5)!important}
.match-cta{position:absolute!important;left:10%!important;right:10%!important;bottom:4%!important;width:auto!important;height:11.8%!important;min-height:0!important;margin:0!important;padding:0 4cqw!important;border:1px solid rgba(255,238,137,.95)!important;border-radius:3.9cqw!important;background:linear-gradient(180deg,#ffd83f 0%,#ffc400 100%)!important;box-shadow:0 1.9cqw 4.5cqw rgba(0,0,0,.38),inset 0 .4cqw 0 rgba(255,255,255,.35)!important;color:#050505!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:2.5cqw!important;text-decoration:none!important;font-size:4.3cqw!important;line-height:1!important;font-weight:1000!important;letter-spacing:.015em;z-index:8}
.match-cta:hover{filter:brightness(1.04);transform:translateY(-1px)}.match-cta-icon{font-size:4.8cqw!important;line-height:1}
/* El grid cambia el número de columnas; la tarjeta nunca se remaqueta por dentro. */
@media(max-width:980px){.match-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:620px){.match-grid{grid-template-columns:1fr;gap:18px}.match-card-modern{max-width:520px}}


/* ===== Triunfemos 1.2.8 · límite de alto para escudos ===== */
.match-team-logo{top:9%!important;width:56%!important;height:48%!important;}
.match-team-logo img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;}

/* ===== Triunfemos 1.2.11 · tope real de escudos =====
   El escudo se mantiene dentro de una caja fija relativa al ancho de la tarjeta.
   Así un escudo vertical nunca invade la banda del nombre ni el bloque inferior. */
.match-team-logo img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:27cqw!important;
  object-fit:contain!important;
  object-position:center!important;
}
