/* -------------------------------------
   VARIABLES Y RESET PARA EL HEADER
-------------------------------------- */
:root {
    --primary-dark: #02211a;
    --primary-medium: #033b2d;
    --primary-light: #055944;
    --accent: #d4af37;
    --accent-soft: #e6c862;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Comfortaa", comfortaa;
}

/* -------------------------------------
   ESTILOS PRINCIPALES DEL HEADER
-------------------------------------- */
header.header {
    width: 100%;
    background: rgba(2, 33, 26, 0.92);
    backdrop-filter: blur(15px);

    /* ❌ Eliminado: línea gris inferior
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    */

    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 8px 0;
}

/* Línea dorada superior */
header.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

/* ⭐ NUEVO: línea dorada inferior */
header.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

/* -------------------------------------
   CONTENEDOR DEL HEADER
-------------------------------------- */
.header-row {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    margin: 0 auto;
}

/* LOGO + MENÚ */
.header-main-content {
    display: flex;
    align-items: center;

    /* ⭐ Menú más corrido a la derecha */
    gap: 150px;
    flex: 1;
}

/* LOGO */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 85px;
    display: block;
}

/* MENÚ */
.main-menu {
    display: flex;
    align-items: center;
}

.menu-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu-links a:hover,
.menu-links a.activo {
    color: var(--accent);
}

.menu-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu-links a:hover::after,
.menu-links a.activo::after {
    width: 100%;
}

/* ICONOS DERECHA */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-line {
    stroke: var(--white);
    transition: 0.2s ease;
}

.icon-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover .icon-line {
    stroke: var(--accent);
}

/* -------------------------------------
   MENÚ HAMBURGUESA (MOBILE)
-------------------------------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 4px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 33, 26, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

/* -------------------------------------
   RESPONSIVE
-------------------------------------- */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .header-main-content {
        gap: 20px;
    }

    .main-menu {
        display: none;
    }

    .main-menu.open {
        display: flex;
        flex-direction: column;

        position: fixed;
        top: 0;
        left: 0;

        width: 75%;
        max-width: 300px;
        height: 100vh;

        background: rgba(2, 33, 26, 0.98);
        backdrop-filter: blur(15px);

        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 30px 30px;

        gap: 35px;
        z-index: 9999;

        animation: slideInLeft 0.3s ease forwards;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-menu.open .menu-links {
        flex-direction: column;
        gap: 25px;
    }

    .menu-links a {
        font-size: 1.1rem;
        color: var(--white);
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-links a:hover {
        color: var(--accent-soft);
        border-bottom-color: var(--accent-soft);
    }

    .menu-links a::after {
        display: none;
    }

    .header-logo img {
        height: 60px;
    }

    .header-icons .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .header-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-row {
        padding: 0 15px;
    }

    .header-logo img {
        height: 50px;
    }

    .header-icons {
        gap: 12px;
    }
}
