:root {
    --header-green: #1f5c42;
    --header-green-dark: #174a35;

    --header-red: #6B1E11;

    --header-text: #1f2937;
    --header-bg: #f4f7f5;

    --sidebar-width: 280px;
    --sidebar-collapsed: 90px;
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--header-bg);
    font-family: Arial, sans-serif;
}

/* LAYOUT */
.site-layout {
    display: flex;
}

.site-content-wrapper {
    margin-left: var(--sidebar-width);
    width: 100%;
    min-height: 100vh;
    transition: 0.3s ease;
}

body.sidebar-collapsed .site-content-wrapper {
    margin-left: var(--sidebar-collapsed);
}

/* SIDEBAR */
.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;

    background: linear-gradient(180deg, var(--header-green) 0%, var(--header-green-dark) 100%);
    color: #fff;

    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;

    transition: 0.3s ease;

    /* SIN SCROLL */
    overflow: hidden;
}

/* COLAPSADO */
body.sidebar-collapsed .site-sidebar {
    width: var(--sidebar-collapsed);
}

/* TOP */
.site-sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    width: 55px;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-text strong {
    font-size: 14px;
}

.site-logo-text span {
    font-size: 12px;
    opacity: 0.8;
}

/* BOTÓN */
.sidebar-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

/* NAV */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    transition: 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

/* FOOTER SIDEBAR */
.site-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.sidebar-social {
    display: flex;
    gap: 8px;
}

.sidebar-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   MODO COLAPSADO LIMPIO
========================= */
body.sidebar-collapsed .site-logo-text,
body.sidebar-collapsed .sidebar-nav span,
body.sidebar-collapsed .site-sidebar-bottom {
    display: none;
}

body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
}

/* =========================
   MOBILE
========================= */
.site-topbar-mobile {
    display: none;
}

@media (max-width: 992px) {

    .site-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    body.sidebar-mobile-open .site-sidebar {
        transform: translateX(0);
    }

    .site-content-wrapper {
        margin-left: 0;
    }

    .site-topbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--header-red);
        color: #fff;
        padding: 12px 16px;
    }

    .mobile-menu-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }
}