/*----------------------------------------------------*\
    ESPECIAL — MICROSITIO LMP (paleta «Champions»)
    Estilos propios del page template "LMP"
    Cargados condicionalmente solo en ese page.

    Tipografía: la del theme (IBM Plex Sans). Los roles
    "mono" del brief se resuelven con mayúsculas, tracking
    y cifras tabulares, sin cargar fuentes nuevas.
    Excepción: la cabecera (hero de liga) usa Barlow /
    Barlow Condensed y sus propios tokens --hero-*.
\*----------------------------------------------------*/

/* ── Variables locales ────────────────────────────────────────── */
:root {
    --lmp-night:        #0B1F3B;
    --lmp-night-2:      #0F2846;
    --lmp-night-line:   #20406A;
    --lmp-night-line-2: #1A3557;
    --lmp-night-line-3: #3A5578;
    --lmp-on-dark:      #EDF3FB;
    --lmp-on-dark-2:    #D5E2F2;
    --lmp-on-dark-mute: #9CB2CD;
    --lmp-gold:         #F4C430;
    --lmp-blue-text:    #2F6FC4;
    --lmp-red:          #C62828;
    --lmp-page:         #F4F7FC;
    --lmp-surface:      #FFFFFF;
    --lmp-line:         #D5E2F2;
    --lmp-line-2:       #E8EFF8;
    --lmp-muted:        #5E7493;
    --lmp-body-2:       #3A5578;
    --lmp-gap:          22px;
}


/* ════════════════════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════════════════════ */

.lmp {
    margin-top: -30px;
    background: var(--lmp-page);
}

.lmp h1,
.lmp h2,
.lmp h3 {
    margin: 0;
    text-wrap: pretty;
}

.lmp a {
    text-decoration: none;
}

/* Rol "mono" del brief: etiquetas y metadatos */
.lmp-mono {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Cifras: columnas alineadas sin fuente monoespaciada */
.lmp-num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.lmp-badge {
    flex: none;
    object-fit: contain;
}

.lmp-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge rojo: temporada, equipo de la nota líder */
.lmp-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--lmp-red);
    color: #FFF;
    font-weight: 700;
}

/* Tiras con scroll horizontal (equipos, marcadores) */
.lmp-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lmp-night-line) var(--lmp-night);
}

.lmp-scroll::-webkit-scrollbar {
    height: 6px;
}

.lmp-scroll::-webkit-scrollbar-track {
    background: var(--lmp-night);
}

.lmp-scroll::-webkit-scrollbar-thumb {
    background: var(--lmp-night-line);
}


/* ════════════════════════════════════════════════════════════════
   ZONA OSCURA
════════════════════════════════════════════════════════════════ */

.lmp-dark {
    background: var(--lmp-night);
    color: var(--lmp-on-dark);
    color-scheme: dark;
}

/* ── Cabecera: hero de liga (variante 2a) ─────────────────────── */
/* Tokens y tipografía propios (Barlow): solo aplican a la cabecera. */

.lmp-head {
    --hero-bg:     #0B1E3B;
    --hero-card:   #112A4F;
    --hero-line:   #22385C;
    --hero-text:   #FFFFFF;
    --hero-mute:   #9FB3D1;
    --hero-accent: #C8202A;

    background: var(--hero-bg);
    color: var(--hero-text);
    font-family: 'Barlow', sans-serif;
}

/* Ancho y márgenes laterales: los del .wrapper del theme; solo aire arriba */
.lmp-head__inner {
    padding-top: 28px;
}

/* Labels: 11–12px, 600, mayúsculas, .12em */
.lmp-crumbs,
.lmp-next__label,
.lmp-next__meta,
.lmp-countdown__lbl,
.lmp-head__data dt,
.lmp-next__team small {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hero-mute);
}

.lmp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lmp-crumbs a {
    color: inherit;
}

.lmp-crumbs a:hover,
.lmp-crumbs [aria-current] {
    color: var(--hero-text);
}

/* Fila principal: marca | próximo juego */
.lmp-head__main {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-top: 24px;
    padding-bottom: 32px;
}

.lmp-head__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-right: 48px;
}

.lmp-head__badge {
    padding: 6px 8px;
    background: var(--hero-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lmp-head__logo {
    margin: 0;
    line-height: 0;
}

/* Logo oficial en blanco (assets/images/lmp/logo-lmp-blanco.png) o el SVG a color */
.lmp-head__logo img {
    width: auto;
    height: 96px;
}

/* Próximo juego */
.lmp-next {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-left: 48px;
    border-left: 1px solid var(--hero-line);
}

.lmp-next__clock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lmp-countdown {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}

.lmp-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lmp-countdown__num,
.lmp-countdown__sep {
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lmp-countdown__sep {
    color: var(--hero-mute);
}

.lmp-countdown__lbl {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
}

/* En vivo: punto rojo + marcador en lugar de la cuenta */
.lmp-next__label--live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hero-text);
}

.lmp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hero-accent);
    animation: lmp-live 1.4s ease-in-out infinite;
}

@keyframes lmp-live {
    50% { opacity: 0.35; }
}

.lmp-next__score {
    margin: 0;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.lmp-next__score span {
    color: var(--hero-mute);
}

/* Tarjeta del partido */
.lmp-next__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 1 480px;
    min-width: 0;
    margin-left: auto;   /* cargada a la derecha */
    padding: 16px 20px;
    background: var(--hero-card);
    border: 1px solid var(--hero-line);
}

.lmp-next__meta {
    margin: 0;
}

.lmp-next__match {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lmp-next__team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lmp-next__team > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lmp-next__team strong {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
}

.lmp-next__team small {
    font-size: 11px;
}

.lmp-next__vs {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--hero-mute);
}

.lmp-next__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-text);
}

.lmp-next__link:hover {
    color: var(--hero-text);
    text-decoration: underline;
}

/* Barra de datos: 4 columnas */
.lmp-head__data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    border-top: 1px solid var(--hero-line);
}

.lmp-head__data > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px 24px;
    border-right: 1px solid var(--hero-line);
}

.lmp-head__data > div:last-child {
    border-right: 0;
}

.lmp-head__data dd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lmp-head__data dd span {
    font-size: 15px;
    font-weight: 600;
    color: var(--hero-mute);
}

/* "31/68": el total pegado y en gris */
.lmp-head__data .lmp-head__frac {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.lmp-head__frac small {
    font-size: 15px;
    font-weight: 600;
    color: var(--hero-mute);
}

/* Barra de progreso (3px) */
.lmp-head__bar {
    display: block;
    height: 3px;
    background: var(--hero-line);
}

.lmp-head__bar span {
    display: block;
    height: 100%;
    background: var(--hero-accent);
}

/* Tira de equipos */
.lmp-head .lmp-teams {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hero-line);
    scrollbar-color: var(--hero-line) var(--hero-bg);
}

.lmp-head .lmp-teams__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--hero-mute);
}

.lmp-head a.lmp-teams__item:hover {
    color: var(--hero-text);
}

/* 768–1199: próximo juego abajo de la marca, a ancho completo; datos en 2×2 */
@media screen and (max-width: 1199px) {

    .lmp-head__main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lmp-head__brand {
        padding-right: 0;
    }

    .lmp-next {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--hero-line);
    }

    .lmp-next__card {
        flex: 1 1 auto;
    }

    .lmp-head__data {
        grid-template-columns: repeat(2, 1fr);
    }

    .lmp-head__data > div:nth-child(2n) {
        border-right: 0;
    }

    .lmp-head__data > div:nth-child(n+3) {
        border-top: 1px solid var(--hero-line);
    }
}

/* <768: logo 64px, cuenta a 40px, todo en columna */
@media screen and (max-width: 767px) {

    .lmp-head__logo img {
        height: 64px;
    }

    .lmp-next {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .lmp-next__card {
        margin-left: 0;
    }

    .lmp-countdown__num,
    .lmp-countdown__sep {
        font-size: 40px;
    }

    .lmp-head__data > div {
        padding: 14px 16px;
    }

    .lmp-head .lmp-teams {
        justify-content: flex-start;
    }
}

/* ── Marcadores ───────────────────────────────────────────────── */

.lmp-scores {
    padding: 16px 0;
    border-top: 1px solid var(--lmp-night-line);
    border-bottom: 1px solid var(--lmp-night-line);
}

.lmp-scores__strip {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--lmp-night-line);
}

.lmp-score {
    display: flex;
    flex: 0 0 226px;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
}

.lmp-score + .lmp-score {
    border-left: 1px solid var(--lmp-night-line);
}

.lmp-score__label {
    font-size: 9.5px;
    color: var(--lmp-on-dark-mute);
}

.lmp-score__label.is-live {
    color: var(--lmp-gold);
    font-weight: 700;
}

.lmp-score__team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lmp-on-dark-2);
}

.lmp-score__team.is-winner {
    font-weight: 700;
    color: var(--lmp-on-dark);
}

.lmp-score__name {
    flex: 1;
}

.lmp-score__runs {
    font-size: 15px;
}

.lmp-score__record {
    font-size: 11px;
    font-weight: 400;
    color: var(--lmp-on-dark-mute);
}

/* ── Bloque de notas ──────────────────────────────────────────── */

.lmp-news {
    padding: 28px 0 40px;
}

.lmp-news__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px;
}

/* Nota líder: imagen a sangre con velo */
.lmp-lead {
    position: relative;
    flex: 1 1 420px;
    min-width: min(320px, 100%);
    min-height: 440px;
    overflow: hidden;
    background: var(--lmp-night-2);
}

.lmp-lead__link {
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: inherit;
    color: var(--lmp-on-dark);
}

.lmp-lead__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lmp-lead__link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(11, 31, 59, 0.88) 0%, rgba(11, 31, 59, 0.25) 45%, transparent 75%);
}

.lmp-lead__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
}

.lmp-lead__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lmp-lead__meta time {
    color: var(--lmp-on-dark-2);
}

.lmp-lead__title {
    max-width: 760px;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #FFF;
}

.lmp-lead__link:hover .lmp-lead__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.lmp-lead__dek {
    max-width: 640px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lmp-on-dark-2);
}

.lmp-lead__byline {
    margin: 0;
    color: var(--lmp-on-dark-2);
}

/* Columna lateral */
.lmp-news__side {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: var(--lmp-gap);
    min-width: min(260px, 100%);
    max-width: 380px;
}

.lmp-side + .lmp-side {
    padding-top: var(--lmp-gap);
    border-top: 1px solid var(--lmp-night-line);
}

.lmp-side__media {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    overflow: hidden;
}

.lmp-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--lmp-gold);
}

.lmp-side h3 {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lmp-side h3 a,
.lmp-card h3 a {
    color: var(--lmp-on-dark);
}

.lmp-side h3 a:hover,
.lmp-card h3 a:hover {
    text-decoration: underline;
}

.lmp-side p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--lmp-on-dark-mute);
}

/* Grid de 4 tarjetas: 25% cada una */
.lmp-news__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--lmp-gap);
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--lmp-night-line);
}

.lmp-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    overflow: hidden;
}

.lmp-card h3 {
    font-size: 16.5px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.lmp-news__more {
    display: inline-block;
    margin-top: 22px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lmp-gold);
}

.lmp-news__more:hover {
    color: var(--lmp-on-dark);
    text-decoration: underline;
}


/* ════════════════════════════════════════════════════════════════
   ZONA CLARA
════════════════════════════════════════════════════════════════ */

.lmp-light {
    padding-bottom: 48px;
    color: var(--lmp-night);
}

.lmp-light .lmp-scroll {
    scrollbar-color: var(--lmp-line) var(--lmp-page);
}

.lmp-section {
    padding-top: 40px;
}

.lmp-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lmp-night);
}

.lmp-sec-head__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lmp-sec-head .lmp-mono {
    color: var(--lmp-muted);
}

.lmp-sec-head__link {
    margin-left: auto;
}

.lmp-light a.lmp-sec-head__link,
.lmp-link {
    color: var(--lmp-blue-text);
}

.lmp-light a.lmp-sec-head__link:hover,
.lmp-link:hover {
    color: var(--lmp-night);
    text-decoration: underline;
}

.lmp-box {
    border: 1px solid var(--lmp-line);
    background: var(--lmp-surface);
}

/* ── Posiciones ───────────────────────────────────────────────── */

/* Tabla general en dos columnas (1–5 | 6–10); en móvil, una sola */
.lmp-table__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lmp-table__col + .lmp-table__col {
    border-left: 1px solid var(--lmp-line-2);
}

@media screen and (max-width: 780px) {

    .lmp-table__cols {
        grid-template-columns: 1fr;
    }

    .lmp-table__col + .lmp-table__col {
        border-left: 0;
    }

    /* la lista sigue del 5 al 6 sin repetir el encabezado */
    .lmp-table__col + .lmp-table__col .lmp-table__row--th {
        display: none;
    }
}

.lmp-table__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 14px;
}

.lmp-table__head h3 {
    font-size: 14px;
    font-weight: 700;
}

.lmp-table__head .lmp-mono {
    color: var(--lmp-muted);
}

.lmp-table__row {
    display: grid;
    grid-template-columns: 1fr 32px 32px 46px;
    align-items: center;
    padding: 9px 14px;
    border-top: 1px solid var(--lmp-line-2);
    font-size: 13px;
}

.lmp-table__row > .lmp-num,
.lmp-table__row--th > span:not(:first-child) {
    text-align: right;
}

.lmp-table__row .lmp-num {
    font-size: 12px;
    font-weight: 400;
}

.lmp-table__row--th {
    color: var(--lmp-muted);
}

.lmp-table__row.is-leader,
.lmp-table__row.is-leader .lmp-num {
    font-weight: 700;
}

.lmp-table__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lmp-table__team span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ── Los tres de Sonora ───────────────────────────────────────── */

.lmp-sonora {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: -18px;   /* pegada al filete del encabezado */
    border-top: 0;
}

.lmp-sonora__club {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-right: 1px solid var(--lmp-line-2);
}

.lmp-sonora__club:last-child {
    border-right: 0;
}

.lmp-sonora__club h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.lmp-sonora__stats {
    display: flex;
    gap: 28px;
    margin: 0;
}

.lmp-sonora__stats dt {
    color: var(--lmp-muted);
}

.lmp-sonora__stats dd {
    margin: 2px 0 0;
    font-size: 19px;
}

.lmp-sonora__stats .is-up {
    color: var(--lmp-blue-text);
}

.lmp-sonora__stats .is-down {
    color: var(--lmp-red);
}

.lmp-sonora__club p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--lmp-body-2);
}

.lmp-sonora__club .lmp-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
}

/* ── Barras de tarjetas: notas y galerías (zona clara) ───────── */

.lmp-more {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--lmp-gap);
}

.lmp-light .lmp-kicker {
    color: var(--lmp-blue-text);
}

.lmp-light .lmp-card h3 {
    font-size: 15px;
    line-height: 1.3;
}

.lmp-light .lmp-card h3 a {
    color: var(--lmp-night);
}

.lmp-light .lmp-card h3 a:hover {
    color: var(--lmp-blue-text);
}

/* ── Voces del beisbol ────────────────────────────────────────── */

.lmp-voices {
    display: grid;
    /* auto-fill: con pocas frases conservan su ancho en vez de estirarse */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.lmp-voice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.lmp-voice .lmp-img {
    height: auto;
    aspect-ratio: 4 / 3;
}

.lmp-voice blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--lmp-night);
}

.lmp-voice figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lmp-voice figcaption strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--lmp-blue-text);
}

.lmp-voice figcaption span {
    font-size: 12.5px;
    color: var(--lmp-muted);
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE (el layout es fluido; solo ajustes puntuales)
════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 780px) {

    /* la columna lateral baja y ocupa el ancho completo */
    .lmp-news__side {
        max-width: none;
    }

    .lmp-lead {
        min-height: 380px;
    }

    .lmp-news__grid,
    .lmp-more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 440px) {

    .lmp-sonora__club {
        border-right: 0;
        border-bottom: 1px solid var(--lmp-line-2);
    }

    .lmp-sonora__club:last-child {
        border-bottom: 0;
    }
}

/* Los tres de Sonora: titular de la última nota del equipo */
.lmp-sonora__club p a {
    color: var(--lmp-night);
    font-weight: 600;
}

.lmp-sonora__club p a:hover {
    color: var(--lmp-blue-text);
    text-decoration: underline;
}
