/*
* resultats.css
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #42A8E8;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 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;
}

.header-content h3 {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

.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: #42A8E8;
    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;
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1400px;
    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(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    align-items: stretch;
}

.category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 2px solid rgba(66, 168, 232, 0.3);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.category h2 {
    color: #42A8E8;
    font-size: 1.2em;
    margin: 0;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

/* ===== COLORES ESPECÍFICOS PARA LAS CATEGORÍAS ===== */

/* PRE-MINI FEMENÍ D (amarillo #FFFF00) - TEXTO NEGRO */
.color-pre-mini-femeni-d {
    background: #FFFF00 !important;
    color: #000 !important;
}

.color-pre-mini-femeni-d::before {
    background: #FFD700 !important;
}

.color-pre-mini-femeni-d h2,
.color-pre-mini-femeni-d .stat-number,
.color-pre-mini-femeni-d .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-pre-mini-femeni-d:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(255, 255, 0, 0.4);
}

.color-pre-mini-femeni-d .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* PRE-MINI MASCULÍ D1 (rojo #FF0000) - TEXTO BLANCO */
.color-pre-mini-masculi-d1 {
    background: #FF0000 !important;
    color: #fff !important;
}

.color-pre-mini-masculi-d1::before {
    background: #FF6B6B !important;
}

.color-pre-mini-masculi-d1 h2,
.color-pre-mini-masculi-d1 .stat-number,
.color-pre-mini-masculi-d1 .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-pre-mini-masculi-d1:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.4);
}

.color-pre-mini-masculi-d1 .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

/* PRE-MINI MASCULÍ D2 (verde #6AA84F) - TEXTO NEGRO */
.color-pre-mini-masculi-d2 {
    background: #6AA84F !important;
    color: #000 !important;
}

.color-pre-mini-masculi-d2::before {
    background: #81C784 !important;
}

.color-pre-mini-masculi-d2 h2,
.color-pre-mini-masculi-d2 .stat-number,
.color-pre-mini-masculi-d2 .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-pre-mini-masculi-d2:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(106, 168, 79, 0.4);
}

.color-pre-mini-masculi-d2 .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* MINI MASCULÍ C2 (azul claro #83CAFF) - TEXTO NEGRO */
.color-mini-masculi-c2 {
    background: #83CAFF !important;
    color: #000 !important;
}

.color-mini-masculi-c2::before {
    background: #B3E5FC !important;
}

.color-mini-masculi-c2 h2,
.color-mini-masculi-c2 .stat-number,
.color-mini-masculi-c2 .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-mini-masculi-c2:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(131, 202, 255, 0.4);
}

.color-mini-masculi-c2 .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* MINI MASCULÍ D1 (naranja #FF950E) - TEXTO NEGRO */
.color-mini-masculi-d1 {
    background: #FF950E !important;
    color: #000 !important;
}

.color-mini-masculi-d1::before {
    background: #FFB74D !important;
}

.color-mini-masculi-d1 h2,
.color-mini-masculi-d1 .stat-number,
.color-mini-masculi-d1 .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-mini-masculi-d1:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(255, 149, 14, 0.4);
}

.color-mini-masculi-d1 .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* INFANTIL MASCULÍ D (morado oscuro #4B1F6F) - TEXTO BLANCO */
.color-infantil-masculi-d {
    background: #4B1F6F !important;
    color: #fff !important;
}

.color-infantil-masculi-d::before {
    background: #7E57C2 !important;
}

.color-infantil-masculi-d h2,
.color-infantil-masculi-d .stat-number,
.color-infantil-masculi-d .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-infantil-masculi-d:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(75, 31, 111, 0.4);
}

.color-infantil-masculi-d .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

/* INFANTIL MASCULÍ B (azul #0084D1) - TEXTO BLANCO */
.color-infantil-masculi-b {
    background: #006caa !important;
    color: #fff !important;
}

.color-infantil-masculi-b::before {
    background: #42A5F5 !important;
}

.color-infantil-masculi-b h2,
.color-infantil-masculi-b .stat-number,
.color-infantil-masculi-b .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-infantil-masculi-b:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0, 132, 209, 0.4);
}

.color-infantil-masculi-b .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

/* CADET MASCULÍ C1 (magenta #EF18EE) - TEXTO BLANCO */
.color-cadet-masculi-c1 {
    background: #EF18EE !important;
    color: #fff !important;
}

.color-cadet-masculi-c1::before {
    background: #F48FB1 !important;
}

.color-cadet-masculi-c1 h2,
.color-cadet-masculi-c1 .stat-number,
.color-cadet-masculi-c1 .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-cadet-masculi-c1:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(239, 24, 238, 0.4);
}

.color-cadet-masculi-c1 .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

/* CADET MASCULÍ C2 (casi negro #020000) - TEXTO BLANCO */
.color-cadet-masculi-c2 {
    background: #020000 !important;
    color: #fff !important;
}

.color-cadet-masculi-c2::before {
    background: #424242 !important;
}

.color-cadet-masculi-c2 h2,
.color-cadet-masculi-c2 .stat-number,
.color-cadet-masculi-c2 .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-cadet-masculi-c2:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(66, 66, 66, 0.4);
}

.color-cadet-masculi-c2 .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

/* CADET MASCULÍ D1 (verde lima #AECF00) - TEXTO NEGRO */
.color-cadet-masculi-d1 {
    background: #AFACAC !important;
    color: #000 !important;
}

.color-cadet-masculi-d1::before {
    background: #BDBDBD !important;
}

.color-cadet-masculi-d1 h2,
.color-cadet-masculi-d1 .stat-number,
.color-cadet-masculi-d1 .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-cadet-masculi-d1:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(175, 172, 172, 0.4);
}

.color-cadet-masculi-d1 .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* CADET MASCULÍ D2 (gris claro #AFACAC) - TEXTO NEGRO */
.color-cadet-masculi-d2 {
    background: #AECF00 !important;
    color: #000 !important;
}

.color-cadet-masculi-d2::before {
    background: #C0D725 !important;
}

.color-cadet-masculi-d2 h2,
.color-cadet-masculi-d2 .stat-number,
.color-cadet-masculi-d2 .stat-label {
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.color-cadet-masculi-d2:hover {
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(174, 207, 0, 0.4);
}

.color-cadet-masculi-d2 .stat-item {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #000;
}

/* CADET FEMENÍ D (fucsia oscuro #A20962) - TEXTO BLANCO */
.color-cadet-femeni-d {
    background: #A20962 !important;
    color: #fff !important;
}

.color-cadet-femeni-d::before {
    background: #E91E63 !important;
}

.color-cadet-femeni-d h2,
.color-cadet-femeni-d .stat-number,
.color-cadet-femeni-d .stat-label {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.color-cadet-femeni-d:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(162, 9, 98, 0.4);
}

.color-cadet-femeni-d .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
}

.category-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #42A8E8;
    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 ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays escalonados para la animación */
.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; }

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .category {
        padding: 15px;
    }
    
    .page-title h2 {
        font-size: 2.2em;
    }
    
    .category h2 {
        font-size: 1.4em;
    }
}

/* 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;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .category {
        padding: 15px;
    }
    
    .page-title h2 {
        font-size: 2em;
    }
    
    .category h2 {
        font-size: 1.3em;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
}

/* 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;
    }

    .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;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category {
        padding: 10px;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .page-title h2 {
        font-size: 1.8em;
    }
    
    .page-title p {
        font-size: 1em;
    }
    
    .category h2 {
        font-size: 1.2em;
    }
    
    .stat-number {
        font-size: 1.6em;
    }
}

/* 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;
    }
    
    .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;
    }
    
    .category {
        padding: 12px;
    }
    
    .category h2 {
        font-size: 1.1em;
    }
    
    .stat-number {
        font-size: 1.4em;
    }
    
    .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) {
    .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;
    }
    
    .category {
        padding: 15px;
    }
    
    .category h2 {
        font-size: 1em;
    }
    
    .stat-number {
        font-size: 1.2em;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .club-logo:hover,
    .category:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .club-logo,
    .category {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}