:root {
    --dark-red: #3F070B;
    --deep-crimson: #710A14;
    --dark-burgundy: #180605;
    --dusty-rose: #818582;
    --rustic-red: #8F3C45;
}

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    font-family: 'Montserrat', sans-serif;
    color: #1e1e1e;
}

.site-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
}

.overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* Botón hamburguesa */
.menu-toggle {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    width: 45px;
    height: 45px;
    background: var(--deep-crimson);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: var(--rustic-red);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-red) 0%, var(--deep-crimson) 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar.abierto {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
}

.logo {
    filter: brightness(0) invert(1);
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-menu:hover {
    background: rgba(255,255,255,0.2);
}

/* Menú navegación */
.menu-nav {
    padding: 1rem;
}

.menu-section {
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
}

.menu-title {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.menu-title:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--dusty-rose);
}

.menu-title span {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.menu-section.expanded .menu-title span {
    transform: rotate(180deg);
}

.menu-links {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.menu-section.expanded .menu-links {
    max-height: 300px;
}

.menu-links a {
    display: block;
    padding: 0.8rem 1rem 0.8rem 2rem;
    color: var(--dark-burgundy);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.menu-links a:hover {
    background: #f5e6e6;
    border-left-color: var(--deep-crimson);
    padding-left: 2.5rem;
}

/* Previas */
.menu-title.previas {
    background: var(--rustic-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Redes sociales en sidebar */
.sidebar-social {
    display: none;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .sidebar-social {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .social-link {
        color: white;
        text-decoration: none;
        font-weight: 600;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
        font-size: 0.9rem;
    }
}