/* ==========================================================================
   LOS DE ABAJO NOTICIAS - STYLESHEET
   Archivo ordenado y depurado para el proyecto
   ========================================================================== */

/* ==========================================================================
   01. VARIABLES
   ========================================================================== */

:root {
    --blue: #003b7a;
    --blue-dark: #001f45;
    --blue-soft: #e8f0ff;
    --red: #d71920;
    --red-alt: #e30613;
    --dark: #071b34;
    --light: #f3f6fb;
    --text: #172033;
    --muted: #667085;
    --border: #e5e7eb;
    --white: #ffffff;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, .06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;
}


/* ==========================================================================
   02. RESET Y BASE
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

a {
    color: var(--blue);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}


/* ==========================================================================
   03. HEADER / NAVEGACIÓN
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.header-inner,
.header-container {
    max-width: 1180px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo como imagen */
.logo-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-header img {
    height: 46px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    filter: contrast(1.05) saturate(.95);
    transition: opacity .2s ease;
}

.logo-header img:hover {
    opacity: .92;
}

/* Marca en texto, por compatibilidad con el header anterior */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
}

.brand strong {
    display: block;
    font-size: 22px;
}

.brand span {
    font-size: 13px;
    opacity: .85;
}

/* Navegación */
.nav,
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a,
.main-nav a {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    opacity: .95;
    transition: opacity .2s ease, color .2s ease;
}

.nav a:hover,
.main-nav a:hover {
    color: #cfe6ff;
    opacity: 1;
}


/* ==========================================================================
   04. LAYOUT GENERAL
   ========================================================================== */

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 40px;
}

.section-title {
    margin: 24px 0;
}

.section-title h1 {
    margin: 0;
    color: var(--dark);
    font-size: 34px;
}

.section-title p {
    color: var(--muted);
    margin: 8px 0 0;
}

.sidebar {
    padding-top: 104px;
}

.main-grid .sidebar {
    padding-top: 0;
}


/* ==========================================================================
   05. COMPONENTES GENERALES
   ========================================================================== */

.featured-card,
.news-card,
.box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.badge.light {
    background: #eef4ff;
    color: var(--blue);
}

.meta {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0;
}

.btn {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.placeholder {
    height: 100%;
    min-height: 260px;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    font-weight: 700;
}

.placeholder.small {
    min-height: 105px;
    font-size: 42px;
    border-radius: 14px;
}

.box {
    padding: 20px;
    margin-bottom: 18px;
}

.box h2 {
    margin-top: 0;
    font-size: 20px;
}

.box a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.notice p {
    color: var(--muted);
    line-height: 1.5;
}


/* ==========================================================================
   06. PORTADA / NOTICIAS
   ========================================================================== */

.featured-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    margin-bottom: 24px;
}

.featured-image img,
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-body {
    padding: 24px;
}

.featured-body h2 {
    font-size: 28px;
    margin: 10px 0;
}

.featured-body p,
.news-card p {
    line-height: 1.5;
    color: #344054;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-list.full {
    padding-bottom: 40px;
}

.news-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px;
}

.news-card h3 {
    margin: 8px 0;
    font-size: 20px;
}

.thumb {
    height: 122px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f7;
}


/* ==========================================================================
   07. TABLA POSICIONES
   ========================================================================== */

.tabla-box {
    overflow: hidden;
}

.tabla-posiciones {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tabla-posiciones th,
.tabla-posiciones td {
    padding: 11px 8px;
    font-size: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #ececec;
}

.tabla-posiciones th:first-child,
.tabla-posiciones td:first-child {
    width: 35px;
    text-align: center;
}

.tabla-posiciones th:last-child,
.tabla-posiciones td:last-child {
    width: 40px;
    text-align: center;
}

.equipo-logo {
    width: 28px !important;
    text-align: center;
}

.equipo-logo img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    display: inline-block;
}

.equipo-nombre {
    font-size: 12px;
    line-height: 1.2;
    word-break: normal;
}

.tabla-posiciones tr.equipo-destacado {

    background:
        linear-gradient(
            90deg,
            rgba(0,59,122,.12),
            rgba(0,59,122,.04)
        );

    font-weight: 800;

    border-left: 4px solid #003b7a;

    box-shadow:
        inset 0 0 0 1px rgba(0,59,122,.08);
}

/* DESTACADO TEXTO */

.tabla-posiciones tr.equipo-destacado td {

    color: #00152e;
}

/* DESTACADO NOMBRE */

.tabla-posiciones tr.equipo-destacado .equipo-nombre {

    font-weight: 800;
}

/* LÍNEAS VERTICALES / COLUMNAS TABLA */

.tabla-posiciones th,
.tabla-posiciones td {
    border-right: 1px solid #ececec;
}

.tabla-posiciones th:last-child,
.tabla-posiciones td:last-child {
    border-right: none;
}

/* Refuerzo visual columna POS y PTS */

.tabla-posiciones th:first-child,
.tabla-posiciones td:first-child {
    background: rgba(0,0,0,.012);
}

.tabla-posiciones th:last-child,
.tabla-posiciones td:last-child {
    background: rgba(0,0,0,.012);
}


/* ==========================================================================
   08. PARTIDOS / CARRUSEL
   ========================================================================== */

.partidos-strip {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 22px;
}

.partidos-carousel-wrap {
    position: relative;
    margin: 18px 0 24px;
    padding: 0 36px;
}

.partidos-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.partidos-carousel::-webkit-scrollbar {
    display: none;
}

.partido-card {
    flex: 0 0 220px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.partido-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-bottom: 1px solid #eee;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.partido-head span {
    color: var(--red-alt);
    white-space: nowrap;
    font-weight: 500;
}

.partido-row {
    display: grid;
    grid-template-columns: 28px 1fr 22px;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.partido-row img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
}

.partido-row strong {
    color: var(--red-alt);
    text-align: center;
}

.partidos-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #111;
    background: var(--white);
    color: #111;
    font-size: 28px;
    line-height: 20px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2;
}

.partidos-arrow-left {
    left: 0;
}

.partidos-arrow-right {
    right: 0;
}

.partidos-arrow:hover {
    background: #111;
    color: var(--white);
}


/* ==========================================================================
   09. ESTADÍSTICAS
   ========================================================================== */

.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.stat-card span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 32px;
    color: #003b73;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.estadisticas-layout-tres {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 24px;
}

.resultados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.resultados-box {
    margin: 0;
}

.estadisticas-tabla-box {
    background: var(--white);
    border-radius: var(--radius-md);
    margin: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.estadisticas-tabla-box h2,
.resultados-box h2 {
    padding: 16px 18px;
    margin: 0;
    font-size: 20px;
    color: #111;
}

.tabla-scroll {
    overflow-x: auto;
}

.tabla-dalealbo {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tabla-dalealbo thead {
    background: #f1f1f1;
}

.tabla-dalealbo th {
    padding: 9px 6px;
    color: #777;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
}

.tabla-dalealbo td {
    padding: 9px 6px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tabla-dalealbo .equipo-col {
    text-align: left;
}

.tabla-dalealbo tr.equipo-destacado {
    background: var(--blue-soft);
    font-weight: 800;
}

.tabla-dalealbo tbody tr:hover {
    background: #f7f7f7;
}

.equipo-tabla {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left !important;
    font-weight: 700;
}

.equipo-tabla img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.equipo-tabla span {
    font-size: 11px;
}


/* ==========================================================================
   10. RESULTADOS / LÍNEA DE PARTIDO
   ========================================================================== */

.match-line {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}

.match-date {
    font-size: 11px;
    color: var(--red-alt);
    margin-bottom: 8px;
    font-weight: 800;
}

.match-team {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    gap: 7px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    margin: 6px 0;
}

.match-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.match-team strong {
    color: var(--red-alt);
    text-align: center;
}


/* ==========================================================================
   11. PLANTEL
   ========================================================================== */

.plantel-grupo-title {
    margin: 42px 0 18px;
    padding-left: 14px;
    border-left: 6px solid var(--red-alt);
    font-size: 28px;
    font-weight: 800;
    color: #003b73;
    line-height: 1;
}

.plantel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.jugador-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    transition: transform .2s ease;
}

.jugador-card:hover {
    transform: translateY(-3px);
}

.jugador-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.jugador-foto {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    background: var(--white);
}

.jugador-info h2 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #111827;
    line-height: 1.2;
}

.jugador-posicion {
    display: inline-block;
    background: #003b73;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.jugador-meta {
    font-size: 13px;
    color: #64748b;
}

.jugador-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-mini {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.stat-mini span {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-mini strong {
    font-size: 24px;
    color: #003b73;
    line-height: 1;
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 30px;
}

.footer-inner {
    text-align: center;
    padding: 28px 18px;
}

.site-footer a {
    color: #8ec5ff;
}

.copy {
    font-size: 12px;
    opacity: .75;
}


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .estadisticas-layout-tres {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .plantel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .partidos-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-summary,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .header-inner,
    .header-container {
        min-height: auto;
        padding: 16px 18px;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .nav,
    .main-nav {
        justify-content: flex-start;
    }

    .main-grid,
    .featured-card {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-top: 0;
    }

    .featured-image {
        height: 240px;
    }

    .news-card {
        grid-template-columns: 115px 1fr;
    }

    .section-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 800px) {
    .resultados-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .partidos-carousel-wrap {
        padding: 0 30px;
    }

    .partido-card {
        flex-basis: 210px;
    }

    .plantel-grid {
        grid-template-columns: 1fr;
    }

    .plantel-grupo-title {
        font-size: 22px;
    }
}

@media (max-width: 520px) {
    .nav,
    .main-nav {
        gap: 10px;
    }

    .brand strong {
        font-size: 18px;
    }

    .logo-header{
    display:flex;
    align-items:center;
    width:500px;
    overflow:visible;
    }

    .logo-header img{
    height:54px;
    width:auto;
    display:block;
    object-fit:contain;

    transform:scaleX(1.65);
    transform-origin:left center;

    filter:contrast(1.05) saturate(0.95);
    transition:.2s ease;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .thumb {
        height: 180px;
    }

    .featured-body h2 {
        font-size: 23px;
    }

    .partidos-strip {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AJUSTE FINAL LOGO HEADER
========================================================= */

.site-header .logo-header{
    width:320px !important;
    display:flex !important;
    align-items:center !important;
}

.site-header .logo-header img{
    width:100% !important;
    max-width:none !important;
    height:60px !important;
    object-fit:fill !important;
    display:block !important;
}

/* =========================================================
   AJUSTE FINAL HEADER
========================================================= */

.site-header{
    background:linear-gradient(135deg,#003b7a,#002b5c);
    border-bottom:3px solid #001d40;
}

.nav a{
    font-size:15px;
    letter-spacing:.3px;
}

/* ==========================================================================
   14. MOBILE RESPONSIVE OVERRIDES - NO ALTERA DESKTOP
   Ajustes exclusivos para tablet/celular.
   ========================================================================== */

html,
body {
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 850px) {

    html,
    body {
        overflow-x: hidden;
    }

    body {
        width: 100%;
    }

    .container,
    .header-inner,
    .header-container,
    .footer-inner {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .site-header {
        position: relative;
        overflow: hidden;
    }

    .header-inner,
    .header-container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-header .logo-header {
        width: 100% !important;
        max-width: 310px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .site-header .logo-header img {
        width: 100% !important;
        max-width: 310px !important;
        height: auto !important;
        max-height: 62px !important;
        object-fit: contain !important;
        transform: none !important;
        transform-origin: center center !important;
        display: block !important;
    }

    .nav,
    .main-nav {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 14px;
        margin: 0;
        padding: 0;
    }

    .nav a,
    .main-nav a {
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .main-grid {
        display: block;
        width: 100%;
        max-width: 100%;
        padding-top: 18px;
    }

    .content,
    .sidebar {
        width: 100%;
        max-width: 100%;
        padding-top: 0;
    }

    .section-title {
        margin: 20px 0;
    }

    .section-title h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .section-title p {
        font-size: 15px;
        line-height: 1.4;
    }

    .featured-card {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 18px;
    }

    .featured-image {
        width: 100%;
        height: 230px;
        overflow: hidden;
    }

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

    .placeholder {
        min-height: 230px;
        font-size: 76px;
    }

    .featured-body {
        width: 100%;
        padding: 20px;
    }

    .featured-body h2 {
        font-size: 22px;
        line-height: 1.2;
        margin: 10px 0;
        overflow-wrap: break-word;
    }

    .featured-body p,
    .news-card p,
    .notice p {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .news-list {
        gap: 14px;
    }

    .news-card {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        overflow: hidden;
    }

    .news-card h3 {
        font-size: 19px;
        line-height: 1.22;
    }

    .news-card .thumb,
    .thumb {
        width: 100%;
        height: 190px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .news-card .thumb img,
    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .placeholder.small {
        min-height: 190px;
        font-size: 58px;
    }

    .partidos-carousel-wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 32px;
        margin: 16px 0 20px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .partidos-carousel {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .partido-card {
        flex: 0 0 220px;
        max-width: 220px;
        scroll-snap-align: start;
    }

    .partidos-arrow {
        width: 26px;
        height: 32px;
        font-size: 25px;
        z-index: 4;
    }

    .box,
    .tabla-box,
    .estadisticas-tabla-box,
    .resultados-box,
    .jugador-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sidebar {
        margin-top: 22px;
    }

    .tabla-posiciones {
        width: 100%;
        table-layout: fixed;
    }

    .tabla-posiciones th,
    .tabla-posiciones td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .equipo-logo {
        width: 24px !important;
    }

    .equipo-logo img {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    .equipo-nombre {
        font-size: 11px;
        line-height: 1.15;
    }

    .estadisticas-layout-tres,
    .stats-grid,
    .stats-summary,
    .resultados-grid,
    .plantel-grid {
        grid-template-columns: 1fr;
    }

    .tabla-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabla-dalealbo {
        min-width: 680px;
    }

    .jugador-card:hover {
        transform: none;
    }
}

@media (max-width: 520px) {

    .container,
    .header-inner,
    .header-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header .logo-header {
        max-width: 285px !important;
    }

    .site-header .logo-header img {
        max-width: 285px !important;
        max-height: 58px !important;
    }

    .nav,
    .main-nav {
        gap: 9px 12px;
    }

    .nav a,
    .main-nav a {
        font-size: 13px;
    }

    .section-title h1 {
        font-size: 25px;
    }

    .featured-image {
        height: 215px;
    }

    .featured-body {
        padding: 18px;
    }

    .featured-body h2 {
        font-size: 21px;
    }

    .news-card h3 {
        font-size: 18px;
    }

    .thumb,
    .news-card .thumb {
        height: 175px;
    }

    .partidos-carousel-wrap {
        padding: 0 30px;
    }

    .partido-card {
        flex-basis: 210px;
        max-width: 210px;
    }

    .box {
        padding: 16px;
    }

    .plantel-grupo-title {
        font-size: 22px;
        margin-top: 30px;
    }
}

@media (max-width: 380px) {

    .site-header .logo-header {
        max-width: 250px !important;
    }

    .site-header .logo-header img {
        max-width: 250px !important;
    }

    .nav a,
    .main-nav a {
        font-size: 12px;
    }

    .featured-body h2 {
        font-size: 20px;
    }

    .partido-card {
        flex-basis: 200px;
        max-width: 200px;
    }
}

.palmares-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 28px 0;
}


.palmares-numero {
    font-size: 56px;
    font-weight: 900;
    color: #003b7a;
    line-height: 1;
    margin-bottom: 12px;
}

.palmares-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    border-top: 5px solid #d71920;
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.palmares-card h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    text-transform: uppercase;
    color: #071b34;
}

.palmares-detalle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 30px 0;
}

.palmares-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.palmares-box h2 {
    margin: 0 0 18px;
    color: #003b7a;
    font-size: 24px;
    border-left: 6px solid #d71920;
    padding-left: 12px;
}

.palmares-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.palmares-item strong {
    color: #d71920;
    font-size: 16px;
}

.palmares-item span {
    font-weight: 700;
    color: #172033;
}

.palmares-item em {
    color: #667085;
    font-weight: 500;
}

@media (max-width: 900px) {
    .palmares-resumen,
    .palmares-detalle {
        grid-template-columns: 1fr;
    }
}

.palmares-banner {
    margin-top: 24px;
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.16), transparent 55%),
        linear-gradient(135deg, #003b7a, #001b3d);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    padding: 30px;
}

.palmares-banner::before {
    content: "2011";
    position: absolute;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255,255,255,.06);
    z-index: 0;
}

.palmares-banner img {
    position: relative;
    z-index: 1;
    max-width: 42%;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
}

.palmares-banner-texto {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    text-align: center;
}

.palmares-banner-texto strong {
    display: block;
    font-size: 28px;
    color: #fff;
    letter-spacing: 1px;
}

.palmares-banner-texto span {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.palmares-historico {
    margin-top: 24px;
}

.palmares-historico h3 {
    margin-bottom: 14px;
    color: #003b7a;
    font-size: 22px;
}

.palmares-dt {
    margin-bottom: 18px;
    font-size: 15px;
}

.palmares-subgrupo {
    margin-bottom: 18px;
}

.palmares-subgrupo strong {
    display: block;
    margin-bottom: 10px;
    color: #d71920;
    font-size: 15px;
}

.palmares-subgrupo ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.palmares-subgrupo li {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.live-page-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    text-align: center;
}

.live-label {
    display: inline-block;
    background: #e30613;
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 18px;
    animation: livePulse 1.2s infinite;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 24px;
}

.live-team img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.live-team strong {
    font-size: 20px;
}

.live-score {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 56px;
    font-weight: 900;
    color: #003b7a;
}

.live-score small {
    display: block;
    font-size: 18px;
    color: #e30613;
    margin-left: 8px;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, .6); }
    70% { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

@media (max-width: 700px) {
    .live-scoreboard {
        grid-template-columns: 1fr;
    }

    .live-score {
        justify-content: center;
        font-size: 42px;
    }
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

.live-page-offline {
    position: relative;
    overflow: hidden;

    min-height: 520px;

    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 30px;

    box-shadow:
        0 10px 40px rgba(0,0,0,.12),
        0 2px 8px rgba(0,0,0,.08);

    background: #001b3d;
}

.live-page-offline::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 27, 61, .45),
            rgba(0, 27, 61, .72)
        ),
        url("/assets/img/live/live-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1.03);

    z-index: 0;
}

.live-page-offline::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at center,
        rgba(255,255,255,.06),
        transparent 70%);

    z-index: 1;
}

.live-offline-content {
    position: relative;
    z-index: 2;

    text-align: center;

    padding: 50px;

    border-radius: 24px;

    backdrop-filter: blur(8px);

    background: rgba(0,0,0,.18);

    border: 1px solid rgba(255,255,255,.08);

    max-width: 760px;
}

.live-offline-content h2 {
    color: #ffffff;

    font-size: 52px;

    line-height: 1.1;

    margin-bottom: 20px;

    font-weight: 900;

    text-shadow:
        0 2px 12px rgba(0,0,0,.55);
}

.live-offline-content p {
    color: rgba(255,255,255,.92);

    font-size: 20px;

    line-height: 1.7;

    text-shadow:
        0 2px 10px rgba(0,0,0,.45);
}

@media (max-width: 768px) {

    .live-page-offline {
        min-height: 420px;
    }

    .live-offline-content {
        padding: 28px;
        margin: 20px;
    }

    .live-offline-content h2 {
        font-size: 34px;
    }

    .live-offline-content p {
        font-size: 16px;
    }
}


/* ==========================================================================
   15. AJUSTE SEGURO FINAL - NUEVOS LINKS, EN VIVO Y PALMARÉS
   Se agrega al CSS estable sin modificar el comportamiento anterior.
   ========================================================================== */

/* Evita que los nuevos links del menú se desordenen, manteniendo escritorio */
.site-header .main-nav,
.site-header .nav {
    flex-wrap: wrap;
}

/* En pantallas intermedias, reduce levemente separación para que quepan:
   Inicio, Estadísticas, En vivo, Plantel, Palmarés */
@media (min-width: 851px) and (max-width: 1180px) {
    .site-header .header-container,
    .site-header .header-inner {
        gap: 16px;
    }

    .site-header .main-nav,
    .site-header .nav {
        gap: 14px;
    }

    .site-header .main-nav a,
    .site-header .nav a {
        font-size: 14px;
    }

    .site-header .logo-header {
        width: 280px !important;
    }
}

/* Mobile: mantiene el comportamiento responsive que funcionaba,
   solo mejora la distribución cuando hay más links */
@media (max-width: 850px) {
    .site-header .main-nav,
    .site-header .nav {
        justify-content: center !important;
        row-gap: 10px;
        column-gap: 14px;
    }

    .site-header .main-nav a,
    .site-header .nav a {
        white-space: nowrap;
    }
}

/* Mobile pequeño: evita que el header se vea saturado */
@media (max-width: 420px) {
    .site-header .main-nav,
    .site-header .nav {
        column-gap: 10px;
        row-gap: 9px;
    }

    .site-header .main-nav a,
    .site-header .nav a {
        font-size: 12px;
    }
}

/* Palmarés: responsive seguro sin alterar escritorio */
@media (max-width: 850px) {
    .palmares-resumen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .palmares-card {
        min-height: 128px;
        padding: 18px 12px;
    }

    .palmares-numero {
        font-size: 44px;
        margin-bottom: 8px;
    }

    .palmares-card h2 {
        font-size: 12px;
        line-height: 1.2;
    }

    .palmares-detalle {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .palmares-box {
        padding: 18px;
    }

    .palmares-box h2 {
        font-size: 21px;
    }

    .palmares-banner {
        min-height: 260px;
        padding: 24px;
    }

    .palmares-banner::before {
        font-size: 110px;
    }

    .palmares-banner img {
        max-width: 48%;
    }

    .palmares-banner-texto strong {
        font-size: 22px;
    }

    .palmares-subgrupo ul {
        gap: 8px;
    }

    .palmares-subgrupo li {
        font-size: 13px;
        padding: 7px 11px;
    }
}

@media (max-width: 520px) {
    .palmares-resumen {
        grid-template-columns: 1fr;
    }

    .palmares-card {
        min-height: 112px;
    }

    .palmares-item {
        grid-template-columns: 72px 1fr;
        gap: 8px;
    }

    .palmares-banner {
        min-height: 230px;
    }

    .palmares-banner img {
        max-width: 58%;
    }
}

/* En vivo: mantiene vista desktop y ordena vista móvil */
@media (max-width: 850px) {
    .live-page-card {
        padding: 22px;
    }

    .live-scoreboard {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .live-score {
        justify-content: center;
        font-size: 42px;
    }

    .live-team img {
        width: 68px;
        height: 68px;
    }

    .live-team strong {
        font-size: 17px;
    }

    .live-page-offline {
        min-height: 380px;
        border-radius: 22px;
        margin-top: 20px;
    }

    .live-offline-content {
        padding: 28px;
        margin: 18px;
    }

    .live-offline-content h2 {
        font-size: 32px;
    }

    .live-offline-content p {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .live-page-card {
        padding: 18px;
    }

    .live-page-offline {
        min-height: 330px;
    }

    .live-offline-content {
        padding: 22px;
        margin: 14px;
    }

    .live-offline-content h2 {
        font-size: 27px;
    }

    .live-offline-content p {
        font-size: 14px;
    }
}

/* FIX HEADER MOBILE - RESTAURA MENÚ */

@media (max-width: 850px) {

    .site-header {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
        z-index: 50 !important;
    }

    .header-container,
    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        min-height: auto !important;
    }

    .logo-header {
        width: 100% !important;
        max-width: 300px !important;
        display: flex !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .logo-header img {
        width: 100% !important;
        height: auto !important;
        max-height: 58px !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .main-nav,
    .nav {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px 14px !important;
        margin-top: 4px !important;
    }

    .main-nav a,
    .nav a {
        display: inline-block !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
}

.legal-box {
    line-height: 1.7;
    margin-bottom: 36px;
}

.legal-box h2 {
    color: #003b7a;
    margin-top: 24px;
    font-size: 22px;
}

.legal-box p {
    color: #344054;
}

/* LEGAL MOBILE */

@media (max-width: 768px) {

    .legal-box {
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .legal-box h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-top: 22px;
        margin-bottom: 12px;
    }

    .legal-box p {
        font-size: 15px;
        line-height: 1.8;
    }

    .legal-box a {
        word-break: break-word;
    }
}


/* ==========================================================================
   PROXIMO PARTIDO - SIDEBAR
   ========================================================================== */

.next-match-box {
    overflow: hidden;
}

.next-match-box h2 {
    margin-bottom: 14px;
    color: var(--dark);
}

.next-match-league {
    display: inline-block;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.next-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 12px 0 20px;
}

.next-match-team {
    text-align: center;
    min-width: 0;
}

.next-match-team img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.next-match-team strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
    color: var(--dark);
}

.next-match-vs {
    color: var(--red-alt);
    font-size: 20px;
    font-weight: 900;
}

.next-match-details {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.next-match-details div {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.next-match-details span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 3px;
}

.next-match-details strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.next-match-details small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.next-match-btn {
    display: block !important;
    width: 100%;
    background: var(--blue);
    color: var(--white) !important;
    text-align: center;
    padding: 12px 14px !important;
    border-radius: 12px;
    border-bottom: 0 !important;
    font-weight: 800;
}

.next-match-btn:hover {
    background: var(--blue-dark);
}

@media (max-width: 850px) {
    .next-match-teams {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .next-match-team img {
        width: 50px;
        height: 50px;
    }
}

/* FOOTER */

.site-footer {
    background: #00152e;
    margin-top: 60px;
    border-top: 3px solid #d90429;
    color: rgba(255,255,255,.82);
}

.footer-inner {
    padding: 50px 18px 26px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 34px;
}

.footer-brand img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 14px;
    color: rgba(255,255,255,.75);
}

.footer-disclaimer {
    font-size: 14px;
    color: rgba(255,255,255,.62);
    line-height: 1.7;
    padding-left: 14px;
    border-left: 3px solid rgba(255,255,255,.18);
    margin: 18px 0;
}

.footer-brand a,
.footer-links a,
.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: .2s ease;
}

.footer-brand a:hover,
.footer-links a:hover,
.footer-contact a:hover {
    color: #4ea1ff;
}

.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social {
    margin-top: 18px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: .2s ease;
}

.footer-social a:hover {
    background: #1877f2;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    margin: 0;
}

/* FOOTER MOBILE */

@media (max-width: 768px) {

    .site-footer {
        margin-top: 40px;
    }

    .footer-inner {
        padding: 38px 18px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand img {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .footer-brand p {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer-disclaimer {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 3px solid rgba(255,255,255,.18);
        margin: 18px auto;
        max-width: 320px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 12px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* HISTORIA */

.historia-box {

    overflow: hidden;

    padding: 0;

    border-radius: 24px;
}

.historia-cover {

    width: 100%;

    height: 360px;

    overflow: hidden;

    position: relative;
}

.historia-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.historia-cover::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,.08),
            rgba(0,0,0,.42)
        );
}

.historia-content {

    padding: 44px;
}

.historia-content p {

    margin-bottom: 26px;

    line-height: 1.95;

    color: #344054;

    font-size: 17px;
}

/* TABLET */

@media (max-width: 992px) {

    .historia-cover {

        height: 300px;
    }

    .historia-content {

        padding: 34px;
    }

    .historia-content p {

        font-size: 16px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .historia-box {

        border-radius: 18px;
    }

    .historia-cover {

        height: 220px;
    }

    .historia-content {

        padding: 24px 20px;
    }

    .historia-content p {

        font-size: 15px;

        line-height: 1.85;

        margin-bottom: 22px;
    }
}

/* MOBILE PEQUEÑO */

@media (max-width: 480px) {

    .historia-cover {

        height: 180px;
    }

    .historia-content {

        padding: 20px 18px;
    }

    .historia-content p {

        font-size: 14px;

        line-height: 1.8;
    }
}

/* COMUNIDAD AZUL */

.comunidad-box {
    padding: 0 !important;
    margin: 18px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.comunidad-box:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);
}

.comunidad-box a {
    display: block;
    line-height: 0;
}

.comunidad-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* MOBILE */

@media (max-width: 768px) {

    .comunidad-box {

        border-radius: 18px;
    }

    .comunidad-box img {

        max-height: 260px;

        object-fit: cover;
    }
}

/* =========================
   ARCHIVO DE NOTICIAS
   noticias.php
========================= */

.archive-news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 28px auto 40px;
    max-width: 1040px;
}

.archive-news-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.archive-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

.archive-news-card .news-thumb {
    width: 100%;
    height: 160px;
    border-radius: 18px;
    overflow: hidden;
    background: #eef2f7;
}

.archive-news-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido */

.archive-news-card .news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-news-card .news-tag {
    display: inline-block;
    align-self: flex-start;
    background: #eef4ff;
    color: #003b7a;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.archive-news-card h2 {
    margin: 0 0 12px;
    color: #071b34;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 900;
}

.archive-news-card p {
    margin: 0 0 14px;
    color: #344054;
    font-size: 15px;
    line-height: 1.65;
}

.archive-news-card small {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 8px;
}

.archive-news-card a {
    color: #003b7a;
    font-weight: 800;
    font-size: 14px;
}

.archive-news-card a:hover {
    color: #d71920;
}

/* Paginación */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 38px 0 50px;
}

.pagination a {
    padding: 10px 15px;
    background: #ffffff;
    color: #003b7a;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
    transition: .2s ease;
}

.pagination a:hover {
    background: #003b7a;
    color: #ffffff;
}

.pagination a.active {
    background: #d71920;
    color: #ffffff;
}

/* Tablet */

@media (max-width: 900px) {
    .archive-news-grid {
        max-width: 100%;
    }

    .archive-news-card {
        grid-template-columns: 190px 1fr;
        gap: 18px;
    }

    .archive-news-card h2 {
        font-size: 21px;
    }
}

/* Mobile */

@media (max-width: 768px) {
    .archive-news-grid {
        gap: 20px;
        margin-top: 22px;
    }

    .archive-news-card {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 20px;
    }

    .archive-news-card .news-thumb {
        height: 210px;
    }

    .archive-news-card h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    .archive-news-card p {
        font-size: 15px;
        line-height: 1.7;
    }

    .pagination {
        gap: 8px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Mobile pequeño */

@media (max-width: 480px) {
    .archive-news-card .news-thumb {
        height: 185px;
    }

    .archive-news-card h2 {
        font-size: 20px;
    }

    .archive-news-card p {
        font-size: 14px;
    }
}

/* =========================
   CENTENARIO SIDEBAR
========================= */

.centenario-sidebar {

    position: relative;

    isolation: isolate;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #003b7a 0%,
            #00152e 100%
        );

    border-radius: 24px;

    padding: 24px 20px;

    margin-bottom: 22px;

    color: #ffffff;

    text-align: center;

    box-shadow:
        0 10px 28px rgba(15,23,42,.12);

    border-top: 4px solid #d71920;
}

/* ESCUDO MARCA DE AGUA */

.centenario-sidebar::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:
        url('/assets/img/chuncho.png');

    background-repeat: no-repeat;

    background-position: center center;

    background-size: 260px;

    opacity: .11;

    pointer-events: none;

    z-index: 1;

    filter:
        drop-shadow(0 0 8px rgba(255,255,255,.08));
}

/* CONTENIDO */

.centenario-sidebar span {

    display: block;

    font-size: 13px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 2px;

    margin-bottom: 8px;

    position: relative;

    z-index: 2;
}

.centenario-sidebar > strong {

    display: block;

    font-size: 16px;

    line-height: 1.3;

    margin-bottom: 16px;

    color: rgba(255,255,255,.92);

    position: relative;

    z-index: 2;
}

/* TEXTO FALTAN */

.centenario-faltan {

    display: block;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: rgba(255,255,255,.62);

    margin-bottom: 14px;

    position: relative;

    z-index: 2;
}

/* BLOQUES */

.centenario-sidebar-time {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    position: relative;

    z-index: 2;
}

.centenario-sidebar-time div {

    background: rgba(255,255,255,.08);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 16px;

    padding: 12px 6px;
}

.centenario-sidebar-time b {

    display: block;

    font-size: 28px;

    line-height: 1;

    color: #ffffff;

    margin-bottom: 5px;
}

.centenario-sidebar-time small {

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: rgba(255,255,255,.72);
}

/* MOBILE */

@media (max-width: 850px) {

    .centenario-sidebar {

        margin-top: 18px;

        padding: 22px 14px;
    }

    .centenario-sidebar-time {

        gap: 8px;
    }

    .centenario-sidebar-time div {

        padding: 10px 4px;
    }

    .centenario-sidebar-time b {

        font-size: 22px;
    }

    .centenario-sidebar-time small {

        font-size: 9px;
    }

    .centenario-sidebar::before {

        background-size: 150px;

        background-position: left -45px top -35px;

        opacity: .08;
    }
}

/* PALMARÉS RESUMEN - ESTILO PREMIUM */

.palmares-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: linear-gradient(135deg, #003b7a 0%, #00152e 100%);
    border-radius: 24px;
    padding: 30px 18px;
    text-align: center;

    box-shadow: 0 10px 28px rgba(15,23,42,.12);
    border-top: 4px solid #d71920;

    min-height: 170px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.palmares-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('/assets/img/chuncho.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 145px;

    opacity: .12;
    pointer-events: none;
    z-index: 1;
}

.palmares-card > * {
    position: relative;
    z-index: 2;
}

.palmares-numero {
    font-size: 58px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

.palmares-card h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    text-transform: uppercase;
    color: rgba(255,255,255,.95);
    letter-spacing: .4px;
}

/* MOBILE */

@media (max-width: 768px) {
    .palmares-card {
        min-height: 145px;
        padding: 24px 16px;
        border-radius: 20px;
    }

    .palmares-card::before {
        background-size: 115px;
        opacity: .10;
    }

    .palmares-numero {
        font-size: 48px;
    }

    .palmares-card h2 {
        font-size: 13px;
    }
}

/* TÍTULO TABLA SOBRIO */

.tabla-title {
    all: unset;
    display: block;
    width: 100%;
    background: #d71920;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .7px;
    padding: 5px 10px;
    border-radius: 999px;
    margin: 0 0 12px;
    line-height: 1;
    box-shadow: none;
}

.tabla-title::before {
    display: none;
}

/* DESTACAR UNIVERSIDAD DE CHILE */

.tabla-posiciones tr.equipo-destacado {
    background: #e8f0ff !important;
    font-weight: 900;
}

.tabla-posiciones tr.equipo-destacado td {
    color: #001f45;
}

.tabla-posiciones tr.equipo-destacado .equipo-nombre {
    font-weight: 900;
}

.tabla-posiciones tr.equipo-destacado td:first-child {
    border-left: 4px solid #003b7a;
}
/* ==========================================================================
   16. EN VIVO - DETALLE PARTIDO
   Ajuste incremental: no modifica estilos globales existentes.
   ========================================================================== */

.live-hero-card {
    margin-bottom: 24px;
}

.live-match-date {
    margin: -6px 0 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.live-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.live-score-wrap .live-score {
    margin: 0;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red-alt);
    color: var(--white);
    min-width: 54px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.live-status-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.live-details-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: start;
    margin: 24px 0;
}

.live-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.live-card-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.live-card-title h2 {
    margin: 0;
    color: var(--dark);
    font-size: 24px;
}

.live-card-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
    white-space: nowrap;
}

.live-events-list {
    display: grid;
    gap: 12px;
}

.live-event-item {
    display: grid;
    grid-template-columns: 54px 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 16px;
}

.live-event-minute {
    color: var(--red-alt);
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.live-event-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 18px;
}

.live-event-body {
    text-align: left;
}

.live-event-body strong,
.live-event-body span,
.live-event-body small {
    display: block;
}

.live-event-body strong {
    color: var(--dark);
    font-size: 15px;
    line-height: 1.25;
}

.live-event-body span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
}

.live-event-body small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.live-stats-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.live-stats-head strong {
    color: var(--blue);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.live-stats-list {
    display: grid;
    gap: 8px;
}

.live-stat-row {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
}

.live-stat-row b {
    color: var(--dark);
    font-size: 15px;
    text-align: center;
}

.live-stat-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.live-empty {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.live-lineups {
    margin-top: 24px;
    text-align: left;
}

.lineups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.lineup-team {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    padding: 20px;
}

.lineup-team h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.2;
}

.lineup-team h3 span {
    display: inline-block;
    margin-left: 6px;
    background: var(--blue);
    color: var(--white);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    vertical-align: middle;
}

.lineup-coach {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.lineup-team h4 {
    margin: 18px 0 10px;
    color: var(--blue);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.lineup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.lineup-list li {
    display: grid;
    grid-template-columns: 38px 1fr 34px;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 13px;
}

.lineup-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-weight: 900;
    font-size: 12px;
}

.lineup-name {
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.lineup-list small {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    font-weight: 900;
}

.lineup-list.substitutes li {
    opacity: .88;
}

.live-lineups-waiting {
    margin-top: 24px;
}

.live-lineups-waiting h2 {
    margin-top: 0;
    color: var(--dark);
}

@media (max-width: 900px) {
    .live-details-grid,
    .lineups-grid {
        grid-template-columns: 1fr;
    }

    .live-card-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-card-title span {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .live-info-card {
        padding: 18px;
        border-radius: 18px;
    }

    .live-card-title h2 {
        font-size: 20px;
    }

    .live-event-item {
        grid-template-columns: 44px 32px 1fr;
        gap: 8px;
        padding: 10px;
    }

    .live-event-minute {
        font-size: 14px;
    }

    .live-event-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .live-stat-row {
        grid-template-columns: 50px 1fr 50px;
        padding: 9px 8px;
    }

    .live-stat-row span {
        font-size: 10px;
    }

    .lineup-team {
        padding: 16px;
    }

    .lineup-team h3 {
        font-size: 18px;
    }

    .lineup-list li {
        grid-template-columns: 34px 1fr 28px;
        gap: 8px;
        padding: 8px;
    }

    .lineup-name {
        font-size: 13px;
    }
}

/* ==========================================
   EN VIVO ACTIVO EN MENÚ
========================================== */

.nav-live {

    background: #e30613 !important;

    color: #ffffff !important;

    padding: 8px 16px;

    border-radius: 999px;

    font-weight: 900 !important;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    box-shadow:
        0 4px 12px rgba(227,6,19,.35);

    animation: liveMenuGlow 1.5s infinite;
}

.nav-live::before {

    content: "";

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #ffffff;

    display: inline-block;

    animation: liveMenuPulse 1s infinite;
}

.nav-live:hover {

    background: #c70011 !important;

    color: #ffffff !important;
}

@keyframes liveMenuPulse {

    0% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }

    100% {
        opacity: 1;
    }
}

@keyframes liveMenuGlow {

    0% {
        box-shadow:
            0 0 0 0 rgba(227,6,19,.45);
    }

    70% {
        box-shadow:
            0 0 0 12px rgba(227,6,19,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(227,6,19,0);
    }
}


/* ==========================================================================
   17. LIVE POST PARTIDO - AJUSTE INCREMENTAL
   Mantiene el diseño existente y solo diferencia estados finalizado/post partido.
   ========================================================================== */

.live-label-finalizado {
    background: #003b7a;
    animation: none;
    box-shadow: 0 4px 12px rgba(0,59,122,.25);
}

.live-label-post {
    background: #071b34;
    animation: none;
    box-shadow: 0 4px 12px rgba(7,27,52,.22);
}

.live-post-until {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .live-post-until {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* ==========================================
   LIVE - MARCA DE AGUA PANEL COMPLETO
========================================== */

.live-hero-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background: transparent !important;
}

.live-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.72),
            rgba(255,255,255,.72)
        ),
        url('../img/live/live-bg.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: .70;

    z-index: 0;
    pointer-events: none;
}

.live-hero-card > * {
    position: relative;
    z-index: 1;
}

.live-label-finalizado {
    background: #555 !important;
    color: #fff !important;
    animation: none !important;
}

/* ==========================================
   HEADER - MENÚ PROFESIONAL V2
========================================== */

.site-header .main-nav {

    display:flex;
    align-items:center;
    justify-content:flex-end;

    gap:4px;

    background:none;
    padding:0;
    border-radius:0;
}

.site-header .main-nav a {

    color:#ffffff !important;

    padding:10px 12px;

    border-radius:10px;

    font-size:15px;

    font-weight:800;

    letter-spacing:.2px;

    line-height:1;

    transition:.25s ease;
}

.site-header .main-nav a:hover {

    background:rgba(255,255,255,.10);

    color:#ffffff !important;

    transform:translateY(-1px);
}

/* Link activo */

.site-header .main-nav a.active {

    background:rgba(255,255,255,.12);
}

/* EN VIVO */

.site-header .main-nav .nav-live {

    background:#e30613 !important;

    color:#fff !important;

    border-radius:999px;

    padding:9px 14px;

    box-shadow:
        0 4px 12px rgba(227,6,19,.25);
}

/* Ajuste escritorio */

@media (min-width:851px){

    .site-header .logo-header{

        width:280px !important;
    }

    .site-header .logo-header img{

        height:54px !important;
    }

    .site-header .main-nav{

        gap:2px;
    }
}

/* Mobile */

@media (max-width:850px){

    .site-header .main-nav{

        justify-content:center !important;

        gap:8px 10px !important;
    }

    .site-header .main-nav a{

        font-size:13px !important;

        padding:8px 10px;
    }
}


/* ==========================================================================
   18. PARTIDOS - CENTRO DE PARTIDO
   Ajuste incremental. No modifica estilos globales existentes.
   ========================================================================== */

.partidos-page {
    padding-top: 26px;
    padding-bottom: 46px;
}

.partidos-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 34px;
    margin: 24px 0;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(227,6,19,.35), transparent 34%),
        linear-gradient(135deg, #003b7a 0%, #00152e 100%);
    box-shadow: 0 12px 32px rgba(15,23,42,.14);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.partidos-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/chuncho.png');
    background-repeat: no-repeat;
    background-position: right -40px center;
    background-size: 260px;
    opacity: .10;
    pointer-events: none;
}

.partidos-hero > * {
    position: relative;
    z-index: 1;
}

.partidos-kicker {
    display: inline-flex;
    background: #e30613;
    color: #fff;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.partidos-hero h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 900;
}

.partidos-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}

.partidos-hero small {
    color: rgba(255,255,255,.68);
    font-weight: 800;
    white-space: nowrap;
}

.partidos-main-grid,
.partidos-grid-2 {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}

.partidos-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
}

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

.partidos-card,
.partidos-next-card,
.partidos-status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.partidos-card {
    padding: 24px;
}

.partidos-next-card {
    overflow: hidden;
    padding: 0;
}

.partidos-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.partidos-card-head span,
.partidos-section-title span {
    color: var(--red-alt);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.partidos-card-head strong {
    color: var(--blue);
    font-size: 13px;
    text-align: right;
}

.partidos-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 30px 24px;
}

.partidos-team {
    text-align: center;
    min-width: 0;
}

.partidos-team img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.partidos-team strong {
    display: block;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.partidos-vs {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0,59,122,.25);
}

.partidos-next-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partidos-next-meta div {
    padding: 16px 18px;
    border-right: 1px solid var(--border);
}

.partidos-next-meta div:last-child {
    border-right: 0;
}

.partidos-next-meta span,
.partidos-rank-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .65px;
    margin-bottom: 5px;
}

.partidos-next-meta strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.25;
}

.partidos-next-meta small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.partidos-actions {
    display: flex;
    gap: 12px;
    padding: 20px 22px 22px;
}

.partidos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 900;
    transition: .2s ease;
}

.partidos-btn.primary {
    background: var(--blue);
    color: #fff;
}

.partidos-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.partidos-status-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.partidos-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.partidos-pill.is-live {
    background: #e30613;
    color: #fff;
    animation: livePulse 1.2s infinite;
}

.partidos-pill.is-post {
    background: #071b34;
    color: #fff;
}

.partidos-mini-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.partidos-mini-score div {
    text-align: center;
    min-width: 0;
}

.partidos-mini-score img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    margin: 0 auto 7px;
}

.partidos-mini-score span {
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.partidos-mini-score strong {
    color: var(--blue);
    font-size: 34px;
    font-weight: 900;
    white-space: nowrap;
}

.partidos-status-card h2 {
    margin: 8px 0 4px;
    color: var(--dark);
}

.partidos-status-card p,
.partidos-muted {
    color: var(--muted);
    line-height: 1.6;
}

.partidos-rank-box {
    background: linear-gradient(135deg, #003b7a, #00152e);
    color: #fff;
    border-radius: 20px;
    padding: 18px;
}

.partidos-rank-box span,
.partidos-rank-box small {
    color: rgba(255,255,255,.75);
}

.partidos-rank-box strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin: 7px 0;
}

.partidos-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.partidos-section-title h2 {
    margin: 0;
    color: var(--dark);
    font-size: 23px;
}

.partidos-section-title a {
    font-size: 13px;
    font-weight: 900;
}

.partidos-prediction,
.partidos-h2h-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.partidos-prediction div,
.partidos-h2h-summary div {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
}

.partidos-prediction span,
.partidos-h2h-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.partidos-prediction strong,
.partidos-h2h-summary strong {
    display: block;
    margin-top: 7px;
    color: var(--blue);
    font-size: 26px;
    font-weight: 900;
}

.partidos-lines {
    display: grid;
    gap: 10px;
}

.partidos-lines.compact {
    gap: 8px;
}

.partidos-line,
.partidos-result-row {
    display: grid;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 15px;
}

.partidos-line {
    grid-template-columns: 78px 1fr 58px 1fr;
    padding: 10px 12px;
}

.partidos-line small {
    color: var(--red-alt);
    font-weight: 900;
}

.partidos-line span {
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
}

.partidos-line strong {
    color: var(--blue);
    text-align: center;
}

.partidos-result-row {
    grid-template-columns: 76px 1fr 54px 1fr;
    padding: 10px;
}

.partidos-result-row > span {
    color: var(--red-alt);
    font-size: 11px;
    font-weight: 900;
}

.partidos-result-row div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.partidos-result-row img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.partidos-result-row b {
    color: var(--dark);
    font-size: 12px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partidos-result-row strong {
    color: var(--blue);
    text-align: center;
    font-size: 14px;
}

.partidos-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.partidos-form span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.partidos-form .win {
    background: #16a34a;
}

.partidos-form .draw {
    background: #64748b;
}

.partidos-form .loss {
    background: #e30613;
}

.partidos-form .pending {
    background: #94a3b8;
}

.partidos-players-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.partidos-player-card {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
}

.partidos-player-card > span {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.partidos-player-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 10px;
}

.partidos-player-card strong {
    display: block;
    color: var(--dark);
    font-size: 13px;
    line-height: 1.2;
    min-height: 32px;
}

.partidos-player-card small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 6px 0;
}

.partidos-player-card b {
    color: var(--blue);
    font-size: 14px;
}

.partidos-table-mini {
    display: grid;
    gap: 8px;
}

.partidos-table-mini div {
    display: grid;
    grid-template-columns: 30px 28px 1fr 42px;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
}

.partidos-table-mini div.is-u {
    background: var(--blue-soft);
    border-color: rgba(0,59,122,.18);
    font-weight: 900;
}

.partidos-table-mini img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.partidos-table-mini span,
.partidos-table-mini b {
    color: var(--blue);
    font-weight: 900;
    text-align: center;
}

.partidos-table-mini strong {
    color: var(--dark);
    font-size: 13px;
    line-height: 1.15;
}

.partidos-injuries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.partidos-injuries div {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 14px;
}

.partidos-injuries strong,
.partidos-injuries span,
.partidos-injuries small {
    display: block;
}

.partidos-injuries strong {
    color: var(--dark);
}

.partidos-injuries span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

.partidos-injuries small {
    color: var(--muted);
    margin-top: 5px;
}

@media (max-width: 1050px) {
    .partidos-main-grid,
    .partidos-grid-2 {
        grid-template-columns: 1fr;
    }

    .partidos-players-grid,
    .partidos-injuries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .partidos-hero {
        display: block;
        padding: 26px 22px;
        border-radius: 22px;
    }

    .partidos-hero h1 {
        font-size: 30px;
    }

    .partidos-hero small {
        display: block;
        margin-top: 14px;
        white-space: normal;
    }

    .partidos-teams {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 18px;
    }

    .partidos-vs {
        margin: 0 auto;
    }

    .partidos-next-meta {
        grid-template-columns: 1fr;
    }

    .partidos-next-meta div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .partidos-next-meta div:last-child {
        border-bottom: 0;
    }

    .partidos-actions {
        flex-direction: column;
    }

    .partidos-prediction,
    .partidos-h2h-summary,
    .partidos-players-grid,
    .partidos-injuries {
        grid-template-columns: 1fr;
    }

    .partidos-line,
    .partidos-result-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partidos-result-row div {
        justify-content: center;
    }

    .partidos-result-row b {
        white-space: normal;
    }
}


/* ==========================================
   HEADER - DROPDOWN HISTORIA
   Versión final: escritorio por hover, mobile por click (.is-open).
   ========================================== */

.site-header .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-header .dropdown-toggle {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
    transition: .25s ease;
}

.site-header .dropdown-toggle:hover,
.site-header .nav-dropdown:hover .dropdown-toggle,
.site-header .nav-dropdown:focus-within .dropdown-toggle {
    background: rgba(255,255,255,.10);
    color: #ffffff;
}

/* Zona puente para que en escritorio no desaparezca al bajar el mouse */
.site-header .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
}

.site-header .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 245px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15,23,42,.22);
    z-index: 99999;
    overflow: hidden;
    padding: 6px;
}

.site-header .dropdown-menu a {
    display: block;
    padding: 12px 14px !important;
    color: #003b7a !important;
    background: transparent !important;
    border-radius: 10px;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.2 !important;
    white-space: nowrap;
    transform: none !important;
}

.site-header .dropdown-menu a:hover {
    background: #e8f0ff !important;
    color: #d71920 !important;
}

/* Escritorio: abre al pasar el mouse o foco */
@media (min-width: 851px) {
    .site-header .nav-dropdown:hover .dropdown-menu,
    .site-header .nav-dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .site-header .header-container,
    .site-header .header-inner {
        max-width: 1240px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 12px !important;
    }

    .site-header .logo-header {
        width: 280px !important;
        flex: 0 0 280px !important;
    }

    .site-header .logo-header img {
        height: 54px !important;
    }

    .site-header .main-nav,
    .site-header .nav {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 2px !important;
        min-width: 0 !important;
    }

    .site-header .main-nav > a,
    .site-header .nav > a,
    .site-header .dropdown-toggle {
        font-size: 14px !important;
        padding: 9px 8px !important;
        line-height: 1 !important;
    }

    .site-header .main-nav .nav-live {
        padding: 8px 11px !important;
    }
}

@media (min-width: 851px) and (max-width: 1100px) {
    .site-header .logo-header {
        width: 235px !important;
        flex-basis: 235px !important;
    }

    .site-header .main-nav > a,
    .site-header .nav > a,
    .site-header .dropdown-toggle {
        font-size: 13px !important;
        padding: 8px 6px !important;
    }
}

/* Mobile: abre solo con JS agregando .is-open */
@media (max-width: 850px) {
    .site-header .nav-dropdown {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }

    .site-header .dropdown-toggle {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    .site-header .nav-dropdown::after {
        display: none;
    }

    .site-header .dropdown-menu {
        position: absolute;
        top: calc(100% + 9px);
        left: 50%;
        transform: translateX(-50%);
        width: min(92vw, 280px);
        min-width: 240px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(15,23,42,.25);
        padding: 6px;
    }

    .site-header .dropdown-menu a {
        color: #003b7a !important;
        text-align: center;
        font-size: 13px !important;
        padding: 11px 12px !important;
    }

    .site-header .dropdown-menu a:hover {
        background: #e8f0ff !important;
        color: #d71920 !important;
    }

    .site-header .nav-dropdown.is-open .dropdown-menu {
        display: block;
    }
}


/* =====================================================
   HISTORIA LOS DE ABAJO - NAVEGACIÓN INTERNA FINAL
   PC: flechas + scroll horizontal.
   Mobile: scroll táctil limpio, sin flechas.
   ===================================================== */

.historia-lda-nav-wrapper {
    position: sticky;
    top: 82px;
    z-index: 30;
    width: 100%;
    max-width: 1180px;
    margin: 24px auto 32px;
}

.historia-lda-nav {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    background: #f3f6fb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);

    padding: 10px 12px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.historia-lda-nav::-webkit-scrollbar {
    display: none;
}

.historia-lda-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    min-width: max-content;
    padding: 4px 54px;
}

.historia-lda-nav a {
    flex: 0 0 auto;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;

    padding: 10px 16px;
    border-radius: 999px;

    background: #ffffff;
    color: #003b7a;

    font-size: 14px;
    font-weight: 900;
    text-decoration: none;

    box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
    transition: .2s ease;
}

.historia-lda-nav a:hover,
.historia-lda-nav a.active {
    background: #003b7a;
    color: #ffffff;
}

.historia-scroll-left,
.historia-scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #003b7a;
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    cursor: pointer;
    z-index: 40;

    box-shadow: 0 4px 12px rgba(0,0,0,.20);
    transition: .2s ease;
}

.historia-scroll-left {
    left: 6px;
}

.historia-scroll-right {
    right: 6px;
}

.historia-scroll-left:hover,
.historia-scroll-right:hover {
    background: #e30613;
    transform: translateY(-50%) scale(1.06);
}

@media (max-width: 768px) {
    .historia-lda-nav-wrapper {
        position: sticky;
        top: 0;
        z-index: 30;
        margin: 18px -16px 26px;
        max-width: none;
    }

    .historia-lda-nav {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 10px 14px;
    }

    .historia-lda-nav-inner {
        padding: 4px 0;
        gap: 10px;
    }

    .historia-lda-nav a {
        font-size: 13px;
        padding: 9px 14px;
    }

    .historia-scroll-left,
    .historia-scroll-right {
        display: none;
    }
}


/* =====================================================
   HISTORIA LOS DE ABAJO - TEXTO
   Justificado en escritorio, lectura natural en mobile.
   ===================================================== */

@media (min-width: 769px) {
    .historia-lda-content p,
    .historia-lda-section p,
    .historia-lda-text p,
    .historia-content p {
        text-align: justify;
        text-justify: inter-word;
    }
}

@media (max-width: 768px) {
    .historia-lda-content p,
    .historia-lda-section p,
    .historia-lda-text p,
    .historia-content p {
        text-align: left;
    }
}

