/* ============================================================
   HEADER — ESCRIPTORI
   ============================================================ */

   .main-header {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 78px;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Navegació escriptori */
.main-nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #ffcc00 !important;
}

/* Icones del header */
.icon-header {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Submenús */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c3e50;
    min-width: 320px;
    list-style: none;
    z-index: 1000;
    border-top: 2px solid #ffcc00;
    padding: 0;
    margin: 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    display: block;
}

.submenu a {
    display: block;
    font-size: 16px;
    padding: 10px 20px;
    color: #ffffff !important;
    text-decoration: none;
}

.submenu a:hover {
    color: #ffcc00 !important;
    background: rgba(0, 0, 0, 0.1);
}

/* Telèfons */
.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
}

.header-phones a {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
}

.header-phones img {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

/* Botó hamburguesa (amagat a escriptori) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE — TABLET + MÒBIL
   ============================================================ */

@media (max-width: 1000px) {
    .main-header {
        height: 68px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .main-nav {
        display: none !important;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        z-index: 1100;
        flex-direction: column;
        padding: 0;
    }

    .main-nav.active {
        display: flex !important;
    }

    .nav-links {
        display: block !important;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        display: block !important;
        width: 100%;
        padding: 0;
        margin: 0;
        border: none !important;
    }

    .nav-links li:not(:last-child) > .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        width: 100%;
        color: #fff !important;
        text-decoration: none;
        line-height: 1.2;
    }

    .submenu {
        position: static;
        background: rgba(0, 0, 0, 0.15);
        padding-left: 40px;
        border: none !important;
    }

    .submenu a {
        display: block;
        padding: 10px 0;
        color: #fff !important;
        border: none !important;
    }

    .header-phones {
        display: none;
    }
}
