/* 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;
}

.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;
}

@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;
    grid-template-columns: 190px minmax(320px, .9fr) minmax(600px, 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(270px, .82fr) minmax(500px, 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-benefits,
  .jhph-desktop-layout {
    display: none !important;
  }

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

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

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

  #header #search_widget input[type="text"] {
    border-radius: 6px;
  }

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

@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;
  }
}
