/* ========== VARIABLES CSS PROFESIONALES ========== */
:root {
    /* Paleta Corporativa Elegante */
    --header-bg: #0a0a0a;
    --header-bg-scroll: rgba(10, 10, 10, 0.98);
    --header-primary: #ffe927bb;        /* Dorado oscuro elegante */
    --header-accent: #1e3a5f;         /* Azul marino corporativo */
    --header-white: #FFFFFF;
    --header-gray: #E5E7EB;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET BÁSICO ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ========== HEADER PROFESIONAL ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== LOGO CORPORATIVO ELEGANTE ========== */
.header__logo {
    position: relative;
    z-index: 1001;
}

.header__logo a {
    color: var(--header-white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.header__logo a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--header-primary);
    transition: var(--transition);
}

.header__logo a:hover {
    color: var(--header-primary);
}

.header__logo a:hover::after {
    width: 100%;
}

/* ========== NAVEGACIÓN DESKTOP PROFESIONAL ========== */
.header__nav {
    display: none;
}

.header__list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header__link {
    color: var(--header-gray);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.header__link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--header-primary);
    transition: var(--transition);
}

.header__link:hover {
    color: var(--header-white);
    background: rgba(184, 134, 11, 0.08);
}

.header__link:hover::before {
    width: calc(100% - 40px);
}

.header__link--active {
    color: var(--header-white);
    background: rgba(184, 134, 11, 0.12);
}

.header__link--active::before {
    width: calc(100% - 40px);
}

/* ========== BOTÓN HAMBURGUESA MINIMALISTA ========== */
.header__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 1001;
}

.header__toggle:hover {
    background: rgba(184, 134, 11, 0.08);
}

.header__toggle-icon {
    width: 24px;
    height: 2px;
    background-color: var(--header-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* Animación hamburguesa activa */
.header__toggle.active .header__toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__toggle.active .header__toggle-icon:nth-child(2) {
    opacity: 0;
}

.header__toggle.active .header__toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== EFECTO SCROLL ELEGANTE ========== */
.scroll-header {
    background: var(--header-bg-scroll);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

/* ========== RESPONSIVE - TABLET Y DESKTOP ========== */
@media screen and (min-width: 768px) {
    .header__nav {
        display: block;
    }

    .header__toggle {
        display: none;
    }
}

/* ========== RESPONSIVE - MÓVIL ========== */
@media screen and (max-width: 767px) {
    .header__container {
        padding: 0 20px;
    }

    .header__logo a {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--header-bg);
        padding: 1.5rem 0;
        border-top: 1px solid rgba(184, 134, 11, 0.2);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        
        /* Oculto por defecto */
        display: none;
        opacity: 0;
        transform: translateY(-20px);
    }

    /* Mostrar menú móvil */
    .header__nav.show-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header__list {
        flex-direction: column;
        gap: 0;
    }

    .header__item {
        border-bottom: 1px solid rgba(184, 134, 11, 0.1);
        width: 100%;
    }

    .header__item:last-child {
        border-bottom: none;
    }

    .header__link {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        width: 100%;
    }

    .header__link::before {
        display: none;
    }

    .header__link:hover,
    .header__link--active {
        background: rgba(184, 134, 11, 0.1);
        border-left: 3px solid var(--header-primary);
    }
}