/* 
 * reglament.css - Liga 3x3 2025
 * Estilos para el reglamento del torneig
 * ACTUALIZADO: Navbar con 6 elementos
 */

* {
    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;
    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; /* Título en negro */
}

.header-content h3 {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

.basketball-icon {
    font-size: 2em;
    margin: 0 20px;
    animation: bounce 2s infinite;
}

.club-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px 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);
    animation: bounce 2s infinite;
}

.club-logo:hover {
    animation: none;
    transform: scale(1.1);
}

/* Ajustar el título del club */
.club-info h1 {
    margin: 0;
    font-size: 2.5em;
    color: #000; /* También en negro */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* NAVEGACIÓN - ACTUALIZADA 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;
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1000px;
    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;
}

/* HEADER DEL REGLAMENTO */
.regulation-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #4CAF50;
}

.regulation-header h1 {
    font-size: 2.2em;
    color: #2E7D32;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.regulation-header h2 {
    font-size: 1.5em;
    color: #4CAF50;
    font-weight: 600;
    font-style: italic;
}

/* SECCIONES */
.rules-section,
.warning-section,
.info-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rules-section h3,
.warning-section h3,
.info-section h3 {
    color: #2E7D32;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rules-section h3 i,
.warning-section h3 i,
.info-section h3 i {
    color: #4CAF50;
    font-size: 1.2em;
}

/* REGLAS INDIVIDUALES */
.rule-item {
    display: flex;
    align-items: center; /* Cambiado de flex-start a center para centrar verticalmente */
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left-color: #2E7D32;
}

.rule-number {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.rule-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.rule-content strong {
    color: #2E7D32;
    font-weight: 700;
}

/* SUB-REGLAS */
.sub-rules {
    margin-top: 10px;
    margin-left: 20px;
    list-style: none;
}

.sub-rules li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #555;
}

.sub-rules li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

/* PUNTOS DESTACADOS */
.points {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
}

/* SECCIÓN DE ADVERTENCIA */
.warning-section {
    border: 3px solid #FF5722;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(255, 255, 255, 0.95));
}

.warning-section h3 {
    color: #D32F2F;
}

.warning-section h3 i {
    color: #FF5722;
}

.warning-content {
    background: rgba(255, 87, 34, 0.1);
    border: 2px solid #FF5722;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.warning-content p {
    font-size: 1.1em;
    font-weight: 600;
    color: #D32F2F;
    text-align: center;
    line-height: 1.5;
}

/* SECCIÓN DE INFORMACIÓN */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #E3F2FD, #ffffff);
    border-radius: 10px;
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(33, 150, 243, 0.2);
}

.info-item i {
    color: #2196F3;
    font-size: 1.5em;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.info-item span {
    font-size: 1.1em;
    line-height: 1.4;
}

.info-item.important {
    background: linear-gradient(135deg, #FFF3E0, #ffffff);
    border-left-color: #FF9800;
}

.info-item.important i {
    color: #FF9800;
}

.info-item.important span {
    color: #E65100;
    font-weight: 600;
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar delay a las animaciones */
.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }
.rule-item:nth-child(5) { animation-delay: 0.5s; }
.rule-item:nth-child(6) { animation-delay: 0.6s; }
.rule-item:nth-child(7) { animation-delay: 0.7s; }
.rule-item:nth-child(8) { animation-delay: 0.8s; }
.rule-item:nth-child(9) { animation-delay: 0.9s; }
.rule-item:nth-child(10) { animation-delay: 1.0s; }
.rule-item:nth-child(11) { animation-delay: 1.1s; }
.rule-item:nth-child(12) { animation-delay: 1.2s; }
.rule-item:nth-child(13) { animation-delay: 1.3s; }

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .page-title h2 {
        font-size: 2em;
    }
    
    .regulation-header h1 {
        font-size: 1.8em;
    }
    
    .regulation-header h2 {
        font-size: 1.3em;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .rule-number {
        font-size: 1.5em;
        width: 45px;
        height: 45px;
    }
    
    .rule-content {
        font-size: 1em;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .header-content h3 {
        font-size: 1.1em;
    }
    
    .basketball-icon {
        font-size: 1.5em;
        margin: 0 10px;
    }

    /* 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;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columnas para 6 elementos */
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 12px 8px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
    
    .page-title h2 {
        font-size: 1.8em;
    }
    
    .page-title p {
        font-size: 1em;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .rules-section,
    .warning-section,
    .info-section {
        padding: 20px;
    }
    
    .regulation-header {
        padding: 20px;
    }
    
    .regulation-header h1 {
        font-size: 1.5em;
    }
    
    .regulation-header h2 {
        font-size: 1.1em;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .rule-number {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6em;
    }
    
    .header-content h3 {
        font-size: 1em;
    }
    
    .basketball-icon {
        font-size: 1.2em;
        margin: 0 5px;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles muy pequeños */
        gap: 8px;
        padding: 0 5px;
    }
    
    .nav-link {
        padding: 10px 6px;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-link span {
        font-size: 11px;
    }
    
    .nav-link i {
        font-size: 1em;
    }
    
    .page-title h2 {
        font-size: 1.5em;
    }
    
    .rules-section h3,
    .warning-section h3,
    .info-section h3 {
        font-size: 1.4em;
        flex-direction: column;
        gap: 10px;
    }
    
    .rule-number {
        font-size: 1.3em;
        width: 40px;
        height: 40px;
    }
    
    .rule-content {
        font-size: 0.95em;
    }
    
    .warning-content p {
        font-size: 1em;
    }
    
    .info-item span {
        font-size: 1em;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .basketball-icon,
    .club-logo {
        animation: none;
    }
    
    .rule-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        transition: none !important;
    }
}