/* =========================================
   SPACES (Distribución de la Villa - Tabs)
   ========================================= */
.spaces {
    background: var(--color-bg-alt, #f8f9fa);
}

.spaces .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.spaces .section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.spaces .section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light, #666);
    max-width: 600px;
    margin: 0 auto;
}

.tabs__nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tabs__content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text, #333);
    margin: 0;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .spaces .section-header h2 { font-size: 2rem; }
    .tabs__nav { gap: 0.5rem; }
    .tab-btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .tabs__content { padding: 2rem 1.5rem; }
    .tab-panel p { font-size: 1rem; }
}