/* Calendario en 3 columnas (Sala de Prensa): azul marino #101A3D, rojo #D91E2A, blanco. */
.sala { --navy: #101A3D; --red: #D91E2A; --line: #DDE1EA; display: grid; grid-template-columns: 26% minmax(0, 48%) 26%; gap: 16px; align-items: start; margin-bottom: 24px; }
.sala-col > summary { display: none; list-style: none; }
.sala-col > summary::-webkit-details-marker { display: none; }
.sala-left, .sala-right { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sala-body { padding: 12px; }
.sala-right .sala-body { max-height: 78vh; overflow-y: auto; }

/* Izquierda: jornadas y meses */
.sc-rounds h3, .sc-month h3 { font: 800 12px/1 'Inter', sans-serif; letter-spacing: .06em; color: var(--navy); margin: 0 0 8px; text-transform: uppercase; }
.sc-round-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; max-height: 132px; overflow-y: auto; }
.sc-round-list a { display: inline-flex; gap: 5px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 12px/1 'Inter', sans-serif; color: var(--navy); text-decoration: none; white-space: nowrap; }
.sc-round-list a em { font-style: normal; font-size: 10px; color: var(--red); }
.sc-round-list a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sc-round-list a.on em { color: #fff; }
.sc-month { margin-bottom: 14px; }
.sc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sc-dow { text-align: center; font: 700 10px/1.6 'Inter', sans-serif; color: #6B7280; }
.sc-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 42px; padding: 3px 0 4px; border-radius: 6px; background: #F4F5F8; color: #9AA1B2; text-decoration: none; }
.sc-day i { font: 500 9px/1 'Inter', sans-serif; font-style: normal; align-self: flex-start; margin-left: 4px; }
.sc-day b { font: 800 15px/1 'Inter', sans-serif; color: var(--navy); }
.sc-day.has { background: #fff; border: 1px solid var(--line); color: #4B5563; }
.sc-day:hover { background: #E6EAF4; }
.sc-day.inr { background: #E3E8F7; }
.sc-day.today { box-shadow: inset 0 0 0 2px var(--red); }
.sc-day.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sc-day.on b { color: #fff; }
.sc-foot { font: 500 12px/1.5 'Inter', sans-serif; color: #4B5563; margin: 4px 0 0; }
.sc-foot a { color: var(--navy); font-weight: 700; }

/* Centro */
.sp-head { display: flex; align-items: center; background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; }
.sp-title { flex: 1; text-align: center; padding: 12px 6px; min-width: 0; }
.sp-title h2 { margin: 0; font: 800 15px/1.25 'Inter', sans-serif !important; letter-spacing: .04em; color: #fff !important; }
.sp-title span { display: block; font: 700 11px/1 'Inter', sans-serif; color: #FF8A91; margin-top: 4px; letter-spacing: .08em; }
.sp-nav { width: 46px; align-self: stretch; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; text-decoration: none; }
a.sp-nav:hover { background: rgba(255,255,255,.12); }
.sp-nav.off { visibility: hidden; }
.sp-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-top: 0; font: 500 12px/1.3 'Inter', sans-serif; color: #4B5563; }
.sp-seg { display: inline-flex; border: 1px solid var(--navy); border-radius: 8px; overflow: hidden; }
.sp-seg button { border: 0; background: #fff; color: var(--navy); padding: 7px 12px; font: 700 12px/1 'Inter', sans-serif; cursor: pointer; min-height: 32px; }
.sp-seg button.on { background: var(--navy); color: #fff; }
.sp-note { margin: 0; padding: 8px 12px; background: #FFF4F4; border: 1px solid #F3C6C9; border-top: 0; color: #8A1620; font: 600 12px/1.4 'Inter', sans-serif; }
.sp-group { background: #fff; border: 1px solid var(--line); border-top: 0; }
.sp-group:last-of-type { border-radius: 0 0 12px 12px; }
.sp-ghead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; background: #EEF0F6; border-bottom: 1px solid var(--line); font: 800 12px/1 'Inter', sans-serif !important; letter-spacing: .05em; color: var(--navy) !important; text-transform: uppercase; }
.sp-ghead img { width: 22px; height: 22px; object-fit: contain; }
.sp-ghead em { margin-left: auto; font-style: normal; font-size: 11px; color: #fff; background: var(--red); border-radius: 999px; padding: 3px 8px; }
.sp-match { border-bottom: 1px solid var(--line); }
.sp-match:last-child { border-bottom: 0; }
.sp-main { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 12px; }
.sp-team { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.sp-team img, .sp-ini, .st-team img, .st-team .sp-ini { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.sp-ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font: 800 11px/1 'Inter', sans-serif; }
.sp-name { display: flex; flex-direction: column; min-width: 0; }
.sp-name strong { font: 700 14px/1.2 'Inter', sans-serif; color: #14171F; overflow-wrap: anywhere; }
.sp-name small { font: 500 11px/1.3 'Inter', sans-serif; color: #6B7280; }
.sp-score { margin-left: auto; font: 800 22px/1 'Inter', sans-serif; color: #6B7280; min-width: 32px; text-align: right; }
.sp-score.win { color: var(--navy); }
.sp-team.lose .sp-name strong { font-weight: 600; color: #4B5563; }
.sp-state { text-align: center; border-left: 1px solid var(--line); padding-left: 8px; }
.sp-st { display: block; font: 700 12px/1.3 'Inter', sans-serif; color: var(--navy); }
.sp-state small { display: block; margin-top: 4px; font: 500 10px/1.3 'Inter', sans-serif; color: #6B7280; overflow-wrap: anywhere; }
.status-en_vivo .sp-st { color: var(--red); }
.status-en_vivo .sp-st::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--red); }
.sp-links { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); background: #F7F8FB; }
.sp-links a { flex: 1 1 auto; text-align: center; padding: 9px 8px; font: 700 12px/1.2 'Inter', sans-serif; color: var(--navy); text-decoration: none; border-right: 1px solid var(--line); min-height: 36px; }
.sp-links a:last-child { border-right: 0; }
.sp-links a:hover { background: #E6EAF4; }
.sp-links a.tv { background: var(--red); color: #fff; }
.sp-empty { padding: 28px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; color: #6B7280; margin: 0; }

/* Derecha */
.st-search input { width: 100%; box-sizing: border-box; }
.st-bar { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; font: 600 12px/1 'Inter', sans-serif; color: #4B5563; }
.st-bar button { border: 0; background: none; color: var(--red); font: 700 12px/1 'Inter', sans-serif; cursor: pointer; padding: 6px 0; }
.st-group { border-top: 1px solid var(--line); }
.st-league { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.st-league > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 11px 10px; font: 800 12px/1.2 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: 7px; list-style: none; }
.st-league > summary::-webkit-details-marker { display: none; }
.st-league > summary::before { content: '\25B8'; color: #FF8A91; transition: transform .15s; }
.st-league[open] > summary::before { transform: rotate(90deg); }
.st-league[open] > summary { border-radius: 7px 7px 0 0; }
.st-league > summary em { margin-left: auto; font-style: normal; font-weight: 600; color: #C9D0E8; }
.st-league > .st-group { padding: 0 8px; }
.st-league[hidden] { display: none !important; }
.st-group > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 2px; font: 800 11px/1.2 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); list-style: none; }
.st-group > summary::-webkit-details-marker { display: none; }
.st-group > summary::before { content: '\25B8'; color: var(--red); transition: transform .15s; }
.st-group[open] > summary::before { transform: rotate(90deg); }
.st-group > summary em { margin-left: auto; font-style: normal; font-weight: 600; color: #6B7280; }
.st-team { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font: 500 13px/1.2 'Inter', sans-serif; color: #14171F; min-height: 40px; }
.st-team:hover { background: #F0F2F8; }
.st-team input { width: 18px; height: 18px; accent-color: var(--navy); flex: 0 0 auto; }
.st-team img, .st-team .sp-ini { width: 26px; height: 26px; font-size: 9px; }
.st-team[hidden], .st-group[hidden], .sp-match[hidden], .sp-group[hidden] { display: none !important; }
.st-none { color: #6B7280; font-size: 13px; }

/* Tablet y celular: una columna, partidos primero; calendario y filtro colapsables */
@media (max-width: 1023px) {
    .sala { grid-template-columns: 1fr; gap: 12px; }
    .sala-center { order: 1; } .sala-left { order: 2; } .sala-right { order: 3; }
    .sala-col > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; font: 800 13px/1 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); cursor: pointer; min-height: 48px; }
    .sala-col > summary::after { content: '+'; font-size: 20px; color: var(--red); }
    .sala-col[open] > summary::after { content: '\2212'; }
    .sala-col[open] > summary { border-bottom: 1px solid var(--line); }
    .sala-right .sala-body { max-height: 60vh; }
    .sc-month { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
    .sp-main { grid-template-columns: minmax(0, 1fr) 76px; padding: 10px; }
    .sp-title h2 { font-size: 13px !important; }
    .sp-tools > span { flex-basis: 100%; }
    .sp-links a { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
}

/* Tarjetas por estado: programado = perla, en vivo = borde rojo, final = azul marino */
.sp-match { background: #F6F8FC; color: #101A3D; }
.sp-match .sp-name strong, .sp-match .sp-score, .sp-match .sp-st { color: #101A3D; }
.sp-match .sp-name small, .sp-match .sp-state small { color: #4B5563; }
.sp-match.status-en_vivo { background: #FFF7F7; box-shadow: inset 4px 0 0 #D91E2A, inset 0 0 0 1px #D91E2A; }
.sp-match.status-en_vivo .sp-st { color: #D91E2A; }
.sp-match.status-en_vivo .sp-st::before { animation: sp-pulse 1.2s ease-in-out infinite; }
@keyframes sp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .sp-match.status-en_vivo .sp-st::before { animation: none; } }
.sp-match.status-finalizado { background: #101A3D; color: #fff; border-bottom-color: #26335F; }
.sp-match.status-finalizado .sp-name strong, .sp-match.status-finalizado .sp-score, .sp-match.status-finalizado .sp-score.win, .sp-match.status-finalizado .sp-team.lose .sp-name strong { color: #FFFFFF; }
.sp-match.status-finalizado .sp-name small, .sp-match.status-finalizado .sp-state small { color: #FFFFFF; opacity: .85; }
.sp-match.status-finalizado .sp-st { display: inline-block; background: #D91E2A; color: #FFFFFF; padding: 4px 9px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sp-match.status-finalizado .sp-team.lose { opacity: .8; }
.sp-match.status-finalizado .sp-state { border-left-color: #3A4878; }
.sp-match.status-finalizado .sp-links { background: #E9EDF7; border-top-color: #26335F; }
.sp-match.status-finalizado .sp-links a { color: #101A3D; border-right-color: #C9D0E8; }
.sp-match.status-finalizado .sp-links a.tv { background: #D91E2A; color: #fff; }
