:root {
    --bg-main: #F7F8FA;
    --surface-white: #FFFFFF;
    --border-subtle: #E5E8EE;
    --border-hover: #D0D5DD;
    
    --text-primary: #172033;
    --text-secondary: #526174;
    --text-muted: #687386;
    
    /* Color de Marca Cristancho Play */
    --magenta-brand: #83328A;
    --magenta-soft: #F5EBF6;
    --magenta-glow: rgba(131, 50, 138, 0.15);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.m-app {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header Superior */
.m-header {
    height: 64px;
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.m-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-header__logo-dot {
    width: 7px;
    height: 7px;
    background-color: var(--magenta-brand);
    border-radius: 50%;
}

.m-header__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.m-btn-profile {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m-btn-profile:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-main);
}

.m-btn-profile__avatar {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--magenta-brand);
}

.m-btn-profile__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Layout Principal */
.m-body {
    display: flex;
    flex: 1;
}

/* Menú Lateral */
.m-sidebar {
    width: 240px;
    background-color: var(--surface-white);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.m-sidebar__section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.m-btn-add-sidebar {
    width: 100%;
    background: var(--surface-white);
    border: 1px dashed var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.m-btn-add-sidebar:hover {
    border-color: var(--magenta-brand);
    color: var(--magenta-brand);
    background-color: var(--magenta-soft);
}

.m-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.m-nav-item--active {
    background-color: var(--magenta-soft);
    color: var(--magenta-brand);
    font-weight: 600;
}

.m-nav-item__indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--magenta-brand);
}

/* Área Central */
.m-workspace {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Encabezado Pizarra */
.m-workspace__welcome {
    margin-bottom: 4px;
}

.m-workspace__greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.m-workspace__subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pizarra Principal */
.m-board {
    flex: 1;
    min-height: 340px;
    background-color: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.m-board__add-btn {
    background-color: var(--magenta-brand);
    color: #FFFFFF;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--magenta-glow);
    transition: all 0.2s ease;
}

.m-board__add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(131, 50, 138, 0.25);
}

/* Espacios Inferiores */
.m-spaces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.m-space-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    height: 140px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.m-space-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.m-space-card__title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.m-space-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-btn-add-card {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px dashed var(--border-subtle);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.m-btn-add-card:hover {
    border-color: var(--magenta-brand);
    color: var(--magenta-brand);
    background-color: var(--magenta-soft);
}

/* Responsive */
@media (max-width: 900px) {
    .m-body {
        flex-direction: column;
    }

    .m-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .m-workspace {
        padding: 20px;
    }

    .m-spaces-grid {
        grid-template-columns: 1fr;
    }
}
