/* ============================================================================
   LIGAMETROPOLITANA.COM — THEME (estilo fresh-ligamix)
   Capa de presentación que sobrescribe css/ligastyle.css.
   NO toca lógica de negocio, consultas ni estructura de datos.
   Todo el sistema de diseño se define en :root con variables CSS.
   ============================================================================ */

:root {
    --bg: #0b1524;
    --surface: #132135;
    --surface-2: #182a42;
    --border: rgba(120, 150, 190, .28);
    --text: #eef4fb;
    --muted: #9db0c8;
    --brand: #1f6feb;
    --brand-glow: #35c3f3;
    --brand-soft: rgba(31, 111, 235, .16);
    --chip: rgba(24, 42, 66, .45);
    --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-glow));
    --gradient-surface: linear-gradient(160deg, #182a42, #101c2e);
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow: 0 18px 40px -22px rgba(0, 10, 30, .9);
    --shadow-glow: 0 0 0 1px rgba(31, 111, 235, .35), 0 20px 50px -20px rgba(31, 111, 235, .45);
    --font-display: "Barlow Condensed", Impact, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --container: 1152px;
}

/* ==================== RESET / BASE ==================== */

html, body {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: var(--brand-glow);
    transition: color .2s ease;
}

a:hover {
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* Neutralizar fondos de imagen heredados (mantener el fondo base oscuro) */
html, body {
    background-color: var(--bg);
}

#main-tail-top, section#content, footer {
    background-image: none;
    background-color: transparent;
}

/* ==================== RESET NAV (ligastyle.css heredado) ==================== */
/* La hoja base posiciona absolutamente TODO <nav> (position:absolute; top:8px; left:0)
   y flota sus <li>, lo que descuadra site-nav, comp-nav y footer-cols. Neutralizar. */
nav {
    position: static;
}

nav ul li {
    float: none;
    padding: 0;
}

nav ul li a {
    position: static;
    float: none;
    height: auto;
    line-height: inherit;
    overflow: visible;
}

/* ==================== CONTAINER ==================== */

#main-tail-top {
    width: 100%;
}

#main {
    position: static;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    font-size: 15px;
    box-sizing: border-box;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

#content #indent {
    padding: 32px 0;
}

#content p {
    padding: 0 0 18px 0;
    line-height: 1.6;
    font-size: 1em;
    color: var(--muted);
}

/* ==================== TIPOGRAFÍA ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: .5px;
    font-weight: 700;
}

h1 {
    position: static;
}

h2, h3 {
    background: none;
    height: auto;
    overflow: visible;
}

h2 span, h2 span span, h3 span, h3 span span {
    background: none;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
}

h2 a, h3 a {
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--brand-glow);
}

h2 strong, h3 strong {
    display: block;
    padding: 0;
    margin: 0 0 18px 0;
    line-height: 1.15;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
}

h6 {
    padding: 0 0 10px 0;
    line-height: 1.3;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
}

.text-gradient-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==================== HEADER STICKY ==================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: auto;
    background: rgba(11, 21, 36, .85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(120, 150, 190, .18);
}

.header-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
}

/* Logo: badge LM + texto LigaMetropolitana */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 14px;
    }
    .brand-logo {
        height: 34px;
    }
}

.brand-badge {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px -8px rgba(31, 111, 235, .8);
}

.brand-txt {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

/* Buscador redondeado con lupa */
.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(24, 42, 66, .6);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    order: 3;
}

.site-search .search-icon {
    display: inline-flex;
    color: var(--muted);
    flex: none;
}

.site-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    width: 140px;
}

.site-search input::placeholder {
    color: var(--muted);
    opacity: 1;
}

/* Navegación principal (pastillas) */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    order: 4;
}

.site-nav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.site-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.site-nav a.current {
    background: var(--gradient-brand);
    color: #fff;
}

/* Toggle hamburguesa (visible en móvil) */
.nav-toggle {
    display: none;
    order: 2;
    margin-left: auto;
    background: rgba(24, 42, 66, .6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    width: 44px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle svg {
    display: block;
}

/* ==================== NAV COMPETICIONES ==================== */

.comp-nav {
    border-top: 1px solid rgba(120, 150, 190, .15);
    border-bottom: 1px solid rgba(120, 150, 190, .20);
    background: linear-gradient(180deg, rgba(26, 44, 70, .78), rgba(14, 26, 44, .58));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px -22px rgba(0, 0, 0, .85);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.comp-nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Selector segmentado tipo glass con píldoras */
.comp-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

.comp-pill {
    position: relative;
    flex: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 12px;
    background: rgba(19, 33, 53, .6);
    border: 1px solid rgba(120, 150, 190, .32);
    box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .9);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.comp-pill::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pill-day, var(--brand-glow));
    box-shadow: 0 0 10px var(--pill-day, var(--brand-glow));
}

.comp-pill-group .comp-pill:first-child, .comp-pill:nth-child(3n+1) { --pill-day: #f6c34a; }
.comp-pill-group .comp-pill:nth-child(3n+2) { --pill-day: #2dd4bf; }
.comp-pill-group .comp-pill:nth-child(3n)   { --pill-day: #f472b6; }

.comp-pill:hover {
    background: var(--brand-soft);
    border-color: rgba(120, 150, 190, .28);
    color: #fff;
    transform: translateY(-1px);
}

.comp-pill.current {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    box-shadow: 0 10px 26px -12px rgba(31, 111, 235, .95);
}

.comp-pill.current::before {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 10px rgba(255, 255, 255, .85);
}

.comp-pill:focus-visible {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}

/* HISTORICO: desplegable sin JS (details/summary) */
.comp-hist {
    position: relative;
}

.comp-hist summary {
    list-style: none;
    cursor: pointer;
}

.comp-hist summary::-webkit-details-marker {
    display: none;
}

.hist-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 40;
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hist-panel a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.hist-panel a:hover {
    background: var(--surface-2);
    color: #fff;
}

/* ==================== NAVBAR: COMPETICIONES ==================== */

.comp-hist.nav-comp {
    position: relative;
}

.site-nav .nav-comp summary {
    display: block;
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.site-nav .nav-comp summary::-webkit-details-marker {
    display: none;
}

.site-nav .nav-comp summary:hover,
.site-nav .nav-comp[open] summary {
    background: var(--surface-2);
    color: var(--text);
}

.site-nav .nav-comp summary.current {
    background: var(--gradient-brand);
    color: #fff;
}

.comp-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 45;
    width: min(620px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.comp-panel h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-glow);
}

.comp-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.comp-panel ul a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.comp-panel ul a:hover {
    background: var(--surface-2);
    color: #fff;
}

.comp-panel .comp-all {
    margin: 8px 0 0;
}

.comp-panel .comp-all a {
    color: var(--brand-glow);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ==================== FRANJA DE AVISO ==================== */
.aviso {
    background: var(--gradient-brand);
    border-bottom: 1px solid rgba(120, 150, 190, .18);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.aviso p {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 20px;
    text-align: center;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ==================== BANNER ANUNCIO ==================== */

.ads-banner {
    max-width: var(--container);
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    background: rgba(24, 42, 66, .35);
    border: 1px solid rgba(120, 150, 190, .18);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ==================== FACEBOOK ==================== */

.fb-wrap {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.fb-page {
    width: 100%;
    min-height: 480px;
    background: rgba(19, 33, 53, .5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.fb-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--brand-glow);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.fb-fallback:hover {
    color: #fff;
}

.fb-fallback .icon {
    width: 18px;
    height: 18px;
}

/* ==================== SELECTOR DE TEMPORADA (liga) ==================== */

.lm-tempbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: rgba(24, 42, 66, .45);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lm-tempbar-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--muted);
}

.lm-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239db0c8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 34px 9px 12px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lm-select:focus-visible {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}

.lm-tempbar-note {
    color: var(--muted);
    font-size: 12.5px;
    margin-left: auto;
}

/* ==================== NOTICIAS ==================== */

.news-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.news-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.news-card h3 {
    margin: 10px 0 10px;
    font-size: 17px;
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.news-date {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-glow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== CONTACTO ==================== */

.contact-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-page > h2 {
    font-size: 24px;
    margin: 0;
}

.contact-grid {
    display: grid;
    gap: 32px;
    align-items: stretch;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

.contact-intro {
    color: var(--muted);
    margin: 14px 0 18px;
    font-size: 14px;
}

.contact-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-aside h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.contact-aside p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 20px;
}

.contact-aside h3:not(:first-child) {
    margin-top: 8px;
}

.contact-card,
.contact-aside-card {
    height: 100%;
}

.contact-card .footer-contact li {
    align-items: flex-start;
    padding: 4px 0;
}

.contact-label {
    display: block;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

.contact-aside-card h3 {
    font-size: 16px;
}

/* Formulario de contacto */
.contact-form-card > h3 {
    font-size: 20px;
    margin: 0;
}

.contact-form-card .contact-intro {
    margin: 8px 0 22px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .2);
}

.form-input::placeholder {
    color: var(--muted);
}

.contact-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ==================== HERO ==================== */

.hero {
    position: relative;
    margin: 24px 0 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glow);
}

.hero-bg {
    width: 100%;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-text,
.hero-overlay,
.hero-bg-mobile {
    display: none;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(10, 18, 38, .94) 0%, rgba(10, 18, 38, .66) 48%, rgba(10, 18, 38, .30) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 40px 44px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand-glow);
}

.hero-badge {
    width: fit-content;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: rgba(19, 33, 53, .7);
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-glow);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero h1 {
    max-width: 640px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: .95;
    letter-spacing: .5px;
    margin: 0;
    color: #fff;
}

.hero-sub {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.hero-sub a {
    color: var(--brand-glow);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==================== BOTONES ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(31, 111, 235, .9);
}

.btn-primary:hover {
    color: #fff;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(31, 111, 235, .6);
    color: var(--brand-glow);
}

.btn-outline:hover {
    background: var(--brand-soft);
    color: var(--brand-glow);
    border-color: var(--brand);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0;
}

.btn-secondary:hover {
    background: var(--surface-2);
    color: var(--text);
}

/* ==================== SUPERFICIES / TARJETAS ==================== */

.surface-card, .card {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

/* Misma tarjeta para los contenedores heredados */
.box {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.box .inner {
    padding: 24px;
    border-radius: var(--radius);
}

/* Banner publicitario a lo ancho (bajo la clasificación) */
.swiper-ad {
    width: 100%;
    height: 340px;
    margin: 32px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-ad .swiper {
    width: 100%;
    height: 100%;
}

.swiper-ad .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-ad .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.swiper-ad .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.full-row {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.inner-scroll {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== PORTADA: SECCIONES ==================== */

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 48px;
}

.home-section {
    margin-top: 24px;
}

.home-section > h2,
.home-grid > .surface-card > h2 {
    font-size: 24px;
    margin: 0 0 4px;
}

.home-section-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 1024px) {
    .home-section-grid.two-70-30 { grid-template-columns: 1.4fr 1fr; }
    .home-section-grid.two-50 { grid-template-columns: 1fr 1fr; }
    .home-section-grid.four { grid-template-columns: repeat(4, 1fr); }
}

/* Documentos (tarjetas con icono) */
.doc-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .doc-grid { grid-template-columns: 1fr 1fr; }
}

.doc-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--chip);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.doc-card:hover {
    background: var(--surface-2);
    border-color: rgba(31, 111, 235, .6);
}

.doc-card .doc-icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-glow);
    display: grid;
    place-items: center;
}

.doc-card .doc-title {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.doc-card .doc-desc {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

/* Colaboradores (aside) */
.sponsor-card {
    margin-top: 16px;
    border: 1px solid var(--border);
    background: var(--chip);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.sponsor-card h3 {
    font-size: 22px;
    margin: 0 0 2px;
}

.sponsor-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.sponsor-card .btn-outline {
    margin-top: 16px;
}

/* Premios en metálico */
.premios {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .premios { grid-template-columns: repeat(3, 1fr); }
}

.premio {
    border: 1px solid var(--border);
    background: var(--chip);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.premio-monto {
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premio-label {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.premio-nota {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Nota destacada (ascensos/copa) */
.note-box {
    margin-top: 16px;
    border: 1px solid var(--border);
    background: var(--chip);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
}

/* Nuestras competiciones (4 tarjetas con icono) */
.comp-cards {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .comp-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .comp-cards { grid-template-columns: repeat(4, 1fr); }
}

.comp-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.comp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 111, 235, .6);
}

.comp-card .comp-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-glow);
    display: grid;
    place-items: center;
}

.comp-card h3 {
    margin: 16px 0 0;
    font-size: 20px;
}

.comp-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Galería de trofeos */
.gal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.gal-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .gal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

.gal-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--chip);
}

.gal-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.gal-card:hover img {
    transform: scale(1.04);
}

.gal-card figcaption {
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

/* ==================== LISTAS DE DATOS (goleadores, sanciones) ==================== */

.list-1, .list-2, .list-4 {
    width: 100%;
    overflow: visible;
}

.list-1 li, .list-2 li {
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(120, 150, 190, .16);
    border-left: none;
    padding: 14px 6px;
}

.list-1 li:last-child, .list-2 li:last-child {
    border-bottom: none;
}

.list-1 li a, .list-2 li a {
    text-decoration: none;
}

.list-1 li p, .list-2 li p {
    color: var(--muted) !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    font-size: 1em !important;
}

.list-4 li {
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.list-4 li:last-child {
    margin-bottom: 0;
}

.list-full {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Clases de los JS */
.whitebold {
    color: var(--text);
    font-weight: 700;
}

.whiteboldlink {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
}

/* ==================== SUBMENU: LISTADO DE LIGAS ==================== */

#lstdiv {
    width: 100%;
}

#lstdiv h3:first-child {
    margin-top: 4px;
}

#lstdiv h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(120, 150, 190, .18);
    padding-bottom: 12px;
    margin: 34px 0 20px;
}

#lstdiv ul.list-2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

#lstdiv ul.list-2 li {
    background: transparent;
    border: none;
    padding: 0;
}

#lstdiv ul.list-2 .whiteboldlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    padding: 15px 18px;
    background: linear-gradient(180deg, rgba(28, 48, 76, .9), rgba(18, 32, 52, .92));
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-glow);
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .18s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#lstdiv ul.list-2 .whiteboldlink::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--brand-glow);
    border-top: 2px solid var(--brand-glow);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

#lstdiv ul.list-2 .whiteboldlink:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(32, 48, 84, .95), rgba(21, 40, 66, .96));
    border-color: rgba(53, 195, 243, .55);
    box-shadow: 0 16px 30px -18px rgba(31, 111, 235, .75);
}

#lstdiv ul.list-2 .whiteboldlink:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

/* COPA: sección aparte con acento dorado */
#lstdiv ul.list-2 .cup-link {
    border-left-color: #ffc44d;
}

#lstdiv ul.list-2 .cup-link::after {
    border-right-color: #ffc44d;
    border-top-color: #ffc44d;
}

#lstdiv ul.list-2 .cup-link:hover {
    border-color: rgba(255, 196, 77, .45);
    box-shadow: 0 16px 30px -18px rgba(255, 196, 77, .65);
}

/* ==================== HISTÓRICO DE TEMPORADAS ==================== */

.hist-intro {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
}

#lstdiv ul.list-2 .whiteboldlink .hist-now {
    margin: 0 14px 0 auto;
    padding: 3px 10px;
    background: var(--brand-glow);
    border-radius: 999px;
    color: #0c2a46;
    font-family: var(--font-base);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

#lstdiv h3.hist-title {
    font-size: 26px;
}

.lm-season {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 14px 6px 12px;
    border: 1px solid rgba(255, 196, 77, .35);
    border-left: 3px solid #ffc44d;
    border-radius: 999px;
    background: rgba(255, 196, 77, .08);
    color: #ffcf7a;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.orangeboldlink {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--brand-glow);
}

.req {
    font-size: 1.25em;
    font-weight: 700;
    color: #ffc44d;
}

.pos-gold { color: #ffc44d; font-weight: 800; }
.pos-silver { color: #c9d4e0; font-weight: 700; }
.pos-bronze { color: #d58a5b; font-weight: 700; }

/* Clasificación: números alineados y filas ascendentes/descendentes */
.tbl-clasif td {
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

.tbl-clasif td:nth-child(2) a {
    font-weight: 700;
    color: #fff;
}

.tbl-clasif td:nth-child(2) a:hover {
    color: var(--brand-glow);
}

.tbl-clasif td:first-child,
.tbl-clasif th:first-child {
    text-align: center;
}

/* Mensaje de ascensos/descensos bajo la clasificación (temporada actual) */
.asc-desc-info {
    margin-top: 10px;
    padding: 8px 12px;
    border-left: 3px solid var(--brand-glow);
    background: rgba(53, 195, 243, .07);
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asc-desc-info .asc-desc-line {
    margin: 0;
    font-weight: 700;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
}

.asc-desc-up {
    color: #6ee7b7;
}

.asc-desc-down {
    color: #fda4af;
}

.asc-desc-sep {
    color: rgba(255, 255, 255, .4);
    font-weight: 400;
}

.asc-desc-info .asc-desc-note {
    margin: 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
}

/* Clasificación en móvil: POS y EQUIPO fijas, resto con scroll horizontal */
@media (max-width: 640px) {
    #divclasif {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table.tbl-clasif {
        width: auto;
        max-width: none;
        min-width: 480px;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        overflow: visible;
    }

    .table.tbl-clasif td,
    .table.tbl-clasif th {
        padding: 11px 4px;
        white-space: nowrap;
    }

    .table.tbl-clasif th {
        text-align: center;
    }

    .table.tbl-clasif td:nth-child(n+3) {
        text-align: center;
    }

    /* En móvil cada columna de datos ocupa el ancho visible, así se ve una
       por una (PT -> JU -> GAN -> ...) según se hace scroll lateral */
    .table.tbl-clasif td:nth-child(n+3),
    .table.tbl-clasif th:nth-child(n+3) {
        width: calc(100vw - 260px);
        min-width: 90px;
    }

    .table.tbl-clasif td:first-child,
    .table.tbl-clasif th:first-child {
        position: sticky;
        left: 0;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center;
    }

    .table.tbl-clasif td:nth-child(2),
    .table.tbl-clasif th:nth-child(2) {
        position: sticky;
        left: 40px;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: left;
        padding-left: 14px;
        box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .55);
    }

    .table.tbl-clasif thead th:first-child,
    .table.tbl-clasif thead th:nth-child(2) {
        background-color: #10203a !important;
        text-align: center;
    }

.table.tbl-clasif td:nth-child(2) a {
        color: #fff;
    }

    /* Cuerpo con fondos solidos por fila: al hacer scroll no se ven
       columnas pasar por debajo (ni bajo el nombre del equipo) */
    .table.tbl-clasif tbody tr td {
        background-color: #10203a !important;
    }

    .table.tbl-clasif tbody tr.row-up td {
        background-color: #14403a !important;
    }

    .table.tbl-clasif tbody tr.row-down td {
        background-color: #4a2833 !important;
    }

    /* Fila del equipo actual en móvil: tinte dorado sobre el fondo fijo */
    .table.tbl-clasif tbody tr.row-this td {
        background-color: rgba(255, 196, 77, .16) !important;
    }

    /* En móvil las celdas fijas (POS + nombre) de la fila del equipo actual
       deben quedar opacas: si no, las columnas se ven por debajo al hacer
       scroll lateral */
    .table.tbl-clasif tbody tr.row-this td:first-child,
    .table.tbl-clasif tbody tr.row-this td:nth-child(2) {
        background-color: #363a3d !important;
    }

    /* Celdas fijas siempre opacas también en hover (tras tapar una fila en
       móvil el hover se queda activo y con fondos traslúcidos) */
    .table.tbl-clasif tbody tr.row-up:hover td:first-child,
    .table.tbl-clasif tbody tr.row-up:hover td:nth-child(2),
    .table.tbl-clasif tbody tr.row-up td:first-child,
    .table.tbl-clasif tbody tr.row-up td:nth-child(2) {
        background-color: #14403a !important;
    }

    .table.tbl-clasif tbody tr.row-down:hover td:first-child,
    .table.tbl-clasif tbody tr.row-down:hover td:nth-child(2),
    .table.tbl-clasif tbody tr.row-down td:first-child,
    .table.tbl-clasif tbody tr.row-down td:nth-child(2) {
        background-color: #4a2833 !important;
    }

    .table.tbl-clasif tbody tr.row-this:hover td:first-child,
    .table.tbl-clasif tbody tr.row-this:hover td:nth-child(2) {
        background-color: #363a3d !important;
    }

    .table.tbl-clasif tbody tr:hover td:first-child,
    .table.tbl-clasif tbody tr:hover td:nth-child(2) {
        background-color: #10203a !important;
    }

    /* Los nombres de equipo no sobresalen de su columna */
    .table.tbl-clasif tbody tr td:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.table tbody tr.row-up td {
    background-color: rgba(45, 212, 191, .14) !important;
}

.table tbody tr.row-down td {
    background-color: rgba(244, 63, 94, .14) !important;
}

.table tbody tr.row-up:hover td {
    background-color: rgba(45, 212, 191, .20) !important;
}

.table tbody tr.row-down:hover td {
    background-color: rgba(244, 63, 94, .20) !important;
}

/* Selector de jornada en calendario */
.jor-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 18px;
}

.jor-bar select {
    padding: 10px 34px 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(120, 150, 190, .30);
    background: rgba(10, 18, 32, .85);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #ffc44d 50%), linear-gradient(135deg, #ffc44d 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
}

.jor-bar select:focus-visible {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}
/* Sanciones bajo el calendario: bloques a ancho completo */
.sanc-box {
    width: 100%;

    padding: 20px;
    margin-top: 28px;
}

/* Bloques de sanciones: separados del listado de resultados */
.cal-sanc {
    margin-top: 28px;
}

/* MVP por partido: celda en la tabla de resultados y chip en tarjetas móviles */
.cal-mvp-cell {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.cal-mvp-cell img,
.cc-mvp img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(120, 150, 190, .35);
    border-radius: 6px;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6);
    vertical-align: middle;
}

.cal-mvp-cell:empty {
    color: var(--muted);
}

.cal-mvp-cell:not(:empty) {
    white-space: nowrap;
}

.cal-mvp-cell .cal-mvp-license,
.cc-mvp .cal-mvp-license {
    display: inline-block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: 10px;
    white-space: normal;
}

.cc-mvp-ico {
    color: #ffc44d;
}

.cc-mvp img {
    width: 42px;
    height: 54px;
}

/* El mensaje "Sin sanciones" centrado dentro de su caja */
.sanc-holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

#content .sanc-holder .empty-state {
    padding: 0;
}

.sanc-holder .table {
    width: 100%;
}

.sanc-box > h3 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: .05em;
}

.sanc-box .table {
    margin-top: 4px;
}

.sanc-box .table tbody td:first-child {
    font-weight: 600;
    color: #fff;
}

/* Tabla de jugadores sancionados */
.tbl-sanc.tbl-pl {
    width: 100%;
    table-layout: fixed;
}

.tbl-sanc.tbl-pl th,
.tbl-sanc.tbl-pl td {
    vertical-align: middle;
}

/* El estado vacío ocupa y centra el mismo espacio que una tarjeta de equipos. */
.tbl-sanc.tbl-pl td.empty-state {
    width: auto;
    height: 150px;
    text-align: center;
    vertical-align: middle;
}

.tbl-sanc td {
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

/* Tabla de jugadores sancionados: cada columna conserva la misma alineación
   en cabecera y contenido. */
.tbl-sanc.tbl-pl td:nth-child(1),
.tbl-sanc.tbl-pl th:nth-child(1),
.tbl-sanc.tbl-pl td:nth-child(2),
.tbl-sanc.tbl-pl td:nth-child(4),
.tbl-sanc.tbl-pl td:nth-child(5),
.tbl-sanc.tbl-pl th:nth-child(1),
.tbl-sanc.tbl-pl th:nth-child(2),
.tbl-sanc.tbl-pl th:nth-child(4),
.tbl-sanc.tbl-pl th:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}

.tbl-sanc.tbl-pl td:nth-child(3),
.tbl-sanc.tbl-pl th:nth-child(3) {
    text-align: left;
}

.tbl-sanc.tbl-pl th:nth-child(1),
.tbl-sanc.tbl-pl td:nth-child(1) { width: 64px; }
.tbl-sanc.tbl-pl th:nth-child(2) { width: 20%; }
.tbl-sanc.tbl-pl th:nth-child(3) { width: 36%; }
.tbl-sanc.tbl-pl th:nth-child(4),
.tbl-sanc.tbl-pl th:nth-child(5) { width: 18%; }

.tbl-sanc.tbl-pl .sanc-photo {
    width: 64px;
    padding: 4px 6px;
}

.tbl-sanc.tbl-pl .sanc-photo img {
    width: 48px;
    height: 62px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(120, 150, 190, .35);
    border-radius: 6px;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6);
    display: block;
    margin: 0 auto;
}

.tbl-sanc.tbl-eq td:nth-child(2),
.tbl-sanc.tbl-eq th:nth-child(2) {
    text-align: center;
}

/* Sancion larga: comprimida con elipsis, se expande al pasar el raton */
/* Sanción larga: texto recortado y botón "más…" que amplía (pc y móvil) */
.tbl-sanc.tbl-eq td:nth-child(4) {
    max-width: 320px;
    text-align: left;
    vertical-align: top;
}

.tbl-sanc .sanc-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    min-width: 0;
}

.tbl-sanc .sanc-txt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tbl-sanc tr.expanded .sanc-txt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.tbl-sanc .sanc-more-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    margin-top: 6px;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--brand-glow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.tbl-sanc th {
    font-size: 12.5px;
    letter-spacing: .08em;
}

.tbl-sanc tbody tr:hover td {
    background: rgba(31, 111, 235, .12);
}

/* ---- Jugadores sancionados: pulido estético ---- */
.cal-sanc .box.sanc-filled {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.sanc-holder.sanc-filled {
    display: block;
    min-height: 0;
}

.tbl-sanc.tbl-pl {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tbl-sanc.tbl-pl thead th {
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(120, 150, 190, .08);
    border-bottom: 1px solid rgba(120, 150, 190, .2);
}

.tbl-sanc.tbl-pl tbody td {
    padding: 10px;
}

.tbl-sanc.tbl-pl tbody tr:last-child td {
    border-bottom: none;
}

.sanc-lic {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .4px;
    line-height: 1.4;
}

.tbl-sanc.tbl-pl .sanc-photo img {
    width: 54px;
    height: 70px;
    border-radius: 8px;
    border: 1px solid rgba(120, 150, 190, .45);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .85);
}

.empty-sanc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    color: rgba(120, 150, 190, .55);
}

.empty-sanc p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Tabla de máximos goleadores (diseño moderno) */
.tbl-gol {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tbl-gol thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    padding: 12px 14px;
}

.tbl-gol thead th:nth-child(1),
.tbl-gol thead th:nth-child(2),
.tbl-gol thead th:nth-child(n+5) {
    text-align: center;
}

.tbl-gol thead th:nth-child(3),
.tbl-gol thead th:nth-child(4) {
    text-align: left;
}

.tbl-gol tbody tr {
    border-bottom: 1px solid rgba(120, 150, 190, .12);
}

.tbl-gol tbody tr:last-child {
    border-bottom: none;
}

.tbl-gol tbody tr:hover td {
    background: rgba(31, 111, 235, .12);
}

.tbl-gol tbody td {
    padding: 12px 14px;
    border: none;
    vertical-align: middle;
    font-size: 14px;
}

.tbl-gol tbody td:nth-child(1),
.tbl-gol tbody td:nth-child(2),
.tbl-gol tbody td:nth-child(n+5) {
    text-align: center;
}

.tbl-gol tbody td:nth-child(3),
.tbl-gol tbody td:nth-child(4) {
    text-align: left;
}

.tbl-gol .gol-pos {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.tbl-gol .gol-photo {
    width: 52px;
    height: 68px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(120, 150, 190, .35);
    border-radius: 6px;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6);
    vertical-align: middle;
}

.tbl-gol .gol-name {
    font-weight: 700;
    color: #fff;
    font-size: 14.5px;
    white-space: normal;
}

.tbl-gol .gol-nm,
.tbl-gol .gol-sn {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tbl-gol .gol-sn::before {
    content: ' ';
    white-space: pre;
}

.tbl-gol .gol-team {
    display: none;
}

.tbl-gol .gol-num {
    color: var(--brand-glow);
    font-weight: 800;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.tbl-gol .gol-gp {
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Movil: las tablas de sanciones pasan a tarjetas apiladas, el texto se lee entero */
@media (max-width: 640px) {
    .sanc-box {
        padding: 16px;
    }

    .tbl-sanc thead {
        display: none;
    }

    .tbl-sanc,
    .tbl-sanc tbody {
        display: block;
    }

    .tbl-sanc tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        margin-bottom: 10px;
        padding: 0;
    }

    .tbl-sanc tbody tr:last-child {
        margin-bottom: 0;
    }

    .tbl-sanc tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
        border: none;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: right;
        color: var(--text);
        font-size: 13.5px;
    }

    .tbl-sanc tbody td::before {
        content: attr(data-label);
        flex: 0 0 36%;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .05em;
        color: var(--muted);
        text-align: left;
    }

    .tbl-sanc.tbl-pl td:nth-child(4),
    .tbl-sanc.tbl-pl td:nth-child(5) {
        text-align: right;
        white-space: normal;
    }

    /* Jugadores sancionados: foto a la izquierda y datos a su lado. */
    .tbl-sanc.tbl-pl tbody tr {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
        padding: 12px 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 55%), var(--surface);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -22px rgba(0, 0, 0, .95);
    }

    .tbl-sanc.tbl-pl .sanc-photo {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: center;
        width: auto;
        padding: 0;
    }

    .tbl-sanc.tbl-pl .sanc-photo::before {
        display: none;
    }

    .tbl-sanc.tbl-pl .sanc-photo img {
        width: 58px;
        height: 74px;
        border-radius: 10px;
        border: 1px solid rgba(120, 150, 190, .45);
    }

    .tbl-sanc.tbl-pl td:nth-child(n+2) {
        grid-column: 2;
        align-items: center;
        width: auto;
        min-width: 0;
        padding: 8px 0;
    }

    .tbl-sanc.tbl-pl td:nth-child(n+2)::before {
        flex-basis: 42%;
    }

    .tbl-sanc td.empty-state {
        display: block;
        padding: 22px 12px;
        text-align: center;
    }

    .tbl-sanc.tbl-pl td.empty-state {
        grid-column: 1 / -1;
        width: auto;
        min-height: 150px;
        height: auto;
    }

    .tbl-sanc td.empty-state::before {
        display: none;
    }

    .tbl-sanc.tbl-eq td:nth-child(2) {
        text-align: right;
    }

    .tbl-sanc.tbl-eq td:nth-child(4) {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        cursor: default;
        align-items: flex-start;
    }

    .tbl-sanc .sanc-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }

    .tbl-sanc .sanc-txt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .tbl-sanc tr.expanded .sanc-txt {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .tbl-sanc .sanc-more-btn {
        display: inline-flex;
        align-items: center;
        align-self: flex-end;
        margin-top: 6px;
        padding: 3px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface-2);
        color: var(--brand-glow);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        line-height: 1;
        cursor: pointer;
        font-family: inherit;
    }

    .sanc-box .table tbody td:first-child,
    .tbl-sanc tbody td:first-child {
        color: #fff;
        font-weight: 600;
        font-size: 14.5px;
        padding-top: 8px;
    }
}

/* Goleadores en móvil: # / FOTO / JUGADOR fijas y el resto con scroll
   lateral (GOL, P.JUG, G/P), igual que la tabla de clasificación */
@media (max-width: 640px) {
    #divgoleadores {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table.tbl-gol {
        width: auto;
        min-width: 480px;
        max-width: none;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .table.tbl-gol td,
    .table.tbl-gol th {
        padding: 12px 4px;
        white-space: nowrap;
        border: none;
        text-align: center;
    }

    /* EQUIPO ya no es columna en móvil: el equipo va debajo del nombre.
       Descartamos esa celda y GOL pasa a ser la primera columna visible. */
    .table.tbl-gol td:nth-child(4),
    .table.tbl-gol th:nth-child(4) {
        display: none;
    }

    /* Columnas de datos que se mueven con el scroll (GOL, P.JUG, G/P).
       Cada una ocupa el ancho visible, así se ven una por una. */
    .table.tbl-gol td:nth-child(n+5),
    .table.tbl-gol th:nth-child(n+5) {
        width: calc(100vw - 250px);
        min-width: 100px;
    }

    .table.tbl-gol tbody tr:first-child td {
        border-top: none;
    }

    /* # fija */
    .table.tbl-gol td:first-child,
    .table.tbl-gol th:first-child {
        position: sticky;
        left: 0;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center;
    }

    /* FOTO fija */
    .table.tbl-gol td:nth-child(2),
    .table.tbl-gol th:nth-child(2) {
        position: sticky;
        left: 40px;
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center;
    }

    /* JUGADOR fija */
    .table.tbl-gol td:nth-child(3),
    .table.tbl-gol th:nth-child(3) {
        position: sticky;
        left: 90px;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: left;
        padding-left: 10px;
        box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .55);
    }

    .table.tbl-gol thead th:first-child,
    .table.tbl-gol thead th:nth-child(2),
    .table.tbl-gol thead th:nth-child(3) {
        background-color: #10203a !important;
        text-align: center;
    }

    .table.tbl-gol thead th:nth-child(3) {
        text-align: left;
        padding-left: 10px;
    }

    /* Cuerpo con fondos solidos por fila: al hacer scroll no se ven
       columnas pasar por debajo */
    .table.tbl-gol tbody tr td {
        background-color: #10203a !important;
    }

    /* Nombre y equipo del jugador en la columna fija */
    .table.tbl-gol tbody tr td:nth-child(3) {
        overflow: hidden;
    }

    .tbl-gol .gol-nm {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .tbl-gol .gol-sn {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        line-height: 1.2;
        margin-top: 1px;
    }

    .tbl-gol .gol-sn::before {
        content: none;
    }

    .tbl-gol .gol-team {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 10.5px;
        line-height: 1.2;
        color: var(--muted);
        margin-top: 2px;
    }

    .tbl-gol .gol-team a {
        color: var(--brand-glow);
        text-decoration: none;
    }

    .tbl-gol .gol-team a:hover {
        text-decoration: underline;
    }

    .tbl-gol .gol-photo {
        width: 48px;
        height: 62px;
    }

    .tbl-gol .gol-pos {
        font-size: 12px;
    }

    .tbl-gol .gol-num {
        font-size: 15px;
    }

    .tbl-gol .gol-gp {
        font-size: 12px;
    }
}

/* Movil: sanciones en listas legacy (division.php / jugador.php / equipo.php)
   neutralizan los anchos fijos en línea y dejan que el texto se lea completo. */
@media (max-width: 640px) {
    #eqsanc li, #plyrsanc li {
        box-sizing: border-box;
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #eqsanc li div[style],
    #plyrsanc li div[style] {
        float: none !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
    }

    #plyrsanc li img[style] {
        width: 45px !important;
        height: 53px !important;
        margin: 4px 0 0 !important;
    }

    .popeq, .popplyr, .whiteboldlink {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.empty-state {
    color: var(--muted);
    padding: 26px;
    text-align: center;
    margin: 0;
}

.btn-doc {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px rgba(31, 111, 235, .8);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-doc:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(31, 111, 235, .9);
}

/* ==================== TABLAS (clasificaciones, resultados) ==================== */

.table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 14px;
    color: var(--text);
}

.table thead th {
    background: var(--surface-2);
    color: var(--text);
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    padding: 11px 14px;
    border-top: 1px solid rgba(120, 150, 190, .14);
}

.table tbody tr:hover {
    background: rgba(31, 111, 235, .1);
}

/* Tablas de deportividad (CLASIFICACIÓN DEPORTIVIDAD / RESUMEN COMITÉ) en
   la pestaña de clasificación: sin barras de scroll, adaptadas a móvil */
.tbl-ccpt {
    min-width: 0;
    width: 100%;
}

.tbl-ccpt thead th,
.tbl-ccpt tbody td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tbl-ccpt thead th.req,
.tbl-ccpt tbody td.req {
    width: 70px;
    text-align: center;
}

.tbl-ccpt tbody td.req {
    font-weight: 700;
    color: var(--brand-glow);
}

.tbl-ccpt thead th.num,
.tbl-ccpt tbody td.num {
    width: 70px;
    text-align: center;
}

@media (max-width: 640px) {
    .tbl-ccpt thead th,
    .tbl-ccpt tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* ==================== FICHA DE EQUIPO ==================== */

.team-hero {
    margin: 24px 0 30px;
    text-align: center;
}

.team-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.team-hero-bg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glow);
}

.team-hero-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand-glow);
    background: rgba(8, 16, 34, .55);
    border: 1px solid rgba(53, 195, 243, .35);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.team-hero-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}

/* Fila del equipo actual: solo un tinte dorado suave */
.tbl-clasif tbody tr.row-this td {
    background: rgba(255, 196, 77, .16) !important;
}

@media (max-width: 640px) {
    .team-hero {
        margin: 16px 0 24px;
    }

    .team-hero-title {
        padding: 0 12px;
        margin-bottom: 12px;
    }

    .team-hero-bg {
        max-width: none;
        margin: 0 auto;
    }

    .team-hero-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* Tarjetas de sección en la ficha de equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 30px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.team-card-wide {
    grid-column: 1 / -1;
}

.team-card-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-glow);
    border-bottom: 2px solid rgba(53, 195, 243, .25);
    padding-bottom: 10px;
}

.team-kit h6 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    white-space: pre-line;
}

.team-shirts {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.team-shirts img {
    width: auto;
    max-height: 60px;
}

/* Tabla de jugadores / cuerpo técnico en la ficha de equipo */
.tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.team-tbl {
    min-width: 0;
    width: 100%;
}

.team-tbl th {
    white-space: nowrap;
}

.team-tbl .team-plyr-photo {
    display: block;
    width: 56px;
    height: 68px;
    object-fit: cover;
    object-position: top;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    margin: 0 auto;
}

.team-tbl tbody td {
    vertical-align: middle;
}

.team-tbl td.team-dorsal,
.team-tbl td.team-rol {
    font-weight: 800;
    color: var(--brand-glow);
    white-space: nowrap;
}

/* Rol del cuerpo técnico bajo el nombre (solo se muestra en móvil, donde la
   columna ROL está oculta y queda espacio para el rol debajo del nombre) */
.team-tbl .team-ctec-rol {
    display: none;
}

/* Licencia bajo el rol en la columna ROL (escritorio) */
.team-tbl .team-ctec-lic {
    display: block;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: .3px;
    color: var(--muted);
    margin-top: 2px;
    text-transform: none;
}

.team-tbl td.team-plyr-name-td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-weight: 800;
    letter-spacing: .5px;
}

.team-tbl td.flag-gol { color: var(--brand-glow); font-weight: 700; }
.team-tbl td.flag-ama { color: #ffd84d; font-weight: 700; }
.team-tbl td.flag-roj { color: #ff6b57; font-weight: 700; }

.team-tbl thead th,
.team-tbl tbody td {
    text-align: center;
}

/* Jugadores: JUGADOR (col 2) a la izquierda */
.team-tbl.tbl-team thead th:nth-child(2),
.team-tbl.tbl-team tbody td:nth-child(2) {
    text-align: left;
}

/* Cuerpo técnico: NOMBRE (col 3) a la izquierda */
.team-tbl.tbl-ctec thead th:nth-child(3),
.team-tbl.tbl-ctec tbody td:nth-child(3) {
    text-align: left;
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .tbl-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 4px;
    }

    /* Ficha de equipo en móvil: FOTO + JUGADOR fijas y las estadísticas
       (P.JUG, GOL, AMA, ROJ) con scroll lateral, igual que en la tabla
       de clasificación y goleadores. La licencia solo en escritorio. */
    .team-tbl {
        width: auto;
        min-width: 0;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .team-tbl td,
    .team-tbl th {
        padding: 12px 4px !important;
        white-space: nowrap;
        border: none;
    }

    /* Jugadores en móvil: FOTO y LICENCIA fijas, y las columnas de datos
       (P.JUG, GOL, AMA, ROJ) se ven una por una al hacer scroll lateral,
       cada una del ancho visible. */
    .team-tbl.tbl-team td:nth-child(n+3),
    .team-tbl.tbl-team th:nth-child(n+3) {
        width: calc(100vw - 220px);
        min-width: 110px;
        text-align: center;
    }

    /* Foto con más espacio en móvil para que se vea completa */
    .team-tbl .team-plyr-photo {
        width: 64px;
        height: 78px;
    }

    /* FOTO fija */
    .team-tbl.tbl-team td:nth-child(1),
    .team-tbl.tbl-team th:nth-child(1) {
        position: sticky;
        left: 0;
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center;
    }

    /* LICENCIA fija: centrada (vence al text-align:left global) */
    .team-tbl.tbl-team td:nth-child(2),
    .team-tbl.tbl-team th:nth-child(2) {
        position: sticky;
        left: 64px;
        width: 106px;
        min-width: 106px;
        max-width: 106px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center !important;
        box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .55);
    }

    .team-tbl.tbl-team thead th:nth-child(2),
    .team-tbl.tbl-team tbody td:nth-child(2) {
        text-align: center !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .team-tbl.tbl-team thead th:nth-child(1),
    .team-tbl.tbl-team thead th:nth-child(2) {
        background-color: #10203a !important;
    }

    /* Cuerpo con fondos solidos por fila: al hacer scroll no se ven
       columnas pasar por debajo */
    .team-tbl tbody tr td {
        background-color: #10203a !important;
    }

    .team-tbl tbody tr td:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-tbl td.team-plyr-name-td {
        max-width: none;
    }

    /* Cuerpo técnico en móvil: se oculta la columna ROL y el rol se muestra
       debajo del nombre. La tabla ocupa todo el ancho del contenedor. */
    .team-tbl.tbl-ctec {
        width: 100%;
        min-width: 0;
    }

    .team-tbl.tbl-ctec td:nth-child(1),
    .team-tbl.tbl-ctec th:nth-child(1) {
        display: none;
    }

    /* FOTO fija */
    .team-tbl.tbl-ctec td:nth-child(2),
    .team-tbl.tbl-ctec th:nth-child(2) {
        position: sticky;
        left: 0;
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: center;
    }

    /* NOMBRE fija (con el rol debajo) */
    .team-tbl.tbl-ctec td:nth-child(3),
    .team-tbl.tbl-ctec th:nth-child(3) {
        position: sticky;
        left: 64px;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        z-index: 3;
        background-color: #10203a !important;
        text-align: left;
        padding-left: 10px;
        box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .55);
    }

    .team-tbl.tbl-ctec thead th:nth-child(2),
    .team-tbl.tbl-ctec thead th:nth-child(3) {
        background-color: #10203a !important;
        text-align: center;
    }

    .team-tbl.tbl-ctec thead th:nth-child(3) {
        text-align: left;
        padding-left: 10px;
    }

    /* Rol bajo el nombre en la columna NOMBRE fija */
    .team-tbl .team-ctec-rol {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: var(--brand-glow);
        margin-top: 2px;
    }
}

/* ==================== PESTAÑAS Y JORNADAS (division.php) ==================== */

/* Calendario en móvil: tarjetas de partid, apiladas, sin scroll lateral */
.cal-cards {
    display: none;
}

.tbl-cal {
    width: 100%;
}

@media (max-width: 640px) {
    .cal-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tbl-cal {
        display: none;
    }

    .cal-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
        padding: 12px 14px;
    }

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

    .cc-date {
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .12em;
        color: var(--muted);
    }

    .cc-hora {
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: .5px;
        padding: 3px 10px;
        border-radius: 999px;
        background: var(--chip);
        border: 1px solid var(--border);
        color: #fff;
    }

    .cc-game {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cc-team {
        flex: 1 1 0%;
        min-width: 0;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .cc-local {
        text-align: left;
        color: #fff;
    }

    .cc-team a {
        color: inherit;
        text-decoration: none;
    }

    .cc-team a:hover {
        color: var(--brand-glow);
    }

    .cc-visit {
        text-align: right;
        color: var(--muted);
    }

    .cc-score {
        flex: 0 0 auto;
        min-width: 58px;
        text-align: center;
        font-variant-numeric: tabular-nums;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: .5px;
        color: #ffc44d;
        padding: 4px 8px;
        border-radius: 999px;
        background: var(--chip);
        border: 1px solid var(--border);
    }

    .cc-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 9px;
        font-size: 12px;
        color: var(--muted);
    }

    .cc-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 10px;
        border-radius: 999px;
        background: var(--chip);
        border: 1px solid var(--border);
        min-width: 0;
        max-width: 100%;
    }

    .cc-meta-ico {
        flex: 0 0 auto;
        color: var(--brand-glow);
    }

    .cc-meta-val {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #fff;
        font-weight: 600;
        font-size: 12px;
    }

    .cc-arbitro {
        margin-left: auto;
    }
}

/* Pestañas de ficha de liga: selector segmentado centrado */
#divtabs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 42px;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)) padding-box,
        rgba(10, 18, 32, .70);
    border: 1px solid rgba(120, 150, 190, .28);
    border-radius: 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 14px 30px -22px rgba(0, 0, 0, .9);
}

#divtabs ul li {
    display: flex;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    background: none;
    flex: 1 1 0%;
    min-width: 0;
    align-items: stretch;
}

#divtabs ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #aebed8;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

#divtabs ul li:not(.current) a:hover {
    background: rgba(24, 42, 66, .45);
    border-color: rgba(120, 150, 190, .28);
    color: #fff;
}

#divtabs ul li.current a {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -10px rgba(31, 111, 235, .95);
}

.rank-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 0 24px;
    padding: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)) padding-box,
        rgba(10, 18, 32, .70);
    border: 1px solid rgba(120, 150, 190, .28);
    border-radius: 14px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 12px 26px -20px rgba(0, 0, 0, .9);
}

#divgoleadores .rank-tab,
.jor-nav .rank-tab,
.ccpt-nav .rank-tab {
    flex: 1 1 0%;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #aebed8;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

#divgoleadores .rank-tab:hover,
.jor-nav .rank-tab:hover,
.ccpt-nav .rank-tab:hover {
    background: rgba(24, 42, 66, .45);
    border-color: rgba(120, 150, 190, .28);
    color: #fff;
}

#divgoleadores .rank-tab.current,
.jor-nav .rank-tab.current,
.ccpt-nav .rank-tab.current {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -10px rgba(31, 111, 235, .95);
}

#navjor {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

#navjor li {
    display: inline-block;
    padding: 0;
}

#navjor li a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--chip);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

#navjor li a:hover,
#navjor li.current a {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

/* ==================== LAYOUT COLUMNAS (páginas interiores) ==================== */

.col-1, .col-2, .col-3, .col-4 {
    float: none;
    overflow: visible;
}

.row-2 .wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.row-2 .wrapper > * {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 1024px) {
    .row-2 .wrapper > .col-1 { flex: 1 1 300px; }
    .row-2 .wrapper > .col-2 { flex: 2 1 640px; }
}

/* Deportividad + Comité de Competición: cajas del mismo alto para que queden simétricas */
.row-2.ccpt-eq .wrapper > article {
    display: flex;
    flex-direction: column;
}

.row-2.ccpt-eq .wrapper > article .box {
    flex: 1 1 auto;
}

.row-2.ccpt-eq .wrapper > article h2,
.row-2.ccpt-eq .wrapper > article h3 {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0 0 12px;
}

/* Alternancia Deportividad / Comité en móvil (mismos botones que las jornadas) */
.ccpt-nav {
    display: none;
}

@media (max-width: 1023px) {
    .ccpt-nav {
        display: flex;
    }
    .row-2.ccpt-eq .wrapper > article {
        display: none;
    }
    .row-2.ccpt-eq .wrapper > article.ccpt-visible {
        display: flex;
    }
}

.page-head {
    padding: 40px 0 8px;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.page-head p {
    color: var(--muted);
    margin: 10px 0 0;
    max-width: 640px;
}

/* Colaboradores (rejilla de logos) */
.colab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .colab-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .colab-grid { grid-template-columns: repeat(3, 1fr); }
}

.colab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease;
}

.colab-item a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.colab-item:hover {
    border-color: rgba(31, 111, 235, .6);
    transform: translateY(-3px);
}

.colab-item img {
    max-height: 90px;
    width: auto;
    border-radius: 8px;
}

/* Mapa y lista de campos */
.map-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-frame #map_canvas {
    width: 100% !important;
    height: 440px;
}

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

.site-footer {
    position: relative;
    margin-top: 32px;
    background:
        radial-gradient(920px 460px at 50% -60%, rgba(31, 111, 235, .18), transparent 62%),
        linear-gradient(180deg, rgba(24, 42, 66, .55), rgba(9, 17, 31, .96));
    border-top: 1px solid rgba(120, 150, 190, .22);
    box-shadow: 0 -30px 50px -45px rgba(0, 0, 0, .9);
    height: auto;
    overflow: visible;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
    opacity: .45;
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 20px 24px;
    display: grid;
    gap: 28px 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.7fr 1fr;
    }
}

.footer-brand {
    display: block;
    width: fit-content;
}

.footer-brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-txt {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

.footer-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 14px;
    max-width: 340px;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact .icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    background: rgba(31, 111, 235, .14);
    border: 1px solid rgba(31, 111, 235, .38);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(31, 111, 235, .25);
    color: var(--brand-glow);
    flex: none;
}

.footer-cols h5, .footer-cols h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
}

.footer-cols h3::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--brand-glow);
    box-shadow: 0 0 10px var(--brand-glow);
}

.footer-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.footer-cols a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-cols a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    transition: opacity .2s ease, transform .2s ease;
}

.footer-cols a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-cols a:hover::before {
    opacity: 1;
    background: var(--brand-glow);
    box-shadow: 0 0 8px var(--brand-glow);
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 20px;
    border-top: 1px solid rgba(120, 150, 190, .20);
    background: rgba(9, 17, 31, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
}

.footer-bottom strong {
    color: #fff;
}

/* ==================== ICONOS ==================== */

.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1023px) {
    .site-nav {
        display: none;
        order: 5;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 0 4px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 18px;
        border: 1px solid var(--border);
        color: var(--text);
    }

    .brand {
        position: static;
        transform: none;
        margin-right: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav .nav-comp {
        position: static;
    }

    .site-nav .nav-comp summary {
        border: 1px solid var(--border);
        padding: 12px 18px;
    }

    .site-nav .nav-comp summary.current {
        border-color: transparent;
    }

    .site-nav .nav-comp[open] summary {
        border-color: var(--gradient-brand);
    }

    .comp-panel {
        position: static;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 8px;
        box-shadow: none;
    }

    .header-inner {
        padding: 12px 16px;
    }

    #lstdiv h3 {
        font-size: 17px;
        margin: 26px 0 16px;
    }

    #lstdiv ul.list-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer {
        display: none;
    }

    #main, .container {
        padding: 0 14px;
    }

    #content #indent {
        padding: 22px 0;
    }

    .surface-card, .card {
        padding: 22px;
    }

    .box .inner {
        padding: 18px;
    }

    .home-section {
        margin-top: 24px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .hero {
        margin: 16px -12px 0;
        box-shadow: none;
    }

    .hero-bg {
        display: none;
    }

    .hero-bg-mobile {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 100 / 156;
        object-fit: cover;
        object-position: center;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-glow);
    }

    .hero-content {
        padding: 30px 22px 34px;
    }

    .hero h1 {
        font-size: clamp(32px, 9.5vw, 44px);
    }

    h2 strong, h3 strong {
        font-size: 1.35em;
    }

    .comp-nav-inner, .header-inner, .footer-grid, .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer .footer-cols {
        display: none;
    }

    .comp-nav-inner {
        gap: 10px;
    }

    .comp-pill-group {
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .comp-pill {
        flex: 1 1 0%;
        min-width: 150px;
        justify-content: center;
        text-align: center;
        padding: 12px 6px;
        font-size: 13px;
        letter-spacing: .4px;
        gap: 7px;
    }

    #divtabs {
        margin: 0;
    }

    #divtabs ul {
        margin-top: 0;
        margin-bottom: 36px;
        height: auto;
        padding: 5px;
        gap: 5px;
        flex-wrap: nowrap;
        border-radius: 14px;
    }

    #divtabs ul li {
        min-width: 0;
        flex: 1 1 0%;
    }

    #divtabs ul li a {
        padding: 12px 4px;
        font-size: 12px;
        letter-spacing: .3px;
        border-radius: 10px;
        white-space: normal;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .swiper-ad {
        height: 260px;
    }

    .swiper-ad .swiper-slide img {
        max-height: 240px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== COLABORADORES: SLIDER ==================== */

.colab-slider {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0 0;
}

.colab-slider .swiper {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.colab-slider .swiper-wrapper {
    height: 100%;
}

.colab-slider .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colab-slider .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.colab-slider .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
}

.colab-slider .swiper-button-next,
.colab-slider .swiper-button-prev {
    color: var(--brand-glow);
    top: calc(50% - 30px);
    margin-top: 0;
}

.colab-slider .swiper-button-next::after,
.colab-slider .swiper-button-prev::after {
    font-size: 22px;
    font-weight: 700;
}

.colab-slider .swiper-pagination {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
}

.colab-slider .swiper-pagination-bullet {
    background: rgba(120, 150, 190, .5);
    opacity: 1;
}

.colab-slider .swiper-pagination-bullet-active {
    background: var(--brand-glow);
}

.colab-title {
    text-align: center;
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
}

@media (max-width: 640px) {
    .colab-slider .swiper {
        height: 250px;
    }

    .colab-slider .swiper-button-next,
    .colab-slider .swiper-button-prev {
        display: none;
    }
}

/* ==================== REGLAMENTO: CARDS PDF ==================== */

.reg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.reg-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reg-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.reg-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-glow);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color .2s ease;
}

.reg-card a:hover {
    color: #fff;
}

.reg-card a img {
    flex: none;
    width: 32px;
    height: 50px;
    object-fit: contain;
}

.reg-card-name {
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .reg-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==================== INSTALACIONES / CAMPOS ==================== */

.campos-tools {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.campos-map-box,
.campos-list-box {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

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

.campos-box-head h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.campos-count {
    font-size: 12px;
    color: var(--muted);
}

.campos-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.campos-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-left: 4px;
}

.campos-legend .dot:first-child {
    margin-left: 0;
}

.dot-f7 {
    background: #2dd4bf;
    box-shadow: 0 0 8px rgba(45, 212, 191, .8);
}

.dot-fs {
    background: #f43f5e;
    box-shadow: 0 0 8px rgba(244, 63, 94, .8);
}

.campos-map {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    z-index: 1;
    overflow: hidden;
}

.campos-map-action {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.campo-maps-button {
    align-items: center;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.campo-maps-button:hover {
    background: var(--brand-glow);
    color: #fff;
    transform: translateY(-1px);
}

.campos-list-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.campos-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.campos-list::-webkit-scrollbar {
    width: 8px;
}

.campos-list::-webkit-scrollbar-thumb {
    background: rgba(120, 150, 190, .35);
    border-radius: 4px;
}

.campos-list::-webkit-scrollbar-track {
    background: transparent;
}

.campos-list h6 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 18px 0 8px;
}

.campos-list h6.g-f7 {
    color: #2dd4bf;
}

.campos-list h6.g-fs {
    color: #f43f5e;
}

.campos-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campos-list a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.campos-list a::before {
    margin-top: 7px;
}

.campo-list-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.campo-list-name {
    color: inherit;
    font-weight: 700;
}

.campo-list-address {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.campos-list a:hover .campo-list-address {
    color: #c9d8ea;
}

.campos-list a::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
}

.campos-list a:hover::before,
.campos-list a.active::before {
    opacity: 1;
}

.campos-list a:hover {
    background: rgba(31, 111, 235, .12);
    color: #fff;
}

.campos-list a.active {
    background: rgba(31, 111, 235, .22);
    color: #fff;
    border-left-color: var(--brand-glow);
}

.lm-pin {
    background: transparent;
    border: none;
}

.lm-pin-active {
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, .55));
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.leaflet-popup-tip {
    background: var(--surface-2);
}

.leaflet-popup-content {
    margin: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
}

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

@media (max-width: 640px) {
    .campos-map {
        height: 320px;
    }

    .campos-box-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== AUDITORÍA DE COLOR (overrides de ligastyle.css) ==================== */

/* Tablas bootstrap heredadas: nada de fondos claros ni hover en blanco */
.table {
    background: var(--surface);
    color: var(--text);
}

.table td a {
    color: var(--brand-glow);
}

.table thead tr {
    background: var(--surface-2);
}

.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th {
    background-color: rgba(31, 111, 235, .12);
    color: var(--text);
}

.table-hover tbody tr:hover > td a {
    color: var(--brand-glow);
}

/* Listas heredadas con fondos claros / texto oscuro */
.list-3 li {
    background: transparent;
    border: none;
}

.list-3 li a {
    border-bottom: 1px solid rgba(120, 150, 190, .16);
    padding: 12px 6px;
}

.list-3 li strong {
    color: var(--text);
}

.list-3 li p {
    color: var(--muted) !important;
}

.list-3 li a:hover {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

.list-3 li a:hover strong {
    color: #fff;
}

.list-4 li strong {
    color: var(--text);
}

.list-4 li p {
    color: var(--muted) !important;
}

.list-4 li b,
.list-5 li b {
    background: var(--surface-2);
    color: var(--brand-glow);
    border-radius: var(--radius-sm);
    padding-left: 12px;
    height: auto;
    line-height: 24px;
}

.list-4 li b a,
.list-5 li b a {
    color: var(--brand-glow);
}

.list-5 li {
    background: transparent;
    border: none;
}

.list-5 li strong {
    color: var(--text);
}

.list-5 li p {
    color: var(--muted) !important;
}

#divtabs {
    height: auto;
    background: none;
}

#divtabs ul li a {
    height: auto;
    line-height: 1.2;
}

/* Enlace "más información" heredado */
.link {
    background: none;
    height: auto;
    line-height: 1.4;
    color: var(--brand-glow);
}
