/* 
 * colaboradors.css - Torneig FranquiBasket
 * Estilos para la página de colaboradores - Versión limpia
 */

* {
    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;
}

/* INFORMACIÓN DEL CLUB CON LOGOS */
.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);
}

.club-info h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000;
}

/* ===== NAVEGACIÓN - 10 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: 12px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    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;
}

.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;
    min-width: 16px;
    text-align: center;
}

.nav-link span {
    font-weight: 600;
}

/* ===== CONTENEDOR DE COLABORADORES EN PIRÁMIDE ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    position: relative;
}

/* Efecto de fondo animado */
.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;
}

/* ===== FILAS DE LA PIRÁMIDE ===== */

/* Todas las filas centradas */
.fila-1,
.fila-2,
.fila-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Fila 1: Solo Ingrup */
.fila-1 {
    gap: 0;
}

/* Fila 2: Wintym y Margarit */
.fila-2 {
    gap: 60px;
}

/* Fila 3: Ayuntamientos y Federación */
.fila-3 {
    gap: 30px;
}

/* ===== ESTILOS BASE PARA TODAS LAS IMÁGENES ===== */
.container img {
    border-radius: 15px;
    padding: 10px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.15),
        0 5px 10px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente */
    
    /* Animación inicial */
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: fadeInUpScale 1s ease-out forwards;
}

/* Efectos hover para todas las imágenes */
.container img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(76, 175, 80, 0.3),
        0 10px 20px rgba(0,0,0,0.2),
        0 0 20px rgba(76, 175, 80, 0.25);
    border: 2px solid rgba(76, 175, 80, 0.6);
    background: rgba(255, 255, 255, 1); /* Fondo blanco sólido en hover */
}

/* ===== TAMAÑOS POR FILA ===== */

/* FILA 1: INGRUP - El más grande */
.fila-1 img {
    width: 400px;
    height: 200px;
    animation-delay: 0.2s;
    
    /* Estilo especial para el principal */
    border: 3px solid rgba(76, 175, 80, 0.4);
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.2),
        0 8px 15px rgba(0,0,0,0.15),
        0 0 15px rgba(76, 175, 80, 0.3);
}

.fila-1 img:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 
        0 25px 50px rgba(76, 175, 80, 0.4),
        0 15px 30px rgba(0,0,0,0.25),
        0 0 25px rgba(76, 175, 80, 0.5);
    border: 3px solid rgba(76, 175, 80, 0.8);
}

/* FILA 2: WINTYM Y MARGARIT - Medianos */
.fila-2 img {
    width: 280px;
    height: 140px;
}

.fila-2 img:nth-child(1) { animation-delay: 0.4s; }
.fila-2 img:nth-child(2) { animation-delay: 0.6s; }

/* FILA 3: AYUNTAMIENTOS Y FEDERACIÓN - Pequeños */
.fila-3 img {
    width: 180px;
    height: 90px;
}

.fila-3 img:nth-child(1) { animation-delay: 0.8s; }
.fila-3 img:nth-child(2) { animation-delay: 1.0s; }
.fila-3 img:nth-child(3) { animation-delay: 1.2s; }
.fila-3 img:nth-child(4) { animation-delay: 1.4s; }
.fila-3 img:nth-child(5) { animation-delay: 1.6s; }

/* ===== ANIMACIONES ===== */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotate(-3deg);
    }
    60% {
        transform: translateY(-5px) scale(1.02) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .fila-1 img {
        width: 360px;
        height: 180px;
    }
    
    .fila-2 img {
        width: 250px;
        height: 125px;
    }
    
    .fila-3 img {
        width: 160px;
        height: 80px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .club-info h1 {
        font-size: 2em;
    }
    
    .club-logo {
        width: 70px;
        height: 70px;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .fila-1 img {
        width: 320px;
        height: 160px;
    }
    
    .fila-2 img {
        width: 220px;
        height: 110px;
    }
    
    .fila-3 img {
        width: 140px;
        height: 70px;
    }
}

/* Móviles y tablets pequeños (768px y menos) */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .club-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .club-logo {
        width: 60px;
        height: 60px;
    }
    
    .club-info h1 {
        font-size: 1.8em;
    }

    /* NAVBAR RESPONSIVE - GRID PARA 10 ELEMENTOS */
    .nav-menu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        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: 65px !important;
        align-items: center !important;
    }
    
    .nav-link i {
        font-size: 1.2em !important;
        min-width: auto !important;
    }
    
    .nav-link span {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    /* COLABORADORES EN MÓVIL - MANTENER ESTRUCTURA PIRÁMIDE */
    .container {
        padding: 40px 15px;
        gap: 30px;
    }
    
    .fila-2 {
        gap: 20px;
    }
    
    .fila-3 {
        gap: 15px;
    }
    
    .fila-1 img {
        width: 280px;
        height: 140px;
    }
    
    .fila-2 img {
        width: 200px;
        height: 100px;
    }
    
    .fila-3 img {
        width: 140px;
        height: 70px;
    }
    
    /* En móvil, la fila 3 puede hacer wrap si es necesario */
    .fila-3 {
        max-width: 100%;
    }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6em;
    }
    
    .club-info h1 {
        font-size: 1.5em;
    }
    
    .club-logo {
        width: 50px;
        height: 50px;
    }
    
    .nav-container {
        padding: 0 8px;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 5px !important;
    }
    
    .nav-link {
        padding: 10px 6px !important;
        font-size: 12px !important;
        min-height: 60px !important;
    }
    
    .nav-link span {
        font-size: 11px !important;
    }
    
    .nav-link i {
        font-size: 1.1em !important;
    }
    
    /* Logos más pequeños en móvil pequeño */
    .container {
        padding: 30px 10px;
        gap: 25px;
    }
    
    .fila-1 img {
        width: 240px;
        height: 120px;
    }
    
    .fila-2 img {
        width: 160px;
        height: 80px;
    }
    
    .fila-3 img {
        width: 120px;
        height: 60px;
    }
    
    /* En móviles pequeños, ajustar gaps */
    .fila-2 {
        gap: 15px;
    }
    
    .fila-3 {
        gap: 10px;
        max-width: 320px;
    }
}

/* Móviles muy pequeños (360px y menos) */
@media (max-width: 360px) {
    .header-content h1 {
        font-size: 1.4em;
    }
    
    .club-info h1 {
        font-size: 1.3em;
    }
    
    .club-logo {
        width: 45px;
        height: 45px;
    }
    
    .nav-menu {
        gap: 6px !important;
        padding: 0 3px !important;
    }
    
    .nav-link {
        padding: 8px 4px !important;
        font-size: 11px !important;
        min-height: 55px !important;
    }
    
    .nav-link span {
        font-size: 10px !important;
    }
    
    .nav-link i {
        font-size: 1em !important;
    }
    
    /* Logos aún más pequeños en móviles muy pequeños */
    .fila-1 img {
        width: 200px;
        height: 100px;
    }
    
    .fila-2 img {
        width: 140px;
        height: 70px;
    }
    
    .fila-3 img {
        width: 100px;
        height: 50px;
    }
    
    /* Gaps más pequeños para móviles muy pequeños */
    .fila-2 {
        gap: 10px;
    }
    
    .fila-3 {
        gap: 8px;
        max-width: 280px;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .club-logo:hover,
    .container img:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* Soporte para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .club-logo,
    .container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .club-logo,
    .nav-link,
    .container img {
        transition: none !important;
        animation: none !important;
    }
    
    .container img {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .club-logo:hover,
    .nav-link:hover,
    .container img:hover {
        transform: none !important;
    }
}