@charset "utf-8";

:root {
    --primary: #8A0303;
    --primary-dark: #5C0202;
    --text: #1A1A1A;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --transition: 0.28s ease;
}

/* Evitar scroll horizontal */
body {
    overflow-x: hidden;
}

/* CABECERA */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 32px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* MENÚ ESCRITORIO */
.nav-desktop a {
    margin: 0 16px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-desktop a:hover {
    color: var(--primary);
}

@media (max-width: 840px) {
    .nav-desktop { display: none !important; }
}

/* HAMBURGUESA */
#hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

#hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 840px) {
    #hamburger { display: flex; }
}

/* MENÚ MÓVIL */
#mobilePanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: var(--transition);
    padding: 40px 20px;
    z-index: 9998;
}

#mobilePanel.mobile-open {
    transform: translateX(0);
}

#mobilePanel a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }
}
