/* Header principal */
.header {
    position: relative;
    width: 100%;
    height: 120px;
    background: rgba(46, 46, 46, 0.5);
    display: flex;
    align-items: center;
}

/* Fondo del header */
.header__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.header__background-overlay {
    position: absolute;
    bottom: -21.667%;
    left: -1.684%;
    right: -1.684%;
    top: -16.667%;
    background: rgba(46, 46, 46, 1);
}

/* Contenido del header */
.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 15px;
}

/* Logo */
.header__logo {
    position: relative;
    height: 82px;
    width: 272px;
    margin-left: 71px;
    margin-top: 18px;
}

.header__logo-link {
    display: block;
    height: 100%;
    width: 100%;
}

.header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Nombre de la empresa */
.header__company-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 56px;
    margin-top: 59px;
}

.header__company-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    line-height: normal;
    white-space: pre;
}

.header__company-srl {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 33px;
    color: #ffffff;
    line-height: normal;
    white-space: pre;
    font-variation-settings: 'wdth' 100;
}

/* Navegación */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    white-space: pre;
    transition: color 0.3s ease;
    position: relative;
    top: 70px;
}

.header__nav-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.header__nav-link--active {
    font-weight: 700;
}

/* Posicionamiento específico de los enlaces según el diseño */
.header__nav-item:nth-child(1) .header__nav-link {
    left: 605px;
    transform: translateX(-50%);
}

.header__nav-item:nth-child(2) .header__nav-link {
    left: 746.5px;
    transform: translateX(-50%);
}

.header__nav-item:nth-child(3) .header__nav-link {
    left: 867.5px;
    transform: translateX(-50%);
}

.header__nav-item:nth-child(4) .header__nav-link {
    left: 961px;
    transform: translateX(-50%);
}

/* Botón de contacto */
.header__contact {
    position: relative;
    top: 70px;
    left: 1056px;
    transform: translateX(-50%);
}

.header__contact-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    white-space: pre;
}

.header__contact-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Botón CTA principal */
.header__cta {
    position: relative;
    height: 40px;
    width: 184px;
    left: 1115px;
    top: 60px;
}

.header__cta-button {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e26e20;
    border-radius: 22px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.header__cta-button:hover {
    background: #d15a1a;
    color: #ffffff;
    text-decoration: none;
}

/* Acciones (búsqueda y carrito) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    right: 8.126%;
    top: 15%;
}

/* Búsqueda */
.header__search {
    position: relative;
    width: 24px;
    height: 24px;
}

.header__search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.header__search-icon {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

/* Carrito */
.header__cart {
    position: relative;
    width: 24px;
    height: 24px;
}

.header__cart-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.header__cart-icon {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.header__cart-count {
    position: absolute;
    bottom: 64.948%;
    left: 93.924%;
    right: 5.564%;
    top: 25.259%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 10px;
    color: #000000;
    text-align: left;
    line-height: normal;
}

/* Responsive */
@media (max-width: 1200px) {
    .header__content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .header__nav-list {
        gap: 20px;
    }

    .header__nav-link {
        position: static !important;
        transform: none !important;
    }

    .header__contact {
        position: static !important;
        transform: none !important;
    }

    .header__cta {
        position: static !important;
    }

    .header__actions {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 20px 0;
    }

    .header__content {
        flex-direction: column;
        gap: 15px;
    }

    .header__logo {
        margin: 0;
        width: 200px;
        height: 60px;
    }

    .header__company-name {
        margin: 0;
        flex-direction: column;
        gap: 5px;
    }

    .header__company-text {
        font-size: 20px;
    }

    .header__company-srl {
        font-size: 24px;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 10px;
    }

    .header__nav-link {
        top: 0;
        font-size: 14px;
    }

    .header__cta-button {
        font-size: 14px;
    }

    .header__actions {
        gap: 15px;
    }
}

/* Estados activos y hover */
.header__nav-link--active {
    font-weight: 700;
    color: #ffffff;
}

.header__nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Animaciones */
.header__cta-button {
    transition: all 0.3s ease;
}

.header__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 110, 32, 0.3);
}

.header__search-btn:hover .header__search-icon,
.header__cart-link:hover .header__cart-icon {
    color: #e26e20;
    transition: color 0.3s ease;
}
.nav-item.active{
    font-weight: 600;
}
