:root {
    --cupotech-navy: #063a67;
    --cupotech-blue: #0878b9;
    --cupotech-cyan: #08a8d8;
    --cupotech-orange: #f28c28;

    --cupotech-text: #173e5c;
    --cupotech-muted: #6e8799;

    --cupotech-white: #ffffff;
    --cupotech-light: #f4f9fc;
    --cupotech-border: #d8e7f0;

    --header-shadow:
            0 10px 30px rgba(12, 70, 105, 0.10);
}


* {
    box-sizing: border-box;
}


.commercial-header {
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.98);

    border-top: 4px solid var(--cupotech-cyan);
    border-bottom: 1px solid var(--cupotech-border);

    transition:
            background 0.3s ease,
            box-shadow 0.3s ease,
            backdrop-filter 0.3s ease;
}


.commercial-header.scrolled {
    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);

    box-shadow: var(--header-shadow);
}


.commercial-header-container {
    width: min(1440px, calc(100% - 56px));

    min-height: 94px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* =========================================================
   MARCA
========================================================= */

.commercial-brand {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--cupotech-navy);

    text-decoration: none;
}


.commercial-brand-logo {
    width: 68px;
    height: 68px;

    display: block;

    object-fit: contain;
}


.commercial-brand-text {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.commercial-brand-text strong {
    font-family: "Inter", sans-serif;

    color: var(--cupotech-navy);

    font-size: 18px;
    font-weight: 800;

    white-space: nowrap;
}


.commercial-brand-text span {
    color: #708a9c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.commercial-nav {
    display: flex;
    align-items: center;

    gap: 10px;
}


.commercial-nav-link,
.commercial-dropdown-toggle {
    min-height: 46px;

    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    position: relative;

    color: #36566d;

    background: transparent;

    border: 0;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    white-space: nowrap;

    transition:
            color 0.2s ease,
            background 0.2s ease;
}


.commercial-nav-link::after,
.commercial-dropdown-toggle::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    border-radius: 20px;

    background:
            linear-gradient(
                    90deg,
                    var(--cupotech-blue),
                    var(--cupotech-cyan)
            );

    transition: width 0.2s ease;
}


.commercial-nav-link:hover,
.commercial-dropdown-toggle:hover {
    color: var(--cupotech-blue);
}


.commercial-nav-link:hover::after,
.commercial-dropdown-toggle:hover::after {
    width: calc(100% - 20px);
}


.commercial-dropdown-toggle i {
    font-size: 10px;
}


/* =========================================================
   DROPDOWN SERVICIOS
========================================================= */

.commercial-dropdown {
    position: relative;
}


.commercial-dropdown-menu {
    min-width: 245px;

    padding: 10px;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    display: none;

    background: white;

    border: 1px solid var(--cupotech-border);
    border-radius: 13px;

    box-shadow: var(--header-shadow);
}


.commercial-dropdown:hover .commercial-dropdown-menu,
.commercial-dropdown.active .commercial-dropdown-menu {
    display: block;
}


.commercial-dropdown-menu a {
    min-height: 47px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: #385a70;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
            background 0.2s ease,
            color 0.2s ease;
}


.commercial-dropdown-menu a i {
    width: 20px;

    color: var(--cupotech-blue);

    text-align: center;
}


.commercial-dropdown-menu a:hover {
    color: var(--cupotech-navy);

    background: #eaf7fc;
}


/* =========================================================
   BUSCADOR
========================================================= */

.commercial-search {
    width: 295px;
    height: 48px;

    margin: 0 5px;

    position: relative;

    display: flex;
    align-items: center;

    background: #f5f9fc;

    border: 1px solid #cfe1eb;
    border-radius: 11px;

    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}


.commercial-search:focus-within {
    background: white;

    border-color: #63bfe3;

    box-shadow:
            0 0 0 4px rgba(8, 168, 216, 0.09);
}


.commercial-search > i {
    margin-left: 15px;

    color: #7893a5;

    font-size: 14px;
}


.commercial-search input {
    min-width: 0;

    flex: 1;

    height: 46px;

    padding: 0 10px;

    color: #274d67;

    background: transparent;

    border: 0;
    outline: 0;

    font-family: "Inter", sans-serif;

    font-size: 13px;
}


.commercial-search input::placeholder {
    color: #8ea4b2;
}


.commercial-search > button {
    width: 38px;
    height: 38px;

    margin-right: 5px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    var(--cupotech-blue),
                    var(--cupotech-cyan)
            );

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;
}


.commercial-search-results {
    width: 100%;

    padding: 8px;

    position: absolute;

    top: calc(100% + 9px);
    left: 0;

    display: none;

    background: white;

    border: 1px solid var(--cupotech-border);
    border-radius: 12px;

    box-shadow: var(--header-shadow);
}


.commercial-search-results.visible {
    display: block;
}


.commercial-search-results button {
    width: 100%;

    min-height: 44px;

    padding: 0 11px;

    display: none;
    align-items: center;

    gap: 10px;

    color: #405e72;

    background: transparent;

    border: 0;
    border-radius: 8px;

    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}


.commercial-search-results button.visible {
    display: flex;
}


.commercial-search-results button:hover {
    color: var(--cupotech-blue);

    background: #eaf7fc;
}


.commercial-search-results button i {
    width: 20px;

    color: var(--cupotech-blue);

    text-align: center;
}


.commercial-search-empty {
    padding: 13px 9px;

    display: none;

    color: #728999;

    font-size: 11px;

    text-align: center;
}


.commercial-search-empty.visible {
    display: block;
}


/* =========================================================
   BOTÓN LOGIN
========================================================= */

.commercial-login-button {
    min-height: 48px;

    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    var(--cupotech-navy),
                    var(--cupotech-blue)
            );

    border-radius: 10px;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
            0 7px 18px rgba(5, 76, 120, 0.20);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}


.commercial-login-button:hover {
    transform: translateY(-2px);

    box-shadow:
            0 11px 22px rgba(5, 76, 120, 0.27);
}


/* =========================================================
   CLIENTE AUTENTICADO
========================================================= */

.commercial-user {
    position: relative;

    flex-shrink: 0;
}


.commercial-user-button {
    min-height: 50px;

    padding: 5px 13px 5px 6px;

    display: flex;
    align-items: center;

    gap: 9px;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    var(--cupotech-navy),
                    var(--cupotech-blue)
            );

    border: 0;
    border-radius: 11px;

    cursor: pointer;

    font-family: "Inter", sans-serif;

    box-shadow:
            0 7px 18px rgba(5, 76, 120, 0.20);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}


.commercial-user-button:hover {
    transform: translateY(-2px);

    box-shadow:
            0 11px 22px rgba(5, 76, 120, 0.27);
}


.commercial-user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--cupotech-navy);

    background: white;

    border-radius: 9px;

    font-size: 14px;
}


.commercial-user-name {
    max-width: 125px;

    overflow: hidden;

    font-size: 12px;
    font-weight: 750;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.commercial-user-chevron {
    margin-left: 1px;

    font-size: 9px;

    transition:
            transform 0.2s ease;
}


.commercial-user.active
.commercial-user-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   MENÚ DEL CLIENTE
========================================================= */

.commercial-user-menu {
    width: 270px;

    padding: 10px;

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    display: none;

    background: white;

    border: 1px solid var(--cupotech-border);
    border-radius: 14px;

    box-shadow:
            0 14px 35px rgba(12, 70, 105, 0.15);
}


.commercial-user.active
.commercial-user-menu {
    display: block;
}


/* =========================================================
   RESUMEN CLIENTE
========================================================= */

.commercial-user-summary {
    padding: 8px;

    display: flex;
    align-items: center;

    gap: 11px;
}


.commercial-user-summary-avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--cupotech-blue);

    background: #e8f6fc;

    border: 1px solid #d2e9f3;
    border-radius: 11px;

    font-size: 15px;
}


.commercial-user-summary > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.commercial-user-summary strong {
    max-width: 175px;

    overflow: hidden;

    color: var(--cupotech-navy);

    font-size: 12px;
    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.commercial-user-summary > div > span {
    max-width: 175px;

    overflow: hidden;

    color: var(--cupotech-muted);

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.commercial-user-menu-divider {
    height: 1px;

    margin: 7px 3px;

    background: var(--cupotech-border);
}


/* =========================================================
   OPCIONES DEL USUARIO
========================================================= */

.commercial-user-menu > a {
    min-height: 45px;

    padding: 0 11px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #385a70;

    border-radius: 9px;

    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
            color 0.2s ease,
            background 0.2s ease;
}


.commercial-user-menu > a i {
    width: 20px;

    color: var(--cupotech-blue);

    text-align: center;
}


.commercial-user-menu > a:hover {
    color: var(--cupotech-navy);

    background: #eaf7fc;
}


.commercial-user-menu
.commercial-user-logout {
    color: #bd4545;
}


.commercial-user-menu
.commercial-user-logout i {
    color: #bd4545;
}


.commercial-user-menu
.commercial-user-logout:hover {
    color: #a73232;

    background: #fff0f0;
}


/* =========================================================
   HAMBURGUESA
========================================================= */

.commercial-hamburger {
    width: 48px;
    height: 48px;

    padding: 10px;

    display: none;

    flex-direction: column;
    justify-content: center;

    gap: 6px;

    background: white;

    border: 1px solid var(--cupotech-border);
    border-radius: 10px;

    cursor: pointer;
}


.commercial-hamburger span {
    width: 100%;
    height: 3px;

    display: block;

    background: var(--cupotech-navy);

    border-radius: 10px;

    transition:
            transform 0.2s ease,
            opacity 0.2s ease;
}


.commercial-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}


.commercial-hamburger.active span:nth-child(2) {
    opacity: 0;
}


.commercial-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {

    .commercial-brand-text span {
        display: none;
    }


    .commercial-search {
        width: 250px;
    }


    .commercial-user-name {
        max-width: 95px;
    }

}


@media (max-width: 1100px) {

    .commercial-brand-text {
        display: none;
    }

}


@media (max-width: 980px) {

    .commercial-header-container {
        min-height: 82px;
    }


    .commercial-brand-logo {
        width: 60px;
        height: 60px;
    }


    .commercial-hamburger {
        display: flex;
    }


    .commercial-nav {
        width: 100%;

        max-height: calc(100vh - 82px);

        padding: 18px;

        position: absolute;

        top: 82px;
        left: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 5px;

        overflow-y: auto;

        background: rgba(255, 255, 255, 0.99);

        border-top: 1px solid var(--cupotech-border);

        box-shadow: var(--header-shadow);
    }


    .commercial-nav.active {
        display: flex;
    }


    .commercial-nav-link,
    .commercial-dropdown-toggle {
        width: 100%;

        min-height: 48px;

        justify-content: flex-start;

        font-size: 14px;
    }


    .commercial-nav-link::after,
    .commercial-dropdown-toggle::after {
        display: none;
    }


    .commercial-dropdown-menu {
        width: 100%;

        position: static;

        border: 0;

        box-shadow: none;

        background: #f4f9fc;
    }


    .commercial-dropdown:hover
    .commercial-dropdown-menu {
        display: none;
    }


    .commercial-dropdown.active
    .commercial-dropdown-menu {
        display: block;
    }


    .commercial-search {
        width: 100%;

        margin: 8px 0;
    }


    .commercial-login-button {
        width: 100%;

        min-height: 49px;

        margin-top: 6px;
    }


    /* USUARIO MÓVIL */

    .commercial-user {
        width: 100%;

        margin-top: 6px;
    }


    .commercial-user-button {
        width: 100%;

        min-height: 52px;
    }


    .commercial-user-name {
        max-width: none;

        flex: 1;

        text-align: left;
    }


    .commercial-user-menu {
        width: 100%;

        margin-top: 6px;

        position: static;

        box-shadow: none;

        background: #f6fafc;
    }


    .commercial-user-summary strong,
    .commercial-user-summary > div > span {
        max-width: none;
    }

}


@media (max-width: 540px) {

    .commercial-header-container {
        width: calc(100% - 24px);
    }

}