/* =============================
   GENERAL
============================= */
body {
    background: #f4f7fb;
    color: #1b1f23;
}

.section-title {
    font-weight: 900;
    color: #0d3b66;
}

/* =============================
   NAVBAR LOGO
============================= */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

/* =============================
   HERO
============================= */
.hero {
    background: linear-gradient(135deg, rgba(6,32,57,.9), rgba(18,111,84,.85)),
                url('/assets/img/vegas.jpg') center/cover;
    color: #fff;
    padding: 90px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
}

/* =============================
   IMÁGENES
============================= */
.stadium-zoom-img {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stadium-zoom-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.card-stadium img {
    height: 220px;
    object-fit: cover;
}

/* =============================
   BUSCADOR / BADGES
============================= */
.search-box {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 18px;
}

.stats-badge {
    background: #0d6efd;
    color: white;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
}

/* =============================
   ADMIN
============================= */
.admin-sidebar a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.08);
}

.admin-sidebar a:hover {
    background: rgba(255,255,255,.18);
}

/* =============================
   ESTADÍSTICAS
============================= */
.stats-zone {
    background: linear-gradient(135deg, #071827, #0d3b66);
    border-radius: 28px;
    padding: 35px;
    color: white;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.stats-zone .section-title,
.stats-zone .text-muted {
    color: white !important;
}

.stat-card {
    border-radius: 22px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,.3);
}

.stat-icon {
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
}

.stat-label {
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.stat-visits {
    background: linear-gradient(135deg, #0d6efd, #092c5e);
}

.stat-stadiums {
    background: linear-gradient(135deg, #198754, #084830);
}

.stat-users {
    background: linear-gradient(135deg, #ffc107, #905e00);
    color: #111;
}

.stat-likes {
    background: linear-gradient(135deg, #dc3545, #690d1a);
}

/* =============================
   RANKING
============================= */
.ranking-card {
    background: rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
}

.ranking-card h4 {
    font-weight: 900;
    margin-bottom: 15px;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.1);
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 10px;
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffc107;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.ranking-info strong {
    display: block;
    font-size: 0.95rem;
}

.ranking-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =============================
   MENÚ FÚTBOL
============================= */
.football-grid,
.football-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.football-card,
.football-btn {
    background: linear-gradient(135deg, #081b29, #12344d);
    border-radius: 22px;
    padding: 24px 18px;
    text-decoration: none !important;
    color: #fff;
    text-align: center;
    transition: all .25s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    border: 2px solid rgba(255,255,255,.06);
}

.football-card:hover,
.football-btn:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, #0d3b66, #0f5132);
    color: #fff;
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
}

.football-card-icon,
.football-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.football-card-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

/* =============================
   PARTIDOS
============================= */
.match-card {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.match-date {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.match-teams strong {
    background: #0d3b66;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}

.match-status {
    margin-top: 8px;
    font-size: .85rem;
    color: #6c757d;
}

.match-status.live {
    color: #dc3545;
    font-weight: 800;
}

/* =============================
   MAPAS
============================= */
.andalucia-map-box,
.spain-map-box {
    background: #081b29;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    overflow-x: auto;
}

.andalucia-map-box svg,
.spain-map-box svg {
    max-width: 100%;
    height: auto;
}

.andalucia-map-box svg text,
.spain-map-box svg text {
    font-weight: 800;
    transition: all .2s ease;
}

.andalucia-map-box svg text:hover,
.spain-map-box svg text:hover {
    fill: #ffc107 !important;
    transform: scale(1.05);
}

/* =============================
   CÁDIZ / CATEGORÍAS
============================= */
.cadiz-hero {
    background:
        linear-gradient(135deg, rgba(0,0,0,.75), rgba(0,0,0,.65)),
        url('/assets/img/cadiz-football.jpg') center/cover;
    border-radius: 24px;
}

.football-category-card {
    border-radius: 22px;
    overflow: hidden;
    transition: all .25s ease;
}

.football-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.football-category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.football-category-title {
    font-weight: 800;
    margin-bottom: 12px;
    color: #0d3b66;
}

.mini-info-box {
    background: #f4f7fb;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

/* =============================
   CÓDIGO DESCUENTO
============================= */
.discount-code-mini {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: 12px;
    letter-spacing: 1px;
}

/* =============================
   LISTADO EQUIPOS PEQUEÑOS
============================= */
.teams-small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 14px;
}

.team-small-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(13, 59, 102, .12);
    border-left: 5px solid #0d3b66;
    border-radius: 16px;
    padding: 12px;
    text-decoration: none !important;
    color: #1b1f23;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    transition: all .2s ease;
    min-height: 96px;
}

.team-small-card:hover {
    transform: translateY(-3px);
    color: #1b1f23;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
    border-left-color: #ffc107;
}

.team-small-logo {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    background: #f4f7fb;
    border-radius: 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}

.team-small-logo img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    display: block;
}

.team-small-logo span {
    font-size: 1.5rem;
    line-height: 1;
}

.team-small-content {
    min-width: 0;
    flex: 1;
}

.team-small-content h4 {
    font-size: .98rem;
    font-weight: 900;
    margin: 0 0 3px;
    color: #0d3b66;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-small-content p {
    margin: 0 0 5px;
    font-size: .82rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-small-category {
    display: inline-block;
    background: #eaf2fb;
    color: #0d3b66;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    max-width: 100%;
}

.team-small-content small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================
   FICHA EQUIPO
============================= */
.team-page-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.team-page-logo-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #0d3b66;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.team-info-box {
    background: #f4f7fb;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.team-history {
    line-height: 1.8;
}

.gallery-card {
    position: relative;
}

.gallery-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,.75);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
}

.team-gallery-img {
    transition: all .25s ease;
}

.team-gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 18px 10px;
    }

    .stats-zone {
        padding: 20px;
    }

    .football-grid,
    .football-menu {
        grid-template-columns: 1fr;
    }

    .football-card,
    .football-btn {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .teams-small-grid {
        grid-template-columns: 1fr;
    }

    .team-small-card {
        min-height: 86px;
    }

    .team-small-logo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    .team-small-logo img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .team-small-content h4 {
        font-size: .92rem;
    }
}