/* Portadas con identidad propia por seccion. Se carga despues de interiores.css. Color de cada liga: --liga. */

/* Barra de ligas (calendario y equipos) */
.sx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sx-chips > * { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 13px; border: 1px solid #C9CEDA; border-radius: 999px; background: #fff; color: #1B2A5E; font: 600 13px/1 'Inter', sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer; }
.sx-chips img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.sx-chips > .active { background: #101A3D; border-color: #101A3D; color: #fff; }
.sx-chips > .active img { background: #fff; padding: 1px; }
@media (min-width: 900px) { .sx-chips { flex-wrap: wrap; overflow: visible; } }

/* Rejilla y tarjeta base */
.sx-intro { color: #5B6270; margin: 0 0 18px; max-width: 760px; font-size: 14px; line-height: 1.55; }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.sx-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 14px; overflow: hidden; border-top: 5px solid var(--liga); box-shadow: 0 1px 3px rgba(16, 26, 61, .1); color: #14171F; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.sx-card:hover { box-shadow: 0 8px 22px rgba(16, 26, 61, .16); transform: translateY(-2px); }
.sx-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--liga) 9%, #fff); }
.sx-head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sx-head strong { font: 800 17px/1.2 'Roboto Slab', serif; color: var(--liga); }
.sx-head small { font-size: 12px; color: #5B6270; }
.sx-seal { flex: 0 0 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 10px; }
.sx-seal img { max-width: 40px; max-height: 40px; object-fit: contain; }
.sx-btn { display: block; margin: auto 16px 16px; padding: 10px 14px; border: 1px solid var(--liga); border-radius: 8px; color: var(--liga); font-weight: 700; font-size: 13px; text-align: center; text-decoration: none; }
.sx-card:hover span.sx-btn, a.sx-btn:hover { background: var(--liga); color: #fff; }
.sx-muted { color: #6B7280; font-size: 13px; }
.sx-empty { padding: 18px 16px; margin: 0; }
.sx-noimg { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #E5E8EF; }
.sx-subtitle { font-size: 18px; margin: 28px 0 12px; color: #101A3D; }
.sx-foot { color: #6B7280; font-size: 12px; margin-top: 14px; }

/* Centro de lideres */
.sx-leader { display: flex; align-items: center; gap: 14px; padding: 16px 16px 4px; }
.sx-badge { flex: 0 0 62px; height: 62px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--liga); color: #fff; font: 800 26px/1 'Roboto Slab', serif; }
.sx-badge small { font-size: 14px; opacity: .8; margin-right: 1px; }
.sx-leader-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-leader-who em { font: 700 11px/1 'Inter', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .09em; color: var(--liga); }
.sx-leader-who strong { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.sx-leader-who > span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5B6270; }
.sx-leader-who img { width: 22px; height: 22px; object-fit: contain; }
.sx-figure { margin: 0; padding: 4px 16px 14px; color: #5B6270; font-size: 14px; }
.sx-figure b { font: 800 40px/1.1 'Roboto Slab', serif; color: #101A3D; margin-right: 6px; font-variant-numeric: tabular-nums; }
.sx-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.sx-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-left: 5px solid var(--liga); border-radius: 10px; text-decoration: none; color: #14171F; box-shadow: 0 1px 2px rgba(16, 26, 61, .08); }
.sx-mini img { width: 40px; height: 40px; object-fit: contain; }
.sx-mini span { display: flex; flex-direction: column; }
.sx-mini small { color: #6B7280; font-size: 12px; }

/* Directorio de equipos */
.dir-hero { background: linear-gradient(120deg, #101A3D, #1B2A5E); color: #fff; border-radius: 14px; padding: 22px 20px; margin-bottom: 14px; }
html body .vd-main .dir-hero h1 { color: #fff; margin: 0 0 4px; font-size: 28px; }
.dir-hero p { margin: 0 0 14px; color: #C7CCDA; font-size: 14px; }
html body .vd-main .dir-hero input[type="search"] { width: 100%; min-height: 48px; font-size: 16px; border: 0; }
.dir-count { margin: 4px 0 10px; font-size: 13px; color: #5B6270; }
.dir-count a { font-weight: 700; color: #C4141D; }
.dir-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 10px; margin-bottom: 20px; }
.dir-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 26, 61, .08); text-decoration: none; color: #14171F; }
.dir-item img, .dir-item .sx-noimg { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.dir-item span { display: flex; flex-direction: column; min-width: 0; }
.dir-item strong { font-size: 14px; overflow-wrap: anywhere; }
.dir-item small { font-size: 12px; color: #6B7280; }
.sx-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 16px 8px; font-size: 13px; color: #5B6270; align-items: baseline; }
.sx-counts b { font: 800 26px/1 'Roboto Slab', serif; color: #101A3D; margin-right: 4px; }
.sx-shields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 16px; min-height: 52px; }
.sx-shields img { width: 36px; height: 36px; object-fit: contain; }
.sx-shields i { font-style: normal; font-size: 12px; font-weight: 700; color: #6B7280; }

/* Comparativa ofensiva / defensiva */
.sx-duel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; margin: 10px 14px 0; padding: 10px 12px; border-radius: 10px; background: #F6F7FA; border-left: 4px solid #1F8A4C; }
.sx-duel.sx-def { border-left-color: #C4141D; }
.sx-duel em { grid-column: 1 / -1; font: 700 11px/1 'Inter', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .09em; color: #1F8A4C; }
.sx-duel.sx-def em { color: #C4141D; }
.sx-duel img { width: 44px; height: 44px; object-fit: contain; }
.sx-duel span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sx-duel strong { font-size: 14px; overflow-wrap: anywhere; }
.sx-duel small { font-size: 12px; color: #5B6270; }
.sx-duel small b { font-size: 18px; color: #101A3D; }
.sx-duel + .sx-btn { margin-top: 14px; }

/* Power Rankings editorial */
.prx-hero { background: #101A3D; color: #fff; border-radius: 16px; padding: 28px 22px; margin-bottom: 18px; border-bottom: 5px solid #C4141D; }
.prx-hero .prx-kicker { font: 700 12px/1 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #E7B84B; }
html body .vd-main .prx-hero h1 { color: #fff; margin: 8px 0 6px; font-size: 34px; }
.prx-hero p { margin: 0; color: #C7CCDA; font-size: 14px; line-height: 1.55; max-width: 720px; }
.prx-metodo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.prx-metodo div { border: 1px solid rgba(231, 184, 75, .4); border-radius: 10px; padding: 10px 12px; }
.prx-metodo b { display: block; font: 800 22px/1.1 'Roboto Slab', serif; color: #E7B84B; }
.prx-metodo span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: #C7CCDA; }
.sx-power { background: #101A3D; color: #fff; border-top-color: #E7B84B; }
.sx-power .sx-head { background: #16224C; border-left: 5px solid var(--liga); }
.sx-power .sx-head strong { color: #fff; }
.sx-power .sx-head small, .sx-power .sx-muted { color: #AEB5CC; }
.sx-top { display: flex; align-items: center; gap: 12px; padding: 16px; }
.sx-top img { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.sx-top span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sx-top strong { font-size: 17px; overflow-wrap: anywhere; }
.sx-top small { font-size: 12px; color: #C7CCDA; }
.sx-rank { font: 800 44px/1 'Roboto Slab', serif; color: #E7B84B; }
.sx-power .sx-btn { border-color: #E7B84B; color: #E7B84B; }
.sx-card.sx-power:hover span.sx-btn { background: #E7B84B; color: #101A3D; }

/* Noticias: lista + columna lateral */
.noticias-editorial { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; padding-bottom: 32px; }
html body #noticias-container .noticias-editorial .noticias-text-list { max-width: none; margin: 0; padding: 0; }
.noticias-editorial.sin-lista { grid-template-columns: minmax(0, 1fr); }
.noticias-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nx-ad { display: block; background: linear-gradient(140deg, #101A3D, #1B2A5E); color: #fff; border-radius: 14px; padding: 22px 20px; text-decoration: none; border-bottom: 5px solid #C4141D; }
.nx-ad em { font: 700 11px/1 'Inter', sans-serif; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #E7B84B; }
.nx-ad strong { display: block; font: 800 21px/1.25 'Roboto Slab', serif; margin: 8px 0; }
.nx-ad span { display: block; font-size: 13px; color: #C7CCDA; line-height: 1.5; }
.nx-ad b { display: inline-block; margin-top: 14px; background: #fff; color: #101A3D; border-radius: 8px; padding: 9px 14px; font-size: 13px; }
.nx-box { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 26, 61, .08); }
html body .vd-main .nx-box h2 { margin: 0; padding: 11px 14px; background: #101A3D; color: #fff; font-size: 14px; }
.nx-game { display: block; padding: 9px 14px; border-top: 1px solid #EEF0F4; text-decoration: none; color: #14171F; font-size: 13px; }
.nx-game:hover { background: #F6F7FA; }
.nx-game small { display: block; color: #6B7280; font-size: 11px; margin-bottom: 4px; }
.nx-game > span { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.nx-game img { width: 18px; height: 18px; object-fit: contain; }
.nx-game i { flex: 1; font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-game b { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .noticias-editorial { grid-template-columns: minmax(0, 1fr); } }

/* Calendario: barra de ligas en un renglon (assets/js/barra-ligas.js) */
html body .cal-bar { display: flex; align-items: stretch; gap: 4px; background: #101A3D; border-radius: 12px; padding: 6px; margin-bottom: 14px; }
html body .cal-bar-track { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
html body .cal-bar-track::-webkit-scrollbar { display: none; }
html body .cal-bar-track a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 8px; color: #fff; font: 600 13px/1 'Inter', sans-serif; white-space: nowrap; text-decoration: none; }
html body .cal-bar-track a:hover { background: #1B2A5E; }
html body .cal-bar-track a.active { background: #C4141D; }
html body .cal-bar-track img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
html body .cal-bar button.cal-bar-arrow { flex: 0 0 36px; width: 36px; min-width: 0; margin: 0; padding: 0 0 3px; border: 0; border-radius: 8px; background: #1B2A5E; color: #fff; font: 400 26px/1 'Inter', sans-serif; cursor: pointer; }
html body .cal-bar button.cal-bar-arrow:hover { background: #2A3B78; }
html body .cal-bar button.cal-bar-arrow:disabled { opacity: .3; cursor: default; background: #1B2A5E; }
@media (max-width: 600px) { html body .cal-bar button.cal-bar-arrow { flex-basis: 30px; width: 30px; } html body .cal-bar-track a { padding: 6px 10px; } }

/* Calendario */
.cal-view { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.cal-view a { padding: 8px 16px; border-radius: 8px; border: 1px solid #C9CEDA; background: #fff; color: #1B2A5E; font-weight: 700; font-size: 13px; text-decoration: none; }
.cal-view a.active { background: #C4141D; border-color: #C4141D; color: #fff; }
.cal-view a.cal-full { margin-left: auto; border-color: transparent; background: transparent; color: #C4141D; }
.cal-day-title { font-size: 17px; margin: 18px 0 10px; color: #101A3D; }

@media (max-width: 600px) {
    html body .vd-main .prx-hero h1 { font-size: 26px; }
    .sx-figure b { font-size: 34px; }
    .cal-view a.cal-full { margin-left: 0; }
}
