/* ===== ESTILOS MOBILE-FIRST PARA VISTA PÚBLICA ===== */

/* Reset y configuración base */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ===== HERO SECTION - MOBILE FIRST ===== */

.hero-section-enhanced {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/images/hero/football-stadium.jpg'), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.hero-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

.hero-section-enhanced .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section-enhanced .row {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section-enhanced .col-lg-8 {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    align-self: center;
}

/* Hero Title */
.hero-title-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    align-self: center;
}

.hero-title-enhanced .text-gradient {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle-enhanced {
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    align-self: center;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.btn-hero-primary {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    min-width: 200px;
    justify-content: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.6);
    color: white;
    text-decoration: none;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    min-width: 120px;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== GRIDS PARA TODAS LAS SECCIONES ===== */

/* Grid de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-card-wrapper {
    width: 100%;
}

/* Grid de Torneos */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tournament-card-wrapper {
    width: 100%;
}

/* Grid de Juegos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.game-card-wrapper {
    width: 100%;
}

/* Grid de Goleadores */
.scorers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.scorer-card-wrapper {
    width: 100%;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile Small (320px - 575px) */
@media (max-width: 575.98px) {
    .hero-title-enhanced {
        font-size: 2rem;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: 180px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat {
        min-width: 100px;
        padding: 1rem 0.75rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    /* Grids responsive para móvil pequeño */
    .news-grid,
    .tournaments-grid,
    .games-grid,
    .scorers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Mobile Medium (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title-enhanced {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: 160px;
    }
    
    /* Grids responsive para móvil medio */
    .news-grid,
    .tournaments-grid,
    .games-grid,
    .scorers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title-enhanced {
        font-size: 3rem;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 2.5rem;
    }
    
    /* Grids responsive para tablet */
    .news-grid,
    .tournaments-grid,
    .games-grid,
    .scorers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .hero-section-enhanced {
        padding: 3rem 2rem;
    }
    
    .hero-title-enhanced {
        font-size: 3.5rem;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 2rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: 220px;
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 3rem;
    }
    
    .hero-stat {
        min-width: 140px;
        padding: 2rem 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    /* Grids responsive para desktop */
    .news-grid,
    .tournaments-grid,
    .games-grid,
    .scorers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ===== UTILITIES ===== */

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.g-4 {
    gap: 1.5rem !important;
}

/* ===== ANIMACIONES ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== CORRECCIONES PARA COLUMNAS EN DESKTOP ===== */

/* Forzar columnas en desktop para todas las vistas */
@media (min-width: 992px) {
    /* ESTADÍSTICAS - FORZAR 4 COLUMNAS */
    .stats-section-enhanced .row .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
    
    /* TORNEOS - FORZAR 3 COLUMNAS */
    .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    /* Vista específica de Torneos Públicos */
    .tournaments-wrapper .row .col-lg-4,
    .tournaments-container .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    /* Vista de Equipos */
    .teams-grid-section .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    /* Vista de Goleadores */
    .scorers-section .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    /* Vista de Noticias */
    .news-section .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    /* Vista de Calendario */
    .calendar-section .row .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

/* Asegurar que las filas tengan el ancho correcto */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Asegurar que las columnas tengan el padding correcto */
.col-lg-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
