/* 
 * index.css - Liga 3x3 2025
 * Estilos para la página pública de resultados y clasificaciones
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    min-height: 100vh;
    color: #333;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000; /* Título en negro */
}

.header-content h3 {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

/* INFORMACIÓN DEL CLUB CON LOGO */
.club-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Ajustar el título del club */
.club-info h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000; /* También en negro */
}

.basketball-icon {
    font-size: 2em;
    margin: 0 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* NAVEGACIÓN - PARA 6 ELEMENTOS */
.navbar {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px; /* Reducido para que quepan 6 elementos */
    flex-wrap: wrap; /* Permite envolver en pantallas pequeñas */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px; /* Padding reducido para 6 elementos */
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px; /* Tamaño ligeramente menor */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(255,255,255,0.9);
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.nav-link i {
    font-size: 1.1em; /* Iconos ligeramente más pequeños */
}

/* ===== CONTENEDOR DE IMÁGENES - ULTRA MEJORADO ===== */
.images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 80px 20px;
    min-height: 75vh;
    flex: 1;
    flex-wrap: nowrap; /* Horizontal en desktop */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Efecto de fondo animado */
.images-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 125, 50, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 40px;
    border-radius: 25px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95));
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.07),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* TAMAÑOS MEJORADOS */
    min-width: 320px;
    max-width: 380px;
    min-height: 320px;
    flex: 1;
    
    /* Animación inicial mejorada */
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: fadeInUpScale 1s ease-out forwards;
}

/* Nueva animación más llamativa */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotate(-5deg);
    }
    60% {
        transform: translateY(-10px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Efectos hover espectaculares */
.image-item:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 
        0 30px 60px rgba(76, 175, 80, 0.25),
        0 15px 35px rgba(0,0,0,0.15),
        0 0 30px rgba(76, 175, 80, 0.3);
    border: 3px solid rgba(76, 175, 80, 0.6);
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(250, 255, 250, 0.98));
}

/* Efecto de brillo mágico en hover */
.image-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg, 
            transparent, 
            rgba(76, 175, 80, 0.1), 
            rgba(129, 199, 132, 0.2), 
            rgba(76, 175, 80, 0.1), 
            transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    animation: rotate 3s linear infinite;
}

.image-item:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efecto de destello adicional */
.image-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    transition: left 0.8s ease;
    z-index: 2;
}

.image-item:hover::after {
    left: 100%;
}

/* Estilos para las imágenes - ULTRA MEJORADOS */
.image-item img {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9)) !important;
    padding: 20px !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 4px solid transparent !important;
    position: relative;
    z-index: 3;
    
    /* Efectos de filtro mejorados */
    filter: brightness(1) contrast(1.1) saturate(1.1);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.image-item img:hover {
    border: 4px solid #4CAF50 !important;
    background: 
        linear-gradient(145deg, rgba(76, 175, 80, 0.05), rgba(129, 199, 132, 0.1)) !important;
    transform: scale(1.1) rotate(2deg) !important;
    filter: brightness(1.15) contrast(1.3) saturate(1.2);
    box-shadow: 
        0 15px 35px rgba(76, 175, 80, 0.3),
        0 0 20px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Estilos para el texto debajo - MEJORADOS */
.image-item span {
    font-size: 1.2em !important;
    margin-top: 25px !important;
    font-weight: 700 !important;
    color: #2E7D32 !important;
    max-width: 250px !important;
    line-height: 1.5 !important;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-item:hover span {
    color: #1B5E20 !important;
    transform: translateY(-3px);
    text-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
}

/* Título "Col·laboren" mejorado */
.images-container h3 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 5;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Animaciones escalonadas mejoradas con efectos únicos */
.image-item:nth-child(1) { 
    animation-delay: 0.3s; 
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,255,248,0.95));
}
.image-item:nth-child(3) { 
    animation-delay: 0.6s; 
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,250,250,0.95));
}
.image-item:nth-child(4) { 
    animation-delay: 0.9s; 
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(250,255,255,0.95));
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.page-title h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-title p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* CATEGORÍAS */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2E7D32, #81C784);
}

.category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category h2 {
    color: #4CAF50;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

/* COLORES ESPECÍFICOS POR CATEGORÍA */

/* Pre-Mini (amarillo) */
.category.premini::before {
    background: linear-gradient(90deg, #FFFF00, #FFD700, #FFF176);
}

.category.premini h2 {
    color: #FFD700;
}

.category.premini:hover {
    border: 2px solid rgba(255, 215, 0, 0.5);
}

/* Mini Masculí (beige/crema) */
.category.mini::before {
    background: linear-gradient(90deg, #FCD5B4, #D2691E, #F5DEB3);
}

.category.mini h2 {
    color: #D2691E;
}

.category.mini:hover {
    border: 2px solid rgba(210, 105, 30, 0.3);
}

/* Infantil Masculí Grup 1 (azul claro) */
.category.infantil1::before {
    background: linear-gradient(90deg, #C5D9F1, #1976D2, #90CAF9);
}

.category.infantil1 h2 {
    color: #1976D2;
}

.category.infantil1:hover {
    border: 2px solid rgba(25, 118, 210, 0.3);
}

/* Infantil Masculí Grup 2 (verde claro) */
.category.infantil2::before {
    background: linear-gradient(90deg, #C8E6C9, #388E3C, #A5D6A7);
}

.category.infantil2 h2 {
    color: #388E3C;
}

.category.infantil2:hover {
    border: 2px solid rgba(56, 142, 60, 0.3);
}

/* Infantil Femení (rosa) */
.category.infantil_femeni::before {
    background: linear-gradient(90deg, #F8BBD9, #E91E63, #F48FB1);
}

.category.infantil_femeni h2 {
    color: #E91E63;
}

.category.infantil_femeni:hover {
    border: 2px solid rgba(233, 30, 99, 0.3);
}

/* Cadet (rojo) */
.category.cadet::before {
    background: linear-gradient(90deg, #FF0000, #DC143C, #FF6B6B);
}

.category.cadet h2 {
    color: #FF0000;
}

.category.cadet:hover {
    border: 2px solid rgba(255, 0, 0, 0.5);
}

/* Senior Masculí (azul) */
.category.senior::before {
    background: linear-gradient(90deg, #538ED5, #1976D2, #90CAF9);
}

.category.senior h2 {
    color: #538ED5;
}

.category.senior:hover {
    border: 2px solid rgba(83, 142, 213, 0.7);
}

/* Senior Femení (verde oliva) */
.category.senior_femeni::before {
    background: linear-gradient(90deg, #948B54, #8D6E63, #BCAAA4);
}

.category.senior_femeni h2 {
    color: #948B54;
}

.category.senior_femeni:hover {
    border: 2px solid rgba(148, 139, 84, 0.7);
}

/* Veterans (verde oscuro) */
.category.veterans::before {
    background: linear-gradient(90deg, #4F6228, #2E7D32, #66BB6A);
}

.category.veterans h2 {
    color: #4F6228;
}

.category.veterans:hover {
    border: 2px solid rgba(79, 98, 40, 0.7);
}

.category-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #4CAF50;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ESTADO VACÍO */
.no-categories {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.no-categories i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-categories h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

/* ANIMACIONES */
.category {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }
.category:nth-child(5) { animation-delay: 0.5s; }
.category:nth-child(6) { animation-delay: 0.6s; }
.category:nth-child(7) { animation-delay: 0.7s; }
.category:nth-child(8) { animation-delay: 0.8s; }
.category:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de utilidad adicionales */
.image-loaded {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.fade-in {
    animation: fadeInUpScale 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .images-container {
        gap: 40px;
        padding: 70px 20px;
    }
    
    .image-item {
        min-width: 280px;
        max-width: 320px;
        min-height: 300px;
        padding: 35px;
    }
    
    .image-item img {
        width: 180px !important;
        height: 180px !important;
        padding: 18px !important;
    }
    
    .images-container h3 {
        font-size: 1.8em;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .images-container {
        gap: 35px;
        padding: 60px 20px;
    }
    
    .image-item {
        min-width: 250px;
        max-width: 290px;
        min-height: 280px;
        padding: 30px;
    }
    
    .image-item img {
        width: 160px !important;
        height: 160px !important;
        padding: 15px !important;
    }
    
    .images-container h3 {
        font-size: 1.6em;
        padding: 8px 20px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .club-info h1 {
        font-size: 2em;
    }
    
    .club-logo {
        width: 70px;
        height: 70px;
    }
    
    .page-title h2 {
        font-size: 2em;
    }
    
    /* NAVBAR RESPONSIVE PARA TABLET */
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Móviles y tablets pequeños (768px y menos) */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .header-content h3 {
        font-size: 1.1em;
    }
    
    /* Logo responsive para móviles */
    .club-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .club-logo {
        width: 60px;
        height: 60px;
    }
    
    .club-info h1 {
        font-size: 1.8em;
    }
    
    .basketball-icon {
        font-size: 1.5em;
        margin: 0 10px;
    }

    /* NAVBAR RESPONSIVE - COMO CONTACTE.CSS */
    .nav-menu {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas para 6 elementos */
        gap: 10px !important;
        padding: 0 10px !important;
        justify-content: center;
        align-items: center;
    }
    
    .nav-link {
        padding: 12px 8px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-height: 60px !important;
        align-items: center !important;
    }
    
    .nav-link i {
        font-size: 1.2em !important;
    }
    
    .nav-link span {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    /* IMÁGENES RESPONSIVE EN MÓVILES - ULTRA MEJORADO */
    .images-container {
        flex-direction: column !important; /* Cambiar a vertical */
        gap: 40px !important;
        padding: 50px 20px !important;
        min-height: auto !important;
        position: relative;
    }
    
    .images-container::before {
        background: 
            radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(46, 125, 50, 0.05) 0%, transparent 50%);
    }
    
    .images-container h3 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 20px;
        font-size: 1.8em;
        text-align: center;
    }
    
    .image-item {
        min-width: auto !important;
        max-width: 380px !important;
        width: 100% !important;
        min-height: 250px !important;
        padding: 30px !important;
        margin: 0 auto;
        
        /* Efectos hover adaptados para móvil */
        transition: all 0.3s ease;
    }
    
    .image-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 
            0 20px 40px rgba(76, 175, 80, 0.2),
            0 10px 25px rgba(0,0,0,0.1);
    }
    
    .image-item img {
        width: 140px !important;
        height: 140px !important;
        padding: 15px !important;
    }
    
    .image-item img:hover {
        transform: scale(1.05) !important;
    }
    
    .image-item span {
        font-size: 1.1em !important;
        margin-top: 18px !important;
        max-width: 280px !important;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .page-title h2 {
        font-size: 1.8em;
    }
    
    .page-title p {
        font-size: 1em;
    }
    
    .container {
        padding: 30px 15px;
    }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6em;
    }
    
    .header-content h3 {
        font-size: 1em;
    }
    
    .club-info h1 {
        font-size: 1.5em;
    }
    
    .club-logo {
        width: 50px;
        height: 50px;
    }
    
    .basketball-icon {
        font-size: 1.2em;
        margin: 0 5px;
    }
    
    /* NAVBAR 2 COLUMNAS EN MÓVILES MUY PEQUEÑOS */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columnas en móviles muy pequeños */
        gap: 8px !important;
        padding: 0 5px !important;
    }
    
    .nav-link {
        padding: 10px 6px !important;
        font-size: 12px !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-height: 55px !important;
    }
    
    .nav-link span {
        font-size: 11px !important;
    }
    
    .nav-link i {
        font-size: 1em !important;
    }
    
    /* IMÁGENES EN MÓVILES PEQUEÑOS - OPTIMIZADO */
    .images-container {
        padding: 40px 15px !important;
        gap: 35px !important;
    }
    
    .images-container h3 {
        font-size: 1.6em;
        margin-bottom: 15px;
        padding: 8px 15px;
    }
    
    .image-item {
        max-width: 320px !important;
        min-height: 230px !important;
        padding: 25px !important;
    }
    
    .image-item:hover {
        transform: translateY(-6px) scale(1.02);
    }
    
    .image-item img {
        width: 120px !important;
        height: 120px !important;
        padding: 12px !important;
    }
    
    .image-item span {
        font-size: 1em !important;
        margin-top: 15px !important;
    }
    
    .category {
        padding: 20px;
    }
    
    .category h2 {
        font-size: 1.2em;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .page-title h2 {
        font-size: 1.5em;
    }
}

/* Móviles muy pequeños (360px y menos) */
@media (max-width: 360px) {
    .nav-menu {
        gap: 6px !important;
        padding: 0 3px !important;
    }
    
    .nav-link {
        padding: 8px 4px !important;
        font-size: 11px !important;
        min-height: 50px !important;
    }
    
    .nav-link span {
        font-size: 10px !important;
    }
    
    .nav-link i {
        font-size: 0.9em !important;
    }
    
    /* IMÁGENES EN MÓVILES MUY PEQUEÑOS - COMPACTO */
    .images-container {
        padding: 30px 10px !important;
        gap: 30px !important;
    }
    
    .images-container h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
        padding: 6px 12px;
    }
    
    .image-item {
        max-width: 300px !important;
        min-height: 210px !important;
        padding: 20px !important;
    }
    
    .image-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .image-item img {
        width: 100px !important;
        height: 100px !important;
        padding: 10px !important;
    }
    
    .image-item span {
        font-size: 0.9em !important;
        margin-top: 12px !important;
    }
}

/* Mejoras adicionales para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .image-item {
        /* Efectos más sutiles para dispositivos táctiles */
        transition: all 0.2s ease;
    }
    
    .image-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .image-item img:hover {
        transform: scale(1.02) !important;
    }
    
    /* Desactivar animación rotatoria en móviles */
    .image-item::before {
        animation: none;
    }
}

/* Soporte para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Modo oscuro del sistema - MEJORADO */
@media (prefers-color-scheme: dark) {
    .category {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .image-item {
        background: 
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95)) !important;
        box-shadow: 
            0 15px 35px rgba(0,0,0,0.2),
            0 5px 15px rgba(0,0,0,0.1),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }
    
    .image-item img {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    .images-container h3 {
        background: rgba(76, 175, 80, 0.15);
        border: 2px solid rgba(255,255,255,0.3);
    }
}

/* Efectos de accesibilidad - MEJORADOS */
@media (prefers-reduced-motion: reduce) {
    .basketball-icon {
        animation: none;
    }
    
    .category {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .club-logo {
        transition: none;
    }
    
    .image-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .image-item:hover {
        transform: none !important;
    }
    
    .image-item::before,
    .image-item::after {
        display: none;
    }
    
    .images-container h3 {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}