/* De aqui trataremos de controlar todas las header de de las demas paginas */
header,
#header,
#header_reseñas,
#header_micuenta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* Espacio entre elementos */
    height: 120px;
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    /* Aumentamos el z-index para que esté sobre otros elementos */
    background-color: transparent;
    /* Inicia transparente */
    /* --- INICIO: Transición unificada para todos los efectos --- */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    will-change: transform;
    /* Optimiza la fluidez al ocultar/mostrar el header en scroll */
}

/* --- INICIO: Clase para auto-ocultamiento suave del header en móvil al hacer scroll down --- */
.header-hidden,
#header.header-hidden {
    transform: translateY(-115%) !important;
}

/* --- FIN: Clase para ocultar el header --- */


/* --- INICIO: Estilo del header al hacer scroll --- */
.scroll {
    /* --- INICIO: Efecto Glassmorphism rojizo --- */
    background-color: rgba(18, 18, 66, 0.5);
    /* Rojo semitransparente */
    -webkit-backdrop-filter: blur(10px);
    /* Para compatibilidad con Safari */
    backdrop-filter: blur(10px);
    /* El efecto de desenfoque tipo cristal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* --- FIN: Efecto Glassmorphism --- */
}

header,
#header_reseñas,
#header_micuenta {
    /* --- INICIO: Efecto Glassmorphism rojizo --- */
    background-color: rgba(18, 18, 66, 0.5);
    /* Rojo semitransparente */
    -webkit-backdrop-filter: blur(10px);
    /* Para compatibilidad con Safari */
    backdrop-filter: blur(10px);
    /* El efecto de desenfoque tipo cristal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.062);
    /* --- FIN: Efecto Glassmorphism --- */

}

#logo-empresa,
#logo-empresa-reseñas {
    position: absolute;
    top: 0px;
    height: 120px;
    /* Altura fija para consistencia */
    width: 120px;
    left: 3%;
    /* Reducimos la distancia desde la izquierda */
    background-color: rgba(14, 3, 3, 0.068);
    border-radius: 100%;
}

.logo-empresa img,
#logo-empresa-reseñas img {
    margin-top: 0px;
    /* Ajuste para centrar verticalmente */
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 40%;
    margin-left: 0px;
    object-fit: contain;

}

.header-titulo-enlace {
    position: absolute;
    top: 15px;
    left: 175px;
    /* Al lado del círculo del logo en PC */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

#titulo-logov {
    width: 160px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10%;
    background-color: transparent;
}



#logo-empresa-reseñas a {
    position: absolute;
    margin-top: 0px;
    /* Ajuste para centrar verticalmente */
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 50%;
    margin-left: 0px;

}

/* --- ZONA CENTRAL: BUSCADOR CENTRADO Y SALUDO A SU IZQUIERDA --- */
.header-center-zone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

#buscadorForm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

#welcome-message {
    position: absolute;
    right: calc(100% + 22px);
    /* Situado exactamente al lado izquierdo del buscador */
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #d4af37 !important;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 7px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.buscador-carrito {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-left: auto;
    margin-right: 85px;
    /* Margen amplio para evitar cualquier solapamiento con el carrito */
    z-index: 1;
}

.carrito-container {
    display: flex;
    align-items: center;
    position: absolute;
    right: 25px;
    /* Fijado a la derecha */
    background-color: transparent;
    margin-right: 0px;
    z-index: 1002;
}

.carrito {
    position: relative;
    width: 45px;
    height: auto;
    cursor: pointer;
    filter: invert(100%);
    transition: transform 0.2s ease;
}

.carrito:hover {
    transform: scale(1.05);
}

/* El número dentro del carrito */
#numero {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- INICIO: Estilos para botones de sesión --- */
.user-session-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Campo del Buscador: Fondo Blanco como estaba antes --- */
#buscadorInput,
.header-center-zone #buscadorInput {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
}

#buscadorInput::placeholder,
.header-center-zone #buscadorInput::placeholder {
    color: #757575 !important;
    opacity: 1;
}

.session-btn {
    background-color: #007bff;
    color: white;
    border: none;
    margin-right: 0px;
    padding: 7px 13px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.session-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* --- INICIO: Estilo para el botón de Cerrar Sesión --- */
.logout-btn {
    background-color: #dc3545;
    /* Color rojo */
}

.logout-btn:hover {
    background-color: #c82333;
    /* Rojo más oscuro */
}

/* --- FIN: Estilo para el botón de Cerrar Sesión --- */

/* --- FIN: Estilos para botones de sesión --- */

/* --- INICIO: Estilos para el menú de usuario móvil --- */
.user-actions-mobile {
    display: none;
    /* Oculto por defecto en escritorio */
    position: relative;
}

.user-menu-toggle-btn {
    background: #007bff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.user-menu-toggle-btn:hover {
    background-color: #0056b3;
}

.user-menu-dropdown {
    display: none;
    /* Oculto hasta que se hace clic */
    position: absolute;
    top: 50px;
    /* Debajo del botón */
    right: 0;
    background-color: #2D4263;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1001;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 884px) {

    #titulo-logov {
        margin-left: -70px !important;
    }

    .user-menu-toggle-btn {
        margin-right: 90px !important;
    }

}

@media (max-width: 834px) {

    #titulo-logov {
        margin-left: -70px !important;
    }

    .user-menu-toggle-btn {
        margin-right: 90px !important;
    }


}

@media (max-width: 820px) {

    #titulo-logov {
        margin-left: -70px !important;
    }

    .user-menu-toggle-btn {
        margin-right: 90px !important;
    }


}


/* --- FIN: Estilos para el menú de usuario móvil --- */
