/*
Theme Name: Futbol40 Theme
Theme URI: https://www.futbol40.com/
Author: Futbol40
Description: Theme propio y ligero para Futbol40, sin dependencia funcional de ASAP.
Version: 0.1.27
Text Domain: futbol40-theme
*/

/* =========================
   BLOQUE 1. TABLA DE PARTIDOS
========================= */

.f40-day-block {
    margin-bottom: 40px;
}

.f40-date-title {
    font-size: 18px;
    font-weight: 800;
    margin: 15px 0 12px;
    padding: 10px 14px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
}

.f40-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}


/* =========================
   BLOQUE 2. CARD DE PARTIDO
========================= */

.f40-row {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

.f40-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}


/* =========================
   BLOQUE 3. EQUIPOS EN TABLA
========================= */

.f40-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    flex-wrap: wrap;
    min-width: 0;
}

.f40-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.f40-team-name {
    min-width: 0;
    line-height: 1.2;
    word-break: break-word;
    color: #0f172a;
    text-decoration: none;
}

.f40-team-name:hover {
    color: #2563eb;
    text-decoration: none;
}

.f40-vs {
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    margin: 0 2px;
    flex-shrink: 0;
}


/* =========================
   BLOQUE 4. META DE CADA PARTIDO
========================= */

.f40-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.f40-meta > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ee;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.f40-time strong {
    font-weight: 800;
    color: #0f172a;
}

.f40-league {
    color: #92400e;
}

.f40-channel {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f40-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    background: #2563eb;
    color: #fff;
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.f40-meta a:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}


/* =========================
   BLOQUE 5. ESTADOS DEL PARTIDO
========================= */

.f40-status {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.f40-status.programado {
    background: #e5e7eb;
    color: #374151;
}

.f40-status.en-vivo {
    background: #dc2626;
    color: #fff;
    animation: f40-pulse 1.5s infinite;
}

.f40-status.finalizado {
    background: #0f172a;
    color: #fff;
}

@keyframes f40-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.f40-row.en-vivo {
    border-left: 4px solid #ef4444;
}


/* =========================
   BLOQUE 7. HERO DEL SINGLE PARTIDO
========================= */

.f40-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #08111f 0%, #0f172a 45%, #1e293b 100%);
    color: #ffffff;
    padding: 32px 22px 24px;
    border-radius: 22px;
    margin: 20px 0 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.f40-hero-teams {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.f40-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 132px;
}

.f40-hero-team img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.f40-hero-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #1e293b;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
}

.f40-hero-title {
    position: relative;
    z-index: 2;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    text-wrap: balance;
}

.f40-hero-meta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.f40-hero-meta > span,
.f40-hero-meta > a.f40-hero-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    white-space: nowrap;
}

.f40-hero-meta > a.f40-hero-chip-link:hover,
.f40-hero-meta > a.f40-hero-chip-link:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.f40-hero-meta > a.f40-hero-chip-link span,
.f40-hero-meta > span span {
    color: inherit;
    line-height: 1;
}


/* =========================
   BLOQUE 8. CONTENIDO MANUAL
========================= */

.f40-contenido-manual {
    margin-top: 25px;
}


/* =========================
   BLOQUE 9. LINKS EXTRA / CHIPS
========================= */

.content-single .f40-single-content .f40-links-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.content-single .f40-single-content .f40-links-extra a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8 !important;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
    background-image: none;
    transition: all 0.2s ease;
}

.content-single .f40-single-content .f40-links-extra a:hover {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* =========================
   BLOQUE 10. SEO / SINGLE CONTENT
========================= */

.f40-single-content h2 {
    margin-top: 35px;
}

.f40-single-content h3 {
    margin-top: 22px;
}

.f40-single-content p {
    margin-bottom: 18px;
}

.f40-seo-block {
    margin-top: 34px;
}


/* =========================
   BLOQUE 11. LOGO INLINE DE CANAL
========================= */

.f40-channel-logo-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}


/* =========================
   BLOQUE 12. LOGOS INLINE DEL HERO
========================= */

.f40-hero-inline-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}


/* =========================
   BLOQUE 13. CHIPS LINK GENERALES
========================= */

.f40-chip-link,
.f40-hero-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 13px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.f40-chip-link:hover,
.f40-chip-link:focus,
.f40-hero-chip-link:hover,
.f40-hero-chip-link:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    text-decoration: none !important;
}

.f40-hero-chip-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.f40-hero-chip-link span {
    display: inline;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* =========================
   BLOQUE 14. SINGLE LIGAS
========================= */

.f40-league-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin: 20px 0 30px;
    background: linear-gradient(135deg, #08111f 0%, #0f172a 45%, #1e293b 100%);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
}

.f40-league-hero-logo-wrap {
    width: 96px;
    height: 96px;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
}

.f40-league-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f40-league-hero-content {
    min-width: 0;
}

.f40-league-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    color: #fff;
}

.f40-league-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.f40-league-meta span,
.f40-league-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.f40-league-intro {
    margin: 0;
    color: rgba(255,255,255,0.92);
}

.f40-league-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.f40-league-team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.22s ease;
}

.f40-league-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.f40-league-team-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.f40-league-team-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
}


/* =========================
   BLOQUE 15. SINGLE EQUIPOS
========================= */

.f40-team-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin: 20px 0 30px;
    background: linear-gradient(135deg, #08111f 0%, #0f172a 45%, #1e293b 100%);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
}

.f40-team-hero-logo-wrap {
    width: 96px;
    height: 96px;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
}

.f40-team-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f40-team-hero-content {
    min-width: 0;
}

.f40-team-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    color: #fff;
}

.f40-team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.f40-team-meta span,
.f40-team-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.f40-team-intro {
    margin: 0;
    color: rgba(255,255,255,0.92);
}

.f40-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.f40-team-grid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.22s ease;
}

.f40-team-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.f40-team-grid-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.f40-team-grid-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
}


/* =========================
   BLOQUE 16. SINGLE CANALES
========================= */

.f40-channel-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin: 20px 0 30px;
    background: linear-gradient(135deg, #08111f 0%, #0f172a 45%, #1e293b 100%);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
}

.f40-channel-hero-logo-wrap {
    width: 96px;
    height: 96px;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
}

.f40-channel-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f40-channel-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    color: #fff;
}

.f40-channel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.f40-channel-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 700;
}

.f40-channel-intro {
    margin: 0;
    color: rgba(255,255,255,0.92);
}

.f40-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.f40-channel-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.22s ease;
}

.f40-channel-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.f40-channel-grid img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}


/* =========================
   BLOQUE 17. SIDEBAR SIMPLE
========================= */

.f40-sidebar-simple {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.f40-sidebar-simple-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin: 0;
}

.f40-sidebar-simple-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 2px;
    text-decoration: none;
    color: #0f172a;
    border-top: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.f40-sidebar-simple-row:first-child {
    border-top: 0;
}

.f40-sidebar-simple-row:hover {
    background: #f8fafc;
    text-decoration: none;
}

.f40-sidebar-simple-teams {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.f40-sidebar-simple-time {
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
    line-height: 1;
}

.f40-sidebar-simple-row.live .f40-sidebar-simple-teams {
    color: #dc2626;
}

.f40-sidebar-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    flex-shrink: 0;
    animation: f40-live-dot 1.4s infinite;
}

@keyframes f40-live-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
    100% { opacity: 1; transform: scale(1); }
}

.f40-sidebar-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.2;
}

.f40-sidebar-simple-footer {
    margin-top: 2px;
}

.f40-sidebar-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.f40-sidebar-all-link:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
}

.widget .f40-sidebar-simple,
.widget .f40-sidebar-simple-card,
.widget .f40-sidebar-simple-footer,
.widget .f40-sidebar-all-link {
    margin: 0 !important;
}


/* =========================
   BLOQUE 18. FIX LOGOS (CANAL + EQUIPOS)
========================= */

.f40-team-logo,
.f40-channel-logo-inline {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    padding: 2px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    filter: brightness(0.98) contrast(1.05) !important;
}

.f40-hero-inline-logo {
    background: #ffffff;
    border-radius: 4px;
    padding: 2px;
}


/* =========================
   BLOQUE 20. RESPONSIVE MOBILE
========================= */

@media (max-width: 767px) {

    .f40-date-title {
        font-size: 16px;
        padding: 10px 12px;
    }

    /* El responsive de .f40-table/.f40-row vive en Futbol40 Core. */

    .f40-hero {
        padding: 26px 14px 20px;
        border-radius: 18px;
    }

    .f40-hero-teams {
        gap: 14px;
        margin-bottom: 14px;
    }

    .f40-hero-team {
        min-width: 96px;
        gap: 10px;
    }

    .f40-hero-team img {
        width: 68px;
        height: 68px;
        padding: 8px;
        border-radius: 16px;
    }

    .f40-hero-vs {
        width: 58px;
        height: 58px;
        font-size: 18px;
    }

    .f40-hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .f40-hero-meta {
        gap: 8px;
    }

    .f40-hero-meta > span,
    .f40-hero-meta > a.f40-hero-chip-link {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 12px;
    }
}


/* =========================
   BLOQUE 21. RESPONSIVE EXTRA SMALL
========================= */

@media (max-width: 480px) {
    .f40-league-teams-grid,
    .f40-team-grid,
    .f40-channel-grid {
        grid-template-columns: 1fr;
    }
}


.f40-single-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.f40-single-content ul li {
    list-style: none;
}




/* =========================
   BLOQUE 22. P09GINA 404
========================= */

.f40-404-centered {
    margin: 0 auto;
}

.f40-404-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0 0 40px;
}

/* HERO */
.f40-404-hero {
    background: linear-gradient(135deg, #08111f 0%, #0f172a 45%, #1e293b 100%);
    color: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.f40-404-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    pointer-events: none;
}

.f40-404-code,
.f40-404-title,
.f40-404-text,
.f40-404-actions {
    position: relative;
    z-index: 2;
}

.f40-404-code {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.85);
}

.f40-404-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.08;
    color: #fff;
}

.f40-404-text {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,0.92);
    font-size: 17px;
    line-height: 1.6;
}

.f40-404-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.f40-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.f40-404-btn-primary {
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.f40-404-btn-primary:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* RESTO NORMAL */
.f40-404-partidos,
.f40-404-extra-text {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.f40-404-partidos .f40-day-block:last-child {
    margin-bottom: 0;
}

.f40-404-extra-text p:last-child {
    margin-bottom: 0;
}

/* AJUSTES CON ESTRUCTURA DEL TEMA */
.content-single .article-full.f40-404-centered {
    margin-left: auto;
    margin-right: auto;
}

.content-single .article-full.f40-404-centered .f40-404-wrap {
    max-width: 100%;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .f40-404-wrap {
        gap: 20px;
        margin: 0 0 32px;
    }

    .f40-404-hero {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .f40-404-code {
        font-size: 34px;
    }

    .f40-404-title {
        font-size: 28px;
    }

    .f40-404-text {
        font-size: 15px;
    }
}

/* =========================
   MEJORAS PRO DESKTOP
========================= */

@media (min-width: 1024px) {

    /* Card ms elegante */
    .f40-row {
        padding: 18px 20px;
        border-radius: 16px;
        transition: all 0.25s ease;
    }

    /* Hover ms fino */
    .f40-row:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    }

    /* Equipos ms limpios */
    .f40-teams {
        gap: 8px;
        font-size: 15.5px;
    }

    .f40-team-name {
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .f40-vs {
        font-weight: 700;
        color: #94a3b8;
    }

    /* META ms alineada */
    .f40-meta {
        gap: 6px;
        align-items: center;
    }

    /* Chips ms consistentes */
    .f40-meta > span {
        font-size: 11.5px;
        padding: 5px 10px;
        border-radius: 999px;
    }

    /* Hora ms protagonista */
    .f40-time {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d4ed8;
        font-weight: 900;
        padding: 5px 10px;
    }

    .f40-time strong {
        color: #1d4ed8;
        font-weight: 900;
    }

    /* Canal mejor alineado */
.f40-channel {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



    /* Estado ms visible */
    .f40-status {
        font-weight: 900;
        letter-spacing: 0.02em;
    }

    .f40-status.en-vivo {
        background: #dc2626;
        box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
    }

    /* Botn ms limpio */
    .f40-meta a {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 10px;
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
    }

    .f40-meta a:hover {
        transform: translateY(-1px);
    }
}


/* =========================
   MEJORAS CHIPS HERO
========================= */

/* Base */
.f40-hero-meta > span,
.f40-hero-meta > a.f40-hero-chip-link {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    gap: 6px;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Hover (solo desktop) */
@media (min-width: 1024px) {
    .f40-hero-meta > a.f40-hero-chip-link:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
    }
}

/* Hora destacada */
.f40-hero-meta .f40-time {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.f40-hero-meta .f40-time strong {
    color: #fff;
}

/* Canal */
.f40-hero-meta .f40-channel {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Estado base */
.f40-hero-meta .f40-status {
    font-size: 12px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    /* importante: evitar que el estilo base lo pise */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* EN VIVO */
.f40-hero-meta .f40-status.en-vivo {
    background: #dc2626;
    color: #fff;
    border: none;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
}

/* PR07XIMO */
.f40-hero-meta .f40-status.programado {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: none;
}

/* FINALIZADO */
.f40-hero-meta .f40-status.finalizado {
    background: #0f172a;
    color: #fff;
    border: none;
    box-shadow: none;
}

/* Espaciado general */
.f40-hero-meta {
    gap: 8px;
}

/* =========================
   MOBILE HERO M09S COMPACTO
========================= */

@media (max-width: 767px) {

    .f40-hero-meta > span,
    .f40-hero-meta > a.f40-hero-chip-link {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 999px;
        gap: 5px;
    }

    .f40-hero-meta {
        gap: 6px;
    }

    .f40-hero-meta .f40-channel {
        max-width: 130px;
    }

    .f40-hero-meta .f40-status {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* =========================
   MEJORAS VISUALES HERO (EXTRA)
========================= */

/* 92 Animacin EN VIVO */
.f40-status.en-vivo {
    animation: f40Pulse 1.6s infinite;
}

@keyframes f40Pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* VS ms limpio */
.f40-hero-vs {
    font-weight: 700;
    opacity: 0.8;
}

/* 95 Ajuste mvil */
@media (max-width: 767px) {
    .f40-hero-title {
        font-size: 24px;
    }

    .f40-hero-team img {
        width: 70px;
        height: 70px;
    }

    .f40-hero-vs {
        width: 54px;
        height: 54px;
        font-size: 16px;
    }
}

/* =========================
   HERO MOBILE - AJUSTE FINO CHIPS
========================= */
@media (max-width: 767px) {

    .f40-hero-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        max-width: 560px;
        margin: 0 auto;
    }

    .f40-hero-meta > span,
    .f40-hero-meta > a.f40-hero-chip-link {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1;
        border-radius: 999px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Fecha, hora, liga, canal */
    .f40-hero-meta > span:not(.f40-status),
    .f40-hero-meta > a.f40-hero-chip-link {
        flex: 0 1 auto;
        max-width: calc(50% - 6px);
    }

    /* Jornada ms controlada */
    .f40-hero-meta > span:nth-last-child(2) {
        flex: 0 1 auto;
        max-width: 220px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    /* Estado centrado y ms integrado */
    .f40-hero-meta .f40-status {
        flex: 0 0 auto;
        min-width: 128px;
        margin: 2px auto 0;
    }

    /* Canal y jornada no se desbordan feo */
    .f40-hero-meta .f40-channel,
    .f40-hero-meta > span:nth-last-child(2),
    .f40-hero-meta > a.f40-hero-chip-link {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}





/* =========================
   FIX CHIPS HORA, LIGA Y CANAL IGUALES
========================= */

.f40-meta .f40-time,
.f40-meta a.f40-league,
.f40-meta a.f40-channel,
.f40-meta span.f40-league,
.f40-meta span.f40-channel {
    appearance: none !important;
    -webkit-appearance: none !important;

    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #dbe4f0 !important;
    box-shadow: none !important;
    text-decoration: none !important;

    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;

    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* El strong de la hora estaba metiendo diferencia visual */
.f40-meta .f40-time strong {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Hover solo para liga/canal porque son enlaces */
.f40-meta a.f40-league:hover,
.f40-meta a.f40-channel:hover {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #dbe4f0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}



/* =========================
   FIX MARGIN CHIPS (CAUSA REAL)
========================= */

.f40-meta .f40-time,
.f40-meta a.f40-league,
.f40-meta a.f40-channel,
.f40-meta span.f40-league,
.f40-meta span.f40-channel {
    margin: 0 !important;
}

/* por si el tema mete margin lateral */
.f40-meta > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================
   COLOR ORIGINAL CHIPS LIGA Y CANAL
========================= */

.f40-meta a.f40-league,
.f40-meta a.f40-channel,
.f40-meta span.f40-league,
.f40-meta span.f40-channel {
    color: #4b5563 !important; /* 97 gris suave como antes */
}

/* Hover sin cambiar intensidad */
.f40-meta a.f40-league:hover,
.f40-meta a.f40-channel:hover {
    color: #374151 !important; /* un poco ms oscuro, pero no fuerte */
}



.f40-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.f40-league-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    color: #111827;
    font-weight: 700;
}

.f40-league-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* =========================
   ARCHIVE LIGAS
========================= */

.f40-archive-intro {
    margin: 15px 0 20px;
    color: #4b5563;
}

.f40-leagues-section {
    margin: 25px 0;
}

.f40-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.f40-league-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
    color: #111827;
}

.f40-league-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.f40-league-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.f40-league-card-placeholder {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 999px;
}

.f40-league-card-info {
    display: flex;
    flex-direction: column;
}

/* =========================
   HERO ARCHIVE LIGAS
========================= */

.f40-archive-ligas-hero {
    background: linear-gradient(135deg, #07111f, #172237);
    border-radius: 24px;
    padding: 42px 24px;
    margin-bottom: 28px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.f40-archive-ligas-hero .f40-hero-logo {
    font-size: 34px;
    margin-bottom: 12px;
}

.f40-archive-ligas-hero h1 {
    color: #ffffff !important;
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 16px;
}

.f40-archive-ligas-hero .f40-status {
    display: inline-flex;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .f40-archive-ligas-hero {
        padding: 32px 18px;
        border-radius: 18px;
    }

    .f40-archive-ligas-hero h1 {
        font-size: 28px;
    }
}

.f40-league-card-info strong {
    font-size: 14px;
}

.f40-league-card-info small {
    font-size: 12px;
    color: #6b7280;
}


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

.f40-archive-equipos-hero {
    background: linear-gradient(135deg, #07111f, #172237);
    border-radius: 24px;
    padding: 42px 24px;
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
}

.f40-archive-equipos-hero h1 {
    color: #fff !important;
    margin: 10px 0;
}

/* =========================
   GRID EQUIPOS
========================= */

.f40-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.f40-team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: #111827;
}

.f40-team-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.f40-team-info {
    display: flex;
    flex-direction: column;
}

.f40-team-info small {
    font-size: 12px;
    color: #6b7280;
}


/* =========================
   FIX STATUS HERO EQUIPOS
========================= */

.f40-archive-equipos-hero .f40-status {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;

    padding: 8px 16px !important;
    border-radius: 999px !important;

    margin-top: 10px !important;

    background: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.25) !important;

    font-size: 13px !important;
    font-weight: 800 !important;
}


/* =========================
   FILTRO EQUIPOS POR LIGA
========================= */

.f40-team-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px;
}

.f40-team-filter button {
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.f40-team-filter button.active,
.f40-team-filter button:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* =========================
   ESPACIADO ARCHIVE EQUIPOS
========================= */

.f40-teams-section {
    margin-bottom: 40px;
}

.f40-teams-grid {
    margin-bottom: 20px;
}

.f40-archive-seo {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}


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

.f40-archive-partidos-hero {
    background: linear-gradient(135deg, #07111f, #172237);
    border-radius: 24px;
    padding: 42px 24px;
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
}

.f40-archive-partidos-hero h1 {
    color: #fff !important;
}

/* =========================
   ESPACIADO
========================= */

.f40-day-block {
    margin-bottom: 35px;
}

.f40-date-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.f40-archive-seo {
    margin-top: 40px;
}

.f40-archive-partidos-hero .f40-status {
    display: inline-flex !important;
    width: auto !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    margin-top: 10px !important;
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
}


/* =========================
   ARCHIVE PARTIDOS (COMO 404)
========================= */

.post-type-archive-partidos .content-single {
    margin: 0 auto !important;
    padding: 0 16px 24px !important;
}

.post-type-archive-partidos .article-full {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* 97 IMPORTANTE: NO mover hero en desktop */
.post-type-archive-partidos .f40-archive-partidos-hero {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
}

/* Lista */
.post-type-archive-partidos .f40-day-block {
    margin-bottom: 34px !important;
}

.post-type-archive-partidos .f40-date-title {
    margin-bottom: 12px !important;
}


/* =========================
   MOBILE ARCHIVE PARTIDOS - SEPARAR HERO DEL HEADER
========================= */

@media (max-width: 768px) {

    .post-type-archive-partidos .content-single {
        max-width: 100% !important;
        padding: 0 14px 22px !important;
    }

    .post-type-archive-partidos .article-full {
        padding-top: 22px !important;
    }

    .post-type-archive-partidos .f40-archive-partidos-hero {
        margin-top: 46px !important;
        margin-bottom: 22px !important;
        padding: 32px 16px !important;
        border-radius: 18px !important;
        position: relative !important;
        z-index: 1 !important;
    }

}




/* =========================
   ARCHIVE CANALES
========================= */

.f40-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.f40-channel-card {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;

    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.f40-channel-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* =========================
   HERO ARCHIVE CANALES
========================= */

.f40-archive-canales-hero {
    background: linear-gradient(135deg, #07111f, #172237);
    border-radius: 24px;
    padding: 42px 24px;
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
}

.f40-archive-canales-hero h1 {
    color: #fff !important;
}

/* Fix botn actualizado */
.f40-archive-canales-hero .f40-status {
    display: inline-flex !important;
    width: auto !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    margin-top: 10px;

    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

/* =========================
   BLOQUE 24. HERO SINGLE PARTIDO M07VIL BALANCEADO
   Versin menos compacta: aprovecha mejor el espacio sin volver al hero demasiado alto.
========================= */

@media (max-width: 767px) {

    /* Ttulo principal fuera del hero: un poco ms cmodo */
    .single-partidos h1,
    .single-partidos .entry-title {
        font-size: 23px !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em !important;
        margin: 12px 0 16px !important;
    }

    /* Hero con ms aire y mejor presencia */
    .single-partidos .f40-hero {
        margin: 14px 0 26px !important;
        padding: 22px 16px 20px !important;
        border-radius: 18px !important;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.20) !important;
    }

    /* Escudos + VS: usar mejor el ancho */
    .single-partidos .f40-hero-teams {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: clamp(18px, 7vw, 30px) !important;
        margin: 0 0 16px !important;
    }

    .single-partidos .f40-hero-team {
        min-width: 0 !important;
        width: auto !important;
        flex: 0 0 auto !important;
        gap: 0 !important;
    }

    .single-partidos .f40-hero-team a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }

    .single-partidos .f40-hero-team img {
        width: 78px !important;
        height: 78px !important;
        padding: 9px !important;
        border-radius: 16px !important;
        object-fit: contain !important;
        box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18) !important;
    }

    .single-partidos .f40-hero-vs {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        opacity: 0.92 !important;
    }

    /* Ttulo del partido dentro del hero */
    .single-partidos .f40-hero-title {
        font-size: 21px !important;
        line-height: 1.18 !important;
        letter-spacing: -0.02em !important;
        margin: 0 0 14px !important;
        padding: 0 4px !important;
        text-align: center !important;
    }

    /* Chips: ms grandes y mejor distribuidos */
    .single-partidos .f40-hero-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .single-partidos .f40-hero-meta > span,
    .single-partidos .f40-hero-meta > a.f40-hero-chip-link {
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: calc(50% - 6px) !important;
        min-height: 32px !important;
        padding: 6px 10px !important;
        border-radius: 999px !important;
        font-size: 11.2px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        gap: 5px !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    .single-partidos .f40-hero-meta .f40-time {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.30) !important;
    }

    .single-partidos .f40-hero-meta .f40-time strong {
        color: #ffffff !important;
    }

    .single-partidos .f40-hero-inline-logo,
    .single-partidos .f40-hero-chip-link img {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        object-fit: contain !important;
    }

    /* Canal y jornada: que se vean mejor, pero sin desbordar */
    .single-partidos .f40-hero-meta .f40-channel,
    .single-partidos .f40-hero-meta > span:nth-last-child(2) {
        max-width: calc(50% - 6px) !important;
    }

    /* Estado ms integrado, pero con presencia */
    .single-partidos .f40-hero-meta .f40-status {
        flex: 0 0 auto !important;
        min-width: 126px !important;
        max-width: 180px !important;
        margin: 2px auto 0 !important;
        padding: 7px 14px !important;
        font-size: 11px !important;
        letter-spacing: 0.03em !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .single-partidos .f40-hero-meta .f40-status.programado {
        background: rgba(255,255,255,0.20) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.24) !important;
    }
}

/* Celulares muy angostos: bajar solo un poco para que no se rompa */
@media (max-width: 380px) {

    .single-partidos .f40-hero {
        padding: 20px 13px 18px !important;
    }

    .single-partidos .f40-hero-teams {
        gap: 14px !important;
    }

    .single-partidos .f40-hero-team img {
        width: 68px !important;
        height: 68px !important;
        padding: 8px !important;
    }

    .single-partidos .f40-hero-vs {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 13px !important;
    }

    .single-partidos .f40-hero-title {
        font-size: 20px !important;
    }

    .single-partidos .f40-hero-meta > span,
    .single-partidos .f40-hero-meta > a.f40-hero-chip-link {
        font-size: 10.8px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
}


/* =========================
   PGINA CONTACTO FUTBOL40
   Movido desde CSS adicional de WordPress.
   Nota: estilos aplicados nicamente al formulario Contact Form 7.
========================= */

.page .wpcf7 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    margin-top: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.page .wpcf7 label {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.page .wpcf7 input[type="text"],
.page .wpcf7 input[type="email"],
.page .wpcf7 textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 15px;
    background: #ffffff;
    color: #111827;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.page .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

.page .wpcf7 input[type="text"]:focus,
.page .wpcf7 input[type="email"]:focus,
.page .wpcf7 textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.page .wpcf7 input[type="submit"] {
    background: #2563eb;
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    padding: 13px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.page .wpcf7 input[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.page .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
}

.page .wpcf7-response-output {
    border-radius: 12px;
    padding: 12px 14px !important;
    margin: 18px 0 0 !important;
}

/* =========================
   FUTBOL40 V7.0 - CONTENIDO EDITORIAL EN ENTRADAS
   Movido desde wp_head para evitar CSS inline.
========================= */

/* =========================
               FUTBOL40 V7.0 - CONTENIDO EDITORIAL EN ENTRADAS
            ========================= */

            /* El gutter responsive vive en el contenedor global de base.css.
               Evitar padding adicional en article para no duplicar el aire lateral
               de .content-single/.content-page/.content-loop. */

            /* =========================
               TABLAS EDITORIALES: ESCRITORIO
            ========================= */
            .f40-editorial-table-wrap {
                width: 100%;
                max-width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin: 28px 0 34px;
                border: 1px solid #e5e7eb;
                border-radius: 14px;
                background: #ffffff;
                box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
            }

            .f40-editorial-table-wrap table {
                width: 100%;
                min-width: 640px;
                margin: 0 !important;
                border-collapse: collapse !important;
                border-spacing: 0 !important;
                background: #ffffff;
                font-size: 15px;
                line-height: 1.45;
            }

            .f40-editorial-table-wrap thead th,
            .f40-editorial-table-wrap tbody th {
                background: #0b1220 !important;
                color: #ffffff !important;
                font-weight: 800 !important;
                text-align: left !important;
                padding: 14px 16px !important;
                border: 1px solid #111827 !important;
                white-space: nowrap;
            }

            .f40-editorial-table-wrap td {
                padding: 14px 16px !important;
                border: 1px solid #e5e7eb !important;
                vertical-align: top;
            }

            .f40-editorial-table-wrap tbody tr:nth-child(even) {
                background: #f8fafc !important;
            }

            .f40-editorial-table-wrap td:first-child {
                font-weight: 700;
            }

            .f40-editorial-table-wrap a {
                color: #2563eb !important;
                font-weight: 800;
                text-decoration: none;
            }

            .f40-editorial-table-wrap a:hover {
                text-decoration: underline;
            }

            /* =========================
               TABLAS EN MVIL: TARJETAS
            ========================= */
            @media (max-width: 768px) {
                .f40-editorial-table-wrap {
                    width: 100% !important;
                    max-width: 100% !important;
                    overflow: visible !important;
                    border: 0 !important;
                    box-shadow: none !important;
                    background: transparent !important;
                    margin: 24px auto 30px !important;
                    padding: 0 !important;
                }

                .f40-editorial-table-wrap table {
                    min-width: 0 !important;
                    width: 100% !important;
                    display: block !important;
                    background: transparent !important;
                    font-size: 14px !important;
                }

                .f40-editorial-table-wrap thead {
                    display: none !important;
                }

                .f40-editorial-table-wrap tbody {
                    display: block !important;
                }

                .f40-editorial-table-wrap tr {
                    display: block !important;
                    width: 100% !important;
                    margin: 0 auto 12px !important;
                    border: 1px solid #e5e7eb !important;
                    border-radius: 14px !important;
                    overflow: hidden !important;
                    background: #ffffff !important;
                    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
                }

                .f40-editorial-table-wrap td {
                    display: grid !important;
                    grid-template-columns: 92px minmax(0, 1fr) !important;
                    gap: 10px !important;
                    width: 100% !important;
                    box-sizing: border-box !important;
                    padding: 13px 14px !important;
                    border: 0 !important;
                    border-bottom: 1px solid #e5e7eb !important;
                    font-size: 14px !important;
                    line-height: 1.45 !important;
                }

                .f40-editorial-table-wrap td:last-child {
                    border-bottom: 0 !important;
                }

                .f40-editorial-table-wrap td::before {
                    content: attr(data-label);
                    font-size: 13px !important;
                    font-weight: 800 !important;
                    color: #0b1220 !important;
                    line-height: 1.4 !important;
                }

                .f40-editorial-table-wrap a {
                    display: inline !important;
                    word-break: normal !important;
                    overflow-wrap: anywhere !important;
                }
            }

            /* Tablet */
            @media (min-width: 769px) and (max-width: 1024px) {
                .f40-editorial-table-wrap {
                    width: 100% !important;
                    max-width: 720px !important;
                    margin-left: auto !important;
                    margin-right: auto !important;
                }
            }

            /* =========================
               LISTADOS EDITORIALES
            ========================= */
            .the-content > ul.f40-editorial-list,
            .entry-content > ul.f40-editorial-list,
            .article-content > ul.f40-editorial-list {
                display: block !important;
                list-style: none !important;
                list-style-type: none !important;
                padding: 0 !important;
                margin: 20px 0 32px !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 16px !important;
                background: #ffffff !important;
                box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
                overflow: hidden !important;
            }

            .the-content > ul.f40-editorial-list > li,
            .entry-content > ul.f40-editorial-list > li,
            .article-content > ul.f40-editorial-list > li {
                list-style: none !important;
                list-style-type: none !important;
                position: relative !important;
                margin: 0 !important;
                padding: 14px 18px 14px 46px !important;
                border-bottom: 1px solid #e5e7eb !important;
                line-height: 1.55 !important;
                color: #1f2937 !important;
            }

            .the-content > ul.f40-editorial-list > li:last-child,
            .entry-content > ul.f40-editorial-list > li:last-child,
            .article-content > ul.f40-editorial-list > li:last-child {
                border-bottom: 0 !important;
            }

            .the-content > ul.f40-editorial-list > li::marker,
            .entry-content > ul.f40-editorial-list > li::marker,
            .article-content > ul.f40-editorial-list > li::marker {
                content: "" !important;
            }

            .the-content > ul.f40-editorial-list > li::before,
            .entry-content > ul.f40-editorial-list > li::before,
            .article-content > ul.f40-editorial-list > li::before {
                content: "" !important;
                position: absolute !important;
                left: 21px !important;
                top: 24px !important;
                width: 7px !important;
                height: 7px !important;
                border-radius: 999px !important;
                background: #2563eb !important;
            }

            .the-content > ul.f40-editorial-list > li strong,
            .entry-content > ul.f40-editorial-list > li strong,
            .article-content > ul.f40-editorial-list > li strong {
                color: #0b1220 !important;
                font-weight: 800 !important;
            }

            .the-content > ul.f40-editorial-list > li a,
            .entry-content > ul.f40-editorial-list > li a,
            .article-content > ul.f40-editorial-list > li a {
                color: #2563eb !important;
                font-weight: 800 !important;
                text-decoration: none !important;
            }

            .the-content > ul.f40-editorial-list > li a:hover,
            .entry-content > ul.f40-editorial-list > li a:hover,
            .article-content > ul.f40-editorial-list > li a:hover {
                text-decoration: underline !important;
            }

            @media (max-width: 768px) {
                .the-content > ul.f40-editorial-list,
                .entry-content > ul.f40-editorial-list,
                .article-content > ul.f40-editorial-list {
                    margin: 18px 0 28px !important;
                    border-radius: 14px !important;
                }

                .the-content > ul.f40-editorial-list > li,
                .entry-content > ul.f40-editorial-list > li,
                .article-content > ul.f40-editorial-list > li {
                    padding: 13px 14px 13px 40px !important;
                    font-size: 15px !important;
                    line-height: 1.5 !important;
                }

                .the-content > ul.f40-editorial-list > li::before,
                .entry-content > ul.f40-editorial-list > li::before,
                .article-content > ul.f40-editorial-list > li::before {
                    left: 18px !important;
                    top: 22px !important;
                    width: 6px !important;
                    height: 6px !important;
                }
            }


/* =========================
   BLOQUE 99. BUSQUEDA FUTBOL40
   Plantilla limpia para resultados de busqueda.
========================= */

.f40-search-page {
    margin: 0 auto;
    padding: 44px 18px 64px;
}

.f40-search-hero {
    width: min(100%, 820px);
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 34px 34px 30px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
    margin: 0 auto 28px;
}

.f40-search-hero h1 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin: 0 0 10px;
}

.f40-search-hero p {
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    max-width: 860px;
}

.f40-search-form-wrap {
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0;
}

.f40-search-form {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.f40-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 13px 14px;
    color: #0f172a;
    font-size: 16px;
    outline: none;
}

.f40-search-form button {
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    padding: 0 22px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.f40-search-form button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.f40-search-summary {
    margin: 28px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.f40-search-summary h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.f40-search-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 5px 12px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.f40-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.f40-search-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.f40-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    border-color: #c7d2fe;
    color: #0f172a;
    text-decoration: none;
}

.f40-search-thumb {
    position: relative;
    width: 132px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
}

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

.f40-search-card-body {
    min-width: 0;
}

.f40-search-type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.f40-search-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f40-search-card-excerpt {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f40-search-card-more {
    display: inline-flex;
    margin-top: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.f40-search-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.f40-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.f40-search-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2563eb;
    padding: 6px 14px;
    font-weight: 900;
    text-decoration: none;
}

.f40-search-links a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 860px) {
    .f40-search-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .f40-search-page {
        padding: 26px 12px 48px;
    }

    .f40-search-hero {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .f40-search-form {
        flex-direction: column;
    }

    .f40-search-form button {
        min-height: 44px;
    }

    .f40-search-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .f40-search-thumb {
        width: 92px;
        border-radius: 12px;
    }

    .f40-search-card-title {
        font-size: 15px;
    }

    .f40-search-card-excerpt {
        display: none;
    }
}

/* =========================
   BLOQUE 35. COMPARTIR NOTICIAS
   Visible únicamente en entradas editoriales de la categoría Noticias.
========================= */

.f40-news-share {
    margin: 32px 0 8px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.f40-news-share__title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.f40-news-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.f40-news-share__button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 7px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.f40-news-share__button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: currentColor;
}

.f40-news-share__button:hover,
.f40-news-share__button:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
}

.f40-news-share__button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Colores propios de cada acción para que el bloque sea más reconocible y llamativo. */
.f40-news-share__button--whatsapp {
    border-color: #0d7468;
    background: #0d7468;
    color: #ffffff;
}

.f40-news-share__button--facebook {
    border-color: #1264cc;
    background: #1264cc;
    color: #ffffff;
}

.f40-news-share__button--x {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.f40-news-share__button--copy {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.f40-news-share__button--whatsapp:hover,
.f40-news-share__button--whatsapp:focus-visible {
    border-color: #095e55;
    background: #095e55;
    color: #ffffff;
}

.f40-news-share__button--facebook:hover,
.f40-news-share__button--facebook:focus-visible {
    border-color: #0f4fa8;
    background: #0f4fa8;
    color: #ffffff;
}

.f40-news-share__button--x:hover,
.f40-news-share__button--x:focus-visible {
    border-color: #2b2b2b;
    background: #2b2b2b;
    color: #ffffff;
}

.f40-news-share__button--copy:hover,
.f40-news-share__button--copy:focus-visible {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

@media (max-width: 520px) {
    .f40-news-share {
        margin-top: 26px;
        padding-top: 18px;
    }

    .f40-news-share__buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .f40-news-share__button {
        width: 100%;
        min-height: 42px;
    }
}

/* =========================
   BLOQUE 36. CONTRATO GLOBAL DE LAYOUT: CONTENIDO + SIDEBAR
   v1.0.42

   Regla única para todo Futbol40 en escritorio.
   No depende de Home, Noticias, Equipos, Ligas, Canales o Partidos.
   Se apoya únicamente en las clases estructurales compartidas por Futbol40:
   - .content-thin = columna principal cuando existe sidebar
   - .primary-sidebar = barra lateral

   El ancho EXTERIOR lo controla la variable global del theme (`--f40-width`).
   Esta regla define el contrato interior:
   contenido flexible + 24px de separación + sidebar de 300px.

   Al sumar exactamente ancho de contenido + gap + sidebar = 100%,
   no queda espacio libre para que justify-content/space-between o el
   contenido interno de una sección muevan el sidebar.
========================= */

:root {
    --f40-sidebar-width: 300px;
    --f40-content-sidebar-gap: 24px;
}

@media (min-width: 1050px) {
    .content-thin {
        width: calc(100% - var(--f40-sidebar-width) - var(--f40-content-sidebar-gap)) !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 1 calc(100% - var(--f40-sidebar-width) - var(--f40-content-sidebar-gap)) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .primary-sidebar {
        width: var(--f40-sidebar-width) !important;
        max-width: var(--f40-sidebar-width) !important;
        min-width: var(--f40-sidebar-width) !important;
        flex: 0 0 var(--f40-sidebar-width) !important;
        margin-left: var(--f40-content-sidebar-gap) !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* =========================
   BLOQUE 37. CANALES: NO RESERVAR HUECO SI ADSENSE DECLARA UNFILLED
   Ajuste independiente del layout horizontal. Se conserva como mejora
   progresiva; no interviene en la distribución contenido/sidebar.
========================= */

.single-canales .f40-ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    min-height: 0 !important;
    height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

/* =========================
   BLOQUE 38. LISTADOS DE PARTIDOS COMPACTOS EN ESCRITORIO
   v1.0.40
   Padding aprobado: 12px vertical / 12px horizontal.
========================= */

@media (min-width: 1024px) {
    .f40-row {
        padding: 12px 12px !important;
    }
}


/* =========================
   v0.1.8 - CONTRASTE FOOTER
   Refuerzo global y acotado al footer para cumplir Lighthouse/WCAG
   sin alterar el resto de widgets o enlaces del sitio.
========================= */
.site-footer {
    background: #111517;
    color: #cbd5e1;
}

.site-footer .sidebar-title,
.site-footer .widget-title {
    color: #ffffff !important;
}

.site-footer a {
    color: #f3f4f6 !important;
}

.site-footer .widget-content-footer-bottom,
.site-footer .widget-content-footer-bottom p {
    color: #cbd5e1;
}

/* =========================
   v0.1.9 - FOOTER COMPACTO
   Reduce jerarquía visual del contenido secundario sin alterar
   el contraste WCAG reforzado en v0.1.8.
========================= */
.site-footer .sidebar-title,
.site-footer .widget-title {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.site-footer .widget-area a {
    font-size: 14px;
    line-height: 1.55;
}

.site-footer .widget-content-footer-bottom,
.site-footer .widget-content-footer-bottom p {
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   v0.1.10 - CONTRASTE FOOTER EXPLÍCITO EN CONTENEDORES
   Lighthouse móvil seguía atribuyendo contraste insuficiente a títulos,
   enlaces y párrafos del footer aunque los colores declarados ya cumplen
   WCAG sobre #111517. Se hace explícito el mismo fondo oscuro en los
   contenedores reales que alojan el texto, sin cambiar layout ni espaciado.
========================= */
.site-footer,
.site-footer .content-footer,
.site-footer .widget-content-footer,
.site-footer .widget-area,
.site-footer .widget-content-footer-bottom,
.site-footer .textwidget {
    background-color: #111517 !important;
}

.site-footer .sidebar-title,
.site-footer .widget-title,
.site-footer .widget-area a {
    color: #f3f4f6 !important;
}

.site-footer .widget-content-footer-bottom,
.site-footer .widget-content-footer-bottom p,
.site-footer .textwidget p {
    color: #dbe4ef !important;
}

/* =========================
   v0.1.20 - ACCESIBILIDAD EN NOTICIAS
   - Refuerza contraste AA de WhatsApp/Facebook en el bloque de compartir.
   - Los enlaces editoriales dentro del cuerpo de una noticia se distinguen
     también por subrayado, no únicamente por color.
   Cambio limitado a entradas individuales (single-post) y al bloque share.
========================= */
.single-post .the-content > p a,
.single-post .the-content > ul a,
.single-post .the-content > ol a,
.single-post .the-content > blockquote a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}



/* =========================
   BLOQUE 39. ARCHIVOS CPT COMPACTOS + SIDEBAR
   v0.1.24
   Regla compartida para /liga/, /equipo/, /canal/ y /partido/.
   El contrato horizontal sigue siendo el global content-thin + primary-sidebar.
========================= */

.f40-directory-archive .f40-directory-hero {
    padding: 30px 20px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-radius: 18px !important;
}

.f40-directory-archive .f40-directory-hero h1 {
    margin: 8px 0 12px !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
}

.f40-directory-archive .f40-archive-intro {
    margin: 12px 0 18px !important;
}

.f40-directory-archive .f40-leagues-section,
.f40-directory-archive .f40-teams-section,
.f40-directory-archive .f40-channels-section {
    margin-top: 22px;
    margin-bottom: 28px;
}

.f40-directory-archive .f40-leagues-grid,
.f40-directory-archive .f40-teams-grid,
.f40-directory-archive .f40-channels-grid {
    gap: 10px !important;
    margin-top: 12px !important;
}

.f40-directory-archive .f40-leagues-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
}

.f40-directory-archive .f40-teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
}

.f40-directory-archive .f40-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) !important;
}

.f40-directory-archive .f40-league-card,
.f40-directory-archive .f40-team-card,
.f40-directory-archive .f40-channel-card {
    padding: 10px 11px !important;
    border-radius: 10px !important;
}

.f40-directory-archive .f40-team-filter {
    gap: 7px;
    margin: 12px 0 18px;
}

.f40-directory-archive .f40-team-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.f40-directory-archive .f40-team-filter a.active,
.f40-directory-archive .f40-team-filter a:hover,
.f40-directory-archive .f40-team-filter a:focus-visible {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.f40-directory-archive .f40-day-block {
    margin-bottom: 26px !important;
}

.f40-directory-archive .f40-date-title {
    margin-bottom: 10px !important;
}

.f40-load-more-days-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 30px;
}

.f40-load-more-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.f40-load-more-days:hover,
.f40-load-more-days:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff !important;
}

.f40-directory-archive .f40-archive-seo {
    margin-top: 32px !important;
    padding-top: 18px !important;
}

@media (max-width: 1049px) {
    .f40-directory-archive .f40-directory-hero {
        margin-top: 0 !important;
    }
}

@media (max-width: 600px) {
    .f40-directory-archive .f40-directory-hero {
        padding: 26px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 16px !important;
    }

    .f40-directory-archive .f40-directory-hero h1 {
        font-size: 25px !important;
    }

    .f40-directory-archive .f40-leagues-grid,
    .f40-directory-archive .f40-teams-grid,
    .f40-directory-archive .f40-channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .f40-directory-archive .f40-team-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .f40-directory-archive .f40-team-filter a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* =========================
   v0.1.25 - redes sociales bajo el logo del footer
========================= */
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}.footer-brand-social{margin-top:2px}.footer-brand-social>div,.footer-brand-social .asap-content-sb{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important}.footer-brand-social .sidebar-title{display:none!important}.footer-brand-social .asap-icon{width:34px;height:34px;margin:0!important;color:#fff!important}.footer-brand-social .asap-icon svg{width:20px;height:20px;stroke:currentColor;fill:none}


/* =========================
   v0.1.26 - contraste de redes en menú móvil
========================= */
@media (max-width: 1049px) {
    .social-mobile .asap-icon {
        color: #111827 !important;
    }

    .social-mobile .asap-icon svg {
        stroke: currentColor;
        fill: none;
    }
}

/* =========================
   v0.1.27 - mayor presencia visual de redes en menú móvil
========================= */
@media (max-width: 1049px) {
    .social-mobile .asap-icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}
