/* ================================
   VARIABLES
================================ */
:root {
    /* --- Colores base --- */
    --blanco: #ffffff;
    --verde-main: #0aa89e;
    --verde-dark: #088a82;
    --color-text: #222222;
    --color-bg: #f5f5f5;
    --gris-claro: #f0f2f5;
    --color-bg-footer: #04060e;
    --text-muted: #888;

    /* --- Canales RGB para mezclas rgba() --- */
    --verde-rgb: 10, 168, 158;
    --slate-rgb: 15, 23, 42;

    /* --- Radio de borde --- */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 18px;
    --radius-pill: 999px;

    /* --- Bordes --- */
    --border-soft: 1px solid rgba(0,0,0,0.08);
    --border-light: 1px solid rgba(15,23,42,0.08);
    --border-primary: 1px solid rgba(10,168,158,0.14);

    /* --- Sombras --- */
    --shadow-sm: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.12);
    --shadow-card: 0 6px 18px rgba(15,23,42,0.07);
    --shadow-hover: 0 14px 28px rgba(15,23,42,0.12);
    --shadow-section: 0 18px 42px rgba(15,23,42,0.06);

    /* --- Z-index --- */
    --z-header: 1200;
    --z-nav: 1240;
    --z-menu: 1250;
    --z-modal: 1300;
    --z-top: 9999;

    /* --- Transiciones --- */
    --duration-fast: .12s;
    --duration-base: .18s;
    --duration-slow: .28s;
    --transition-fast: .12s ease;
    --transition-base: .18s ease;
    --transition-slow: .28s ease;

    /* --- Layout --- */
    --header-height: 68px;

    /* --- Status de partido (light) --- */
    --status-live-color: #d97706;
    --status-live-bg: rgba(217,119,6,.14);
    --status-done-color: #15803d;
    --status-done-bg: rgba(16,185,129,.10);
    --status-scheduled-color: #1d4ed8;
    --status-scheduled-bg: rgba(37,99,235,.12);
    --status-delayed-color: #7c2d12;
    --status-delayed-bg: rgba(234,88,12,.12);
    --status-cancelled-color: #4b5563;
    --status-cancelled-bg: rgba(107,114,128,.12);
}

:root[data-theme="dark"] {
    --blanco: #0f1722;
    --verde-main: #1ac7b8;
    --verde-dark: #10a99b;
    --color-text: #e7edf3;
    --color-bg: #071019;
    --gris-claro: #111b28;
    --color-bg-footer: #03070d;
    --text-muted: #93a4b5;

    --border-soft: 1px solid rgba(255,255,255,0.08);
    --border-light: 1px solid rgba(255,255,255,0.08);
    --border-primary: 1px solid rgba(26,199,184,0.20);

    --shadow-sm: 0 10px 24px rgba(0,0,0,0.28);
    --shadow-md: 0 18px 38px rgba(0,0,0,0.34);
    --shadow-card: 0 12px 28px rgba(0,0,0,0.26);
    --shadow-hover: 0 18px 36px rgba(0,0,0,0.34);
    --shadow-section: 0 18px 42px rgba(0,0,0,0.30);

    /* --- Status de partido (dark) --- */
    --status-live-color: #ffd089;
    --status-live-bg: rgba(245,158,11,.18);
    --status-done-color: #6ee7b7;
    --status-done-bg: rgba(16,185,129,.16);
    --status-scheduled-color: #a9cfff;
    --status-scheduled-bg: rgba(59,130,246,.16);
    --status-delayed-color: #ffb89a;
    --status-delayed-bg: rgba(249,115,22,.16);
    --status-cancelled-color: #cbd5e1;
    --status-cancelled-bg: rgba(107,114,128,.18);
}

/* ================================
   BASE
================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
    overflow-x: hidden;
}

html {
    background: var(--color-bg);
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100dvh;
    line-height: 1.45;
}

body.menu-open {
    overflow: hidden;
}

img { max-width: 100%; display: block; }
iframe,
video,
embed,
object { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.u-muted { color: var(--text-muted); }

/* ================================
   UI PRIMITIVES
================================ */
:is(.noticia,.evento,.club,.card-resultado,.card-proximo) {
    background: var(--blanco);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
:is(.noticia:hover,.evento:hover,.club:hover) {
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    transition: border-color .2s ease, transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

/* ================================
   PRELOADER
================================ */
.preloade {
  display: none !important;
}



/* ================================
   LOGO
================================ */
.logo img {
    height: 69px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08);
}


/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .home-main-content > .section,
    .home-sidebar > #home-sidebar-live,
    .home-sidebar > #home-sidebar-static {
        contain-intrinsic-size: 1px 520px;
    }

    .home-content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-sidebar {
        position: static;
        top: auto;
    }

}

@media (max-width: 640px) {

    #resultados-handball {
        padding: 12px;
        border-radius: 16px;
    }

    #resultados-handball .basket-team > .team-shield-wrap,
    #resultados-handball .basket-team > .team-link-inline > .team-shield-wrap {
        width: 56px;
        height: 56px;
    }

    #resultados-handball .basket-team > .team-shield-wrap .team-shield,
    #resultados-handball .basket-team > .team-link-inline > .team-shield-wrap .team-shield {
        width: 48px;
        height: 48px;
    }
}


/* ================================
   MAIN
================================ */
main {
  padding: 6px 16px 16px;
  margin-top: 0;
}


.page {
    max-width: min(1320px, calc(100vw - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.public-page-block {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
    max-width: 100%;
}

:root[data-theme="dark"] .public-page-block {
    background: var(--blanco);
    border-color: rgba(255,255,255,.08);
}

.home-content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.home-main-content > .section,
.home-sidebar > #home-sidebar-live,
.home-sidebar > #home-sidebar-static {
    content-visibility: auto;
    contain-intrinsic-size: 1px 640px;
}

.home-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.home-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-sidebar {
    align-self: start;
}

#home-sidebar-static > .sidebar-card + .sidebar-card {
    margin-top: 12px;
}

@media (min-width: 1400px) {
    .page {
        max-width: min(1440px, calc(100vw - 56px));
    }

    .page-container {
        gap: 36px;
    }

    .home-content-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 344px;
        gap: 28px;
    }

    .home-main-content {
        gap: 36px;
    }

    .public-page-block,
    .sidebar-card {
        padding: 18px;
    }

    }


@media (min-width: 1680px) {
    .page {
        max-width: min(1520px, calc(100vw - 72px));
    }

    .home-content-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 32px;
    }
}

.sidebar-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 14px;
    min-width: 0;
    max-width: 100%;
}

.sidebar-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #3f4952;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-head .sidebar-title {
    margin: 0;
}

.sidebar-link-all {
    font-size: 11px;
    font-weight: 700;
    color: #0a6a63;
    border: 1px solid rgba(10,168,158,.3);
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}

.sidebar-link-all:hover {
    background: rgba(10,168,158,.12);
}

.sidebar-subtitle {
    margin: -2px 0 10px;
    font-size: 12px;
    color: #5b6772;
}

.sidebar-list,
.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
    align-items: center;
}

.sidebar-list li span:first-child,
.sidebar-list li span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-list li span:first-child {
    text-align: left;
}

.sidebar-list li span:last-child {
    text-align: right;
}

.sidebar-team {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.sidebar-team > .team-link-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.sidebar-team.side-right {
    justify-content: flex-start;
}

.sidebar-team > .team-shield-wrap {
    order: 1;
}

.sidebar-team > .team-link-inline > .team-shield-wrap {
    order: 1;
}

.sidebar-team > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-team > .team-link-inline > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-shield {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.team-shield-wrap {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
    border: 0;
    flex: 0 0 26px;
    box-shadow: 0 2px 6px rgba(0,0,0,.16);
}

.team-shield-wrap .team-shield {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}

.team-shield-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #0a6a63;
    letter-spacing: .02em;
}

@media (max-width: 640px) {
    .team-shield-wrap {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }
    .team-shield-wrap .team-shield {
        width: 32px;
        height: 32px;
    }
}

.card-resultado .equipo > span:not(.team-shield-wrap),
.proximo-eq > span:not(.team-shield-wrap),
.sidebar-team > span:not(.team-shield-wrap),
.tercera-match-body .team > span:not(.team-shield-wrap),
.team-with-shield > span:not(.team-shield-wrap) {
    font-weight: 600;
    color: #4f5f6c;
}

.team-shield-wrap.is-fallback .team-shield-fallback,
.team-shield-wrap.is-fallback-only .team-shield-fallback {
    display: inline-flex;
}

.team-shield-wrap.is-fallback,
.team-shield-wrap.is-fallback-only {
    overflow: hidden;
    background: rgba(10,168,158,.12);
    border: 1px solid rgba(10,168,158,.2);
}

.sidebar-list li strong,
.sidebar-list li em {
    font-style: normal;
    font-weight: 800;
    color: #0a6a63;
    background: rgba(10,168,158,.14);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.sidebar-match-center {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.sidebar-match-link {
    text-decoration: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 8px;
}

.sidebar-match-link.match-info-link {
    font-size: 11px;
    padding: 3px 7px;
    background: rgba(10,168,158,.06);
}

.sidebar-score-link.match-info-link {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
}

.sidebar-list-matches {
    gap: 10px;
}

.sidebar-match-item {
    padding: 8px 8px 9px;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 10px;
    background: #f9fbfc;
}

.sidebar-next-link.match-info-link {
    gap: 2px;
    min-width: 84px;
    text-align: center;
    background: rgba(10,168,158,.1);
    border-color: rgba(10,168,158,.26);
}

.sidebar-next-link em {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.sidebar-next-time {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #536270;
    line-height: 1.15;
    white-space: nowrap;
}

.sidebar-next-time.is-pending-time,
.proximo-time.is-pending-time,
.resultado-fecha.is-pending-time,
.basket-fecha.is-pending-time,
.tercera-date.is-pending-time,
.partido-info-fecha.is-pending-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8a5a12;
}

.sidebar-next-time.is-pending-time,
.proximo-time.is-pending-time,
.resultado-fecha.is-pending-time,
.basket-fecha.is-pending-time,
.tercera-date.is-pending-time,
.partido-info-fecha.is-pending-time {
    font-style: italic;
}

.sidebar-next-time.is-pending-time::before,
.proximo-time.is-pending-time::before,
.resultado-fecha.is-pending-time::before,
.basket-fecha.is-pending-time::before,
.tercera-date.is-pending-time::before,
.partido-info-fecha.is-pending-time::before {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .16);
    border: 1px solid rgba(217, 119, 6, .22);
    color: #a16207;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    flex: 0 0 15px;
}

.sidebar-next-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 2px 7px;
    margin-top: 2px;
    line-height: 1;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}

.sidebar-next-day.hoy {
    background: rgba(22,163,74,.16);
    color: #166534;
    border: 1px solid rgba(22,163,74,.28);
}

.sidebar-next-day.manana {
    background: rgba(37,99,235,.14);
    color: #1d4ed8;
    border: 1px solid rgba(37,99,235,.26);
}

.sidebar-card-live .sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sidebar-card-live.is-compact {
    padding: 12px;
    border-color: rgba(220,38,38,.12);
    box-shadow: 0 12px 24px rgba(15,23,42,.06);
}

.sidebar-list-matches.is-compact {
    gap: 8px;
}

.sidebar-live-item {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(252,252,252,.96) 100%);
}

.sidebar-card-live.is-compact .sidebar-live-item {
    padding: 10px 9px;
    border-color: rgba(220,38,38,.1);
}

.sidebar-card-live.is-compact .sidebar-live-item.is-featured {
    padding: 12px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(254,242,242,.98) 100%);
    border-color: rgba(220,38,38,.18);
    box-shadow: 0 10px 18px rgba(15,23,42,.06);
}

.sidebar-live-link.match-info-link {
    gap: 4px;
    min-width: 96px;
    text-align: center;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
}

.sidebar-live-score {
    display: block;
    font-size: 13px;
    line-height: 1.05;
    font-weight: 800;
    color: #991b1b;
}

.sidebar-card-live.is-compact .sidebar-live-score {
    font-size: 15px;
    letter-spacing: .01em;
}

.sidebar-card-live.is-compact .sidebar-live-item.is-featured .sidebar-live-score {
    font-size: 17px;
}

.sidebar-card-live.is-compact .sidebar-liga {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.sidebar-card-live.is-compact .sidebar-live-item.is-featured .sidebar-liga {
    font-size: 11px;
}

.sidebar-next-day.is-live {
    gap: 5px;
    background: rgba(220,38,38,.14);
    color: #b91c1c;
    border: 1px solid rgba(220,38,38,.24);
}

.sidebar-match-item .sidebar-team > span:not(.team-shield-wrap) {
    font-size: 11px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    line-height: 1.15;
}

.sidebar-liga {
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    color: #70818f;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.sidebar-links a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2a33;
    line-height: 1.35;
}

.sidebar-links a:hover {
    color: var(--verde-main);
}

/* ================================
   TERCERA PUBLICA
================================ */
@media (max-width: 1180px) {
    .home-content-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 16px;
    }

    .home-main-content .noticias-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-main-content .agenda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-sidebar {
        position: static;
        top: auto;
    }

}

@media (max-width: 640px) {
    .home-main-content .noticias-grid,
    .home-main-content .agenda-grid {
        grid-template-columns: 1fr;
    }

    .home-main-content .noticia-destacada {
        grid-column: span 1;
    }

}

@media (max-width: 720px) {
    #resultados .section-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .resultados-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .resultados,
    .proximos {
        scroll-snap-type: x mandatory;
    }

    .card-resultado,
    .card-proximo {
        min-width: calc(100% - 8px);
        scroll-snap-align: start;
    }
}


.breadcrumb {
    font-size: 14px;
    color: #7a7a7a;
}
.breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

  .section-title {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

  .section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .resultados-tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(0,0,0,.04);
    padding: 4px;
    border-radius: 999px;
  }
  .tab-btn {
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #444;
    border: 0;
  }
  .tab-btn.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    color: #111;
  }


/* RESULTADOS */
#resultados {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
}

#resultados .section-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#resultados .section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #3f4952;
}

.resultados {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.card-resultado {
    min-width: 236px;
    padding: 13px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    position: relative;
}

.card-resultado::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, rgba(10,168,158,.9), rgba(10,168,158,.28));
}
.card-resultado .deporte {
    font-size: 11px;
    font-weight: 700;
    color: #4f5e69;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-resultado .deporte .liga-short { display: none; }
.resultado-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}
.resultado-jornada,
.resultado-fecha {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}
.resultado-jornada {
    color: #0a6a63;
    background: rgba(10,168,158,.14);
    border: 1px solid rgba(10,168,158,.2);
    box-shadow: 0 2px 8px rgba(10,168,158,.06);
}
.resultado-fecha {
    color: #607180;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.card-resultado .marcador {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.card-resultado .equipo {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-align: center;
}
.card-resultado .equipo > .team-shield-wrap {
    order: 1;
}
.card-resultado .equipo > .team-link-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.card-resultado .equipo > .team-link-inline > .team-shield-wrap {
    order: 1;
}
.card-resultado .equipo > .team-link-inline > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-resultado .equipo > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-resultado .equipo:last-child {
    text-align: center;
    justify-content: flex-start;
}
.card-resultado .goles {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 15px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #0a6a63;
    background: rgba(10,168,158,.14);
}
.card-resultado .estado {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.card-resultado .estado.final {
    color: #2e7d32;
    background: rgba(46,125,50,.12);
    border-color: rgba(46,125,50,.18);
}
.card-resultado .estado.en-juego {
    color: #d97706;
    background: rgba(217,119,6,.14);
    border-color: rgba(217,119,6,.18);
}
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,.7);
    animation: livePulse 1.2s ease-out infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
    70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.btn-minimal {
    background: transparent;
    border: 1px solid rgba(0,0,0,.12);
    color: #222;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, transform .12s ease, background .2s ease;
}
.btn-minimal:hover {
    border-color: rgba(0,0,0,.22);
    background: rgba(0,0,0,.03);
    transform: translateY(-1px);
}

.match-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #0a6a63;
    border: 1px solid rgba(10,168,158,.28);
    background: rgba(10,168,158,.08);
    border-radius: 999px;
    padding: 5px 9px;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.match-info-link:hover {
    background: rgba(10,168,158,.14);
    border-color: rgba(10,168,158,.4);
    transform: translateY(-1px);
}

.partido-card-action {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.partido-card-action .match-info-link { white-space: nowrap; }


.proximos-head {
    margin-top: 14px;
}
.proximos-head h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 8px;
}
.proximos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.card-proximo {
    min-width: 240px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.proximo-liga {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5f6b76;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.proximo-fecha {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.proximo-date {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    font-weight: 700;
}
.proximo-dow {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(10,168,158,.13);
    color: #0a6a63;
    border: 1px solid rgba(10,168,158,.2);
    font-weight: 800;
    font-size: 11px;
}
.proximo-time {
    font-weight: 800;
    color: var(--verde-dark);
}

.proximo-time.is-pending-time {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(217, 119, 6, .18);
}
.proximo-eq {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-align: center;
}
.proximo-partido {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}
.proximo-partido .proximo-eq:last-child {
    text-align: center;
    justify-content: flex-start;
}
.proximo-eq > .team-shield-wrap {
    order: 1;
}
.proximo-eq > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proximo-vs {
    font-size: 11px;
    font-weight: 800;
    color: #607180;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.marcador {
  font-size: 18px;
  font-weight: 800;
}

.en-juego {
  color: var(--verde-dark);
  font-weight: 600;
}

.estado.final {
  color: #666;
  font-weight: 600;
}

.estado.en-juego {
  color: var(--verde-dark);
  font-weight: 700;
}

.team-link-inline {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.team-link-inline:hover,
.team-link-inline:focus-visible {
  color: var(--color-primary, #0a6a63);
}

.team-link-inline:focus-visible {
  outline: 2px solid rgba(10,168,158,.35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ================================
   SECCION CON PRELOADER
================================ */

.section {
  position: relative;
}

.section-preloader {
  display: none !important;
}

.section-content.hidden {
  opacity: 1;
  transform: none;
}

.section-content.show {
  opacity: 1;
  transform: none;
  transition: none;
  padding: 12px;
}


/* ================================
   SKELETON LOADER
================================ */

.skeleton-card {
    min-width: 220px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border-bottom: 4px solid var(--verde-main);
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #e6e6e6 25%,
        #f5f5f5 37%,
        #e6e6e6 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

.skeleton-line.large {
    height: 22px;
    width: 90%;
}

.skeleton-line.small {
    width: 60%;
}

.skeleton-line.tiny {
    width: 40%;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}



/* ================================
   NOTICIAS
================================ */
.noticias {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.noticias-grid-compact .noticia {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    box-shadow: none;
}

.noticias-grid-compact .noticia .noticia-content {
    padding: 12px 13px 13px;
    gap: 6px;
}

.noticias-grid-compact .noticia .noticia-img {
    aspect-ratio: 16 / 10;
}

.noticias-grid-compact .noticia .noticia-titulo {
    font-size: 15px;
    line-height: 1.25;
}

.noticias-grid-compact .noticia .noticia-fecha,
.noticias-grid-compact .noticia .noticia-autor {
    font-size: 11px;
}

.noticias-grid-compact .noticia:hover {
    transform: translateY(-2px);
}


/* CARD BASE */
.noticia {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia:hover {
    transform: translateY(-4px);
}

.noticia a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* IMAGEN (tarjetas de noticias) */
.noticia .noticia-img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3f6 0%, #e3eaee 100%);
    aspect-ratio: 16 / 9;
}

.noticia-media-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.18);
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    transition: background .2s ease;
}

.noticia-media-badge i {
    font-size: 14px;
    line-height: 1;
}

.noticia .noticia-img picture,
.noticia .noticia-img source,
.noticia .noticia-img img {
    display: block;
    width: 100%;
    height: 100%;
}

.noticia .noticia-img img {
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}

.noticia.img-top .noticia-img img {
    object-position: center top;
}

.noticia.img-center .noticia-img img {
    object-position: center center;
}

.noticia.img-bottom .noticia-img img {
    object-position: center bottom;
}

.noticia:hover .noticia-img img {
    transform: scale(1.03);
}

/* CONTENIDO */
.noticia-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noticia-categoria {
    font-size: 12px;
    font-weight: 700;
    color: var(--verde-main);
    text-transform: uppercase;
}

.noticia-titulo {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.noticia-extracto {
    font-size: 14px;
    color: #555;
}

.noticia-fecha {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.noticia-autor {
    font-size: 12px;
    color: #5f6b76;
    font-weight: 600;
}

/* DESTACADA */
.noticia-destacada {
    grid-column: span 2;
}

.noticia-destacada .noticia-img {
    aspect-ratio: 21 / 9;
}

.noticia-destacada .noticia-titulo {
    font-size: 22px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .noticias-grid {
        grid-template-columns: 1fr 1fr;
    }

    .noticia-destacada {
        grid-column: span 2;
    }
}

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

    .noticia-destacada {
        grid-column: span 1;
    }
}

/* ================================
   NOTICIA INDIVIDUAL
================================ */
.noticia-individual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.noticia-individual-minimal {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.10), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
    border-radius: 24px;
    padding: clamp(18px, 3vw, 32px);
}

.noticia-individual-minimal .noticia-header {
    display: grid;
    gap: 0;
}

.noticia-individual-minimal .article-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 8px 11px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #5a6672;
    text-decoration: none;
    transition: transform .16s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.noticia-individual-minimal .article-back:hover {
    transform: translateX(-2px);
    border-color: rgba(10,168,158,.26);
    color: #08766f;
    background: rgba(255,255,255,.92);
}

.noticia-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 8px 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10,168,158,.12);
    color: #08766f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.noticia-individual-minimal .noticia-header .noticia-titulo {
    max-width: 920px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.04em;
    margin: 0 0 14px;
}

.noticia-individual-minimal .noticia-meta {
    gap: 10px;
    font-size: 12px;
    color: #6a7682;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 12px;
}

.noticia-individual-minimal .noticia-meta time,
.noticia-individual-minimal .noticia-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
}

.noticia-lead {
    max-width: 820px;
    margin: 18px 0 22px;
    color: #40515f;
    font-size: clamp(18px, 2.1vw, 23px);
    line-height: 1.5;
    font-weight: 650;
}

.noticia-individual-minimal .noticia-img {
    border-radius: 20px;
    margin: 18px 0 0;
    min-height: 240px;
    box-shadow: 0 16px 38px rgba(15,23,42,.14);
}

.noticia-individual-minimal .noticia-img picture {
    display: block;
    width: 100%;
}

.noticia-individual-minimal .noticia-video,
.noticia-video {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.06);
    background: #000;
    aspect-ratio: 16 / 9;
    margin-top: 10px;
}

.noticia-individual-minimal .noticia-video iframe,
.noticia-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-social-embed {
    margin: 18px 0;
    overflow: hidden;
}

.news-social-embed--instagram,
.news-social-embed--tiktok,
.news-social-embed--x {
    display: flex;
    justify-content: center;
}

.news-social-embed .instagram-media,
.news-social-embed .tiktok-embed,
.news-social-embed .twitter-tweet {
    width: 100% !important;
    max-width: min(100%, 560px) !important;
    margin: 0 auto !important;
}

.noticia-galeria {
    max-width: 100%;
    margin: 28px 0 4px;
    padding: clamp(14px, 2.2vw, 20px);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248,251,253,.96), rgba(255,255,255,.86));
}

.noticia-galeria-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.noticia-galeria-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #10202c;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.noticia-galeria-head h2 i {
    color: var(--verde-main);
}

.noticia-galeria-head span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 999px;
    background: #fff;
    color: #5f6b76;
    font-size: 12px;
    font-weight: 800;
}

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

.noticia-galeria-item {
    margin: 0;
}

.noticia-galeria-item.is-featured {
    grid-row: span 2;
}

.noticia-galeria-link {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #eef3f6;
    isolation: isolate;
}

.noticia-galeria-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: #f4f7f9;
    transition: transform .24s ease, filter .24s ease;
}

.noticia-galeria-item.is-featured img {
    aspect-ratio: 4 / 5;
}

.noticia-galeria-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(15,23,42,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.noticia-galeria-link:hover img {
    transform: scale(1.035);
    filter: saturate(1.05);
}

.noticia-galeria-link:hover .noticia-galeria-overlay,
.noticia-galeria-link:focus-visible .noticia-galeria-overlay {
    opacity: 1;
    transform: translateY(0);
}

.noticia-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.88);
    padding: 26px;
    isolation: isolate;
    pointer-events: none;
}

.noticia-lightbox.is-open {
    display: flex;
    pointer-events: auto;
}

.noticia-lightbox-counter {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 850;
}

.noticia-lightbox-figure {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: min(95vw, 1200px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.noticia-lightbox-figure img {
    max-width: 100%;
    max-height: calc(90vh - 42px);
    width: auto;
    height: auto;
    border-radius: 10px;
    background: #0f172a;
    object-fit: contain;
}

.noticia-lightbox.is-loading .noticia-lightbox-figure::before {
    content: "Cargando imagen...";
    display: grid;
    min-width: min(80vw, 420px);
    min-height: 240px;
    place-items: center;
    border-radius: 12px;
    color: rgba(255,255,255,.86);
    background: rgba(15,23,42,.7);
    font-size: 13px;
    font-weight: 700;
}

.noticia-lightbox.is-loading .noticia-lightbox-figure img {
    display: none;
}

.noticia-lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    text-align: center;
}

.noticia-lightbox-close,
.noticia-lightbox-nav {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    cursor: pointer;
}

.noticia-lightbox-close {
    top: 14px;
    right: 14px;
}

.noticia-lightbox-nav.is-prev {
    left: 14px;
}

.noticia-lightbox-nav.is-next {
    right: 14px;
}

.noticia-lightbox-close i,
.noticia-lightbox-nav i {
    font-size: 22px;
    line-height: 1;
}

.noticia-lightbox-nav[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .noticia-galeria-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .noticia-galeria {
        padding: 12px;
        border-radius: 16px;
    }

    .noticia-galeria-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .noticia-galeria-item.is-featured {
        grid-row: auto;
    }

    .noticia-galeria-item.is-featured img {
        aspect-ratio: 16 / 10;
    }

    .noticia-lightbox {
        padding: 10px;
    }

    .noticia-lightbox-counter {
        top: 8px;
        left: 8px;
        min-height: 36px;
        padding-inline: 11px;
    }

    .noticia-lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .noticia-lightbox-close {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }

    .noticia-lightbox-nav.is-prev {
        left: 8px;
    }

    .noticia-lightbox-nav.is-next {
        right: 8px;
    }
}

.noticia-individual-minimal .noticia-contenido {
    max-width: 72ch;
    margin: 8px auto 0;
}

.noticia-individual-minimal .noticia-contenido p {
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.82;
    color: #1f2a33;
    margin-bottom: 20px;
}

.noticia-individual-minimal .noticia-contenido h2,
.noticia-individual-minimal .noticia-contenido h3 {
    color: #10202c;
    letter-spacing: -.02em;
    line-height: 1.16;
    margin: 34px 0 14px;
}

.noticia-individual-minimal .noticia-contenido h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.noticia-individual-minimal .noticia-contenido h3 {
    font-size: clamp(20px, 2.2vw, 26px);
}

.noticia-individual-minimal .noticia-contenido ul,
.noticia-individual-minimal .noticia-contenido ol {
    display: grid;
    gap: 10px;
    padding-left: 1.3em;
    margin: 18px 0 24px;
    color: #1f2a33;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.72;
}

.noticia-individual-minimal .noticia-contenido blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--verde-main);
    border-radius: 0 16px 16px 0;
    background: rgba(10,168,158,.08);
    color: #1f2a33;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.62;
    font-weight: 650;
}

.noticia-individual-minimal .noticia-contenido a {
    color: #08766f;
    font-weight: 750;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.noticia-individual-minimal .noticias-relacionadas {
    margin-top: 10px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.66);
    border-top-color: rgba(15,23,42,.08);
}

.related-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.related-news-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(10,168,158,.10);
    color: #08766f;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.related-news-head h2 {
    margin: 0;
}

.related-news-head p {
    max-width: 52ch;
    margin: 6px 0 0;
    color: #64727f;
    font-size: 14px;
    line-height: 1.45;
}

.related-news-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(10,168,158,.22);
    border-radius: 999px;
    background: rgba(10,168,158,.08);
    color: #08766f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, background .2s ease, border-color .2s ease;
}

.related-news-link:hover {
    transform: translateX(2px);
    background: rgba(10,168,158,.13);
    border-color: rgba(10,168,158,.34);
}

.related-news-count {
    display: inline-flex;
    margin-bottom: 12px;
    color: #6a7682;
    font-size: 12px;
    font-weight: 800;
}

.noticia-individual-minimal .noticias-relacionadas .noticias-grid {
    align-items: stretch;
}

.noticia-individual-minimal .noticias-relacionadas .noticia {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.noticia-individual-minimal .noticias-relacionadas .noticia-img {
    border-radius: 18px 18px 0 0;
}

.noticia-individual-minimal .noticias-relacionadas .noticia-content {
    padding: 13px;
}

.noticia-individual-minimal .noticias-relacionadas .noticia-titulo {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.18;
    letter-spacing: -.015em;
}

.noticia-individual-minimal .noticias-relacionadas .noticia-extracto {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #5e6c78;
    line-height: 1.45;
}

.noticia-individual-minimal .noticias-relacionadas .noticia-fecha,
.noticia-individual-minimal .noticias-relacionadas .noticia-autor {
    display: inline-flex;
    color: #73808c;
}

.noticia-individual-minimal .clubes-relacionados-noticia {
    margin-top: 10px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.66);
}

.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 72ch;
    margin: 4px auto 0;
    padding: 14px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.article-share-label {
    font-size: 12px;
    font-weight: 800;
    color: #5f6b76;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.article-share-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.article-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,.10);
}

.article-share-btn.is-facebook {
    color: #1877f2;
    border-color: rgba(24,119,242,.35);
    background: rgba(24,119,242,.08);
}

.article-share-btn.is-x {
    color: #111;
    border-color: rgba(0,0,0,.25);
    background: rgba(0,0,0,.05);
}

.article-share-btn.is-whatsapp {
    color: #128c4f;
    border-color: rgba(18,140,79,.30);
    background: rgba(18,140,79,.08);
}

.article-share-btn .bi,
.article-share-btn i {
    font-size: 14px;
    line-height: 1;
}

.noticia-header .noticia-titulo {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.12;
    font-weight: 800;
}

.noticia-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.noticia-meta .noticia-categoria {
    color: var(--verde-main);
    font-weight: 600;
    text-transform: uppercase;
}

.noticia-taxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.noticia-taxonomy .noticia-categoria {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(10, 168, 158, 0.18);
    border-radius: 999px;
    background: rgba(10, 168, 158, 0.08);
    color: var(--verde-main);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.noticia-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.noticia-taxonomy .noticia-tags {
    display: inline-flex;
    margin: 0;
}

.noticia-tags--article {
    margin: 0 0 16px;
}

.noticia-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--tag-color, #0aa89e) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tag-color, #0aa89e) 10%, #fff);
    color: color-mix(in srgb, var(--tag-color, #0aa89e) 78%, #1e293b);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

a.noticia-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--tag-color, #0aa89e) 16%, transparent);
}

.noticia-img img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.noticia-individual .noticia-img {
    background: #eff3f6;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.noticia-individual .noticia-img picture {
    display: block;
    width: 100%;
}

.noticia-individual .noticia-img img {
    width: 100%;
    height: auto;
    max-height: min(72vh, 760px);
    object-fit: cover;
    object-position: center center;
    background: #e9eef2;
    border-radius: 0;
}

.noticia-individual.img-top .noticia-img img {
    object-position: center top;
}

.noticia-individual.img-center .noticia-img img {
    object-position: center center;
}

.noticia-individual.img-bottom .noticia-img img {
    object-position: center bottom;
}

.noticia-contenido p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.noticia-contenido {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.noticia-contenido p {
    margin: 0 0 14px;
    color: #1f2a33;
    font-size: 16px;
    line-height: 1.65;
}

/* NOTICIAS RELACIONADAS */
.noticias-relacionadas h2 {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
}

.noticias-relacionadas .noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.matches-calendar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.matches-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.matches-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matches-search-wrap {
    position: relative;
}

.matches-search-input {
    min-height: 46px;
    padding-left: 42px;
    padding-right: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
    font-weight: 600;
    color: #0f172a;
}

.matches-search-input:hover {
    border-color: rgba(10,106,99,.22);
}

.matches-search-input:focus {
    border-color: rgba(10,106,99,.28);
    box-shadow: 0 0 0 4px rgba(10,106,99,.08);
}

.matches-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    pointer-events: none;
    font-size: 18px;
}

.matches-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    transition: background .2s ease, color .2s ease;
}

.matches-search-clear:hover {
    background: rgba(10,106,99,.10);
    color: #0a6a63;
}

.matches-select-wrap {
    position: relative;
}

.matches-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 46px;
    padding-right: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
    font-weight: 600;
    color: #0f172a;
}

.matches-select:hover {
    border-color: rgba(10,106,99,.22);
}

.matches-select:focus {
    border-color: rgba(10,106,99,.28);
    box-shadow: 0 0 0 4px rgba(10,106,99,.08);
}

.matches-select-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    pointer-events: none;
    font-size: 18px;
}

.matches-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.matches-filter-actions .btn-primary,
.matches-filter-actions .btn-ghost {
    min-height: 46px;
    padding-inline: 16px;
    border-radius: 12px;
}

.matches-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.matches-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(10,106,99,.08);
    color: #0a6a63;
    font-size: 13px;
    font-weight: 700;
}

.matches-active-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(10,106,99,.12);
    color: #0a6a63;
    font-size: 14px;
    line-height: 1;
}

.matches-month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.matches-view-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.matches-month-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.matches-view-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.1);
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.matches-view-chip.is-active,
.matches-view-chip:hover,
.matches-month-chip.is-active,
.matches-month-chip:hover {
    border-color: rgba(10,106,99,.18);
    background: rgba(10,106,99,.08);
    color: #0a6a63;
}

.matches-live-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 22px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), rgba(10, 106, 99, 0.06));
    border: 1px solid rgba(220, 38, 38, 0.10);
}

.matches-live-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.matches-live-strip__head h2 {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.15;
}

.matches-live-strip__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

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

.matches-month-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.matches-month-head h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.1;
}

.matches-day-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matches-day-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matches-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.matches-day-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.matches-day-label {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.matches-day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    background: rgba(10,106,99,.08);
    color: #0a6a63;
}

.matches-day-badge.hoy {
    background: rgba(220, 38, 38, .10);
    color: #b91c1c;
}

.matches-day-badge.manana {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
}

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

/* ================================
   OPINION PUBLICA
================================ */
.opiniones-public,
.opinion-individual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.opinion-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 14px;
}

.opinion-card a {
    display: block;
    color: inherit;
}

.opinion-head {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.opinion-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(10,168,158,.12);
    color: #0a6a63;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.opinion-date {
    font-size: 12px;
    color: #66727f;
}

.opinion-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.opinion-meta {
    margin: 0 0 8px;
    color: #506070;
    font-size: 13px;
    font-weight: 600;
}

.opinion-extract {
    margin: 0;
    color: #2e3944;
    font-size: 14px;
    line-height: 1.45;
}
.opinion-card-media{
    display:block;
    aspect-ratio:16/9;
    margin:-14px -14px 13px;
    overflow:hidden;
    border-radius:14px 14px 0 0;
    background:#e8efef;
}
.opinion-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .25s ease;
}
.opinion-card:hover .opinion-card-media img{ transform:scale(1.025); }

.opinion-card-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: #6b7784;
    font-size: 12px;
    font-weight: 700;
}

.opinion-content {
    color: #1f2a33;
    line-height: 1.65;
    font-size: 16px;
}
.opinion-cover{
    margin:0;
    overflow:hidden;
    aspect-ratio:16/9;
    border-radius:18px;
    background:#e8efef;
    box-shadow:0 16px 34px rgba(15,23,42,.12);
}
.opinion-cover img{ width:100%; height:100%; object-fit:cover; }

.opinion-public-signature {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(10,106,99,.16);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10,168,158,.08), rgba(255,255,255,.9));
}

.opinion-public-signature__avatar {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0a6a63;
    font-size: 24px;
    font-weight: 900;
}

.opinion-public-signature__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-public-signature > div:last-child {
    display: grid;
    gap: 3px;
}

.opinion-public-signature > div:last-child > span {
    color: #0a6a63;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.opinion-public-signature strong { color: #1f2a33; font-size: 17px; }
.opinion-public-signature p { margin: 0; color: #596775; font-size: 13px; }
.opinion-public-signature small { color: #74808b; font-size: 12px; }

:root[data-theme="dark"] .opinion-public-signature {
    border-color: rgba(57,199,188,.22);
    background: rgba(10,106,99,.14);
}
:root[data-theme="dark"] .opinion-cover,
:root[data-theme="dark"] .opinion-card-media{ background:#152430; }
:root[data-theme="dark"] .opinion-public-signature strong { color: #edf4f4; }
:root[data-theme="dark"] .opinion-public-signature p,
:root[data-theme="dark"] .opinion-public-signature small,
:root[data-theme="dark"] .opinion-card-author { color: #aebbc3; }

@media (max-width: 900px) {
    .noticias-relacionadas .noticias-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 600px) {
    .noticias-relacionadas .noticias-grid {
        grid-template-columns: 1fr;
    }
    .opinion-public-signature { align-items: flex-start; }
    .opinion-public-signature__avatar { width: 52px; height: 52px; flex-basis: 52px; }
}

/* ================================
   AGENDA
================================ */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.evento {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(10,168,158,.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.evento:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15,23,42,.12);
    border-color: rgba(10,168,158,.18);
}

.evento--linked {
    overflow: hidden;
}

.evento-link-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.evento-fecha {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 78px;
    padding: 10px 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10,168,158,.14) 0%, rgba(10,168,158,.08) 100%);
    border: 1px solid rgba(10,168,158,.16);
    color: #0a6a63;
    text-align: center;
}

.evento-fecha-dia {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.evento-fecha-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.evento-fecha-mes,
.evento-fecha-year {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.evento-fecha--empty {
    color: #5f6e7a;
    background: linear-gradient(180deg, rgba(15,23,42,.06) 0%, rgba(15,23,42,.03) 100%);
    border-color: rgba(15,23,42,.08);
}

.evento-detalle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.evento-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f4;
    border: 1px solid rgba(15,23,42,.06);
}

.evento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.evento:hover .evento-media img {
    transform: scale(1.03);
}

.evento-titulo {
    display: block;
    font-weight: 800;
    line-height: 1.28;
    color: #18232d;
}

.evento-lugar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #5f6e7a;
}

.evento-lugar-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0aa89e 0%, #088a82 100%);
    flex: 0 0 8px;
}

.evento-extracto {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #53616c;
}

.evento-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.evento-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a6a63;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.evento-cta::after {
    content: '>';
    font-size: 12px;
    line-height: 1;
}

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

@media (max-width: 600px) {
    .agenda-grid { grid-template-columns: 1fr; }
    .evento {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .evento-fecha {
        min-height: 70px;
    }
    .evento-fecha-dia {
        font-size: 1.2rem;
    }
    .evento-meta-row {
        align-items: flex-start;
    }
}

/* ================================
   CLUBS
================================ */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.club {
    padding: 12px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.club img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 6px;
}

.club-nombre {
    font-weight: 600;
    color: var(--color-text);
}

.clubs-public-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ================================
   ESTADISTICAS
================================ */
.tabla-estadisticas {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.tabla-estadisticas th,
.tabla-estadisticas td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabla-estadisticas th {
    background: var(--verde-main);
    color: #fff;
    font-weight: 600;
}

.tabla-estadisticas tbody tr:hover {
    background: rgba(10,168,158,0.1);
}

:root[data-theme="dark"] .tabla-estadisticas th,
:root[data-theme="dark"] .tabla-estadisticas td {
    border-bottom-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .tabla-estadisticas th {
    background: linear-gradient(180deg, rgba(26,199,184,.92) 0%, rgba(10,169,155,.88) 100%);
    color: #041219;
}

:root[data-theme="dark"] .tabla-estadisticas tbody tr:hover {
    background: rgba(26,199,184,0.10);
}


/* ================================
   FOOTER
================================ */

.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #4a9eff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav a:hover {
    color: #4a9eff;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4a9eff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

.footer-social .bi {
    font-size: 20px;
    line-height: 1;
    color: #fff;
}

.footer-copy {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: #a0a0a0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    width: 100%;
}

.footer-title {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo img {
        max-width: 140px;
    }

    .footer-nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .footer-copy {
        font-size: 0.8rem;
    }
    
}

@media (max-width: 480px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

/* ================================
   PUBLIC UX TUNING
================================ */
.page {
    max-width: 1280px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

.public-page-block {
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(10,168,158,.25);
    background: rgba(10,168,158,.09);
    color: #0a6a63;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.section-link:hover {
    background: rgba(10,168,158,.16);
    border-color: rgba(10,168,158,.4);
}

.public-list-header {
    margin-bottom: 12px;
}
.public-list-subtitle {
    margin: 6px 0 0;
    color: #56636f;
    font-size: 14px;
}
.public-list-count {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(10,168,158,.12);
    color: #0a6a63;
    font-weight: 700;
    font-size: 12px;
}

.news-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.news-filter-chips--tags {
    margin-top: -8px;
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.news-filter-chip:hover,
.news-filter-chip.is-active {
    border-color: rgba(10, 106, 99, 0.22);
    background: rgba(10, 106, 99, 0.08);
    color: #0a6a63;
    transform: translateY(-1px);
}

.news-filter-chip--tag {
    border-color: color-mix(in srgb, var(--tag-color, #0aa89e) 26%, rgba(148, 163, 184, 0.24));
    color: color-mix(in srgb, var(--tag-color, #0aa89e) 70%, #334155);
}

.news-filter-chip--tag:hover,
.news-filter-chip--tag.is-active {
    border-color: color-mix(in srgb, var(--tag-color, #0aa89e) 42%, transparent);
    background: color-mix(in srgb, var(--tag-color, #0aa89e) 10%, #fff);
    color: color-mix(in srgb, var(--tag-color, #0aa89e) 82%, #0f172a);
}

:root[data-theme="dark"] .news-filter-chip {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: #c4d0db;
}

:root[data-theme="dark"] .news-filter-chip:hover,
:root[data-theme="dark"] .news-filter-chip.is-active {
    border-color: rgba(26, 199, 184, 0.26);
    background: rgba(26, 199, 184, 0.12);
    color: #7de5dc;
}

:root[data-theme="dark"] .news-filter-chip--tag:hover,
:root[data-theme="dark"] .news-filter-chip--tag.is-active {
    border-color: color-mix(in srgb, var(--tag-color, #0aa89e) 45%, rgba(255,255,255,.12));
    background: color-mix(in srgb, var(--tag-color, #0aa89e) 16%, rgba(15,23,42,.92));
    color: #d7fffb;
}

.news-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.news-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(10, 168, 158, 0.26);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eefaf8 100%);
    color: #0a6a63;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.news-load-more-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

:root[data-theme="dark"] .news-load-more-button {
    border-color: rgba(26, 199, 184, 0.22);
    background: linear-gradient(180deg, #162332 0%, #101a28 100%);
    color: #e8f9f7;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.news-load-more-button:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.news-load-more-status {
    margin: 0;
    color: #56636f;
    font-size: 13px;
}

.news-load-more-sentinel {
    width: 100%;
    height: 1px;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page .section-title {
    margin-bottom: 10px;
}

.legal-page p {
    margin: 0 0 12px;
    color: #2f3c48;
    line-height: 1.65;
}

.legal-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 168, 158, 0.10);
    border: 1px solid rgba(10, 168, 158, 0.18);
    color: #0a6a63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-lead {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
    color: #24313c;
    max-width: 72ch;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: #5d6c79;
}

.legal-meta a,
.legal-summary-card a,
.legal-section a {
    color: #0a6a63;
    font-weight: 700;
}

.legal-meta a:hover,
.legal-summary-card a:hover,
.legal-section a:hover {
    color: #088a82;
}

.legal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.legal-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdfd 0%, #f4f9f9 100%);
    border: 1px solid rgba(10, 168, 158, 0.10);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.legal-summary-card strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4e5d69;
}

.legal-summary-card span {
    color: #1d2a35;
    font-weight: 700;
    line-height: 1.45;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top, rgba(26, 199, 184, 0.10), transparent 32%),
        linear-gradient(180deg, #071019 0%, #09131d 100%);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
}


.theme-switcher-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(10, 168, 158, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(240,249,248,.96) 100%);
    color: #0b5e58;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
    cursor: pointer;
}

.theme-switcher-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.theme-switcher-trigger:focus-visible,
.theme-switcher-option:focus-visible {
    outline: 2px solid rgba(10, 168, 158, 0.62);
    outline-offset: 2px;
}

.theme-switcher.is-open .theme-switcher-trigger {
    border-color: rgba(10, 168, 158, 0.34);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.theme-switcher.is-open .theme-switcher-trigger .bi-chevron-down {
    transform: rotate(180deg);
}

.theme-switcher-trigger .bi-chevron-down {
    transition: transform .18s ease;
}

.theme-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 176px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(10, 168, 158, 0.16);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    z-index: 120;
    transform-origin: top right;
    animation: themeMenuIn .18s ease;
    margin-top: 2px;
}

.theme-switcher-menu[hidden] {
    display: none !important;
}

.theme-switcher-option {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0b5e58;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.theme-switcher-option > span {
    flex: 1;
}

.theme-switcher-check {
    opacity: 0;
    transform: scale(.8);
    transition: opacity .18s ease, transform .18s ease;
}

.theme-switcher-option:hover {
    transform: translateY(-1px);
}

.theme-switcher-option.is-active {
    background: rgba(10, 168, 158, 0.16);
    color: #084b46;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 16px rgba(15,23,42,.10);
}

.theme-switcher-option.is-active .theme-switcher-check {
    opacity: 1;
    transform: scale(1);
}

:root[data-theme="dark"] .theme-switcher {
    color: inherit;
}


:root[data-theme="dark"] .theme-switcher-trigger {
    border-color: rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(19,31,45,.96) 0%, rgba(12,21,33,.98) 100%);
    color: #dce6ef;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .theme-switcher-menu {
    border-color: rgba(255,255,255,0.10);
    background: rgba(12, 21, 33, 0.98);
    box-shadow: 0 24px 54px rgba(0,0,0,.34);
}

:root[data-theme="dark"] .theme-switcher-option {
    color: #dce6ef;
}

:root[data-theme="dark"] .theme-switcher-option.is-active {
    background: rgba(26, 199, 184, 0.16);
    color: #8ef0e7;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.22);
}

@media (max-width: 640px) {
    .theme-switcher-trigger {
        height: 36px;
        min-height: 36px;
        min-width: 36px;
        padding: 0 9px;
        gap: 5px;
    }

    .theme-switcher-trigger [data-theme-trigger-label] {
        display: none;
    }

    .theme-switcher-menu {
        min-width: 160px;
        right: -4px;
        top: calc(100% + 8px);
    }

}

@media (max-width: 420px) {
    .theme-switcher-trigger {
        width: 36px;
        padding: 0;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .theme-switcher-trigger .bi-chevron-down {
        display: none;
    }

    .theme-switcher-menu {
        right: 0;
    }

}

@keyframes themeMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-section {
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    color: #15202b;
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #2f3c48;
}

.legal-list li {
    margin-bottom: 10px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .legal-summary {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 16px;
        border-radius: 14px;
    }

    .legal-meta {
        flex-direction: column;
        gap: 6px;
    }
}

.contact-page .contact-email {
    margin: 8px 0 14px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
}

.contact-page .contact-email a {
    color: #0a6a63;
}

.contact-page .contact-email a:hover {
    color: #088a82;
}

.contact-alert {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.contact-alert.is-ok {
    background: rgba(46,125,50,.12);
    color: #2e7d32;
    border: 1px solid rgba(46,125,50,.28);
}

.contact-alert.is-error {
    background: rgba(230,57,70,.12);
    color: #b4232f;
    border: 1px solid rgba(230,57,70,.25);
}

.contact-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-row label {
    font-size: 13px;
    font-weight: 700;
    color: #30404d;
}

.contact-form-row input,
.contact-form-row textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,.16);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: #1f2a33;
    background: #fff;
}

.contact-form-row textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
    outline: none;
    border-color: rgba(10,168,158,.8);
    box-shadow: 0 0 0 3px rgba(10,168,158,.16);
}

.contact-submit {
    align-self: flex-start;
    min-width: 170px;
}

.contact-form .cf-turnstile {
    min-height: 65px;
}

.contact-hp {
    position: absolute;
    left: -10000px;
    opacity: 0;
    pointer-events: none;
}

.footer-nav-legal ul {
    gap: 1rem;
}

.footer-nav-legal a {
    font-size: .86rem;
    color: #b9c2d3;
}

.data-disclaimer {
    margin: -2px 0 12px;
    padding: 8px 10px;
    border-left: 3px solid #d97706;
    background: rgba(217,119,6,.08);
    border-radius: 8px;
    color: #7a4a0d;
    font-size: 12px;
    font-weight: 600;
}

.league-auto-summary {
    margin: 12px 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

.league-auto-summary h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.2;
    color: #0f172a;
}

.league-auto-summary p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: #334155;
}

.article-back {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #3f4a54;
}
.article-back:hover {
    color: var(--verde-main);
}

.noticia-header .noticia-titulo {
    margin-bottom: 8px;
}

.noticia-contenido {
    color: #1d2730;
}
.noticia-contenido p {
    font-size: 17px;
    line-height: 1.68;
}

.noticias-relacionadas {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.home-sidebar {
    top: 88px;
}

@media (max-width: 900px) {
    .public-page-block {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 12px;
    }

    .page-container {
        gap: 20px;
    }

    .section-head {
        align-items: flex-start;
    }

    .section-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .noticia-contenido p {
        font-size: 16px;
        line-height: 1.6;
    }

    .noticia-individual-minimal {
        padding: 14px;
    }

    .noticia-individual-minimal .noticia-header .noticia-titulo {
        font-size: clamp(24px, 8vw, 31px);
        line-height: 1.06;
    }

    .noticia-individual-minimal .noticia-img {
        min-height: 180px;
        border-radius: 16px;
    }

    .noticia-individual-minimal .noticia-contenido p {
        font-size: 15px;
        line-height: 1.72;
    }

    .noticia-lead {
        font-size: 16px;
        line-height: 1.55;
        margin: 12px 0 16px;
    }

    .noticia-individual-minimal .noticia-contenido ul,
    .noticia-individual-minimal .noticia-contenido ol {
        font-size: 15px;
        line-height: 1.65;
    }

    .noticia-individual-minimal .noticia-contenido blockquote {
        padding: 14px 16px;
        font-size: 16px;
        line-height: 1.58;
    }

    .related-news-head {
        flex-direction: column;
        gap: 10px;
    }

    .related-news-link {
        width: 100%;
        justify-content: center;
    }

    .article-share {
        align-items: stretch;
    }

    .article-share-actions {
        width: 100%;
    }

    .article-share-btn {
        flex: 1;
        min-width: 0;
        padding-inline: 10px;
    }

}

/* ================================
   PUBLIC HOME STEP 2
================================ */
#resultados {
    padding: 16px;
    border-radius: 18px;
}

#resultados .section-head {
    margin-bottom: 14px;
}

.resultados,
.proximos {
    scrollbar-width: thin;
}

.card-resultado,
.card-proximo {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.07);
}

.card-resultado {
    min-width: 270px;
}

.card-proximo {
    min-width: 250px;
}

@media (max-width: 1024px) {
    .home-sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .home-sidebar .sidebar-card {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .home-sidebar {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .home-sidebar .sidebar-card {
        min-width: 220px;
        flex: 0 0 220px;
        scroll-snap-align: start;
    }

    .home-sidebar .sidebar-list {
        max-height: 260px;
    }
}

@media (max-width: 640px) {
    #resultados {
        padding: 12px;
    }

    .resultados-tabs {
        width: 100%;
    }

    .resultados-tabs .tab-btn {
        flex: 1;
        text-align: center;
    }

    .resultados,
    .proximos {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(88%, 1fr);
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .card-resultado,
    .card-proximo {
        min-width: 0;
    }

    .home-sidebar .sidebar-card {
        min-width: 200px;
        flex-basis: 200px;
    }

    .card-resultado .deporte {
        font-size: 10px;
        letter-spacing: .03em;
    }
    .resultado-meta {
        gap: 5px;
    }
    .resultado-jornada,
    .resultado-fecha {
        font-size: 9px;
        padding: 2px 6px;
    }
    .card-resultado .deporte .liga-full { display: none; }
    .card-resultado .deporte .liga-short { display: inline; }
}

/* ================================
   PUBLIC POLISH (LIGHT)
================================ */
.page {
    max-width: 1320px;
}

.page-container {
    gap: 28px;
}

.public-page-block {
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.section-title {
    letter-spacing: -0.015em;
}

.section-head {
    margin-bottom: 14px;
}

#resultados,
.noticia-individual-minimal,
.opinion-individual,
.opiniones-public,
.noticias.public-page-block,
.agenda.public-page-block {
    border: 1px solid rgba(0,0,0,.07);
}

.card-resultado,
.card-proximo,
.sidebar-card,
.opinion-card,
.noticia-card {
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-resultado:hover,
.card-proximo:hover,
.sidebar-card:hover,
.opinion-card:hover,
.noticia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,.10);
    border-color: rgba(10,168,158,.22);
}

.card-resultado .marcador {
    gap: 10px;
}

.card-resultado .equipo > span:not(.team-shield-wrap) {
    font-size: 12px;
    line-height: 1.2;
}

.card-proximo .proximo-eq > span:not(.team-shield-wrap) {
    font-size: 12px;
    line-height: 1.2;
}

.sidebar-list li {
    padding: 4px 0;
}

.sidebar-links a {
    border-radius: 8px;
    padding: 5px 6px;
}

.sidebar-links a:hover {
    background: rgba(10,168,158,.10);
}

.noticia-individual-minimal .noticia-contenido {
    max-width: 74ch;
}

.noticia-individual-minimal .noticia-contenido p {
    margin: 0 0 1em;
}

.data-disclaimer {
    font-size: 11px;
}

@media (max-width: 1024px) {
    .page-container {
        gap: 22px;
    }

    .public-page-block {
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .page-container {
        gap: 16px;
    }

    .public-page-block {
        padding: 14px;
        border-radius: 14px;
    }

    .section-head {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: clamp(20px, 6vw, 26px);
    }

    .card-resultado .equipo > span:not(.team-shield-wrap),
    .card-proximo .proximo-eq > span:not(.team-shield-wrap) {
        font-size: 11px;
    }

    .sidebar-links a {
        padding: 4px 5px;
    }
}

/* Sidebar responsive tuning */
@media (max-width: 1024px) {
    .home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-sidebar .sidebar-card {
        padding: 12px;
    }

    .sidebar-list li {
        gap: 6px;
        font-size: 12px;
    }

    .sidebar-team > span:not(.team-shield-wrap) {
        font-size: 11px;
        line-height: 1.15;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 760px) {
    .home-sidebar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .home-sidebar .sidebar-card {
        min-width: 0;
        flex: 1 1 auto;
        scroll-snap-align: none;
    }

    .home-sidebar .sidebar-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .home-sidebar .sidebar-card {
        padding: 11px;
        border-radius: 12px;
    }

    .sidebar-head {
        gap: 8px;
    }

    .sidebar-head .sidebar-link-all {
        font-size: 11px;
    }

    .sidebar-title {
        font-size: 13px;
        line-height: 1.2;
    }

    .sidebar-subtitle {
        margin: 0 0 8px;
        font-size: 11px;
        line-height: 1.35;
    }

    .sidebar-list li {
        padding: 2px 0;
        gap: 6px;
    }

    .sidebar-match-item {
        padding: 7px 7px 8px;
        border-radius: 10px;
    }

    .sidebar-match-center {
        min-width: 78px;
    }

    .sidebar-score-link.match-info-link,
    .sidebar-next-link.match-info-link,
    .sidebar-live-link.match-info-link {
        min-width: 78px;
        padding: 6px 8px;
    }

    .sidebar-live-score {
        font-size: 12px;
    }

    .sidebar-liga {
        max-width: 96px;
        font-size: 9px;
    }

    .sidebar-links a {
        font-size: 12px;
        line-height: 1.3;
    }

    .sidebar-list li .sidebar-team > span:not(.team-shield-wrap) {
        font-size: 10.5px;
        line-height: 1.12;
    }
}

@media (max-width: 390px) {
    .home-sidebar {
        gap: 8px;
    }

    .home-sidebar .sidebar-card {
        padding: 10px;
    }

    .sidebar-title {
        font-size: 12px;
    }

    .sidebar-head .sidebar-link-all {
        font-size: 10px;
    }

    .sidebar-subtitle {
        font-size: 10px;
    }

    .sidebar-match-item {
        padding: 6px 6px 7px;
    }

    .sidebar-match-center {
        min-width: 72px;
    }

    .sidebar-score-link.match-info-link,
    .sidebar-next-link.match-info-link,
    .sidebar-live-link.match-info-link {
        min-width: 72px;
        padding: 5px 7px;
    }

    .sidebar-live-score {
        font-size: 11px;
    }

    .sidebar-liga {
        max-width: 84px;
        font-size: 8.5px;
    }

    .sidebar-links a {
        font-size: 11px;
    }
}

/* Futbol mobile: reset to cleaner layout */
@media (max-width: 640px) {
    .tercera-public {
        overflow: visible;
    }

    .tercera-card {
        padding: 12px;
        border-radius: 12px;
    }

    .tercera-card-head {
        gap: 5px;
    }

    .tercera-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tercera-table {
        min-width: 560px;
        font-size: 12px;
    }

    .tercera-table th:nth-child(4),
    .tercera-table td:nth-child(4),
    .tercera-table th:nth-child(5),
    .tercera-table td:nth-child(5),
    .tercera-table th:nth-child(6),
    .tercera-table td:nth-child(6) {
        display: table-cell;
    }

    .tercera-table th:nth-child(7),
    .tercera-table td:nth-child(7),
    .tercera-table th:nth-child(8),
    .tercera-table td:nth-child(8),
    .tercera-table th:nth-child(9),
    .tercera-table td:nth-child(9) {
        display: none;
    }

    .tercera-match-head {
        flex-wrap: nowrap;
    }

    .tercera-public .team-shield-wrap {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        overflow: hidden;
    }

    .tercera-public .team-shield-wrap .team-shield {
        width: 24px;
        height: 24px;
    }
}

/* Results view tuning: home + futbol */
#resultados .resultados,
#resultados .proximos {
    gap: 12px;
}

#resultados .card-resultado,
#resultados .card-proximo {
    min-width: 268px;
    border-radius: 14px;
}

#resultados .card-resultado .deporte,
#resultados .proximo-liga {
    font-size: 10px;
    letter-spacing: .04em;
}

#resultados .card-resultado .marcador,
#resultados .proximo-partido {
    align-items: start;
}

#resultados .card-resultado .equipo,
#resultados .proximo-eq {
    gap: 6px;
}

#resultados .card-resultado .equipo > .team-shield-wrap,
#resultados .proximo-eq > .team-shield-wrap,
#resultados .card-resultado .equipo > .team-link-inline > .team-shield-wrap,
#resultados .proximo-eq > .team-link-inline > .team-shield-wrap {
    order: 1;
}

#resultados .card-resultado .equipo > span:not(.team-shield-wrap),
#resultados .proximo-eq > span:not(.team-shield-wrap),
#resultados .card-resultado .equipo > .team-link-inline > span:not(.team-shield-wrap),
#resultados .proximo-eq > .team-link-inline > span:not(.team-shield-wrap) {
    order: 2;
}

#resultados .card-resultado .equipo > .team-link-inline,
#resultados .proximo-eq > .team-link-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

#resultados .card-resultado .equipo.side-right,
#resultados .proximo-eq.side-right {
    flex-direction: column;
}

#resultados .card-resultado .equipo.side-right > .team-link-inline,
#resultados .proximo-eq.side-right > .team-link-inline {
    flex-direction: column-reverse;
}

#resultados .card-resultado .equipo > span:not(.team-shield-wrap),
#resultados .card-resultado .equipo > .team-link-inline > span:not(.team-shield-wrap),
#resultados .proximo-eq > span:not(.team-shield-wrap),
#resultados .proximo-eq > .team-link-inline > span:not(.team-shield-wrap) {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 2.4em;
}

#resultados .card-resultado .goles {
    margin-top: 8px;
}

/* Home: resultados baloncesto Lanzarote */
#resultados-basket {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.07);
}

/* Home: resultados balonmano Lanzarote */
#resultados-handball {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.07);
}

#resultados-handball .section-head {
    margin-bottom: 10px;
}

#resultados-handball .carousel-shell {
    padding-inline: 8px;
}

#resultados-handball .basket-team > .team-shield-wrap,
#resultados-handball .basket-team > .team-link-inline > .team-shield-wrap {
    width: 60px;
    height: 60px;
}

#resultados-handball .basket-team > .team-shield-wrap .team-shield,
#resultados-handball .basket-team > .team-link-inline > .team-shield-wrap .team-shield {
    width: 52px;
    height: 52px;
}

.basket-resultados {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.basket-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 10px 10px 9px;
    min-width: 0;
}

.basket-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.basket-liga {
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4f5d68;
    font-weight: 700;
    line-height: 1.3;
    max-width: 62%;
}

.basket-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.basket-jornada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(10,168,158,.1);
    color: #0a6a63;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(10,168,158,.16);
    box-shadow: 0 2px 8px rgba(10,168,158,.05);
}

.basket-fecha {
    font-size: 11px;
    color: #667581;
    font-weight: 600;
}

.basket-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.basket-team {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    min-width: 0;
}

.basket-team > .team-link-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.basket-team > span:not(.team-shield-wrap) {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.basket-team > .team-link-inline > span:not(.team-shield-wrap) {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.basket-score {
    background: rgba(10,168,158,.12);
    color: #0a6a63;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 13px;
    font-weight: 800;
}

.basket-estado {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.basket-estado.final {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46,125,50,.18);
}

.basket-estado.en-juego {
    color: #d97706;
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217,119,6,.18);
}

.basket-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-shell {
    position: relative;
    overflow: hidden;
    padding: 8px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(10, 168, 158, 0.16);
    background: linear-gradient(180deg, rgba(10, 168, 158, 0.05) 0%, rgba(10, 168, 158, 0.02) 100%);
}

.carousel-shell .resultados,
.carousel-shell .proximos,
.carousel-shell .basket-resultados {
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 168, 158, 0.42) rgba(10, 168, 158, 0.08);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(10, 168, 158, 0.28);
    background: rgba(255,255,255,.96);
    color: #0b5e58;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.carousel-nav:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.04);
    background: #ffffff;
    border-color: rgba(10, 168, 158, 0.44);
    box-shadow: 0 10px 24px rgba(10, 168, 158, 0.20);
}

.carousel-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 168, 158, 0.24), 0 10px 24px rgba(10, 168, 158, 0.16);
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

:root[data-theme="dark"] .carousel-shell {
    border-color: rgba(126, 229, 220, 0.22);
    background: linear-gradient(180deg, rgba(126, 229, 220, 0.10) 0%, rgba(126, 229, 220, 0.03) 100%);
}

:root[data-theme="dark"] .carousel-nav {
    border-color: rgba(126, 229, 220, 0.34);
    background: rgba(16, 27, 40, 0.94);
    color: #a4f4ec;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .carousel-nav:hover:not(:disabled) {
    border-color: rgba(126, 229, 220, 0.56);
    background: rgba(20, 34, 48, 0.98);
    box-shadow: 0 10px 26px rgba(126, 229, 220, 0.22);
}

.carousel-shell.is-auto-ticker .carousel-nav {
    display: none !important;
}

.auto-ticker-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auto-ticker-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1025px) {
    .js-drag-scroll {
        cursor: grab;
        user-select: none;
    }

    .js-drag-scroll.is-dragging {
        cursor: grabbing;
    }
}

@media (max-width: 1024px) {
    .carousel-shell {
        padding: 6px 8px 8px;
    }

    .carousel-nav {
        display: none;
    }
}

/* ================================
   Responsive Refinement + Escudos
================================ */
.team-shield-wrap,
#resultados .card-resultado .equipo > .team-shield-wrap,
#resultados .proximo-eq > .team-shield-wrap,
.sidebar-team > .team-shield-wrap,
.basket-team > .team-shield-wrap,
.tercera-public .tercera-match-body .team > .team-shield-wrap,
.tercera-public .team-with-shield > .team-shield-wrap {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.team-shield-wrap .team-shield,
#resultados .card-resultado .equipo > .team-shield-wrap .team-shield,
#resultados .proximo-eq > .team-shield-wrap .team-shield,
.sidebar-team > .team-shield-wrap .team-shield,
.basket-team > .team-shield-wrap .team-shield,
.tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
.tercera-public .team-with-shield > .team-shield-wrap .team-shield {
    width: 40px;
    height: 40px;
}

@media (max-width: 1024px) {
    .section-head {
        gap: 10px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #resultados .section-head {
        align-items: stretch;
    }

    .resultados-tabs {
        width: 100%;
    }

    .resultados-tabs .tab-btn {
        flex: 1;
        text-align: center;
    }

    .sidebar-head {
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .sidebar-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-link-all {
        font-size: 10px;
        padding: 4px 7px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 4px 10px 10px;
    }

    .public-page-block {
        padding: 12px;
        border-radius: 12px;
    }

    .sidebar-card {
        padding: 12px;
    }

    .team-shield-wrap,
    #resultados .card-resultado .equipo > .team-shield-wrap,
    #resultados .proximo-eq > .team-shield-wrap,
    .sidebar-team > .team-shield-wrap,
    .basket-team > .team-shield-wrap,
    .tercera-public .tercera-match-body .team > .team-shield-wrap,
    .tercera-public .team-with-shield > .team-shield-wrap {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }

    .team-shield-wrap .team-shield,
    #resultados .card-resultado .equipo > .team-shield-wrap .team-shield,
    #resultados .proximo-eq > .team-shield-wrap .team-shield,
    .sidebar-team > .team-shield-wrap .team-shield,
    .basket-team > .team-shield-wrap .team-shield,
    .tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
    .tercera-public .team-with-shield > .team-shield-wrap .team-shield {
        width: 34px;
        height: 34px;
    }
}

.tercera-public .tercera-match-body .team > span:not(.team-shield-wrap) {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 2.4em;
}

@media (max-width: 760px) {
    #resultados .resultados,
    #resultados .proximos {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(90%, 1fr);
        overflow-x: auto;
    }

    #resultados .card-resultado,
    #resultados .card-proximo {
        min-width: 0;
    }

    .basket-resultados {
        grid-auto-columns: minmax(90%, 1fr);
    }
}

@media (max-width: 640px) {
    .tercera-public .tercera-match-body {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 6px;
        align-items: start;
    }

    .tercera-public .tercera-match-body .score {
        margin-top: 6px;
    }
}

/* Clasificacion + racha */
.td-racha {
    text-align: center;
}

.racha-list {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.racha-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid transparent;
}

.racha-dot:not(.is-latest) {
    width: 16px;
    height: 16px;
    font-size: 9px;
}

.racha-dot.is-latest {
    border-width: 2px;
    box-shadow:
        inset 0 0 0 1px #fff,
        0 0 0 1px rgba(15,23,42,.18);
}

.racha-dot.w {
    background: rgba(22,163,74,.16);
    color: #166534;
    border-color: rgba(22,163,74,.28);
}

.racha-dot.d {
    background: rgba(217,119,6,.16);
    color: #92400e;
    border-color: rgba(217,119,6,.28);
}

.racha-dot.l {
    background: rgba(220,38,38,.14);
    color: #991b1b;
    border-color: rgba(220,38,38,.24);
}

.racha-inline-mobile {
    display: none;
}

.team-meta-col {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 3px;
}

.clasif-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 2px;
}

.clasif-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.08);
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.clasif-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 10px;
}

.clasif-legend-item.is-champion {
    color: #166534;
    background: rgba(22,163,74,.10);
    border-color: rgba(22,163,74,.18);
}

.clasif-legend-item.is-playoff {
    color: #0f766e;
    background: rgba(13,148,136,.10);
    border-color: rgba(13,148,136,.18);
}

.clasif-legend-item.is-relegation {
    color: #991b1b;
    background: rgba(220,38,38,.10);
    border-color: rgba(220,38,38,.16);
}

.clasif-legend-item.is-final-phase {
    color: #1d4ed8;
    background: rgba(37, 99, 235, .10);
    border-color: rgba(37, 99, 235, .18);
}

.clasif-legend-item.is-final-qualifier {
    color: #7c3aed;
    background: rgba(124, 58, 237, .10);
    border-color: rgba(124, 58, 237, .18);
}

:root[data-theme="dark"] .clasif-legend-item {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--ui-text);
}

:root[data-theme="dark"] .clasif-legend-item.is-champion {
    color: #86efac;
    background: rgba(22,163,74,.16);
    border-color: rgba(22,163,74,.26);
}

:root[data-theme="dark"] .clasif-legend-item.is-playoff {
    color: #7de5dc;
    background: rgba(13,148,136,.16);
    border-color: rgba(13,148,136,.26);
}

:root[data-theme="dark"] .clasif-legend-item.is-relegation {
    color: #fca5a5;
    background: rgba(220,38,38,.16);
    border-color: rgba(220,38,38,.24);
}

:root[data-theme="dark"] .clasif-legend-item.is-final-phase {
    color: #93c5fd;
    background: rgba(37,99,235,.16);
    border-color: rgba(37,99,235,.24);
}

:root[data-theme="dark"] .clasif-legend-item.is-final-qualifier {
    color: #c4b5fd;
    background: rgba(124,58,237,.16);
    border-color: rgba(124,58,237,.24);
}

:root[data-theme="dark"] .td-racha .racha-badge,
:root[data-theme="dark"] .racha-badge {
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}

:root[data-theme="dark"] .racha-badge.is-win {
    background: rgba(22,163,74,.18);
    color: #86efac;
}

:root[data-theme="dark"] .racha-badge.is-draw {
    background: rgba(245,158,11,.16);
    color: #fcd34d;
}

:root[data-theme="dark"] .racha-badge.is-loss {
    background: rgba(220,38,38,.18);
    color: #fca5a5;
}

.tercera-table tbody tr.is-champion td:first-child,
.tercera-table tbody tr.is-playoff td:first-child,
.tercera-table tbody tr.is-relegation td:first-child,
.tercera-table tbody tr.is-final-phase td:first-child,
.tercera-table tbody tr.is-final-qualifier td:first-child {
    position: relative;
    font-weight: 800;
    padding-left: 16px;
}

.tercera-table tbody tr.is-champion td:first-child::before,
.tercera-table tbody tr.is-playoff td:first-child::before,
.tercera-table tbody tr.is-relegation td:first-child::before,
.tercera-table tbody tr.is-final-phase td:first-child::before,
.tercera-table tbody tr.is-final-qualifier td:first-child::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 4px;
    border-radius: 999px;
}

.tercera-table tbody tr.is-champion td:first-child::before {
    background: #16a34a;
}

.tercera-table tbody tr.is-playoff td:first-child::before {
    background: #0d9488;
}

.tercera-table tbody tr.is-relegation td:first-child::before {
    background: #dc2626;
}

.tercera-table tbody tr.is-final-phase td:first-child::before {
    background: #2563eb;
}

.tercera-table tbody tr.is-final-qualifier td:first-child::before {
    background: #7c3aed;
}

.tercera-table tbody tr.is-champion {
    background: linear-gradient(90deg, rgba(22,163,74,.07), rgba(255,255,255,0) 22%);
}

.tercera-table tbody tr.is-playoff {
    background: linear-gradient(90deg, rgba(13,148,136,.06), rgba(255,255,255,0) 22%);
}

.tercera-table tbody tr.is-relegation {
    background: linear-gradient(90deg, rgba(220,38,38,.06), rgba(255,255,255,0) 22%);
}

.tercera-table tbody tr.is-final-phase {
    background: linear-gradient(90deg, rgba(37,99,235,.06), rgba(255,255,255,0) 22%);
}

.tercera-table tbody tr.is-final-qualifier {
    background: linear-gradient(90deg, rgba(124,58,237,.06), rgba(255,255,255,0) 22%);
}

/* Mobile sin scroll horizontal en clasificacion */
@media (max-width: 640px) {
    .clasif-legend {
        gap: 6px;
    }

    .clasif-legend-item {
        font-size: 10px;
        padding: 4px 7px;
    }

    .tercera-public .tercera-table-wrap {
        overflow: visible;
    }

    .tercera-public .tercera-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        font-size: 11px;
    }

    .tercera-public .tercera-table th,
    .tercera-public .tercera-table td {
        padding: 7px 4px;
    }

    .tercera-public .tercera-table th:nth-child(7),
    .tercera-public .tercera-table td:nth-child(7),
    .tercera-public .tercera-table th:nth-child(8),
    .tercera-public .tercera-table td:nth-child(8),
    .tercera-public .tercera-table th:nth-child(9),
    .tercera-public .tercera-table td:nth-child(9) {
        display: none;
    }

    .tercera-public .tercera-table th:nth-child(1),
    .tercera-public .tercera-table td:nth-child(1) {
        width: 28px;
    }

    .tercera-public .tercera-table th:nth-child(3),
    .tercera-public .tercera-table td:nth-child(3),
    .tercera-public .tercera-table th:nth-child(4),
    .tercera-public .tercera-table td:nth-child(4),
    .tercera-public .tercera-table th:nth-child(5),
    .tercera-public .tercera-table td:nth-child(5),
    .tercera-public .tercera-table th:nth-child(6),
    .tercera-public .tercera-table td:nth-child(6),
    .tercera-public .tercera-table th:nth-child(9),
    .tercera-public .tercera-table td:nth-child(9),
    .tercera-public .tercera-table th:nth-child(10),
    .tercera-public .tercera-table td:nth-child(10),
    .tercera-public .tercera-table th:nth-child(11),
    .tercera-public .tercera-table td:nth-child(11) {
        width: 30px;
    }

    .tercera-public .tercera-table th:nth-child(11),
    .tercera-public .tercera-table td:nth-child(11) {
        display: none;
    }

    .tercera-public .team-with-shield {
        gap: 5px;
        align-items: flex-start;
    }

    .tercera-public .team-with-shield > span:not(.team-shield-wrap) {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tercera-public .team-meta-col > span:first-child {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }

    .tercera-public .team-with-shield > .team-shield-wrap {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .tercera-public .team-with-shield > .team-shield-wrap .team-shield {
        width: 20px;
        height: 20px;
    }

    .tercera-public .racha-inline-mobile {
        display: inline-flex;
        gap: 2px;
        align-items: center;
        margin-top: 1px;
    }

    .tercera-public .racha-list {
        gap: 2px;
    }

    .tercera-public .racha-dot {
        width: 13px;
        height: 13px;
        font-size: 7px;
        border-width: 1px;
    }

    .tercera-public .racha-dot:not(.is-latest) {
        width: 11px;
        height: 11px;
        font-size: 6px;
    }
}

/* Final override: escudos mas visibles en toda la web publica */
.team-shield-wrap,
#resultados .card-resultado .equipo > .team-shield-wrap,
#resultados .card-resultado .equipo > .team-link-inline > .team-shield-wrap,
#resultados .proximo-eq > .team-shield-wrap,
#resultados .proximo-eq > .team-link-inline > .team-shield-wrap,
.sidebar-team > .team-shield-wrap,
.sidebar-team > .team-link-inline > .team-shield-wrap,
.basket-team > .team-shield-wrap,
.basket-team > .team-link-inline > .team-shield-wrap,
.tercera-public .tercera-match-body .team > .team-shield-wrap,
.tercera-public .team-with-shield > .team-shield-wrap,
.club-public-shield .team-shield-wrap,
.club-detail-shield .team-shield-wrap {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.team-shield-wrap .team-shield,
#resultados .card-resultado .equipo > .team-shield-wrap .team-shield,
#resultados .card-resultado .equipo > .team-link-inline > .team-shield-wrap .team-shield,
#resultados .proximo-eq > .team-shield-wrap .team-shield,
#resultados .proximo-eq > .team-link-inline > .team-shield-wrap .team-shield,
.sidebar-team > .team-shield-wrap .team-shield,
.sidebar-team > .team-link-inline > .team-shield-wrap .team-shield,
.basket-team > .team-shield-wrap .team-shield,
.basket-team > .team-link-inline > .team-shield-wrap .team-shield,
.tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
.tercera-public .team-with-shield > .team-shield-wrap .team-shield,
.club-public-shield .team-shield-wrap .team-shield,
.club-detail-shield .team-shield-wrap .team-shield {
    width: 50px;
    height: 50px;
}

.sidebar-team > .team-shield-wrap,
.sidebar-team > .team-link-inline > .team-shield-wrap {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.sidebar-team > .team-shield-wrap .team-shield,
.sidebar-team > .team-link-inline > .team-shield-wrap .team-shield {
    width: 44px;
    height: 44px;
}

.club-public-shield .team-shield-wrap,
.club-detail-shield .team-shield-wrap {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.club-public-shield .team-shield-wrap .team-shield,
.club-detail-shield .team-shield-wrap .team-shield {
    width: 60px;
    height: 60px;
}

@media (max-width: 640px) {
    .team-shield-wrap,
    #resultados .card-resultado .equipo > .team-shield-wrap,
    #resultados .card-resultado .equipo > .team-link-inline > .team-shield-wrap,
    #resultados .proximo-eq > .team-shield-wrap,
    #resultados .proximo-eq > .team-link-inline > .team-shield-wrap,
    .sidebar-team > .team-shield-wrap,
    .sidebar-team > .team-link-inline > .team-shield-wrap,
    .basket-team > .team-shield-wrap,
    .basket-team > .team-link-inline > .team-shield-wrap,
    .tercera-public .tercera-match-body .team > .team-shield-wrap,
    .tercera-public .team-with-shield > .team-shield-wrap,
    .club-public-shield .team-shield-wrap,
    .club-detail-shield .team-shield-wrap {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .team-shield-wrap .team-shield,
    #resultados .card-resultado .equipo > .team-shield-wrap .team-shield,
    #resultados .card-resultado .equipo > .team-link-inline > .team-shield-wrap .team-shield,
    #resultados .proximo-eq > .team-shield-wrap .team-shield,
    #resultados .proximo-eq > .team-link-inline > .team-shield-wrap .team-shield,
    .sidebar-team > .team-shield-wrap .team-shield,
    .sidebar-team > .team-link-inline > .team-shield-wrap .team-shield,
    .basket-team > .team-shield-wrap .team-shield,
    .basket-team > .team-link-inline > .team-shield-wrap .team-shield,
    .tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
    .tercera-public .team-with-shield > .team-shield-wrap .team-shield,
    .club-public-shield .team-shield-wrap .team-shield,
    .club-detail-shield .team-shield-wrap .team-shield {
        width: 44px;
        height: 44px;
    }

    .sidebar-team > .team-shield-wrap,
    .sidebar-team > .team-link-inline > .team-shield-wrap {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .sidebar-team > .team-shield-wrap .team-shield,
    .sidebar-team > .team-link-inline > .team-shield-wrap .team-shield {
        width: 38px;
        height: 38px;
    }

    .club-public-shield .team-shield-wrap,
    .club-detail-shield .team-shield-wrap {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .club-public-shield .team-shield-wrap .team-shield,
    .club-detail-shield .team-shield-wrap .team-shield {
        width: 52px;
        height: 52px;
    }

}

.tercera-public .match-preview {
    margin-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    padding-top: 8px;
}

.tercera-public .match-preview summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #0a6b65;
    list-style: none;
}

.tercera-public .match-preview summary::-webkit-details-marker {
    display: none;
}

.tercera-public .match-preview summary::before {
    content: "+ ";
    font-weight: 800;
}

.tercera-public .match-preview[open] summary::before {
    content: "- ";
}

.tercera-public .match-preview-content {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #2a2a2a;
}

.tercera-public .match-preview-content .is-hidden {
    display: none;
}

.tercera-public .match-preview-more {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #0a6b65;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

/* Final polish: escudos de clubes mas limpios y consistentes */
.team-shield-wrap,
#resultados .card-resultado .equipo > .team-shield-wrap,
#resultados .proximo-eq > .team-shield-wrap,
.sidebar-team > .team-shield-wrap,
.basket-team > .team-shield-wrap,
.tercera-public .tercera-match-body .team > .team-shield-wrap,
.tercera-public .team-with-shield > .team-shield-wrap,
.club-public-shield .team-shield-wrap,
.club-detail-shield .team-shield-wrap,
.partido-info-page .partido-info-team > .team-shield-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.98) 0%, rgba(247,250,252,.96) 48%, rgba(236,242,247,.96) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 8px 18px rgba(15, 23, 42, 0.10);
}

.team-shield-wrap::after,
#resultados .card-resultado .equipo > .team-shield-wrap::after,
#resultados .proximo-eq > .team-shield-wrap::after,
.sidebar-team > .team-shield-wrap::after,
.basket-team > .team-shield-wrap::after,
.tercera-public .tercera-match-body .team > .team-shield-wrap::after,
.tercera-public .team-with-shield > .team-shield-wrap::after,
.club-public-shield .team-shield-wrap::after,
.club-detail-shield .team-shield-wrap::after,
.partido-info-page .partido-info-team > .team-shield-wrap::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.7);
    pointer-events: none;
}

.team-shield-wrap .team-shield,
#resultados .card-resultado .equipo > .team-shield-wrap .team-shield,
#resultados .proximo-eq > .team-shield-wrap .team-shield,
.sidebar-team > .team-shield-wrap .team-shield,
.basket-team > .team-shield-wrap .team-shield,
.tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
.tercera-public .team-with-shield > .team-shield-wrap .team-shield,
.club-public-shield .team-shield-wrap .team-shield,
.club-detail-shield .team-shield-wrap .team-shield,
.partido-info-page .partido-info-team > .team-shield-wrap .team-shield {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    max-width: calc(100% - 6px);
    max-height: calc(100% - 6px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 4px rgba(15,23,42,.12));
    transform: scale(1.12) translateZ(0);
}

.team-shield-fallback {
    display: none;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(10,168,158,.16) 0%, rgba(10,168,158,.08) 100%);
    color: #0b5e58;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.team-shield-wrap.is-fallback,
.team-shield-wrap.is-fallback-only {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.98) 0%, rgba(232,245,244,.96) 100%);
}

/* ================================
   VISUAL COHERENCE LAYER
================================ */
:root {
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8fbfc;
    --ui-border: 1px solid rgba(15, 23, 42, 0.08);
    --ui-radius-lg: 16px;
    --ui-radius-md: 12px;
    --ui-shadow-card: 0 8px 22px rgba(15, 23, 42, 0.08);
    --ui-shadow-card-hover: 0 14px 28px rgba(15, 23, 42, 0.12);
    --ui-title: #15202b;
    --ui-text: #2e3b46;
    --ui-muted: #5f6e7a;
}

:root[data-theme="dark"] {
    --ui-surface: #0f1722;
    --ui-surface-soft: #131f2d;
    --ui-border: 1px solid rgba(255, 255, 255, 0.08);
    --ui-shadow-card: 0 12px 28px rgba(0, 0, 0, 0.28);
    --ui-shadow-card-hover: 0 18px 36px rgba(0, 0, 0, 0.34);
    --ui-title: #f3f7fb;
    --ui-text: #d8e1ea;
    --ui-muted: #93a4b5;
}

body {
    color: var(--ui-text);
}

.public-page-block,
#resultados,
#resultados-basket,
.home-main-content > .section {
    background: var(--ui-surface);
    border: var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-card);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    color: var(--ui-title);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(10, 168, 158, 0.32);
    background: rgba(10, 168, 158, 0.08);
    color: #0a6a63;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.section-link:hover {
    background: rgba(10, 168, 158, 0.14);
    border-color: rgba(10, 168, 158, 0.46);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .section-link,
body.theme-dark .section-link {
    color: #99f6e4;
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.24);
}

:root[data-theme="dark"] .section-link:hover,
body.theme-dark .section-link:hover {
    color: #f8fafc;
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(94, 234, 212, 0.46);
}

:root[data-theme="dark"] .sidebar-card,
:root[data-theme="dark"] .card-resultado,
:root[data-theme="dark"] .card-proximo,
:root[data-theme="dark"] .basket-card,
:root[data-theme="dark"] .noticia-card,
:root[data-theme="dark"] .opinion-card,
:root[data-theme="dark"] .evento,
:root[data-theme="dark"] .noticia,
:root[data-theme="dark"] .club,
:root[data-theme="dark"] .clasificacion-wrap,
:root[data-theme="dark"] .tabla-clasificacion-wrap {
    background: var(--ui-surface);
    border-color: rgba(255,255,255,0.08);
    box-shadow: var(--ui-shadow-card);
}

:root[data-theme="dark"] :is(
  #resultados .card-resultado .goles,
  #resultados-basket .basket-score,
  #resultados-handball .basket-score,
  .tercera-public .tercera-match-body .score
) {
  color: #a4f4ec;
  border: 1px solid rgba(126, 229, 220, 0.30);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: #0f1a27;
    color: #e6eef5;
    border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #8ea1b4;
}

:root[data-theme="dark"] table,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
    color: var(--ui-text);
    border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .main-footer {
    background: linear-gradient(135deg, #050b12 0%, #0b1621 100%);
}

.sidebar-card,
.card-resultado,
.card-proximo,
.basket-card,
.noticia-card,
.opinion-card,
.evento,
.club,
.tercera-match,
.partido-summary-card {
    border: var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .24s ease, border-color .24s ease;
}

.sidebar-card:hover,
.card-resultado:hover,
.card-proximo:hover,
.basket-card:hover,
.noticia-card:hover,
.opinion-card:hover,
.evento:hover,
.club:hover,
.tercera-match:hover,
.partido-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-card-hover);
    border-color: rgba(10, 168, 158, 0.24);
}

.btn-minimal,
.match-info-link {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
}

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

.ui-team-stack .team-link-inline {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}

.ui-team-stack .team-link-inline:hover > span:not(.team-shield-wrap) {
    color: #0a6a63;
}

.ui-team-stack > span:not(.team-shield-wrap),
.ui-team-stack > .team-link-inline > span:not(.team-shield-wrap) {
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
    text-align: center;
}

.ui-sports-side-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    color: #5f6e7a;
}

.ui-sports-side-chip.is-home {
    color: #0a6a63;
    background: rgba(10, 168, 158, 0.10);
    border-color: rgba(10, 168, 158, 0.18);
}

.ui-sports-side-chip.is-away {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.18);
}

.ui-sports-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    border: 1px solid rgba(10, 168, 158, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 12px 24px rgba(15,23,42,.10);
    color: #15202b;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.01em;
    position: relative;
}

.ui-sports-score::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10,168,158,.42), rgba(14,116,144,.20));
    opacity: .85;
}

.ui-sports-score--scheduled {
    min-width: 62px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #607180;
}

.ui-sports-score--scheduled::after {
    display: none;
}

.data-disclaimer,
.u-muted,
.sidebar-subtitle,
.proximo-liga,
.basket-liga,
.tercera-date {
    color: var(--ui-muted);
}

.card-resultado .estado,
.tercera-status {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.card-resultado .estado.final,
.tercera-status.final {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46,125,50,.18);
}

.card-resultado .estado.en-juego,
.tercera-status.en-juego {
    color: #d97706;
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217,119,6,.18);
}

@media (max-width: 1024px) {
    .public-page-block,
    #resultados,
    #resultados-basket,
    .home-main-content > .section {
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .public-page-block,
    #resultados,
    #resultados-basket,
    .home-main-content > .section {
        border-radius: 12px;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

    .section-head {
        gap: 8px;
    }

    .section-link {
        font-size: 10px;
        padding: 5px 9px;
    }

    .basket-top {
        gap: 6px;
    }

    .basket-liga {
        max-width: 100%;
        font-size: 9px;
    }

    .basket-meta {
        justify-content: flex-start;
    }
}

/* ================================
   UNIFIED BADGES
================================ */
.sidebar-next-day,
.resultado-jornada,
.resultado-fecha,
.card-resultado .estado,
.tercera-status,
.basket-jornada,
.basket-estado,
.home-alert-tag {
  border-radius: 999px;
  border-style: solid;
  border-width: 1px;
  letter-spacing: .02em;
}

.sidebar-next-day,
.resultado-jornada,
.resultado-fecha,
.card-resultado .estado,
.tercera-status,
.basket-jornada,
.basket-estado {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.resultado-jornada,
.basket-jornada {
  color: #0a6a63;
  background: rgba(10, 168, 158, 0.12);
  border-color: rgba(10, 168, 158, 0.18);
}

.resultado-fecha {
  color: #607180;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.card-resultado .estado,
.tercera-status,
.basket-estado {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.card-resultado .estado.final,
.tercera-status.final,
.basket-estado.final {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.18);
}

.card-resultado .estado.en-juego,
.tercera-status.en-juego,
.basket-estado.en-juego {
  color: #d97706;
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.18);
}

.card-resultado .estado.programado,
.tercera-status.programado,
.basket-estado.programado,
.partido-info-page .partido-info-estado.programado {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
}

.card-resultado .estado.aplazado,
.tercera-status.aplazado,
.basket-estado.aplazado,
.partido-info-page .partido-info-estado.aplazado {
  color: #7c2d12;
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.18);
}

.partido-info-page .partido-info-estado.final {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.18);
}

.partido-info-page .partido-info-estado.en-juego {
  color: #d97706;
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.18);
}

.sidebar-next-day {
  border-color: rgba(15, 23, 42, 0.08);
}

.sidebar-next-day.hoy {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.22);
}

.sidebar-next-day.manana {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

.sidebar-next-day.is-live,
.home-alert-tag.is-live {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.sidebar-next-day.is-live {
  gap: 4px;
  padding-left: 6px;
  padding-right: 8px;
  box-shadow: 0 2px 8px rgba(127, 29, 29, 0.08);
}

.sidebar-next-day.is-live .live-indicator {
  width: 6px;
  height: 6px;
  margin-right: 0;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

/* ================================
   UNIFIED CARDS
================================ */
:is(.sidebar-card, .card-resultado, .card-proximo, .basket-card, .evento, .club, .tercera-match, .partido-summary-card) {
  background: var(--ui-surface);
  border: var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .24s ease, border-color .24s ease;
}

:is(.sidebar-card, .card-resultado, .card-proximo, .basket-card, .evento, .club, .tercera-match, .partido-summary-card):hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-card-hover);
  border-color: rgba(10, 168, 158, 0.24);
}

/* ================================
   UNIFIED SECONDARY TEXT
================================ */
:is(.sidebar-subtitle, .proximo-liga, .basket-liga, .tercera-date, .sidebar-next-time, .noticia-fecha, .noticia-autor, .resultado-fecha) {
  color: var(--ui-muted);
}

:is(.sidebar-next-time, .noticia-fecha, .noticia-autor, .resultado-fecha) {
  font-size: 11px;
  line-height: 1.35;
}

/* ================================
   SIDEBAR DARK TUNING
================================ */
:root[data-theme="dark"] .home-sidebar .sidebar-card {
  background:
    radial-gradient(circle at top right, rgba(26, 199, 184, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(14, 24, 36, 0.96) 0%, rgba(10, 18, 28, 0.98) 100%);
  border-color: rgba(126, 229, 220, 0.14);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

:root[data-theme="dark"] .home-sidebar .sidebar-title {
  color: #eef6ff;
}

:root[data-theme="dark"] .home-sidebar .sidebar-subtitle,
:root[data-theme="dark"] .home-sidebar .sidebar-liga,
:root[data-theme="dark"] .home-sidebar .sidebar-next-time {
  color: #9fb1c3;
}

:root[data-theme="dark"] .home-sidebar .sidebar-links a {
  color: #e2ebf4;
}

:root[data-theme="dark"] .home-sidebar .sidebar-links a:hover {
  color: #9af2ea;
  background: rgba(26, 199, 184, 0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-link-all {
  color: #a4f4ec;
  border-color: rgba(126, 229, 220, 0.30);
  background: rgba(26, 199, 184, 0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-link-all:hover {
  background: rgba(26, 199, 184, 0.18);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-item,
:root[data-theme="dark"] .home-sidebar .sidebar-match-item {
  background: linear-gradient(180deg, rgba(17, 29, 44, 0.94) 0%, rgba(12, 22, 34, 0.98) 100%);
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-item.is-featured {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(33, 19, 24, 0.96) 0%, rgba(23, 14, 18, 0.98) 100%);
  border-color: rgba(248, 113, 113, 0.22);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-score {
  color: #fca5a5;
}

:root[data-theme="dark"] .home-sidebar .sidebar-list li strong,
:root[data-theme="dark"] .home-sidebar .sidebar-list li em {
  color: #9af2ea;
  background: rgba(26, 199, 184, 0.14);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day {
  border-color: rgba(255,255,255,0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.hoy {
  background: rgba(22, 163, 74, 0.22);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.manana {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.34);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.is-live {
  background: rgba(220, 38, 38, 0.24);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.34);
}

:root[data-theme="dark"] .home-sidebar .sidebar-team > span:not(.team-shield-wrap),
:root[data-theme="dark"] .home-sidebar .sidebar-match-item .sidebar-team > span:not(.team-shield-wrap) {
  color: #dbe7f3;
}

/* ================================
   NEWS DARK TUNING
================================ */
:root[data-theme="dark"] .noticias.public-page-block,
:root[data-theme="dark"] .noticia-individual-minimal.public-page-block {
  background:
    radial-gradient(circle at top right, rgba(26, 199, 184, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(14, 24, 36, 0.96) 0%, rgba(10, 18, 28, 0.98) 100%);
  border-color: rgba(126, 229, 220, 0.14);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

:root[data-theme="dark"] .noticias.public-page-block .section-title,
:root[data-theme="dark"] .noticia-individual-minimal .noticia-header .noticia-titulo,
:root[data-theme="dark"] .noticia-individual .noticia-header .noticia-titulo,
:root[data-theme="dark"] .noticia-titulo {
  color: #eef6ff;
}

:root[data-theme="dark"] .noticia-extracto {
  color: #c5d3df;
}

:root[data-theme="dark"] .noticia-kicker {
  background: rgba(26, 199, 184, 0.14);
  color: #8eece3;
}

:root[data-theme="dark"] .noticia-lead {
  color: #c5d3df;
}

:root[data-theme="dark"] .noticia-fecha,
:root[data-theme="dark"] .noticia-autor,
:root[data-theme="dark"] .noticia-meta,
:root[data-theme="dark"] .article-back {
  color: #9fb1c3;
}

:root[data-theme="dark"] .noticia-individual-minimal .article-back,
:root[data-theme="dark"] .noticia-individual-minimal .noticia-meta time,
:root[data-theme="dark"] .noticia-individual-minimal .noticia-meta span {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] .article-back:hover {
  color: #cfe5f6;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido,
:root[data-theme="dark"] .noticia-individual .noticia-contenido {
  color: #dbe7f3;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido p,
:root[data-theme="dark"] .noticia-individual .noticia-contenido p,
:root[data-theme="dark"] .noticia-individual .noticia-contenido li,
:root[data-theme="dark"] .noticia-individual .noticia-contenido blockquote {
  color: #dbe7f3;
}

:root[data-theme="dark"] .noticia-individual .noticia-contenido a {
  color: #8eece3;
}

:root[data-theme="dark"] .noticia-individual .noticia-contenido a:hover {
  color: #b9f7f1;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido h2,
:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido h3 {
  color: #eef6ff;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido ul,
:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido ol {
  color: #dbe7f3;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticia-contenido blockquote {
  background: rgba(26, 199, 184, 0.10);
  color: #e5f3ff;
}

:root[data-theme="dark"] .noticia-galeria {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] .noticia-galeria-head h2 {
  color: #eef6ff;
}

:root[data-theme="dark"] .noticia-galeria-head span {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.10);
  color: #a5b7c9;
}

:root[data-theme="dark"] .noticia-galeria-link {
  background: rgba(15,23,42,0.72);
}

:root[data-theme="dark"] .noticia-galeria-item img {
  border-color: rgba(255,255,255,0.09);
  background: rgba(15,23,42,0.86);
}

:root[data-theme="dark"] .noticia-individual-minimal .noticias-relacionadas,
:root[data-theme="dark"] .noticia-individual-minimal .clubes-relacionados-noticia,
:root[data-theme="dark"] .noticia-individual-minimal .article-share {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] .related-news-kicker {
  background: rgba(26, 199, 184, 0.14);
  color: #8eece3;
}

:root[data-theme="dark"] .related-news-head p,
:root[data-theme="dark"] .related-news-count {
  color: #a5b7c9;
}

:root[data-theme="dark"] .related-news-link {
  background: rgba(26, 199, 184, 0.10);
  border-color: rgba(126, 229, 220, 0.20);
  color: #8eece3;
}

:root[data-theme="dark"] .noticia-individual-minimal .noticias-relacionadas .noticia {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

:root[data-theme="dark"] .noticia-individual-minimal .noticias-relacionadas .noticia-extracto,
:root[data-theme="dark"] .noticia-individual-minimal .noticias-relacionadas .noticia-fecha,
:root[data-theme="dark"] .noticia-individual-minimal .noticias-relacionadas .noticia-autor {
  color: #a5b7c9;
}

:root[data-theme="dark"] .article-share-label {
  color: #a5b7c9;
}

:root[data-theme="dark"] .article-share-btn.is-facebook {
  color: #9cc7ff;
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(37, 99, 235, 0.15);
}

:root[data-theme="dark"] .article-share-btn.is-x {
  color: #edf5ff;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.065);
}

:root[data-theme="dark"] .article-share-btn.is-whatsapp {
  color: #8ef0b6;
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(22, 163, 74, 0.15);
}

:root[data-theme="dark"] .news-load-more-status {
  color: #a5b7c9;
}

/* ================================
   HOME SPORTS COHERENCE
================================ */
:is(#resultados, #resultados-basket, #resultados-handball) .section-head {
  margin-bottom: 12px;
}

:is(#resultados .card-resultado, #resultados-basket .basket-card, #resultados-handball .basket-card) {
  border-radius: 18px;
}

:is(#resultados .card-resultado .equipo, #resultados-basket .basket-team, #resultados-handball .basket-team, .tercera-public .tercera-match-body .team, .partido-info-page .partido-info-team) {
  gap: 6px;
}

:is(
  #resultados .card-resultado .equipo > span:not(.team-shield-wrap),
  #resultados .card-resultado .equipo > .team-link-inline > span:not(.team-shield-wrap),
  #resultados .proximo-eq > span:not(.team-shield-wrap),
  #resultados .proximo-eq > .team-link-inline > span:not(.team-shield-wrap),
  #resultados-basket .basket-team > span:not(.team-shield-wrap),
  #resultados-basket .basket-team > .team-link-inline > span:not(.team-shield-wrap),
  #resultados-handball .basket-team > span:not(.team-shield-wrap),
  #resultados-handball .basket-team > .team-link-inline > span:not(.team-shield-wrap),
  .tercera-public .tercera-match-body .team > span:not(.team-shield-wrap),
  .tercera-public .tercera-match-body .team > .team-link-inline > span:not(.team-shield-wrap),
  .partido-info-page .partido-info-team > span:not(.team-shield-wrap),
  .partido-info-page .partido-info-team > .team-link-inline > span:not(.team-shield-wrap)
) {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 2.4em;
}

:is(#resultados .card-resultado .goles, #resultados-basket .basket-score, #resultados-handball .basket-score, .tercera-public .tercera-match-body .score) {
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
}

:is(
  #resultados .card-resultado .equipo > .team-link-inline,
  #resultados .proximo-eq > .team-link-inline,
  #resultados-basket .basket-team > .team-link-inline,
  #resultados-handball .basket-team > .team-link-inline,
  .tercera-public .tercera-match-body .team > .team-link-inline,
  .partido-info-page .partido-info-team > .team-link-inline
) {
  display: inline-flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  :is(#resultados, #resultados-basket, #resultados-handball) .section-head {
    margin-bottom: 10px;
  }

  :is(
    #resultados .card-resultado .equipo > span:not(.team-shield-wrap),
    #resultados .card-resultado .equipo > .team-link-inline > span:not(.team-shield-wrap),
    #resultados .proximo-eq > span:not(.team-shield-wrap),
    #resultados .proximo-eq > .team-link-inline > span:not(.team-shield-wrap),
    #resultados-basket .basket-team > span:not(.team-shield-wrap),
    #resultados-basket .basket-team > .team-link-inline > span:not(.team-shield-wrap),
    #resultados-handball .basket-team > span:not(.team-shield-wrap),
    #resultados-handball .basket-team > .team-link-inline > span:not(.team-shield-wrap),
    .tercera-public .tercera-match-body .team > span:not(.team-shield-wrap),
    .tercera-public .tercera-match-body .team > .team-link-inline > span:not(.team-shield-wrap),
    .partido-info-page .partido-info-team > span:not(.team-shield-wrap),
    .partido-info-page .partido-info-team > .team-link-inline > span:not(.team-shield-wrap)
  ) {
    font-size: 10.5px;
  }

  .partido-info-page .partido-info-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .partido-info-page .partido-info-fecha {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .partido-info-page .partido-info-match {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .partido-info-page .partido-info-team {
    justify-content: center;
    text-align: center;
  }

  .partido-info-page .partido-info-score {
    min-width: 96px;
    margin: 0 auto;
    padding: 8px 14px;
    font-size: 18px;
    line-height: 1;
    border-radius: 999px;
    background: rgba(10,168,158,.12);
    color: #0a6a63;
    border: 1px solid rgba(10,168,158,.16);
    box-shadow: 0 12px 28px rgba(10,168,158,.14);
  }

  .partido-info-page .partido-info-estado {
    width: fit-content;
    max-width: 100%;
    margin: 10px auto 0;
    padding: 5px 10px;
    font-size: 10px;
  }

  .partido-info-page .partido-summary {
    margin-top: 14px;
  }

  .partido-info-page .partido-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .partido-info-page .partido-summary-card {
    padding: 12px;
  }

  .partido-info-page .partido-info-preview {
    margin-top: 14px;
  }
}

@media (max-width: 390px) {
  .partido-info-page .partido-info-top {
    gap: 5px;
  }

  .partido-info-page .partido-info-match {
    gap: 8px;
  }

  .partido-info-page .partido-info-score {
    min-width: 86px;
    padding: 7px 12px;
    font-size: 16px;
  }

  .partido-info-page .partido-info-estado {
    margin-top: 8px;
    padding: 4px 9px;
    font-size: 9px;
  }

  .partido-info-page .partido-summary-card {
    padding: 10px;
  }
}

/* ================================
   CLUB SHIELDS EMPHASIS
================================ */
:is(#resultados, #resultados-basket, #resultados-handball) :is(
  .card-resultado .equipo > .team-shield-wrap,
  .card-resultado .equipo > .team-link-inline > .team-shield-wrap,
  .proximo-eq > .team-shield-wrap,
  .proximo-eq > .team-link-inline > .team-shield-wrap,
  .basket-team > .team-shield-wrap,
  .basket-team > .team-link-inline > .team-shield-wrap,
  .tercera-public .tercera-match-body .team > .team-shield-wrap,
  .tercera-public .tercera-match-body .team > .team-link-inline > .team-shield-wrap
) {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 22px rgba(15, 23, 42, 0.12);
}

:is(#resultados, #resultados-basket, #resultados-handball) :is(
  .card-resultado .equipo > .team-shield-wrap .team-shield,
  .card-resultado .equipo > .team-link-inline > .team-shield-wrap .team-shield,
  .proximo-eq > .team-shield-wrap .team-shield,
  .proximo-eq > .team-link-inline > .team-shield-wrap .team-shield,
  .basket-team > .team-shield-wrap .team-shield,
  .basket-team > .team-link-inline > .team-shield-wrap .team-shield,
  .tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
  .tercera-public .tercera-match-body .team > .team-link-inline > .team-shield-wrap .team-shield
) {
  width: 62px;
  height: 62px;
}

:is(.club-public-shield, .club-detail-shield) .team-shield-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    0 12px 26px rgba(15, 23, 42, 0.14);
}

:is(.club-public-shield, .club-detail-shield) .team-shield-wrap .team-shield {
  width: 68px;
  height: 68px;
}

@media (max-width: 640px) {
  :is(#resultados, #resultados-basket, #resultados-handball) :is(
    .card-resultado .equipo > .team-shield-wrap,
    .card-resultado .equipo > .team-link-inline > .team-shield-wrap,
    .proximo-eq > .team-shield-wrap,
    .proximo-eq > .team-link-inline > .team-shield-wrap,
    .basket-team > .team-shield-wrap,
    .basket-team > .team-link-inline > .team-shield-wrap,
    .tercera-public .tercera-match-body .team > .team-shield-wrap,
    .tercera-public .tercera-match-body .team > .team-link-inline > .team-shield-wrap
  ) {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  :is(#resultados, #resultados-basket, #resultados-handball) :is(
    .card-resultado .equipo > .team-shield-wrap .team-shield,
    .card-resultado .equipo > .team-link-inline > .team-shield-wrap .team-shield,
    .proximo-eq > .team-shield-wrap .team-shield,
    .proximo-eq > .team-link-inline > .team-shield-wrap .team-shield,
    .basket-team > .team-shield-wrap .team-shield,
    .basket-team > .team-link-inline > .team-shield-wrap .team-shield,
    .tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield,
    .tercera-public .tercera-match-body .team > .team-link-inline > .team-shield-wrap .team-shield
  ) {
    width: 54px;
    height: 54px;
  }

  :is(.club-public-shield, .club-detail-shield) .team-shield-wrap {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  :is(.club-public-shield, .club-detail-shield) .team-shield-wrap .team-shield {
    width: 58px;
    height: 58px;
  }
}

/* ================================
   SPORTS PAGES SHIELD EMPHASIS
================================ */
.tercera-public .tercera-match-body .team {
  gap: 7px;
}

.tercera-public .tercera-match-body .team > .team-shield-wrap {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield {
  width: 58px;
  height: 58px;
}

.tercera-public .team-with-shield {
  gap: 8px;
}

.tercera-public .team-with-shield > .team-shield-wrap {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.tercera-public .team-with-shield > .team-shield-wrap .team-shield {
  width: 34px;
  height: 34px;
}

@media (max-width: 640px) {
  .tercera-public .tercera-match-body .team {
    gap: 6px;
  }

  .tercera-public .tercera-match-body .team > .team-shield-wrap {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .tercera-public .tercera-match-body .team > .team-shield-wrap .team-shield {
    width: 50px;
    height: 50px;
  }

  .tercera-public .team-with-shield {
    gap: 6px;
  }

  .tercera-public .team-with-shield > .team-shield-wrap {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .tercera-public .team-with-shield > .team-shield-wrap .team-shield {
    width: 30px;
    height: 30px;
  }

}



/* ================================
   AGENDA DARK TUNING
================================ */
:root[data-theme="dark"] .section.agenda .section-title {
  color: #eef6ff;
}

:root[data-theme="dark"] .section.agenda .evento {
  background:
    radial-gradient(circle at top right, rgba(26, 199, 184, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(14, 24, 36, 0.96) 0%, rgba(10, 18, 28, 0.98) 100%);
  border-color: rgba(126, 229, 220, 0.14);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

:root[data-theme="dark"] .section.agenda .evento-fecha {
  background: linear-gradient(180deg, rgba(26, 199, 184, 0.18) 0%, rgba(26, 199, 184, 0.10) 100%);
  border-color: rgba(126, 229, 220, 0.20);
  color: #aef7f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

:root[data-theme="dark"] .section.agenda .evento-fecha--empty {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0.05) 100%);
  border-color: rgba(148, 163, 184, 0.16);
  color: #c8d4e0;
}

:root[data-theme="dark"] .section.agenda .evento-media {
  background: #0f1a27;
  border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .section.agenda .evento-titulo {
  color: #eef6ff;
}

:root[data-theme="dark"] .section.agenda .evento-extracto {
  color: #c7d4df;
}

:root[data-theme="dark"] .section.agenda .evento-lugar,
:root[data-theme="dark"] .section.agenda .evento-fecha-mes,
:root[data-theme="dark"] .section.agenda .evento-fecha-year {
  color: #9fb1c3;
}

:root[data-theme="dark"] .section.agenda .evento-cta {
  color: #a4f4ec;
}

:root[data-theme="dark"] .section.agenda .evento:hover {
  border-color: rgba(126, 229, 220, 0.22);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ================================
   HOME SIDEBAR COHERENCE
================================ */
.home-sidebar .sidebar-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(10, 168, 158, 0.16);
  background:
    radial-gradient(circle at top right, rgba(10, 168, 158, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

.public-sidebar .sidebar-card {
  overflow: hidden;
}

.home-sidebar .sidebar-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 168, 158, 0.8), rgba(10, 168, 158, 0.18));
}

.home-sidebar .sidebar-head {
  margin-bottom: 8px;
  gap: 10px;
}

.home-sidebar .sidebar-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #20303d;
  letter-spacing: .025em;
}

.home-sidebar .sidebar-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(10, 168, 158, 0.12);
  color: #0a6a63;
  font-size: 13px;
  line-height: 1;
}

.home-sidebar .sidebar-title .live-indicator + i {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.home-sidebar .sidebar-link-all {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0b6962;
  background: rgba(10, 168, 158, 0.1);
  border-color: rgba(10, 168, 158, 0.3);
}

.home-sidebar .sidebar-link-all:hover {
  background: rgba(10, 168, 158, 0.16);
  border-color: rgba(10, 168, 158, 0.44);
}

.home-sidebar .sidebar-subtitle {
  margin-top: 0;
  padding: 7px 10px;
  border: 1px dashed rgba(10, 168, 158, 0.24);
  border-radius: 10px;
  background: rgba(10, 168, 158, 0.06);
  color: #47606f;
}

.home-sidebar .sidebar-list {
  max-height: 440px;
  padding-right: 2px;
}

.home-sidebar .sidebar-match-item {
  border-radius: 12px;
  border-color: rgba(10, 168, 158, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 251, 250, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.home-sidebar .sidebar-score-link.match-info-link {
  color: #0a6a63;
  border-color: rgba(10, 168, 158, 0.28);
  background: rgba(10, 168, 158, 0.14);
}

.home-sidebar .sidebar-next-link.match-info-link {
  border-color: rgba(10, 168, 158, 0.3);
  background: rgba(10, 168, 158, 0.12);
}

.home-sidebar .sidebar-links {
  gap: 7px;
}

.home-sidebar .sidebar-links a {
  position: relative;
  display: block;
  padding: 8px 10px;
  padding-right: 28px;
  border-radius: 10px;
  border: 1px solid rgba(10, 168, 158, 0.12);
  background: rgba(10, 168, 158, 0.05);
  color: #31414e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.32;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}

.home-sidebar .sidebar-links a::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(10, 168, 158, 0.78);
  font-weight: 900;
}

.home-sidebar .sidebar-links a:hover {
  background: rgba(10, 168, 158, 0.12);
  border-color: rgba(10, 168, 158, 0.24);
  transform: translateX(2px);
}

.home-sidebar .sidebar-most-read {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: most-read;
}

.home-sidebar .sidebar-most-read li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.home-sidebar .sidebar-most-read__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #0a6a63;
  background: rgba(10, 168, 158, 0.12);
  border: 1px solid rgba(10, 168, 158, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.home-sidebar .sidebar-most-read a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(10, 168, 158, 0.12);
  background: rgba(10, 168, 158, 0.05);
  color: #31414e;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}

.home-sidebar .sidebar-most-read a:hover {
  background: rgba(10, 168, 158, 0.12);
  border-color: rgba(10, 168, 158, 0.24);
  transform: translateX(2px);
}

.home-sidebar .sidebar-most-read strong {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-sidebar .sidebar-most-read small {
  color: #0a6a63;
  font-size: 11px;
  font-weight: 850;
}

.home-sidebar .sidebar-most-read__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.home-sidebar .sidebar-most-read__meta time::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .5;
  vertical-align: middle;
}

.home-sidebar .sidebar-most-read__meta span {
  color: #0a6a63;
  text-transform: uppercase;
  letter-spacing: .03em;
}

:root[data-theme="dark"] .home-sidebar .sidebar-card {
  border-color: rgba(126, 229, 220, 0.2);
  background:
    radial-gradient(circle at top right, rgba(126, 229, 220, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(14, 25, 37, 0.98), rgba(9, 17, 27, 0.98));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

:root[data-theme="dark"] .home-sidebar .sidebar-card::before {
  background: linear-gradient(90deg, rgba(126, 229, 220, 0.82), rgba(126, 229, 220, 0.22));
}

:root[data-theme="dark"] .home-sidebar .sidebar-card-live {
  border-color: rgba(248, 113, 113, 0.24);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(18, 26, 39, 0.98), rgba(10, 17, 27, 0.98));
}

:root[data-theme="dark"] .home-sidebar .sidebar-card-live::before {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.9), rgba(126, 229, 220, 0.26));
}

:root[data-theme="dark"] .home-sidebar .sidebar-title {
  color: #edf7ff;
}

:root[data-theme="dark"] .home-sidebar .sidebar-title i {
  color: #a4f4ec;
  background: rgba(26, 199, 184, 0.16);
}

:root[data-theme="dark"] .home-sidebar .sidebar-title .live-indicator + i {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.16);
}

:root[data-theme="dark"] .home-sidebar .sidebar-link-all {
  color: #a4f4ec;
  background: rgba(26, 199, 184, 0.14);
  border-color: rgba(126, 229, 220, 0.3);
}

:root[data-theme="dark"] .home-sidebar .sidebar-link-all:hover {
  background: rgba(26, 199, 184, 0.2);
  border-color: rgba(126, 229, 220, 0.44);
}

:root[data-theme="dark"] .home-sidebar .sidebar-subtitle {
  color: #b8cad9;
  border-color: rgba(126, 229, 220, 0.2);
  background: rgba(126, 229, 220, 0.08);
}

:root[data-theme="dark"] .home-sidebar .sidebar-match-item {
  border-color: rgba(126, 229, 220, 0.14);
  background: linear-gradient(180deg, rgba(19, 33, 47, 0.95), rgba(14, 25, 38, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-item.is-featured {
  border-color: rgba(248, 113, 113, 0.28);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(38, 22, 28, 0.96), rgba(20, 16, 24, 0.98));
}

:root[data-theme="dark"] .home-sidebar .sidebar-score-link.match-info-link,
:root[data-theme="dark"] .home-sidebar .sidebar-next-link.match-info-link,
:root[data-theme="dark"] .home-sidebar .sidebar-live-link.match-info-link {
  color: #a4f4ec;
  border-color: rgba(126, 229, 220, 0.3);
  background: rgba(126, 229, 220, 0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-link.match-info-link {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-live-score {
  color: #fecaca;
}

:root[data-theme="dark"] .home-sidebar .sidebar-liga,
:root[data-theme="dark"] .home-sidebar .sidebar-next-time {
  color: #aebfd0;
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day {
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(148, 163, 184, 0.12);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.hoy {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(22, 163, 74, 0.22);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.manana {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(37, 99, 235, 0.24);
}

:root[data-theme="dark"] .home-sidebar .sidebar-next-day.is-live {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(220, 38, 38, 0.24);
}

:root[data-theme="dark"] .home-sidebar .sidebar-team > span:not(.team-shield-wrap),
:root[data-theme="dark"] .home-sidebar .sidebar-team > .team-link-inline > span:not(.team-shield-wrap) {
  color: #e2edf7;
}

:root[data-theme="dark"] .home-sidebar .sidebar-team .team-link-inline:hover > span:not(.team-shield-wrap) {
  color: #a4f4ec;
}

:root[data-theme="dark"] .home-sidebar .team-shield-wrap {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(126, 229, 220, 0.2);
}

:root[data-theme="dark"] .home-sidebar .team-shield-fallback {
  color: #ecfffd;
  background: rgba(26, 199, 184, 0.18);
}

:root[data-theme="dark"] .home-sidebar .u-muted {
  color: #9fb1c3;
}

:root[data-theme="dark"] .home-sidebar .sidebar-links a {
  color: #d8e6f3;
  border-color: rgba(126, 229, 220, 0.14);
  background: rgba(126, 229, 220, 0.08);
}

:root[data-theme="dark"] .home-sidebar .sidebar-links a::after {
  color: rgba(164, 244, 236, 0.78);
}

:root[data-theme="dark"] .home-sidebar .sidebar-links a:hover {
  color: #ecfffd;
  border-color: rgba(126, 229, 220, 0.32);
  background: rgba(126, 229, 220, 0.16);
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read__rank {
  color: #a4f4ec;
  background: rgba(26, 199, 184, 0.14);
  border-color: rgba(126, 229, 220, 0.22);
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read a {
  color: #d8e6f3;
  border-color: rgba(126, 229, 220, 0.14);
  background: rgba(126, 229, 220, 0.08);
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read a:hover {
  color: #ecfffd;
  border-color: rgba(126, 229, 220, 0.32);
  background: rgba(126, 229, 220, 0.16);
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read small {
  color: #a4f4ec;
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read__meta {
  color: rgba(226, 232, 240, .68);
}

:root[data-theme="dark"] .home-sidebar .sidebar-most-read__meta span {
  color: #a4f4ec;
}

.teletipo-public {
  border-top: 4px solid #f59e0b;
}

.teletipo-public__header .noticia-kicker {
  color: #b45309;
  font-weight: 900;
}

.teletipo-public__retired {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 1rem 0 0;
  padding: .45rem .7rem;
  border: 1px solid rgba(180, 83, 9, .22);
  border-radius: 6px;
  background: rgba(245, 158, 11, .09);
  color: #92400e;
  font-size: .88rem;
  font-weight: 800;
}

.teletipo-public__content {
  font-size: 1.04rem;
}

.teletipo-public__content p:first-child {
  font-size: 1.12rem;
  line-height: 1.75;
}

/* Home sidebar overflow fix on mobile */
@media (max-width: 760px) {
    .public-sidebar {
        position: static;
    }

    .home-sidebar,
    .home-sidebar .sidebar-card,
    .home-sidebar .sidebar-list,
    .home-sidebar .sidebar-list-matches,
    .home-sidebar .sidebar-match-item {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .home-sidebar .sidebar-list li {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 4px;
    }

    .home-sidebar .sidebar-match-center {
        min-width: 64px;
    }

    .home-sidebar .sidebar-score-link.match-info-link,
    .home-sidebar .sidebar-next-link.match-info-link,
    .home-sidebar .sidebar-live-link.match-info-link {
        min-width: 64px;
        padding: 5px 6px;
    }

    .home-sidebar .sidebar-team > .team-shield-wrap,
    .home-sidebar .sidebar-team > .team-link-inline > .team-shield-wrap {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .home-sidebar .sidebar-team > .team-shield-wrap .team-shield,
    .home-sidebar .sidebar-team > .team-link-inline > .team-shield-wrap .team-shield {
        width: 30px;
        height: 30px;
    }

    .home-sidebar .sidebar-team > span:not(.team-shield-wrap),
    .home-sidebar .sidebar-team > .team-link-inline > span:not(.team-shield-wrap) {
        font-size: 10px;
        line-height: 1.1;
    }
}
