/* === Reset & base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Georgia, "Times New Roman", serif;
    background: #fdfdfd;
    color: #222;
    line-height: 1.6;
}
a { color: #1a5f2a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Layout === */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === Tricolor === */
.tricolor {
    height: 5px;
    background: linear-gradient(to right, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* === Cabecera === */
.cabecera {
    background: #000;
    color: #fff;
    padding: 0;
    height: 65px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 5px;
    z-index: 99;
    overflow: visible;
}
.cabecera::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
    pointer-events: none;
}
.cabecera::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3) 50%, transparent);
}
.cabecera .contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}
.logo-wrap {
    position: relative;
    height: 65px;
    display: flex;
    align-items: center;
}
.logo-link {
    position: absolute;
    inset: 0;
    display: block;
}
.logo-principal {
    height: 150px;
    width: auto;
    pointer-events: none;
}

/* === Cabecera izquierda: fecha + redes === */
.cabecera-izquierda {
    position: absolute;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}
.cabecera-fecha {
    color: rgba(255,255,255,0.75);
    font-family: Arial, sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.cabecera-redes {
    display: flex;
    gap: .5rem;
}
.red-social {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    transition: color .2s;
}
.red-social:hover {
    color: #fff;
    text-decoration: none;
}

/* === Mini marcador en vivo === */
.mini-marcador {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: .4rem .8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    white-space: nowrap;
    position: absolute;
    right: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.mini-marcador:hover {
    background: rgba(0,0,0,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}
.mini-estado {
    background: #e53935;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .4rem;
    border-radius: 3px;
    animation: pulso 1.5s ease-in-out infinite;
}
@keyframes pulso {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
.mini-goles {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .05em;
}
.mini-equipo {
    font-size: .8rem;
    color: #cfe8d4;
}

/* === Subnavegación === */
.subnav {
    background: linear-gradient(180deg, #145023 0%, #0f3d1a 100%);
    padding: .5rem 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.subnav .contenedor {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.subnav a {
    color: #cfe8d4;
    font-size: .9rem;
    font-family: Arial, sans-serif;
    padding: .3rem .7rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}
.subnav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    transform: translateY(-1px);
}
.subnav a.activo {
    color: #fff;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.4);
}

/* === Dropdowns Ligas / Internacional === */
.subnav-dropdown {
    position: relative;
}
.subnav-dropdown-label {
    color: #cfe8d4;
    font-size: .9rem;
    font-family: Arial, sans-serif;
    padding: .3rem .7rem;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    display: block;
}
.subnav-dropdown.open .subnav-dropdown-label,
.subnav-dropdown.activo .subnav-dropdown-label {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.subnav-dropdown.activo .subnav-dropdown-label {
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.4);
}
.subnav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f3d1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 180px;
    z-index: 200;
    padding: .3rem 0;
}
.subnav-dropdown.open .subnav-dropdown-menu {
    display: block;
}
.subnav-dropdown-menu a {
    display: block;
    padding: .4rem 1rem;
    border-radius: 0;
    white-space: nowrap;
    box-shadow: none !important;
    transform: none !important;
}
.subnav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
}
.subnav-dropdown-menu a.activo {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* === Breadcrumb === */
.breadcrumb {
    background: #f5f9f6;
    border-bottom: 1px solid #e0e8e3;
    padding: .35rem 0;
    font-family: Arial, sans-serif;
    font-size: .78rem;
}
.breadcrumb .contenedor {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: #1a5f2a; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #bbb; }
.breadcrumb .actual { color: #555; }

/* === Subnavegación de sección (reemplaza al subnav principal) === */
.subnav-seccion .contenedor {
    justify-content: flex-start;
    gap: 0;
}
.subnav-seccion-etiqueta {
    color: #fff !important;
    font-family: Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .3rem 1.2rem .3rem .7rem !important;
    margin-right: .5rem;
    border-right: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.subnav-seccion-etiqueta:hover {
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.08) !important;
    transform: none !important;
}
.subnav-seccion-items {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    align-items: center;
}

/* === Portada === */
.titulo-seccion {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #1a5f2a;
    padding-bottom: .3rem;
}

/* Layout portada principal */
.portada-principal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Noticia principal (grande, izquierda) */
.tarjeta-principal {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 2rem 2.5rem;
}
.tarjeta-principal h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: .8rem;
}
.tarjeta-principal h2 a { color: #222; }
.tarjeta-principal h2 a:hover { color: #1a5f2a; }
.tarjeta-principal .tarjeta-extracto {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: .8rem;
}

/* Columna destacadas (derecha) */
.destacadas-columna {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tarjeta-destacada {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    flex: 1;
}
.tarjeta-destacada h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: .4rem;
}
.tarjeta-destacada h3 a { color: #222; }
.tarjeta-destacada h3 a:hover { color: #1a5f2a; }

/* Lista de noticias (resto, abajo) */
.lista-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
/* Sección de categoría (ej. Mundial 2026): rejilla uniforme sin editorial, 4 por fila */
.lista-noticias-seccion {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.tarjeta {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem 1.2rem;
}
.tarjeta h4 {
    font-size: .95rem;
    line-height: 1.3;
    margin-bottom: .4rem;
}
.tarjeta h4 a { color: #222; }
.tarjeta h4 a:hover { color: #1a5f2a; }

/* Elementos comunes */
.tarjeta-categoria {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1a5f2a;
    background: #e8f5ec;
    padding: .15rem .5rem;
    border-radius: 3px;
    margin-bottom: .5rem;
    font-weight: 600;
}
.tarjeta-extracto {
    color: #555;
    font-size: .9rem;
    margin-bottom: .5rem;
    line-height: 1.4;
}
.tarjeta-fecha {
    display: block;
    font-family: Arial, sans-serif;
    font-size: .75rem;
    color: #999;
}

/* === Cabecera de noticia (ancho completo) === */
.noticia-head {
    text-align: center;
    max-width: 800px;
    margin: 1.5rem auto 1rem;
}
.noticia-head .noticia-categoria { margin-bottom: .4rem; }
.noticia-head h2 { font-size: 2.2rem; line-height: 1.25; margin-bottom: .25rem; }
.noticia-head .noticia-subtitulo { font-size: 1.2rem; color: #444; font-style: italic; margin-bottom: .3rem; line-height: 1.4; }
.noticia-head .noticia-fecha { margin-bottom: 1.2rem; }
.noticia-imagen-portada {
    width: 100%;
    max-width: 1200px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto 0;
    display: block;
}

.noticia-imagen-pie {
    font-family: Arial, sans-serif;
    font-size: .65rem;
    color: #999;
    text-align: right;
    margin-top: .3rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* === Byline (autor) === */
.noticia-byline {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}
.byline-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.byline-nombre {
    font-family: Arial, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #333;
}

/* === Layout noticia === */
.noticia-layout {
    margin: 2rem 0 1rem;
}

/* === Noticia completa === */
.noticia-completa { margin-bottom: 3rem; }
.noticia-categoria {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1a5f2a;
    background: #e8f5ec;
    padding: .15rem .5rem;
    border-radius: 3px;
    margin-bottom: .5rem;
}
.noticia-completa h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: .3rem;
}
.noticia-fecha {
    display: block;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    color: #999;
    margin-bottom: 1.5rem;
}
.noticia-cuerpo {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.noticia-cuerpo h2 { font-size: 1.4rem; margin: 1.5rem 0 .5rem; }
.noticia-cuerpo h3 { font-size: 1.2rem; margin: 1.3rem 0 .5rem; }
.noticia-cuerpo h4 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.noticia-cuerpo p { margin-bottom: 1rem; }
.noticia-cuerpo ul, .noticia-cuerpo ol { margin: 0 0 1rem 1.5rem; }
.noticia-cuerpo li { margin-bottom: .3rem; }
.noticia-cuerpo blockquote {
    border-left: 4px solid #1a5f2a;
    margin: 1rem 0;
    padding: .8rem 1.2rem;
    background: #f5f9f6;
    color: #444;
    font-style: italic;
}
.noticia-cuerpo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}
.noticia-cuerpo a { color: #1a5f2a; text-decoration: underline; }
.noticia-cuerpo table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.noticia-cuerpo th, .noticia-cuerpo td {
    border: 1px solid #ddd;
    padding: .5rem .8rem;
    text-align: left;
}
.noticia-cuerpo th { background: #f5f9f6; font-weight: bold; }
.noticia-volver {
    font-family: Arial, sans-serif;
    font-size: .9rem;
}

/* === Sección Equipos Serie A === */
.equipos-serie-a {
    background: linear-gradient(135deg, #f8fbf9 0%, #ffffff 100%);
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    margin: 0 0 1.5rem 0;
}
.equipos-linea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.3rem 0;
    scrollbar-width: thin;
    scrollbar-color: #1a5f2a #e8e8e8;
}
.equipos-linea::-webkit-scrollbar {
    height: 4px;
}
.equipos-linea::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 2px;
}
.equipos-linea::-webkit-scrollbar-thumb {
    background: #1a5f2a;
    border-radius: 2px;
}
.equipos-linea::-webkit-scrollbar-thumb:hover {
    background: #2d7a42;
}
.equipo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    text-decoration: none;
}
.equipo-item:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.equipo-item.equipo-solo-imagen {
    cursor: default;
}
.equipo-item.equipo-solo-imagen:hover {
    transform: none;
}
.equipo-escudo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: all 0.25s ease;
}
.equipo-item:hover .equipo-escudo {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 6px rgba(26, 95, 42, 0.3));
}
.equipo-solo-imagen:hover .equipo-escudo {
    transform: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* === Página de equipo === */
.equipo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fbf9 0%, #ffffff 100%);
    border: 2px solid #1a5f2a;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}
.equipo-header-escudo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.equipo-header-info h1 {
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    color: #1a5f2a;
    margin-bottom: .3rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.equipo-header-descripcion {
    font-family: Arial, sans-serif;
    font-size: .85rem;
    color: #666;
}
.equipo-volver {
    font-family: Arial, sans-serif;
    font-size: .9rem;
    margin-top: 2rem;
}

/* === Pie === */
.pie {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    color: #999;
}
.pie-legal {
    margin-top: .4rem;
    font-size: .78rem;
}
.pie-legal a { color: #bbb; }
.pie-legal a:hover { color: #777; text-decoration: underline; }
.pie-legal span { color: #ddd; margin: 0 .4rem; }

/* === Páginas legales === */
.legal-page {
    max-width: 760px;
    margin: 2rem auto 3rem;
    font-family: Georgia, serif;
    line-height: 1.75;
}
.legal-page h1 {
    font-size: 2rem;
    margin-bottom: .3rem;
    color: #1a1a1a;
}
.legal-fecha {
    font-family: Arial, sans-serif;
    font-size: .8rem;
    color: #999;
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.1rem;
    margin: 1.8rem 0 .5rem;
    color: #1a5f2a;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.legal-page p { margin-bottom: .8rem; color: #333; }
.legal-page ul, .legal-page ol { margin: 0 0 1rem 1.5rem; color: #333; }
.legal-page li { margin-bottom: .3rem; }
.legal-page a { color: #1a5f2a; text-decoration: underline; }

/* Tabla de cookies */
.cookies-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-family: Arial, sans-serif;
    font-size: .85rem;
}
.cookies-tabla th {
    background: #f5f9f6;
    border: 1px solid #dce8de;
    padding: .6rem .8rem;
    text-align: left;
    color: #1a5f2a;
    font-weight: 700;
}
.cookies-tabla td {
    border: 1px solid #dce8de;
    padding: .6rem .8rem;
    color: #333;
    vertical-align: top;
}
.cookies-tabla code {
    background: #f0f4f0;
    padding: .1rem .4rem;
    border-radius: 3px;
    font-size: .82rem;
}
.cookie-reset-btn {
    background: transparent;
    border: 2px solid #1a5f2a;
    color: #1a5f2a;
    padding: .5rem 1.2rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s ease;
}
.cookie-reset-btn:hover {
    background: #1a5f2a;
    color: #fff;
}

/* Página de contacto */
.contacto-page p { font-family: Arial, sans-serif; }
.contacto-email {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background: #f5f9f6;
    border: 1px solid #d0e4d6;
    border-left: 4px solid #1a5f2a;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}
.contacto-email-label {
    font-family: Arial, sans-serif;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    font-weight: 700;
}
.contacto-email-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a5f2a;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.contacto-email-link:hover { text-decoration: underline; }
.contacto-nota {
    font-size: .85rem !important;
    color: #888 !important;
    font-style: italic;
}

/* === Banner de cookies === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #1a5f2a;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: .9rem 0;
    transform: translateY(100%);
    transition: transform .35s ease;
}
.cookie-banner.cookie-visible {
    transform: translateY(0);
}
.cookie-banner .contenedor {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-texto {
    flex: 1;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    color: #444;
    min-width: 200px;
    margin: 0;
}
.cookie-texto a { color: #1a5f2a; text-decoration: underline; }
.cookie-btns {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: .45rem 1.1rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}
.cookie-btn-aceptar {
    background: #1a5f2a;
    color: #fff;
    border: 2px solid #1a5f2a;
}
.cookie-btn-aceptar:hover { background: #14481f; border-color: #14481f; }
.cookie-btn-rechazar {
    background: transparent;
    color: #555;
    border: 2px solid #ccc;
}
.cookie-btn-rechazar:hover { border-color: #888; color: #222; }

/* === Tabla de clasificación === */
.clasificacion-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
}
.clasificacion-temporada {
    font-family: Arial, sans-serif;
    font-size: .8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .8rem;
}
.tabla-clas {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: .88rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.tabla-clas thead tr {
    background: #f7f7f7;
    border-bottom: 2px solid #eee;
}
.tabla-clas th {
    padding: .6rem .5rem;
    text-align: center;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    font-weight: 700;
}
.tabla-clas th.col-club { text-align: left; padding-left: 1rem; }
.tabla-clas td {
    padding: .55rem .5rem;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.tabla-clas tbody tr:last-child td { border-bottom: none; }
.tabla-clas tbody tr:hover { background: #fafafa; }
.col-pos { width: 30px; font-weight: 700; color: #555; }
.col-club { text-align: left !important; }
.col-nombre { font-weight: 600; color: #111; padding-left: .5rem; }
.col-pts { font-weight: 800; font-size: .95rem; color: #111; }
.col-dg { color: #555; }
.col-racha { min-width: 110px; }
.col-escudo { width: 32px; padding: 0 4px 0 0; }
.escudo-mini { width: 24px; height: 24px; object-fit: contain; display: block; margin: 0 auto; }

/* Barra de zona (izquierda de la fila) */
.tabla-clas td:first-child {
    border-left: 4px solid transparent;
    padding-left: .7rem;
}
.zona-campeon td:first-child   { border-left-color: #1a5f2a; }
.zona-champions td:first-child  { border-left-color: #1565c0; }
.zona-europa td:first-child     { border-left-color: #e65100; }
.zona-conference td:first-child { border-left-color: #2e7d32; }
.zona-descenso td:first-child   { border-left-color: #c62828; }

/* Fondo sutil por zona */
.zona-campeon   { background: #f0faf3; }
.zona-champions { background: #f0f4fb; }
.zona-descenso  { background: #fff5f5; }

/* Leyenda */
.clas-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    margin-top: 1rem;
    font-family: Arial, sans-serif;
    font-size: .78rem;
    color: #555;
}
.clas-leyenda-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.clas-leyenda-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}
.dot-campeon   { background: #1a5f2a; }
.dot-champions  { background: #1565c0; }
.dot-europa     { background: #e65100; }
.dot-conference { background: #2e7d32; }
.dot-descenso   { background: #c62828; }

/* Círculos de racha */
.racha {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
}
.r {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.r-v { background: #2e7d32; }
.r-e { background: #9e9e9e; }
.r-d { background: #c62828; }

/* === Utilidades === */
.vacio { text-align: center; padding: 3rem 0; color: #999; }

/* === Responsive === */
@media (max-width: 900px) {
    .portada-principal {
        grid-template-columns: 1fr;
    }
    .lista-noticias {
        grid-template-columns: repeat(2, 1fr);
    }
    .lista-noticias-seccion {
        grid-template-columns: repeat(2, 1fr);
    }
    .equipos-linea {
        gap: 1rem;
    }
}

/* === Búsqueda === */
.busqueda-form {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.busqueda-input {
    padding: .3rem .6rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: .85rem;
    background: #fff;
    color: #222;
    width: 160px;
}
.busqueda-btn {
    padding: .3rem .7rem;
    background: #1a5f2a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: .85rem;
    cursor: pointer;
}
.busqueda-btn:hover { background: #14481f; }

.busqueda-header {
    position: absolute;
    right: 1rem;
}
.busqueda-header .busqueda-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 20px;
    padding: .35rem .8rem;
    width: 180px;
    backdrop-filter: blur(4px);
}
.busqueda-header .busqueda-input::placeholder { color: rgba(255,255,255,0.7); }
.busqueda-header .busqueda-input:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
}
.busqueda-header .busqueda-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: .35rem .8rem;
    font-size: .8rem;
    backdrop-filter: blur(4px);
}
.busqueda-header .busqueda-btn:hover { background: rgba(255,255,255,0.35); }

/* === Paginación === */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pag-link, .pag-actual {
    display: inline-block;
    padding: .4rem .8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: .9rem;
    text-decoration: none;
    color: #1a5f2a;
    background: #fff;
}
.pag-link:hover { background: #f0f7f2; text-decoration: none; }
.pag-actual {
    background: #1a5f2a;
    color: #fff;
    border-color: #1a5f2a;
    font-weight: bold;
    cursor: default;
}

@media (max-width: 600px) {
    .cabecera .contenedor { flex-direction: column; align-items: center; }
    .mini-marcador { position: static; margin-top: .8rem; }
    .noticia-completa h2 { font-size: 1.4rem; }
    .tarjeta-principal h2 { font-size: 1.5rem; }
    .lista-noticias {
        grid-template-columns: 1fr;
    }
    .lista-noticias-seccion {
        grid-template-columns: 1fr;
    }
    .equipos-linea {
        gap: 0.8rem;
    }
    .equipo-escudo {
        width: 30px;
        height: 30px;
    }
    .equipo-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .equipo-header-escudo {
        width: 50px;
        height: 50px;
    }
    .equipo-header-info h1 {
        font-size: 1.1rem;
    }
}

/* === Mundial 2026 === */
.subnav a.mundial-link {
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%);
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 4px;
    padding: .3rem .85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}
.subnav a.mundial-link:hover {
    opacity: .88;
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.subnav a.mundial-link.activo {
    opacity: .95;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 -2px 0 rgba(255,255,255,0.3);
}

.subnav-seccion-etiqueta.mundial-etiqueta {
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%) !important;
    color: #fff !important;
    border-radius: 4px;
    border-right: none !important;
    margin-right: 1rem !important;
    padding: .25rem 1rem !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.subnav-seccion-etiqueta.mundial-etiqueta:hover {
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%) !important;
    opacity: .88;
}

.tarjeta-categoria.cat-mundial-2026,
.noticia-categoria.cat-mundial-2026 {
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Grupos del Mundial 2026 */
.grupos-mundial {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    margin-bottom: 2rem;
}
.grupo-card {
    background: linear-gradient(135deg, #f8fbf9 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: .5rem .6rem .65rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.grupo-card-titulo {
    display: inline-block;
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%);
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    border-radius: 3px;
    padding: .2rem .55rem;
    margin-bottom: .45rem;
}
.grupo-equipos {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.grupo-equipo {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.grupo-equipo-escudo {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.grupo-equipo-nombre {
    font-family: Arial, sans-serif;
    font-size: .7rem;
    color: #333;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grupo-equipo-pts {
    font-family: Arial, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    color: #1a5f2a;
    background: #eaf3ec;
    border-radius: 3px;
    padding: .05rem .35rem;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .grupos-mundial {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .grupos-mundial {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }
    .grupo-equipo-nombre {
        font-size: .75rem;
    }
}

/* Cuartos de final del Mundial 2026 (página Jornada) */
.cuartos-mundial {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 2rem;
}
.cuartos-partido {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fbf9 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: .9rem 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.cuartos-fecha {
    flex: 0 0 200px;
    font-family: Arial, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    background: linear-gradient(90deg, #C8102E 0%, #003DA5 50%, #009A44 100%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    border-radius: 4px;
    padding: .3rem .8rem;
    text-align: center;
}
.cuartos-enfrentamiento {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
}
.cuartos-equipo {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 160px;
    font-family: Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: #222;
    transition: opacity .2s ease, filter .2s ease;
}
.cuartos-equipo:first-child {
    justify-content: flex-end;
    text-align: right;
}
.cuartos-equipo:first-child .cuartos-escudo {
    order: 2;
}
.cuartos-equipo:last-child {
    justify-content: flex-start;
    text-align: left;
}
.cuartos-equipo-eliminado {
    opacity: .7;
}
.cuartos-equipo-eliminado .cuartos-escudo {
    filter: grayscale(.35);
}
.cuartos-escudo {
    width: 34px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.cuartos-vs {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: .75rem;
    color: #999;
    text-transform: uppercase;
}
.cuartos-marcador {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a5f2a;
    background: #eaf3ec;
    border-radius: 4px;
    padding: .2rem .5rem;
    box-sizing: border-box;
}
.cuartos-estadio {
    flex: 0 0 220px;
    font-family: Arial, sans-serif;
    font-size: .8rem;
    color: #666;
    text-align: right;
}
@media (max-width: 700px) {
    .cuartos-partido {
        flex-direction: column;
        text-align: center;
    }
    .cuartos-fecha,
    .cuartos-estadio {
        flex: none;
        text-align: center;
    }
    .cuartos-equipo {
        width: 120px;
    }
}

/* Estadísticas de jugadores del Mundial 2026 */
.estadisticas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.estadisticas-subtitulo {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #1a5f2a;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .8rem;
}
.estadisticas-subtitulo-apilado {
    margin-top: 2rem;
}
.jugador-seleccion {
    display: block;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: .75rem;
    color: #888;
}
@media (max-width: 800px) {
    .estadisticas-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
.tabla-toggle-check {
    display: none;
}
.fila-extra {
    display: none;
}
.tabla-toggle-check:checked ~ table .fila-extra {
    display: table-row;
}
.tabla-toggle-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a5f2a;
    background: #eaf3ec;
    border-radius: 4px;
    padding: .35rem .8rem;
    margin-top: .6rem;
}
.tabla-toggle-label:hover {
    background: #dcece0;
}
.tabla-toggle-mas::after {
    content: '▾';
}
.tabla-toggle-menos::after {
    content: '▴';
}
.tabla-toggle-menos {
    display: none;
}
.tabla-toggle-check:checked ~ .tabla-toggle-mas {
    display: none;
}
.tabla-toggle-check:checked ~ .tabla-toggle-menos {
    display: inline-flex;
}
