/*******************************************************************************
 * *
 * 1. ESTRUCTURA BASE Y NAVEGACIÓN                 *
 * *
 *******************************************************************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f5f5f5;
    color: #111;
    width: 100%;
    overflow-x: hidden;
}

body.menu-movil-abierto {
    overflow: hidden;
}

.public-news-hero {
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
    color: #fff;
    text-align: center;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.public-news-hero-content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.public-news-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5e0202;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-news-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.public-news-hero p {
    margin: 0 auto;
    max-width: 780px;
    font-size: 1.08rem;
    line-height: 1.6;
    opacity: 0.95;
}

.public-news-hero-divider {
    width: 62px;
    height: 4px;
    background: #5e0202;
    margin: 22px auto;
    border-radius: 999px;
}

.public-news-hero-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .public-news-hero {
        min-height: 280px;
        padding: 24px 14px;
    }

    .public-news-hero p {
        font-size: 0.96rem;
        line-height: 1.5;
    }
}

.barra-navegacion {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 5%;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    position: sticky;
    top: 0;
    z-index: 100;
}

.panel-navegacion {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
    width: 100%;
    grid-column: 2;
}

.navegacion-izquierda {
    color: black;
    text-decoration: none;
}

.navegacion-izquierda {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-navegacion {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.titulo-navegacion h3 {
    font-size: 18px;
    color: #111827;
}

.titulo-navegacion span {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.boton-menu-movil {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    grid-column: 3;
    justify-self: end;
}

.boton-menu-movil span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-navegacion {
    display: flex;
    gap: 8px;
    list-style: none;
    justify-content: center;
    flex: 1;
}

.login-seccion {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.selector-idioma {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.selector-idioma-form {
    margin: 0;
}

.selector-idioma button {
    min-width: 52px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.selector-idioma button:hover {
    color: #b91c1c;
    transform: translateY(-1px);
}

.selector-idioma button.activo {
    background: #ffffff;
    color: #b91c1c;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.menu-navegacion a {
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.menu-navegacion a.activo {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.menu-navegacion a:hover {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.06);
    transform: translateY(-1px);
}

.boton-inicio-sesion,
.boton-cerrar-sesion,
.boton-admin-nav {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.boton-tema-nav {
    width: 42px;
    height: 42px;
    border: 1px solid #cf1515;
    border-radius: 999px;
    background: #e60000;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-label {
    display: none;
}

.boton-tema-nav:hover {
    background: #cf1515;
    border-color: #b01212;
    box-shadow: 0 6px 14px rgba(230, 0, 0, 0.28);
    transform: translateY(-1px);
}

.boton-inicio-sesion {
    background: #e60000;
    color: white;
}

.boton-inicio-sesion:hover {
    background: #cf1515;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.2);
}

.boton-cerrar-sesion {
    background: #333;
    color: white;
}

.boton-cerrar-sesion:hover {
    background: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.boton-admin-nav {
    background: #003049;
    color: white;
}

.boton-admin-nav:hover {
    background: #001d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.2);
}

.login-seccion a {
    text-decoration: none;
}

.estado-vacio {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 12px auto;
    padding: 30px 26px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
    text-align: center;
}

.estado-vacio-merchan-gap {
    margin-top: 50px;
}

.estado-vacio-merchan-gap-estadisticas {
    margin-top: 44px;
}

.estado-vacio-merchan-gap-clasificacion {
    margin-top: 46px;
}

.estado-vacio-como-partidos {
    margin-top: 0;
    padding-top: 50px;
    display: flow-root;
}

.estado-vacio-como-partidos-noticias {
    margin-top: 0 !important;
}

.estado-vacio-como-partidos-galeria {
    margin-top: 0 !important;
}

.estado-vacio-como-partidos-estadisticas {
    margin-top: 0 !important;
}

.estado-vacio-como-partidos-clasificacion {
    margin-top: 0 !important;
}

.estado-vacio-icono {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e60000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.estado-vacio h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: #111827;
}

.estado-vacio p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
}

.estado-vacio-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid #e60000;
    background: #e60000;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.estado-vacio-accion:hover {
    background: #cf1515;
    box-shadow: 0 10px 22px rgba(230, 0, 0, 0.25);
    transform: translateY(-2px);
}


html[data-theme="dark"] .estado-vacio {
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
    border-color: #334155;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.5);
}

html[data-theme="dark"] .estado-vacio-icono {
    background: #3f1418;
    color: #fca5a5;
}

html[data-theme="dark"] .estado-vacio h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .estado-vacio p {
    color: #cbd5e1;
}

html[data-theme="dark"] .estado-vacio-accion {
    background: #dc2626;
    border-color: #ef4444;
    color: #fff;
}

html[data-theme="dark"] .estado-vacio-accion:hover {
    background: #ef4444;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}


/*******************************************************************************
 * *
 * 2. PIE DE PÁGINA (FOOTER) REVISADO                  *
 * *
 *******************************************************************************/

.pie-pagina {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 24%),
        linear-gradient(135deg, #111827 0%, #0f172a 46%, #020617 100%);
    color: white;
    padding: 72px 0 22px;
    margin-top: 0;
    border-top: 1px solid rgba(248, 113, 113, 0.32);
}

.rejilla-footer {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(180px, 1fr));
    padding: 0 5%;
    gap: 32px;
}

.footer-col {
    min-width: 0;
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    text-decoration: none;
    color: white;
}


.logo-footer img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.texto-logo-footer h3 {
    font-size: 22px;
    line-height: 1;
    margin: 0;
}

.texto-logo-footer span {
    font-size: 13px;
    color: #fca5a5;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.descripcion-breve {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.75;
    max-width: 34ch;
    margin: 0;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8fafc;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
}

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

.lista-footer li {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

.lista-footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.lista-footer a:hover {
    color: white;
    transform: translateX(5px);
}

.contacto-items li i {
    color: #f87171;
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.footer-social-text {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.7;
}

.redes-iconos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.redes-iconos a {
    background: rgba(148, 163, 184, 0.12);
    color: white;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: all 0.3s ease;
    text-decoration: none;
}

.redes-iconos a i {
    font-size: 16px;
    line-height: 1;
}

.redes-iconos a svg {
    width: 16px;
    height: 16px;
    display: block;
}

.redes-iconos a:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: translateY(-4px);
}

.footer-bottom {
    max-width: 1240px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    margin: 40px auto 0;
    padding: 22px 5% 0;
    text-align: center;
}

.copy {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.footer-copy-secondary {
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 1400px) {
    .barra-navegacion {
        display: flex;
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: space-between;
    }

    .boton-menu-movil {
        display: inline-flex;
    }

    .panel-navegacion {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e5e7eb;
        padding: 18px 0 6px;
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 0 0 18px 18px;
    }

    .js-nav .barra-navegacion .panel-navegacion {
        display: none;
    }

    .barra-navegacion.nav-abierta .panel-navegacion {
        display: flex;
    }

    .barra-navegacion.nav-abierta .boton-menu-movil span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .barra-navegacion.nav-abierta .boton-menu-movil span:nth-child(2) {
        opacity: 0;
    }

    .barra-navegacion.nav-abierta .boton-menu-movil span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-navegacion {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .menu-navegacion li a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        background: #f9fafb;
        font-size: 15px;
    }

    .login-seccion {
        width: 100%;
        padding-top: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .selector-idioma {
        width: 100%;
        justify-content: center;
    }

    .login-seccion > .boton-tema-nav,
    .auth-actions-wrap .boton-tema-nav {
        width: 100%;
        min-height: 42px;
        height: auto;
        margin: 0;
        padding: 10px 20px;
        border-radius: 8px;
        justify-content: center;
        font-size: 12px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .theme-label {
        display: inline;
    }

    .login-seccion > a,
    .auth-actions-wrap {
        width: 100%;
    }

    .auth-actions-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions-wrap .logout-inline-form {
        display: block;
        width: 100%;
    }

    .boton-inicio-sesion,
    .boton-cerrar-sesion,
    .boton-admin-nav {
        width: 100%;
        text-align: center;
    }

    .rejilla-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .barra-navegacion {
        padding: 12px 16px;
    }

    .titulo-navegacion h3 {
        font-size: 16px;
    }

    .titulo-navegacion span {
        font-size: 12px;
    }

    .logo-navegacion {
        width: 40px;
        height: 40px;
    }

    .estado-vacio {
        margin: 8px auto;
        padding: 24px 16px;
    }

    .estado-vacio h3 {
        font-size: 20px;
    }

    .estado-vacio p {
        font-size: 14px;
    }

    .pie-pagina {
        padding-top: 44px;
    }

    .rejilla-footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }

    .footer-col,
    .info-club {
        text-align: left;
    }

    .logo-footer {
        justify-content: flex-start;
    }

    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .footer-col h4::after {
        left: 0;
        right: auto;
        transform: none;
    }

    .redes-iconos {
        justify-content: flex-start;
    }

    .contacto-items li {
        justify-content: flex-start;
    }

    .footer-bottom {
        margin-top: 28px;
        padding: 18px 16px 0;
    }
}




/* 14.1 Común (layout, nav, auth) */
.auth-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-inline-form {
    display: inline;
}

.login-error-text {
    color: #e63000;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.admin-header-subtitle {
    color: #777;
}

.admin-header-spaced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-nuevo-secondary {
    background-color: #777;
    text-decoration: none;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-editing-text {
    color: #666;
    margin: 0;
}

/***PAGINACION***/

/* Contenedor principal de la paginación */
.contenedor-paginacion nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Estilo de los enlaces (botones) */
.contenedor-paginacion .pagination {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.contenedor-paginacion .page-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #023e8a;
    /* Tu azul */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.contenedor-paginacion .page-link:hover {
    background-color: #0077b6;
}

/* Estilo para cuando el botón está desactivado */
.contenedor-paginacion .disabled .page-link {
    background-color: #ccc;
    cursor: not-allowed;
}

/* =========================
   Tema oscuro (global base)
   ========================= */
html[data-theme="dark"] body {
    background: #0b1120;
    color: #e5e7eb;
}

html[data-theme="dark"] .barra-navegacion {
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .titulo-navegacion h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .titulo-navegacion span {
    color: #94a3b8;
}

html[data-theme="dark"] .menu-navegacion a {
    color: #e2e8f0;
}

html[data-theme="dark"] .menu-navegacion a:hover,
html[data-theme="dark"] .menu-navegacion a.activo {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.14);
}

html[data-theme="dark"] .boton-menu-movil {
    background: #1e293b;
}

html[data-theme="dark"] .boton-menu-movil span {
    background: #e2e8f0;
}

html[data-theme="dark"] .boton-tema-nav {
    background: #ef4444;
    border-color: #f87171;
}

html[data-theme="dark"] .selector-idioma {
    background: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .selector-idioma-form {
    margin: 0;
}

.selector-idioma button {
    color: #cbd5e1;
}

html[data-theme="dark"] .selector-idioma a:hover,
html[data-theme="dark"] .selector-idioma button.activo {
    color: #fca5a5;
}

html[data-theme="dark"] .selector-idioma button.activo {
    background: #1e293b;
    box-shadow: none;
}

html[data-theme="dark"] .boton-tema-nav:hover {
    background: #dc2626;
    border-color: #fca5a5;
}

html[data-theme="dark"] .panel-navegacion {
    background: rgba(15, 23, 42, 0.96);
    border-top-color: #1f2937;
}

html[data-theme="dark"] .menu-navegacion li a {
    background: #111827;
}

html[data-theme="dark"] .pie-pagina {
    background: #0f172a;
    border-top-color: rgba(248, 113, 113, 0.32);
}

html[data-theme="dark"] .descripcion-breve,
html[data-theme="dark"] .footer-social-text,
html[data-theme="dark"] .lista-footer li,
html[data-theme="dark"] .copy {
    color: #cbd5e1;
}

html[data-theme="dark"] .lista-footer a {
    color: #e2e8f0;
}

html[data-theme="dark"] .lista-footer a:hover {
    color: #fda4af;
}

html[data-theme="dark"] .redes-iconos a {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .redes-iconos a:hover {
    background: #ef4444;
    color: #fff;
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: #334155;
}
