/*
 * Capa de estilos moderna para el front público.
 * Se carga después de main.css (plantilla) y redefine su aspecto sin tocar el marcado
 * que usan sus scripts (slick, superfish, mmenu, isotope).
 * Colores tomados del logo: azul marino y verde.
 */

:root {
    --navy: #0f2742;
    --navy-2: #173a61;
    --navy-3: #0a1b2f;
    --accent: #1fae5b;
    --accent-dark: #168a47;
    --accent-soft: rgba(31, 174, 91, 0.12);
    --bg: #f3f5f9;
    --surface: #ffffff;
    --text: #1b2533;
    --muted: #64748b;
    --border: #e3e8ef;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 39, 66, 0.06);
    --shadow: 0 1px 2px rgba(15, 39, 66, 0.05), 0 8px 24px rgba(15, 39, 66, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 39, 66, 0.16);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
}

/* Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#layout { background: var(--bg); overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--navy);
}

a { color: var(--accent-dark); transition: color .2s ease; }
a:hover { color: var(--accent); text-decoration: none; }

p.lead { font-size: 1.05rem; color: var(--muted); }

.content-info { background: transparent; }
.padding-top { padding-top: 48px; }
.paddings-mini { padding-top: 40px; padding-bottom: 40px; }

/* Botones ---------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: 0;
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-success { background: var(--accent); }

.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-height: 44px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.badge { border-radius: 999px; padding: 0.35em 0.75em; font-weight: 600; }

/* Cabecera y menú -------------------------------------------------------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo .logo_img { height: 62px; width: auto; max-width: none; }

.site-nav { display: none; }

.site-nav .sf-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.site-nav .sf-menu > li {
    float: none;
    margin: 0;
    padding: 12px 0;
    position: relative;
}

.site-nav .sf-menu > li > a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: background .2s ease, color .2s ease;
}

.site-nav .sf-menu > li:hover > a,
.site-nav .sf-menu > li.sfHover > a,
.site-nav .sf-menu > li.active > a {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* La plantilla dibuja sus propias flechas; usamos un icono en el marcado. */
.site-nav .sf-arrows .sf-with-ul { padding-right: 14px; }
.site-nav .sf-arrows .sf-with-ul:after { display: none; }
.nav-caret { font-size: 10px; margin-left: 4px; vertical-align: middle; opacity: .7; }

.site-nav .sf-menu > li.nav-cta > a {
    background: var(--navy);
    color: #fff;
    margin-left: 8px;
    padding: 9px 18px;
}
.site-nav .sf-menu > li.nav-cta > a:hover { background: var(--navy-2); color: #fff; }
.site-nav .sf-menu > li.nav-cta > a i { margin-right: 4px; }

.site-nav .sf-menu .sub-current {
    top: 100%;
    left: 0;
    width: auto;
    min-width: 210px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.site-nav .sf-menu .sub-current ul { width: auto; }
.site-nav .sf-menu .sub-current li { border: 0; }
.site-nav .sf-menu .sub-current li a {
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 10px 14px;
}
.site-nav .sf-menu .sub-current li a:hover { background: var(--accent-soft); color: var(--accent-dark); }

header.site-header .mobile-nav {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 1.2rem;
}
header.site-header .mobile-nav:hover { background: var(--navy-2); color: #fff; }

@media (min-width: 1200px) {
    .site-nav { display: block; }
    header.site-header .mobile-nav { display: none; }
}

@media (max-width: 575px) {
    .site-header .container { min-height: 64px; }
    .site-logo .logo_img { height: 42px; }
}

/* Menú móvil (mmenu) */
.mm-menu { background: var(--navy); color: #fff; font-family: var(--font-body); }
.mm-menu .mm-listview > li > a,
.mm-menu .mm-listview > li > span { color: #fff; font-weight: 500; padding-top: 14px; padding-bottom: 14px; }
.mm-menu .mm-listview > li.active > a { color: var(--accent); }
.mm-menu .mm-listview > li:not(.mm-divider):after,
.mm-menu .mm-listview > li .mm-next:before { border-color: rgba(255, 255, 255, 0.1); }
.mm-menu .mm-navbar { border-color: rgba(255, 255, 255, 0.1); }
.mm-menu .mm-navbar a, .mm-menu .mm-navbar > * { color: rgba(255, 255, 255, 0.8); }
.mm-menu .mm-btn:after, .mm-menu .mm-btn:before, .mm-menu .mm-listview > li .mm-next:after { border-color: rgba(255, 255, 255, 0.6); }
.mm-menu .nav-caret { display: none; }

/* Slider de portada ------------------------------------------------------ */
.hero-slider .item-slider:before {
    background: linear-gradient(100deg, rgba(10, 27, 47, 0.88) 0%, rgba(15, 39, 66, 0.55) 55%, rgba(15, 39, 66, 0.15) 100%);
}
.hero-slider .item-slider .info-slider h1 {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    padding: 0;
}
.hero-slider .item-slider .info-slider h1:before { display: none; }
.hero-slider .item-slider .info-slider p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 0;
    margin-top: 16px;
    max-width: 560px;
}
.hero-slider .slick-prev, .hero-slider .slick-next,
.single-carousel .slick-prev, .single-carousel .slick-next {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Cabeceras de página ---------------------------------------------------- */
.section-title {
    padding: 88px 0 56px;
    background-color: var(--navy) !important;
}
.section-title:before {
    background: linear-gradient(100deg, rgba(10, 27, 47, 0.92) 0%, rgba(15, 39, 66, 0.7) 60%, rgba(15, 39, 66, 0.45) 100%);
}
.section-title h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    position: relative;
}
.section-title h1 + h1 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; color: rgba(255, 255, 255, 0.75); margin-top: 6px; }
.section-title .col-md-8 { position: relative; }
.section-title .col-md-8:before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .section-title { padding: 48px 0 32px; }
}

/* Filtro de temporada (calendario) */
.portfolioFilter {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 !important;
}
.portfolioFilter .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portfolioFilter h5 {
    float: none;
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.portfolioFilter a {
    display: inline-block;
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
}
.portfolioFilter a:before { display: none; }

/* Navegación de jornada (calendario) */
.content-info h1.text-center {
    font-family: var(--font-title);
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0;
    align-self: center;
}

/* Pestañas --------------------------------------------------------------- */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    border: 0;
}
.nav-tabs li { margin: 0; float: none; }
.nav-tabs li a,
.single-team-tabs .nav-tabs li a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all .2s ease;
}
.nav-tabs li a:hover { border-color: var(--accent); color: var(--accent-dark); }
.nav-tabs li a.active,
.nav-tabs li.active a,
.nav-tabs li.active a:hover,
.single-team-tabs .nav-tabs li a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.nav-tabs li a.active:after,
.nav-tabs li.active a:after { display: none; }

@media (max-width: 767px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-top: 0;
        min-height: 0;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs li a { white-space: nowrap; padding: 9px 16px !important; font-size: 0.85rem; }
}

/* Portada: bloque de estadísticas --------------------------------------- */
.dark-home {
    background: radial-gradient(1200px 400px at 85% -10%, rgba(31, 174, 91, 0.25), transparent 60%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    padding: 40px 0 44px;
}
.dark-home .nav-tabs li a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.dark-home .nav-tabs li a:hover { border-color: var(--accent); color: #fff; }
.dark-home .nav-tabs li.active a,
.dark-home .nav-tabs li a.active { background: var(--accent); border-color: var(--accent); }

.club-ranking h5, .player-ranking h5, .recent-results h5 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.club-ranking h5 a, .player-ranking h5 a, .recent-results h5 a { color: #fff; }
.club-ranking h5 a:hover, .player-ranking h5 a:hover, .recent-results h5 a:hover { color: var(--accent); }

.club-ranking .info-ranking,
.player-ranking .info-player,
.recent-results .info-results {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
}

.club-ranking .info-ranking ul,
.player-ranking .info-player ul { padding: 8px 16px; margin: 0; }

.club-ranking .info-ranking ul li,
.player-ranking .info-player ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.club-ranking .info-ranking ul li:last-child,
.player-ranking .info-player ul li:last-child { border: 0; padding-bottom: 11px; }

.club-ranking .info-ranking ul li .position,
.player-ranking .info-player ul li .position {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.club-ranking .info-ranking ul li:first-child .position,
.player-ranking .info-player ul li:first-child .position { background: var(--accent); }

.club-ranking .info-ranking ul li .points,
.player-ranking .info-player ul li .points {
    margin-left: auto;
    float: none;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-title);
    font-size: 1.15rem;
}

/* Últimos resultados (portada, fondo oscuro) */
.recent-results .info-results ul { padding: 12px; margin: 0; }
.recent-results .info-results ul li { margin-bottom: 10px; border-radius: var(--radius-sm); overflow: hidden; }
.recent-results .info-results ul li .head {
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
}
.recent-results .info-results ul li .head .date { color: var(--accent); }
.recent-results .info-results ul li .goals-result { background: rgba(255, 255, 255, 0.04); padding: 12px; }
.recent-results .info-results ul li .goals b {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    border-radius: 8px;
    background: var(--navy-3);
    font-family: var(--font-title);
    font-size: 1.2rem;
    padding: 2px 8px;
}

/* Quiénes somos */
.info-general { color: rgba(255, 255, 255, 0.85); }
.info-general h3, .info-general h4 { color: #fff; }
.info-general p.lead { color: rgba(255, 255, 255, 0.75); }
.info-general img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Paneles ---------------------------------------------------------------- */
.panel-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    overflow: hidden;
}
.titles {
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff, #fafbfd);
}
.titles.no-margin { margin-bottom: 0; }
.titles h4 {
    border-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--navy);
}
.titles h4:before {
    content: '';
    flex: 0 0 4px;
    height: 20px;
    border-radius: 4px;
    background: var(--accent);
}
.titles h4 i { color: var(--accent); margin: 0; }
.panel-box .info-panel { padding: 18px 20px; }

/* Listado de campos (carrusel) */
.single-carousel { margin: 0; padding: 0; }
.single-carousel li img { border-radius: 0; }
.info-single-carousel { padding: 18px 20px; background: var(--surface); }
.info-single-carousel h4 { font-size: 1.3rem; margin-bottom: 10px; }
.info-single-carousel ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.info-single-carousel ul li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.info-single-carousel ul li:last-child { border: 0; }

/* Partidos (calendario / próxima jornada) -------------------------------- */
.recent-results.results-page .info-results { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.recent-results.results-page .info-results ul { padding: 0; }
.recent-results.results-page .info-results ul li { margin-bottom: 24px; overflow: visible; }

.recent-results.results-page .info-results ul li .head {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 0.78rem;
    padding: 10px 16px;
    letter-spacing: 0.03em;
}
.recent-results.results-page .info-results ul li .head .row { margin: 0; }
.recent-results.results-page .info-results ul li .head .date { float: none; color: var(--accent); font-weight: 700; }

.recent-results.results-page .info-results ul li .goals-result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 12px;
    align-items: center;
    transition: box-shadow .2s ease, transform .2s ease;
}
.recent-results.results-page .info-results ul li:hover .goals-result { box-shadow: var(--shadow-lg); }

.recent-results.results-page .info-results ul li a {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.recent-results.results-page .info-results ul li a img {
    border: 0;
    width: 52px;
    height: 52px;
    max-width: none;
    object-fit: contain;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 4px rgba(15, 39, 66, 0.15));
}

.recent-results.results-page .info-results ul li .goals { color: var(--navy); white-space: nowrap; }
.recent-results.results-page .info-results ul li .goals b {
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    font-size: 1.4rem;
    min-width: 40px;
    padding: 4px 10px;
}

/* Versión compacta de la próxima jornada (portada) */
.next-round-games { padding: 0 20px; }
.next-round-games .recent-results.results-page .info-results ul li .goals-result a img { width: 32px; height: 32px; margin: 0 10px; }
.next-round-games .recent-results.results-page .info-results ul li .goals b { font-size: 1.1rem; min-width: 32px; }

@media (max-width: 425px) {
    .recent-results.results-page .info-results ul li a img { width: 40px; height: 40px; }
    .recent-results.results-page .info-results ul li .goals b { font-size: 1.1rem; min-width: 30px; padding: 3px 6px; }
}

/* Tablas (clasificación, goleadores, participantes) ---------------------- */
table.result-point {
    display: table;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
table.result-point thead tr th {
    background: var(--navy);
    color: #fff;
    border: 0;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
table.result-point tr td {
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    vertical-align: middle;
}
table.result-point tbody tr:last-child td { border-bottom: 0; }
table.result-point.table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
table.result-point tbody tr { transition: background .15s ease; }
table.result-point tbody tr:hover { background: var(--accent-soft) !important; }
table.result-point tr td img {
    border: 0;
    width: 32px;
    height: 32px;
    max-width: none;
    object-fit: contain;
    float: none;
    margin: 0 10px 0 0;
    vertical-align: middle;
}
table.result-point tr td.number {
    width: 64px;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}
table.result-point tbody tr:nth-child(-n+3) td.number { color: var(--accent-dark); }

/* En móvil la tabla hace scroll horizontal dentro de su tarjeta. */
@media (max-width: 991px) {
    table.result-point { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Clubes ----------------------------------------------------------------- */
.item-team {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.item-team:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Altura fija y la foto recortada para cubrir todo el ancho de la tarjeta. */
.item-team .head-team { height: 180px; max-height: none; }
.item-team .head-team img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
    .item-team .head-team { height: 200px; }
}
.item-team:hover img { transform: scale(1.06); }
.item-team .overlay { background: linear-gradient(180deg, rgba(15, 39, 66, 0) 0%, rgba(15, 39, 66, 0.6) 100%); }
.item-team .info-team { padding: 0 20px 12px; text-align: center; position: relative; }
.item-team .info-team .logo-team img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: var(--surface);
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow);
    margin-top: -38px;
    position: relative;
}
.item-team:hover .info-team .logo-team img { transform: none; }
.item-team .info-team h4 { font-size: 1.35rem; margin: 10px 0 4px; color: var(--navy); }
.item-team .btn {
    display: block;
    margin: 0 20px 20px;
    text-align: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: none;
}
.item-team .btn:hover { background: var(--accent); color: #fff; }

/* Ficha de club */
.section-title-team {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    height: auto;
    min-height: 340px;
    padding: 56px 0;
}
.section-title-team .bg-image-team { opacity: 0.45; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.section-title-team .col-md-3 img {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
}
.section-title-team h1 { font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; }
.section-title-team h6 { color: rgba(255, 255, 255, 0.8); font-family: var(--font-body); font-weight: 500; }
.section-title-team h6 strong, .section-title-team h6 a { color: var(--accent); }
.section-title-team .social-teams li div { border-radius: 50%; }

.single-team-tabs { padding-top: 32px; }
.padding-top-mini { padding-top: 8px; }

/* Lista de próximos encuentros (lateral ficha de club) */
.list-diary { padding: 0 20px 12px; margin: 0; }
.list-diary > li { border-bottom: 1px solid var(--border); padding: 14px 0; list-style: none; }
.list-diary > li:last-child { border-bottom: 0; }
.list-diary h6 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.list-diary h6 span { color: var(--accent-dark); display: block; margin-top: 2px; }
.list-diary .club-logo li img { width: 32px; height: 32px; object-fit: contain; }

/* Pie de página ---------------------------------------------------------- */
footer.site-footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 40px;
    margin-top: 48px;
    font-size: 14px;
    line-height: 1.7;
}
.site-footer .footer-brand {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.site-footer .footer-text { max-width: 420px; color: rgba(255, 255, 255, 0.65); }
.site-footer .footer-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { color: rgba(255, 255, 255, 0.7); }
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 0; }
.site-footer .footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    transition: background .2s ease, transform .2s ease;
}
.site-footer .footer-social a:hover { background: var(--accent); transform: translateY(-2px); }

.site-footer-bottom {
    background: var(--navy-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    padding: 18px 0;
}
.site-footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }

/* Verificación de carnet y otras páginas sueltas */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Partidos sin jugar: no se pintan las cajas de marcador vacías. */
.recent-results .info-results ul li .goals b:empty { display: none; }
.recent-results .info-results ul li .goals { color: var(--muted); font-weight: 700; }

/* Tarjeta de club: el escudo va en el flujo (la plantilla lo posiciona en absoluto sobre el nombre). */
.item-team .info-team { padding: 0 20px 4px; }
.item-team .info-team .logo-team {
    position: static;
    width: auto;
    height: auto;
    display: block;
    background: transparent;
    border-radius: 0;
    margin: 0;
}
.item-team .info-team h4 { margin: 10px 0 14px; }
/* La plantilla fija el color con !important; hay que igualar la prioridad. */
.item-team .btn { background: var(--accent-soft) !important; color: var(--accent-dark); font-weight: 700; }
.item-team .btn:hover { background: var(--accent) !important; color: #fff; }
.btn.theme, .item-player .btn, .pagination .active { background: var(--accent) !important; }
.info-slider h1:before { display: none; }

/* En móvil las tablas hacen scroll: mejor una línea por fila que nombres partidos. */
@media (max-width: 991px) {
    table.result-point tr td { white-space: nowrap; }
}
/* La plantilla centra el título en móvil; lo dejamos alineado con la barra de acento. */
.section-title .col-md-8, .section-title h1 { text-align: left; }

/* Plantilla del club: la cabecera fija (165px) recorta la foto cuando la tarjeta es ancha (tablet/móvil). */
@media (max-width: 1199px) {
    .item-player .head-player { max-height: none; aspect-ratio: 1 / 1; }
    .item-player .head-player img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
    .item-player { margin-bottom: 30px; }
}
