.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: var(--background-card);
    border-radius: 20px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    text-align: center;
}

.header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}



/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--background-card);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-panel, .research-panel {
    background: var(--background-card);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 20px;
}

.filter-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    background: var(--background-light);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-option span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Communities Section */
.communities-section {
    background: var(--background-card);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.community-card {
    background: var(--background-light);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-card:hover {
    background: #f3f4f6;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, transparent 30%, rgba(79, 70, 229, 0.1) 100%);
}

.community-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.community-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.community-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tag.local {
    background: #c6f6d5;
    color: #2f855a;
}

.tag.global {
    background: #fed7d7;
    color: #c53030;
}

.tag.networking {
    background: #bee3f8;
    color: #2c5282;
}

.tag.formacion {
    background: #fbb6ce;
    color: #97266d;
}

.tag.emprendimiento {
    background: #fde68a;
    color: #92400e;
}

.tag.eventos {
    background: #e9d5ff;
    color: #7c3aed;
}

.tag.tecnologia {
    background: #d1fae5;
    color: #065f46;
}

.tag.mentoring {
    background: #fecaca;
    color: #991b1b;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.community-link:hover {
    color: #3730a3;
    transform: translateX(3px);
}

/* Research Panel */
.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* No Results */
.no-results {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 50px;
    padding: 40px;
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}



       
       
        
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 2.5em;
            font-weight: 700;
        }
        
        .subtitle {
            text-align: center;
            color: #7f8c8d;
            margin-bottom: 40px;
            font-size: 1.2em;
        }
        
        .controls {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .controls button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            margin: 0 10px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .controls button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }
        
        .timeline {
            position: relative;
            max-width: 90%;
            margin: 0 auto;
            
        }
        
        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background: linear-gradient(to bottom, #667eea, #764ba2);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
            z-index: -1;
        }
        
        .timeline-item {
            padding: 20px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            opacity: 0;
            animation: fadeInUp 0.6s ease-out forwards;
        }
        
        .timeline-item:nth-child(odd) {
            animation-delay: calc(var(--index) * 0.1s);
        }
        
        .timeline-item:nth-child(even) {
            animation-delay: calc(var(--index) * 0.1s);
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .timeline-item.left {
            left: 0;
        }
        
        .timeline-item.right {
            left: 50%;
        }
        
        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: 3px solid white;
            top: 25px;
            border-radius: 50%;
            z-index: 1;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        
        .timeline-item.right::after {
            left: -10px;
        }
        
        .content {
            padding: 25px;
            background: white;
            position: relative;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 5px solid #667eea;
        }
        
        .content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }
        
        .content.expanded {
            transform: scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            border-left-color: #764ba2;
        }
        
        
        
        
        
        .badge {
            display: inline-block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
            margin-right: 10px;
            margin-bottom: 8px;
        }
        
        .highlight {
            background: linear-gradient(120deg, #ffeaa7 0%, #fab1a0 100%);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
        }
        
        @media screen and (max-width: 768px) {
            .timeline::after {
                left: 20px;
            }
            
            .timeline-item {
                width: 100%;
                padding-left: 50px;
                padding-right: 25px;
            }
            
            .timeline-item.right {
                left: 0%;
            }
            
            .timeline-item::after {
                left: 10px;
            }
            
            .content {
                padding: 20px;
            }
            
            h1 {
                font-size: 2em;
            }
        }
        
        .decade-marker {
            font-size: 1.5em;
            font-weight: bold;
            color: #764ba2;
            margin: 40px 0 20px 0;
            position: relative;
        }
        

    
/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .community-card {
        padding: 20px;
    }

    .filter-panel, .research-panel {
        padding: 20px;
    }
}