/* =====================================================
   TORNEOS_NACIONALES.CSS - PÁGINA DE TORNEOS NACIONALES
   Asociación de Dodgeball Jalisco
   
   PROPÓSITO:
   Estilos para la página de Torneos Nacionales con
   imagen destacada y secciones informativas.
   
   TABLA DE CONTENIDOS:
   1. Contenedor Principal
   2. Título de Página
   3. Contenedor de Imagen
   4. Sección de Información
   5. Grid de Categorías
   6. Botones de Navegación
   7. Responsive Design
===================================================== */


/* =====================================================
   1. CONTENEDOR PRINCIPAL
   Layout base de la página
===================================================== */
.main-content {
    flex: 1;
    padding: 140px 0 60px;
}


/* =====================================================
   2. TÍTULO DE PÁGINA
   Título principal centrado
===================================================== */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto 0;
    border-radius: 2px;
}


/* =====================================================
   3. CONTENEDOR DE IMAGEN
   Contenedor centrado para la imagen principal
===================================================== */
.image-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   4. SECCIÓN DE INFORMACIÓN
   Información textual y descriptiva
===================================================== */
.info-section {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

.info-section h2::after {
    content: '';
    display: block;
    max-width: 400px;
    height: 4px;
    background: var(--greenlogo);
    margin: 20px auto 0;
    border-radius: 2px;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}


/* =====================================================
   5. GRID DE CATEGORÍAS
   Tarjetas de categorías de torneos
===================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.3);
}

.category-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}


/* =====================================================
   6. BOTONES DE NAVEGACIÓN
   Contenedor de botones centrado
===================================================== */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
    padding: 20px 0;
}


/* =====================================================
   7. RESPONSIVE DESIGN
   Adaptaciones para diferentes tamaños de pantalla
===================================================== */

/* ----- Tablets (≤768px) ----- */
@media (max-width: 768px) {
    
    /* --- Título --- */
    .page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* --- Contenedor de Imagen --- */
    .image-container {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    /* --- Sección de Info --- */
    .info-section {
        padding: 30px 20px;
    }

    .info-section h2 {
        font-size: 1.6rem;
    }

    .info-section p {
        font-size: 1rem;
    }

    /* --- Grid de Categorías --- */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- Iconos --- */
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .category-card p {
        font-size: 0.95rem;
    }
}

/* ----- Móviles (≤576px) ----- */
@media (max-width: 576px) {
    
    /* --- Título --- */
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* --- Contenedor de Imagen --- */
    .image-container {
        margin-bottom: 30px;
    }

    /* --- Sección de Info --- */
    .info-section {
        padding: 25px 15px;
    }

    .info-section h2 {
        font-size: 1.4rem;
    }

    /* --- Iconos --- */
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }
}


/* =====================================================
   FIN DE TORNEOS_NACIONALES.CSS
===================================================== */