﻿/* Mismo fondo para input y botón */
.input-group .form-control,
.input-group .btn-search {
    background-color: #f5f5f5;
    border-radius: 0 !important;
    box-shadow: none;
}

/* Quitar bordes entre ambos */
.input-group .form-control {
    border-right: none;
}

.input-group .btn-search {
    border-left: none;
    border-color: #ccc; /* mantiene borde exterior */
    height: 34px; /* mismo alto que input */
}

/* Ajuste visual del ícono */
.btn-search i {
    line-height: 1.4;
}

.btn {
    border-radius: 0px;
    font-size: 11px;
}
/* --- Buscador e idioma --- */
.input-group .form-control,
.input-group .btn {
    background-color: #f5f5f5;
    border-radius: 0 !important;
    box-shadow: none;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    border-color: #ccc;
    height: 34px;
}

.btn-default-idioma {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 6px 12px;
    min-width: 50px;
    text-align: center;
}

    .btn-default-idioma.activo {
        background-color: #ddd;
    }

.idiomas-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* --- Header right --- */
.header-right {
    display: flex;
    align-items: center; /* centra verticalmente con buscador */
    justify-content: flex-end;
    height: 100%;
}

.navbar-middle {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* alinea íconos y texto verticalmente */
    justify-content: flex-end;
    gap: 10px;
}

    .navbar-middle li {
        display: flex;
        align-items: center;
    }

/* Botones con ícono y texto */
.btn-lineas {
    display: flex;
    align-items: center;
    background: #fff;
    /* border: 1px solid #ccc;*/
    border-radius: 0;
    padding: 5px 10px;
    min-height: 34px;
}

    .btn-lineas .icon-telefono,
    .btn-lineas .icon-shop,
    .btn-lineas .icon-usuario {
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 6px;
    }

.icon-telefono {
    background-image: url('https://www.hermex.es/media/images/icos/telefono.svg');
}

.icon-shop {
    background-image: url('https://www.hermex.es/media/images/icos/shop.svg');
}

.icon-usuario {
    background-image: url('https://www.hermex.es/media/images/icos/usuario.svg');
}

/* Texto al lado del icono */
.text-button {
    display: inline-block;
    font-size: 0.95em;
    line-height: 1.2;
    text-align: left;
    color: #545a5d;
}

/* Carrito */
.btn-carrito {
    display: flex;
    align-items: center; /* centra icono y texto verticalmente */
    background: #545a5d;
    color: #fff;
    border-radius: 0;
    border: none;
    padding: 2px 8px; /* reduce altura vertical */
    font-size: 11px; /* ajusta tamaño de texto si quieres */
}

.btn-carrito:hover {
    display: flex;
    align-items: center; /* centra icono y texto verticalmente */
    background: #cecece;
    color: #fff;
    border-radius: 0;
    border: none;
    padding: 2px 8px; /* reduce altura vertical */
    font-size: 11px; /* ajusta tamaño de texto si quieres */
}
    .btn-carrito br {
        line-height: 1; /* reduce espacio entre líneas */
    }

    .btn-carrito span {
        display: inline-block;
        line-height: 1; /* alternativa: envolver el texto en un span */
    }

    .btn-carrito img {
        height: 24px;
        margin-right: 6px;
    }

/* Separadores */
.cgrisfosc {
    color: #999;
}

.icon-telefono {
    width: 22px;
    height: 22px;
    background: url(https://www.hermex.es/media/images/icos/telefono_Hermex_m.svg) no-repeat center center;
    background-size: contain;
}

.icon-shop {
    width: 20px;
    height: 20px;
    background: url(https://www.hermex.es/media/images/icos/tienda_Hermex.svg) no-repeat center center;
    background-size: contain;
}

.icon-usuario {
    width: 24px;
    height: 24px;
    background: url(https://www.hermex.es/media/images/icos/Usuario_Hermex_verde.svg) no-repeat center center;
    background-size: contain;
}

.cgreen {
    color: #01928f;
}

.middle-menu .text-button {
    font-size: 11px;
    font-weight: bold;
    color: #545a5d;
}

.text-logo {
    font-size: .95rem !important;
    line-height: 1!important;
    display:block;
}

.form-control {
    font-size: 9pt;
}

.navbar .divider-vertical {
    height: 39px;
    /*margin: 0px 10px;*/
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #ffffff;
}
/* 🔹 Oculta pero mantiene el espacio */
.oculto {
    visibility: hidden;
}
/* Enlaces del menú principal */
.navbar-nav > li > a {
    display: block; /* ocupa todo el li */
    color: rgba(0, 0, 0, 0.75);
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 9pt !important;
    background-color: transparent; /* asegúrate de que no tenga fondo heredado */
}

/* Hover con prioridad */
.navbar-nav > li:hover > a {
    background-color: #f3f3f3 !important; /* fuerza fondo */
    color: rgba(0, 0, 0, 0.75) !important; /* fuerza color */
}

/* Si hay dropdowns, también aplica */
.navbar-nav .dropdown-menu > li > a {
    display: block;
    padding: 8px 15px;
    color: rgba(0, 0, 0, 0.75);
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar-nav .dropdown-menu > li:hover > a {
    background-color: #f3f3f3 !important;
    color: rgba(0, 0, 0, 0.75) !important;
}

/* Solo para los <li> que tienen dropdown */
.navbar-nav > li.dropdown > a::after {
    content: ""; /* necesario para mostrar el triángulo */
    display: inline-block;
    margin-left: 6px; /* espacio entre texto y triángulo */
    vertical-align: middle;
    /* Triángulo invertido */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255,255,255); /* color del triángulo */
}

/* Opcional: cambiar color del triángulo en hover */
.navbar-nav > li.dropdown:hover > a::after {
    border-top-color: rgba(0,0,0,0.75); /* mismo color o diferente si quieres */
}

@media (max-width: 768px) {
    .btn-logo {
        width: 120px;
    }

    .btn-logo-hau {
        width: 50px;
    }

    .text-logo {
        font-size: 0.8rem !important;
        display: block;
    }

    .text-logo-hau {
        font-size: 0.8rem !important;
    }

    .header-right {
        display: flex;
        flex-wrap: wrap; /* Permite que los botones bajen a la siguiente línea */
        justify-content: center; /* Centra el contenido */
        width: 100%;
    }

    .navbar-middle {
        padding: 0;
        margin: 0 auto;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

        .navbar-middle li {
            display: inline-flex;
            align-items: center;
            margin: 2px 4px;
        }

    .header-right button {
        max-width: 100%;
        flex: 1 1 auto;
    }
}

.mobile-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1050;
    padding: 0 0;
    background-color: #dfdfdf !important;
    border-color: #dfdfdf !important;
    height: 40px;
}

.barra-menu {
    padding-top: 0px;
    padding-bottom: 0px;
    height: 34px;
}

@media (max-width: 580px) {
    .btn-logo-hau {
        width: 35px;
        margin-top: 10px;
    }

    .barra-menu {
        padding-top: 0px;
        padding-bottom: 0px;
        height: 40px;
    }
}

@media (max-width: 991.98px) {
    .visible--mobile {
        display: block !important;
    }
}

.telf-header {
    width: 100%;
    background-color: #dfdfdf !important;
    /*padding-top: 10px;*/
    margin-left: 10px;
}

.navbar-brand-top {
    font-size: 1.2rem;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .visible--desktop {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .visible--desktop {
        display: none !important;
    }
}
.btn-wsp {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 470px;
    right: 40px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 0 1px 10px rgba(0,0,0,.3);
    z-index: 1000;
}

@media(max-width: 576px) {
    .btn-wsp {
        position: fixed;
        width: 55px;
        height: 55px;
        line-height: 55px;
        bottom: 70px;
        right: 40px;
        background: #25d366;
        color: #fff;
        border-radius: 50px;
        text-align: center;
        font-size: 40px;
        box-shadow: 0 1px 10px rgba(0,0,0,.3);
        z-index: 1000;
    }
}

.visible--desktop {
    display: block !important;
}

.visible--mobile {
    display: none !important;
}

@media (max-width: 991.98px) {

    .visible--desktop {
        display: none !important;
    }

    .visible--mobile {
        display: block !important;
    }
}
.btn-wsp {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 470px;
    right: 40px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 0 1px 10px rgba(0,0,0,.3);
    z-index: 1000;
}

@media(max-width: 576px) {
    .btn-wsp {
        position: fixed;
        width: 55px;
        height: 55px;
        line-height: 55px;
        bottom: 70px;
        right: 40px;
        background: #25d366;
        color: #fff;
        border-radius: 50px;
        text-align: center;
        font-size: 40px;
        box-shadow: 0 1px 10px rgba(0,0,0,.3);
        z-index: 1000;
    }
}

.btn-green {
background-color: #089d89;
color: #fff;
font-size: 1.3rem;
font-weight: 400;
border-radius: 0px;
padding-top: 5px !important;
padding-bottom: 5px !important;
}

.btn-green:hover {
    background-color: #7EC8BE !important;
    color: #fff !important;
}

.btn-dark-gray {
background-color: #545a5d;
color: #fff;
font-size: 1.3rem;
font-weight: 400;
border-radius: 0;
padding-top: 5px !important;
padding-bottom: 5px !important;
}


.btn-dark-gray:hover {
    background-color: #cecece;
}

@media (max-width: 992px) {
    .container {
        width: 100%;
    }
}