:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.7);
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f1f5f9;
}

.nav-item.active {
    background-color: #eff6ff;
    color: var(--primary);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 4rem 10% 4rem 10%;
}

.lang-switch {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 0.4rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.lang-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-info i {
    color: #3b82f6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ef4444;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 6rem 5% 4rem 5%;
    }

    .lang-switch {
        right: 5%;
    }
}

[lang="es"] {
    display: none;
}

.lang-es [lang="fr"] {
    display: none;
}

.lang-es [lang="es"] {
    display: block;
}

/* --- NEW UTILITIES FOR INLINE STYLE REMOVAL --- */
.mb-2rem { margin-bottom: 2rem !important; }
.mt-1rem { margin-top: 1rem !important; }
.mt-1-5rem { margin-top: 1.5rem !important; }
.mt-5rem { margin-top: 5rem !important; }
.mt-2rem { margin-top: 2rem !important; }
.mb-1-5rem { margin-bottom: 1.5rem !important; }
.mb-1rem { margin-bottom: 1rem !important; }
.border-left-5 { border-left: 5px solid var(--primary) !important; }
.border-top-4-indigo { border-top: 4px solid #6366f1 !important; }
.list-none { list-style: none !important; }
.p-left-0 { padding-left: 0 !important; }
.br-50p { border-radius: 50% !important; }
.bg-amber-100 { background: #fffbeb !important; }
.border-amber-200 { border: 1px solid #fef3c7 !important; }
.p-02-06 { padding: 0.2rem 0.6rem !important; }
.m-right-05 { margin-right: 0.5rem !important; }
.p-top-2rem { padding-top: 2rem !important; }
.border-top-1 { border-top: 1px solid var(--border) !important; }
