/* JH Cabecera Profesional para PrestaShop Classic 1.7.8. */
#header .header-banner {
  border-top: 0;
  border-bottom: 1px solid #e6e6e6;
  background: #f7f7f7;
}

#header .header-banner .jh-header-message {
  min-height: 32px;
  padding: 7px 12px !important;
  border: 0 !important;
  font-size: 13px;
  line-height: 1.35;
}

#header .header-nav {
  min-height: 38px;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
}

#header #contact-link[data-jhph-contact="1"] {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
}

#header #contact-link .jhph-contact-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  padding: 0;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

#header #contact-link .jhph-contact-image {
  display: block;
  width: 26px;
  height: 26px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#header #contact-link .jhph-contact-image-mobile {
  background-image: url('../img/movil.png');
}

#header #contact-link .jhph-contact-image-whatsapp {
  background-image: url('../img/whatsapp.png');
}

#header #contact-link .jhph-contact-number {
  margin-left: 1px;
  color: #555;
  white-space: nowrap;
}

#header #contact-link .jhph-contact-icon:hover,
#header #contact-link .jhph-contact-icon:focus,
#header #contact-link .jhph-contact-number:hover,
#header #contact-link .jhph-contact-number:focus {
  color: #25b9d7;
  text-decoration: none;
}

#header #contact-link .jhph-contact-icon:hover,
#header #contact-link .jhph-contact-icon:focus {
  opacity: .82;
  transform: scale(1.04);
}

.jhph-benefits {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1fr;
  gap: 14px;
  min-width: 0;
}

.jhph-benefit {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #282828;
}

.jhph-benefit-icon {
  flex: 0 0 auto;
  margin-right: 10px;
  color: #333;
  font-size: 28px;
  line-height: 1;
}

.jhph-benefit-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.12;
}

.jhph-benefit-copy strong {
  color: #252525;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.jhph-benefit-copy small {
  margin-top: 4px;
  color: #666;
  font-size: 11px;
  white-space: nowrap;
}

#blocktopdropdownmenu-list .jhph-home-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
}

#blocktopdropdownmenu-list .jhph-home-item .material-icons {
  font-size: 22px;
}

#header #blocktopdropdownmenu-list > li > a {
  display: flex;
  align-items: center;
}

#header #blocktopdropdownmenu-list .jhph-menu-icon {
  flex: 0 0 auto;
  margin-right: 7px;
  color: #25b9d7;
  font-size: 20px;
  line-height: 1;
}

@keyframes jhph-failsafe-reveal {
  to {
    visibility: visible;
    opacity: 1;
  }
}

@media (min-width: 992px) {
  #header .header-top {
    min-height: 146px;
    padding: 0 !important;
    border-bottom: 1px solid #e7e7e7;
    visibility: hidden;
    opacity: 0;
    animation: jhph-failsafe-reveal .01s 1.5s forwards;
  }

  #header .header-top.jhph-ready {
    visibility: visible;
    opacity: 1;
    animation: none;
  }

  #header .header-top > .container > .row {
    display: none !important;
  }

  #header .jhph-desktop-layout {
    display: grid;
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 100%;
    grid-template-columns: 190px minmax(280px, .9fr) minmax(0, 1.55fr);
    grid-template-rows: 92px 54px;
    align-items: center;
    column-gap: 28px;
  }

  #header .jhph-desktop-layout #_desktop_logo {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 92px;
    padding: 0 !important;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
  }

  #header .jhph-desktop-layout #_desktop_logo h1,
  #header .jhph-desktop-layout #_desktop_logo a {
    display: block;
    margin: 0;
  }

  #header .jhph-desktop-layout #_desktop_logo .logo {
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
  }

  #header .jhph-desktop-layout #search_widget {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    grid-column: 2;
    grid-row: 1;
  }

  #header .jhph-desktop-layout #search_widget form {
    position: relative !important;
    width: 100%;
  }

  #header .jhph-desktop-layout #search_widget input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 52px 0 16px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
  }

  #header .jhph-desktop-layout #search_widget button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 48px;
    height: 46px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 4px 4px 0;
    background: #25b9d7;
    color: #fff;
    align-items: center;
    justify-content: center;
  }

  #header .jhph-desktop-layout #search_widget button .material-icons,
  #header .jhph-desktop-layout #search_widget button i {
    margin: 0 !important;
    color: #fff !important;
    font-size: 23px !important;
  }

  /* ps_searchbar 1.7 usa un icono <i> en lugar de un botón. */
  #header .jhph-desktop-layout #search_widget form > i.material-icons.search {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 3;
    display: flex !important;
    width: 48px !important;
    height: 46px !important;
    margin: 0 !important;
    border-radius: 0 4px 4px 0;
    background: #25b9d7 !important;
    color: #fff !important;
    font-size: 23px !important;
    line-height: 46px !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  #header .jhph-desktop-layout #search_widget form > i.material-icons.clear {
    right: 57px !important;
    z-index: 4;
  }

  #header .jhph-desktop-layout #search_widget input[type="text"]:focus {
    border-color: #25b9d7;
    box-shadow: 0 0 0 2px rgba(37, 185, 215, .14);
    outline: 0;
  }

  #header .jhph-desktop-layout > .jhph-benefits {
    grid-column: 3;
    grid-row: 1;
  }

  #header .jhph-desktop-layout #block_top_menu {
    position: relative;
    float: none !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #ededed;
    grid-column: 1 / 4;
    grid-row: 2;
  }

  #header .jhph-desktop-layout #blocktopdropdownmenu-list {
    display: flex;
    width: max-content;
    max-width: 100%;
    height: 54px;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  #header .jhph-desktop-layout #blocktopdropdownmenu-list > li > a {
    min-height: 54px;
  }

  #header #blocktopdropdownmenu-list .jhph-home-text {
    display: none;
  }

  #header #blocktopdropdownmenu-list .jhph-home-item > a {
    width: 58px;
    padding: 0 16px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #header .jhph-desktop-layout {
    grid-template-columns: 145px minmax(250px, .82fr) minmax(0, 1.45fr);
    column-gap: 16px;
  }

  #header .jhph-desktop-layout #_desktop_logo .logo {
    max-width: 145px;
  }

  .jhph-benefits {
    gap: 9px;
  }

  .jhph-benefit-icon {
    margin-right: 6px;
    font-size: 23px;
  }

  .jhph-benefit-copy strong {
    font-size: 11px;
    white-space: normal;
  }

  .jhph-benefit-copy small {
    font-size: 10px;
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .jhph-desktop-layout {
    display: none !important;
  }

  #header .jhph-benefits {
    display: grid !important;
    width: 100%;
    margin-top: 12px;
    padding: 10px 8px;
    border: 1px solid #e7e7e7;
    border-radius: 7px;
    background: #fff;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  #header .jhph-benefit {
    min-height: 48px;
    padding: 3px 8px;
    border-right: 1px solid #e5e5e5;
    justify-content: center;
  }

  #header .jhph-benefit:last-child {
    border-right: 0;
  }

  #header .jhph-benefit-icon {
    margin-right: 6px;
    color: #25b9d7;
    font-size: 22px;
  }

  #header .jhph-benefit-copy strong {
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  #header .jhph-benefit-copy small {
    display: none;
  }

  #header .header-nav .mobile {
    min-height: 58px;
  }

  #header .header-nav .top-logo img,
  #header #_mobile_logo img {
    width: auto !important;
    max-width: 100px !important;
    height: auto !important;
    max-height: 54px !important;
  }

  #header .header-top {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  #header #search_widget,
  #header #search_widget form {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
  }

  #header #search_widget input[type="text"] {
    width: 100% !important;
    height: 48px;
    padding: 0 96px 0 15px !important;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    background: #fff;
  }

  #header #search_widget form > i.material-icons.search {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 3;
    display: flex !important;
    width: 50px !important;
    height: 48px !important;
    margin: 0 !important;
    border-radius: 0 6px 6px 0;
    background: #25b9d7 !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 48px !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  #header #search_widget form > i.material-icons.clear {
    right: 58px !important;
    z-index: 4;
  }

  #header #block_top_menu {
    width: 100% !important;
    margin-top: 10px !important;
  }

  #header #block_top_menu .sf-contener,
  #header #block_top_menu .cat-title {
    border-radius: 7px;
  }

  #header #block_top_menu .cat-title {
    border: 1px solid #dedede !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
    color: #222 !important;
  }

  #header #block_top_menu .cat-title:hover,
  #header #block_top_menu .cat-title:focus,
  #header #block_top_menu .cat-title.active {
    border-color: #cfcfcf !important;
    background: #f7f7f7 !important;
    color: #111 !important;
    outline: 0;
  }

  #header #block_top_menu .cat-title:after {
    color: #222 !important;
  }

  #blocktopdropdownmenu-list .jhph-home-item .jhph-home-text {
    display: inline;
    margin-left: 8px;
  }

  #header #blocktopdropdownmenu-list .jhph-menu-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-block !important;
    width: 22px !important;
    height: auto !important;
    margin-right: 10px;
    font-size: 21px;
    line-height: 1 !important;
    transform: none !important;
  }

  /* El CSS antiguo del menú dibuja un + en todos los span de primer nivel.
     Nuestros iconos también son span, por lo que anulamos solo ese duplicado. */
  #header #blocktopdropdownmenu-list > li > a > .jhph-menu-icon:before,
  #header #blocktopdropdownmenu-list > li > a > .jhph-menu-icon::before,
  #header #blocktopdropdownmenu-list > li > a > .jhph-menu-icon:after,
  #header #blocktopdropdownmenu-list > li > a > .jhph-menu-icon::after {
    display: none !important;
    content: none !important;
  }

  /* El módulo del menú ya incorpora su propio botón gris para desplegar.
     Ocultamos el segundo signo + que dibuja el enlace. */
  #header #blocktopdropdownmenu-list > li > a.sf-with-ul:after,
  #header #blocktopdropdownmenu-list > li > a.sf-with-ul::after {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 575px) {
  #header .header-banner .jh-header-message {
    min-height: 42px;
    padding: 6px 30px !important;
    font-size: 13px;
  }

  #header .header-nav .mobile {
    padding-right: 15px;
    padding-left: 15px;
  }

  #header .jhph-benefits {
    padding-right: 3px;
    padding-left: 3px;
  }

  #header .jhph-benefit {
    padding-right: 4px;
    padding-left: 4px;
    flex-direction: column;
    text-align: center;
  }

  #header .jhph-benefit-icon {
    margin: 0 0 3px;
    font-size: 21px;
  }

  #header .jhph-benefit-copy strong {
    font-size: 10px;
  }
}
