/*
Theme Name: Flatsome Child
Description: Hyperz child theme
Author: UX Themes
Template: flatsome
Version: 5.0.1
*/

/*
 * HYPERZ — FICHA DE PRODUCTO LIMPIA
 * Producto piloto: Corrector de Postura Ajustable (post ID 1552)
 * Una sola definición por componente. Sin capas heredadas.
 */

.hyperz-v3 {
  --hz-bg: #e5e5e2;
  --hz-panel: #e8e8e5;
  --hz-white: #fff;
  --hz-ink: #191918;
  --hz-copy: #353532;
  --hz-line: #cecec8;
  --hz-orange: #f46722;
  color: var(--hz-copy);
  font-family: Manrope, "Avenir Next", Avenir, Arial, sans-serif;
}

.hyperz-v3,
.hyperz-v3 * {
  box-sizing: border-box;
}

.hyperz-v3 h1,
.hyperz-v3 h2,
.hyperz-v3 h3,
.hyperz-v3 p,
.hyperz-v3 li,
.hyperz-v3 a,
.hyperz-v3 span,
.hyperz-v3 strong,
.hyperz-v3 button {
  font-family: inherit;
}

.hyperz-v3 h1,
.hyperz-v3 h2,
.hyperz-v3 h3 {
  color: var(--hz-ink);
  font-weight: 400;
  letter-spacing: -.025em;
  text-align: left;
  text-transform: none;
}

.hyperz-v3 h2 {
  margin: 10px 0 26px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.hyperz-v3 h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.hyperz-v3 p,
.hyperz-v3 li {
  color: var(--hz-copy);
  font-size: 17px;
  line-height: 1.65;
}

.hyperz-v3 .hz-seq {
  color: var(--hz-orange);
  font-size: 14px;
  font-weight: 600;
}

.hyperz-v3 .hz-kicker {
  color: var(--hz-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

/* Compra */
body.postid-1552 #header #logo,
body.postid-1552 #header #logo > a {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.postid-1552 #header #logo img {
  object-fit: contain;
}

.hyperz-v3 .hz-buy > .section-content > .row {
  align-items: flex-start;
}

.hyperz-v3 .product-title {
  color: var(--hz-ink);
  font-weight: 400;
}

.hyperz-v3 .price ins .amount,
.hyperz-v3 .price > .amount {
  color: var(--hz-orange);
}

.hyperz-v3 .product-short-description {
  margin-top: 18px;
}

.hyperz-v3 .product-short-description > :first-child {
  margin-top: 0;
}

.hyperz-v3 .product-short-description ul {
  display: block;
  margin: 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}

.hyperz-v3 .product-short-description li {
  padding: 4px 0;
}

.hyperz-v3 form.cart {
  display: flex;
  width: 100%;
  margin-top: 28px;
  padding-top: 18px;
  gap: 16px;
  box-shadow: none;
}

.hyperz-v3 form.cart .single_add_to_cart_button {
  display: inline-flex;
  justify-content: center;
  width: 75%;
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
  border-color: var(--hz-orange);
  border-radius: 0;
  background: var(--hz-orange);
  color: var(--hz-white);
}

.hyperz-v3 form.cart .single_add_to_cart_button:hover {
  border-color: var(--hz-ink);
  background: var(--hz-ink);
}

body.postid-1552 a.added_to_cart.wc-forward {
  display: none;
}

/* Confianza */
.hz-purchase-confidence {
  padding: 0 24px;
  background: var(--hz-white);
}

.hz-purchase-confidence__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--hz-line);
}

.hz-purchase-confidence__item {
  display: flex;
  min-width: 0;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--hz-line);
}

.hz-purchase-confidence__item:last-child {
  border-right: 0;
}

.hz-purchase-confidence__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--hz-orange);
}

.hz-purchase-confidence__icon svg {
  width: 24px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hz-purchase-confidence__title {
  display: block;
  margin-bottom: 5px;
  color: var(--hz-ink);
  font-size: 14px;
  font-weight: 600;
}

.hz-purchase-confidence__text {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* Sección 01 */
.hz-product-intro {
  padding: 82px max(24px, calc((100vw - 1180px) / 2));
  background: var(--hz-bg);
}

.hz-product-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
}

.hz-product-intro__media {
  margin: 0;
  background: #fff;
}

.hz-product-intro__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hz-product-intro__eyebrow,
.hz-disclosure__identity,
.hz-section-heading,
.hz-section-id {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.hz-product-intro__number {
  color: var(--hz-orange);
  font-size: 14px;
  font-weight: 600;
}

.hz-product-intro__kicker {
  margin: 0;
  color: var(--hz-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.hz-product-intro__copy {
  max-width: 720px;
}

/* Desplegables */
.hz-disclosure {
  background: var(--hz-bg);
}

.hz-disclosure__shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.hz-disclosure__heading {
  max-width: 900px;
}

.hz-disclosure__heading > p {
  margin-bottom: 28px;
}

.hz-disclosure__toggle {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #d0d0cb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #171717;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.hz-disclosure__toggle:hover {
  border-color: var(--hz-orange);
  background: #fff;
  color: var(--hz-orange);
}

.hz-disclosure__hide {
  display: none;
}

.hz-disclosure.is-open .hz-disclosure__show {
  display: none;
}

.hz-disclosure.is-open .hz-disclosure__hide {
  display: inline;
}

.hz-disclosure__plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.hz-disclosure__plus::before,
.hz-disclosure__plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--hz-orange);
  content: "";
  transform: translate(-50%, -50%);
}

.hz-disclosure__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .2s ease;
}

.hz-disclosure.is-open .hz-disclosure__plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.hz-disclosure__content {
  padding-top: 28px;
}

.hz-activities {
  background: #efefec;
}

.hz-care {
  background: var(--hz-bg);
}

/* Videos: exactamente tres columnas visibles en escritorio */
.hz-video-block {
  max-width: 1180px;
  margin: 38px auto 0;
}

.hz-video-disclosure__content,
.hz-video-stage {
  width: 100%;
}

.hz-video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  width: 100%;
  padding: 0 0 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--hz-orange) #bdbdb8;
  scrollbar-width: thin;
}

.hz-video-track > article {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  scroll-snap-align: start;
}

.hz-video-track iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #111;
}

.hz-video-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.hz-video-nav button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #888;
  border-radius: 50%;
  background: transparent;
  color: var(--hz-orange);
  font-size: 25px;
}

/* Guía, actividades y cuidados */
.hz-fit-guide__heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .6fr);
  gap: 28px;
  align-items: start;
}

.hz-fit-guide__size,
.hz-fit-guide__note,
.hz-notice {
  padding: 26px 30px;
  background: var(--hz-ink);
  color: #fff;
}

.hz-fit-guide__size strong,
.hz-fit-guide__size span {
  display: block;
  color: #fff;
}

.hz-fit-guide__size strong {
  margin-bottom: 8px;
  color: var(--hz-orange);
}

.hz-fit-guide__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin-top: 36px;
}

.hz-fit-guide__steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 18px;
  padding: 24px 0;
  border-top: 1px solid var(--hz-line);
}

.hz-fit-guide__steps b {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--hz-orange);
  color: #fff;
  font-weight: 500;
}

.hz-fit-guide__steps p {
  margin: 0;
}

.hz-fit-guide__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
}

.hz-fit-guide__note p,
.hz-notice p {
  margin: 8px 0 0;
  color: #fff;
}

.hz-fit-guide__cta {
  flex: 0 0 auto;
  padding: 14px 20px;
  background: var(--hz-orange);
  color: #fff;
  text-decoration: none;
}

.hz-check-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  padding: 30px;
  background: #fff;
}

.hz-check-panel > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.hz-check-panel i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hz-orange);
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

.hz-notice {
  margin-top: 20px;
}

/* Secciones 05–07 */
.hz-commercial-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hz-related {
  background: #393937;
}

.hz-related h2 {
  color: #fff;
}

.hz-related-products .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.hz-related-products .product-small {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hz-related-products .product-small:nth-child(n + 3) {
  display: none;
}

.hz-related-products .product-small > .col-inner,
.hz-related-products .product-small.box {
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.hz-related-products .box-image {
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
}

.hz-related-products .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hz-related-products .box-text {
  padding: 18px;
}

.hz-home-channels {
  padding: 86px 0;
  background: var(--hz-bg);
}

.hz-home-channels .hz-shell,
.hz-home-final .hz-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hz-channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.hz-channel-grid a {
  position: relative;
  display: flex;
  min-width: 0;
  height: 112px;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid #bdbdb8;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hz-channel-grid a:hover {
  border-color: var(--hz-orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.hz-channel-grid img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.hz-channel-grid em {
  position: absolute;
  top: 10px;
  right: 13px;
  color: var(--hz-orange);
  font-size: 22px;
  font-style: normal;
}

.hz-tabs-section {
  background: var(--hz-bg);
}

.hz-product-tabs .tabs,
.hz-product-tabs .nav {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  margin: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--hz-line);
}

.hz-product-tabs .tabs li,
.hz-product-tabs .nav li {
  margin: 0;
  white-space: nowrap;
}

.hz-product-tabs .tabs a,
.hz-product-tabs .nav a {
  position: relative;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: #666661;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
}

.hz-product-tabs .tabs li.active a,
.hz-product-tabs .nav li.active a {
  color: var(--hz-orange);
}

.hz-product-tabs .tabs li.active a::after,
.hz-product-tabs .nav li.active a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--hz-orange);
  content: "";
}

.hz-product-tabs .tab-panels {
  width: 100%;
  margin: 0;
  padding: 30px 24px;
  background: transparent;
}

.hz-product-tabs .panel {
  width: 100%;
  padding: 0;
}

.hz-product-tabs #tab-description details {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--hz-line);
  background: transparent;
  box-shadow: none;
}

.hz-product-tabs #tab-description summary {
  padding: 22px 52px 22px 0;
  border: 0;
  background: transparent;
  color: var(--hz-ink);
  font-weight: 400;
}

.hz-product-tabs #tab-description details > :not(summary) {
  width: calc(100% - 48px);
  margin-right: 24px;
  margin-left: 24px;
}

.hz-product-tabs #tab-description details > ul,
.hz-product-tabs #tab-description details > ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  padding: 18px 0 28px;
  list-style: none;
}

.hz-product-tabs #tab-description details li {
  position: relative;
  padding: 16px 8px 16px 44px;
  border-top: 1px solid var(--hz-line);
}

.hz-product-tabs #tab-description details li::before {
  position: absolute;
  top: 16px;
  left: 6px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--hz-orange);
  color: #fff;
  content: "✓";
  font-size: 13px;
}

.hz-product-tabs #tab-reviews img,
.hz-product-tabs #tab-reviews .star-rating,
.hz-product-tabs #tab-reviews .stars {
  visibility: visible;
  max-width: 100%;
  opacity: 1;
}

/* Estrellas de "Tu puntuación": restablece el control nativo de WooCommerce */
.hz-product-tabs #tab-reviews p.stars {
  display: block !important;
  width: auto !important;
  height: 30px !important;
  margin: 8px 0 20px !important;
  overflow: visible !important;
  color: var(--hz-orange) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.hz-product-tabs #tab-reviews p.stars span {
  display: inline-flex !important;
  width: auto !important;
  height: 30px !important;
  overflow: visible !important;
}

.hz-product-tabs #tab-reviews p.stars a {
  position: relative !important;
  display: inline-block !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 4px 0 0 !important;
  overflow: visible !important;
  color: #b9b9b4 !important;
  font-size: 0 !important;
  line-height: 30px !important;
  text-indent: 0 !important;
  opacity: 1 !important;
}

.hz-product-tabs #tab-reviews p.stars a::before {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  color: currentColor !important;
  content: "★" !important;
  font-family: Arial, sans-serif !important;
  font-size: 28px !important;
  line-height: 30px !important;
  text-align: center !important;
  opacity: 1 !important;
}

.hz-product-tabs #tab-reviews p.stars:hover a,
.hz-product-tabs #tab-reviews p.stars.selected a {
  color: var(--hz-orange) !important;
}

.hz-product-tabs #tab-reviews p.stars a:hover ~ a,
.hz-product-tabs #tab-reviews p.stars.selected a.active ~ a {
  color: #b9b9b4 !important;
}

.hz-home-final {
  padding: 94px 0;
  background: linear-gradient(125deg, #494946, #343432);
  color: #fff;
}

.hz-home-final h2,
.hz-home-final p {
  color: #fff;
}

.hz-home-final .hz-final-actions {
  margin-top: 28px;
}

.hz-home-final .primary {
  display: inline-flex;
  padding: 14px 24px;
  background: var(--hz-orange);
  color: #fff;
  text-decoration: none;
}

/* Botón fijo: una sola posición y oculto al abrir el carrito */
.hz-sticky-cart {
  position: fixed;
  z-index: 999;
  bottom: 16px;
  left: 50%;
  display: block;
  width: clamp(210px, 25vw, 330px);
  min-width: 0;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid var(--hz-orange);
  border-radius: 999px;
  background: var(--hz-orange);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transform: translateX(-50%);
}

.hz-sticky-cart:hover {
  border-color: var(--hz-ink);
  background: var(--hz-ink);
}

body:not(.single-product) .hz-sticky-cart,
body:not(.postid-1552) .hz-sticky-cart,
body.woocommerce-cart .hz-sticky-cart,
body.woocommerce-checkout .hz-sticky-cart,
body.hz-cart-overlay-open .hz-sticky-cart,
body:has(.mfp-wrap.mfp-ready) .hz-sticky-cart,
body:has(.off-canvas-cart.active) .hz-sticky-cart,
body:has(.cart-popup-inner:target) .hz-sticky-cart {
  display: none;
}

@media (min-width: 850px) {
  .hyperz-v3 .hz-disclosure__toggle {
    display: none;
  }

  .hyperz-v3 .hz-disclosure__content[hidden] {
    display: block;
  }

  .hyperz-v3 .hz-video-nav {
    display: flex;
  }
}

@media (max-width: 849px) {
  .hyperz-v3 h2 {
    font-size: 36px;
  }

  .hyperz-v3 .hz-buy .col:first-child {
    padding-right: 0;
  }

  .hz-purchase-confidence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hz-purchase-confidence__item:nth-child(2) {
    border-right: 0;
  }

  .hz-purchase-confidence__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hz-line);
  }

  .hz-product-intro {
    padding: 52px 18px;
  }

  .hz-product-intro__grid,
  .hz-fit-guide__heading {
    grid-template-columns: 1fr;
  }

  .hz-disclosure__shell,
  .hz-commercial-shell,
  .hz-home-channels .hz-shell,
  .hz-home-final .hz-shell {
    width: calc(100% - 28px);
  }

  .hz-disclosure__shell {
    padding: 52px 0;
  }

  .hz-video-block {
    margin-top: 30px;
  }

  .hz-video-track {
    display: flex;
    gap: 14px;
  }

  .hz-video-track > article {
    flex: 0 0 min(82vw, 360px);
  }

  .hz-video-track iframe {
    max-height: calc(100svh - 210px);
  }

  .hz-fit-guide__steps,
  .hz-check-panel,
  .hz-product-tabs #tab-description details > ul,
  .hz-product-tabs #tab-description details > ol {
    grid-template-columns: 1fr;
  }

  .hz-fit-guide__note {
    align-items: stretch;
    flex-direction: column;
  }

  .hz-related-products .row {
    gap: 12px;
  }

  .hz-home-channels {
    padding: 62px 0;
  }

  .hz-channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hz-channel-grid a {
    height: 94px;
    padding: 14px;
  }

  .hz-channel-grid img {
    max-height: 42px;
  }

  .hz-product-tabs .tab-panels {
    padding: 24px 14px;
  }

  .hz-product-tabs #tab-description details > :not(summary) {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .hz-sticky-cart {
    bottom: 12px;
    width: min(58vw, 280px);
  }
}