* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fc;
    color: #1e2a3e;
    line-height: 1.5;
}
/* ==================== PRÓXIMA FECHA ==================== */
.proxima-fecha-section {
    padding: 30px 0 0 0;
    background: linear-gradient(135deg, #f5f7fc 0%, #eef2f7 100%);
}

.proxima-fecha-card {
    background: linear-gradient(135deg, #1e4a76 0%, #163d5e 100%);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: white;
    text-align: center;
}

.proxima-fecha-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.proxima-fecha-header h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0;
    color: #f59e0b;
    font-weight: 800;
}
/* Botón FMV - Federación Metropolitana de Voley */
.nav-menu li a[href*="metrovoley"] {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 6px 14px;
    border-radius: 30px;
    color: white !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-menu li a[href*="metrovoley"]:hover {
    background: linear-gradient(135deg, #f59e0b, #e67e22);
    transform: scale(1.02);
    color: white !important;
}
.proxima-icon {
    font-size: 2rem;
}

.proxima-fecha-content {
    text-align: center;
}

.proxima-fecha-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.proxima-fecha-item {
    background: rgba(255,255,255,0.15);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.proxima-fecha-item .label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proxima-fecha-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 5px;
}

.proxima-fecha-item .value i {
    margin-right: 5px;
    color: #f59e0b;
}

.proxima-categorias {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.proxima-categorias-titulo {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.proxima-categorias-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.proxima-categoria-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.proxima-categoria-badge.highlight {
    background: #f59e0b;
    color: #1e4a76;
}

.proxima-fecha-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.loading {
    padding: 20px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .proxima-fecha-card {
        padding: 20px;
    }
    
    .proxima-fecha-header h2 {
        font-size: 1.2rem;
    }
    
    .proxima-icon {
        font-size: 1.3rem;
    }
    
    .proxima-fecha-info {
        gap: 15px;
    }
    
    .proxima-fecha-item {
        padding: 8px 15px;
    }
    
    .proxima-fecha-item .value {
        font-size: 1rem;
    }
    
    .proxima-categoria-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}
/* Resultados */
.resultado.jugado.ganado {
    background: #d4edda;
    color: #155724;
}
/* Botón logout */
#logoutBtnLi a {
    color: #dc3545 !important;
}

#logoutBtnLi a:hover {
    color: #b02a37 !important;
}
.resultado.jugado.perdido {
    background: #f8d7da;
    color: #721c24;
}

.resultado.pendiente {
    background: #e9ecef;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.2s;
}

.resultado.pendiente:hover {
    background: #dee2e6;
    transform: scale(1.02);
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Links de sede */
.fixture-table td a[href^="http"]:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.fixture-table td a[href="#"] {
    cursor: default;
    opacity: 0.5;
}
/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e4a76;
}

.logo span {
    color: #f59e0b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #f59e0b;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}



/* Títulos */
.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1e4a76;
    border-left: 5px solid #f59e0b;
    padding-left: 20px;
}

/* Filtros */
.filtros-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filtro-grupo {
    flex: 1;
    min-width: 180px;
}

.buscador-input, .filtro-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
}

/* Tabla */
.tabla-container {
    overflow-x: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.fixture-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.fixture-table th {
    background: #1e4a76;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.fixture-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.fixture-table tr:hover {
    background: #f8f9fc;
}

.rival-link {
    color: #1e4a76;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.rival-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.rival-link:hover::after {
    content: "📍 Ver mapa";
    position: absolute;
    background: #2c3e50;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    bottom: 120%;
    left: 0;
    z-index: 10;
}

.resultado {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.resultado.pendiente {
    background: #e9ecef;
    color: #6c757d;
}

.resultado.jugado {
    background: #d4edda;
    color: #155724;
}

/* Ubicaciones grid */
.ubicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ubicacion-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.ubicacion-card:hover {
    transform: translateY(-5px);
}

.ubicacion-card h3 {
    color: #1e4a76;
    margin-bottom: 10px;
}

.ubicacion-card a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Categorías */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.categoria-card {
    background: white;
    text-align: center;
    padding: 25px 15px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e4a76;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.categoria-card:hover {
    background: #1e4a76;
    color: white;
    transform: scale(1.02);
}

/* Footer */
footer {
    background: #1e2a3e;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
    }
    .nav-menu.active {
        left: 0;
    }
    .carrusel-slides {
        height: 250px;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARRUSEL - CORREGIDO (todas las imágenes visibles)
   ═══════════════════════════════════════════════════════════════════════════ */

.carrusel-section {
    background: #eef2f7;
    padding: 40px 0;
}

.carrusel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carrusel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;  /* Rellena todo el espacio, recorta si es necesario */
    /*object-position: center 30%; /* Enfoca en una zona específica */
    object-position: center top;  /* Enfoca en la parte superior */
}

/* Si quieres que NO recorte y muestre toda la imagen (con bordes negros) */
.slide img.contain {
    object-fit: contain;
    background: #1e2a3e;
}

/* Botones del carrusel */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.carrusel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Puntos indicadores */
.carrusel-dots {
    text-align: center;
    margin-top: 15px;
    padding: 10px 0;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .slide img {
        height: 250px;
    }
    
    .carrusel-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}