/* ========================================
   ESTILOS - PÁGINA EVENTOS
   ======================================== */

/* Colores específicos para eventos */
.page-header-stat i {
    color: var(--secondary-500);
}

/* Filtros */
.events-filters {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 5rem;
    z-index: 40;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-shadow: var(--shadow-sm);
}

.events-filters-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Fila de filtros */
.events-filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.events-filters-advanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Dropdown filtros */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    height: 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-dropdown-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.filter-dropdown--open .filter-dropdown-btn {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.filter-dropdown-btn i:first-child {
    font-size: 1rem;
    color: var(--gray-400);
}

.filter-dropdown--open .filter-dropdown-btn i:first-child {
    color: var(--primary-500);
}

.filter-dropdown-btn i:last-child {
    font-size: 1.1rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.filter-dropdown--open .filter-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

/* Menú dropdown */
.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
}

.filter-dropdown--open .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-dropdown-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.filter-dropdown-item--active {
    background: var(--primary-50);
    color: var(--primary-600);
    font-weight: 500;
}

.filter-dropdown-item--active:hover {
    background: var(--primary-100);
}

.filter-dropdown-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.filter-dropdown-btn i:first-child {
    font-size: 1rem;
    color: var(--gray-400);
}

.filter-dropdown-btn i:last-child {
    font-size: 1.1rem;
    margin-left: 0.25rem;
}

/* Checkbox filtro */
.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox-mark {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox input:checked + .filter-checkbox-mark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.filter-checkbox input:checked + .filter-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox:hover .filter-checkbox-mark {
    border-color: var(--primary-400);
}

/* Acciones (ordenar) */
.events-filters-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.filter-sort-select {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.filter-sort-select:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Responsive filtros */
@media (max-width: 1023px) {
    .events-filters {
        display: none;
    }
}

/* Events Section */
.events-section {
    padding: 2rem 0;
    background: var(--gray-50);
}

.events-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Grid de eventos */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Promo card dentro del grid de eventos */
.promo-card--event {
    background: var(--gray-200);
    aspect-ratio: 3/3.3;
}

/* Banner promo horizontal */
.events-promo-banner {
    margin-top: 2rem;
}

.promo-card--banner {
    display: block;
    aspect-ratio: 21 / 6;
    background: var(--gray-200);
}

@media (max-width: 640px) {
    .promo-card--banner {
        aspect-ratio: 16 / 9;
    }
}

/* Load More */
.events-load-more {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   TIPOGRAFÍA BASE (Mobile first)
   ======================================== */
.page-header-title {
    font-size: 1.75rem;
}

.page-header-subtitle {
    font-size: 0.9375rem;
}

.page-header-stats {
    font-size: 0.75rem;
}

.section-title {
    font-size: 1.25rem;
}

.section-subtitle {
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
    .events-section {
        padding: 3rem 0;
    }
    
    /* Tipografía */
    .page-header-title {
        font-size: 2.25rem;
    }
    
    .page-header-subtitle {
        font-size: 1rem;
    }
    
    .page-header-stats {
        font-size: 0.8125rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
}

@media (min-width: 768px) {
    /* Tipografía */
    .page-header-title {
        font-size: 2.5rem;
    }
    
    .page-header-subtitle {
        font-size: 1.0625rem;
    }
    
    .page-header-stats {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .events-filters {
        padding: 1rem 2rem;
    }
    
    .events-section {
        padding: 3rem 0;
    }
    
    /* Tipografía */
    .page-header-title {
        font-size: 3rem;
    }
    
    .page-header-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
}
    
