/* Hasen Hazlo Tuyo: página de producto por pasos. Todo vive dentro de .hz para no chocar con el tema. */
.hz {
  --granate: #5A0509;
  --rojo: #B5121B;
  --negro: #000;
  --gris: #6B6663;
  --linea: #BDB8B4;
  --velo: #F1EFEE;
  --papel: #F7F4EE;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --texto: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --mano: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --safe: env(safe-area-inset-bottom, 0px);
  color: var(--negro); font: 400 16px/1.55 var(--texto); -webkit-font-smoothing: antialiased; text-align: left;
}
.hz *, .hz *::before, .hz *::after { box-sizing: border-box; }
.hz img { display: block; max-width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.hz a { color: inherit; }
.hz h1, .hz h2, .hz h3, .hz h4, .hz p { margin: 0; padding: 0; color: inherit; text-transform: none; letter-spacing: normal; }
.hz button, .hz input, .hz textarea {
  font: inherit; color: inherit; letter-spacing: normal; text-transform: none; border-radius: 0; box-shadow: none; margin: 0;
}
.hz button {
  background: none; border: 0; padding: 0; cursor: pointer; min-height: 0; height: auto; width: auto; line-height: inherit;
}
.hz button:hover, .hz button:focus { background: none; color: inherit; }
.hz :focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }
.hz[hidden], .hz [hidden] { display: none !important; }
.hz dl, .hz dt, .hz dd, .hz label, .hz figure { margin: 0; float: none; }

/* Botones y precio */
.hz .hz-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px;
  background: var(--negro); color: #fff; font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background .15s; border: 0;
}
.hz .hz-btn:hover, .hz .hz-btn:focus { background: var(--granate); color: #fff; }
.hz .hz-btn.full { width: 100%; }
.hz .hz-btn.line { background: transparent; color: var(--negro); border: 1px solid currentColor; }
.hz .hz-btn.line:hover { background: var(--velo); color: var(--negro); }
.hz .hz-btn[disabled] { opacity: .6; cursor: progress; }
.hz-price-box {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 8px;
  border: 1px solid var(--linea); font-size: 14px; font-weight: 500;
}
.hz-price-box s { color: var(--gris); font-weight: 400; font-size: 13px; }

/* Costura 80 + 20 */
.hz-seam { display: flex; height: 14px; align-items: center; }
.hz-seam i { display: block; height: 3px; }
.hz-seam .base { background: currentColor; flex: 80; }
.hz-seam .tuya { flex: 20; background: repeating-linear-gradient(90deg, var(--rojo) 0 7px, transparent 7px 12px); position: relative; opacity: .5; }
.hz-seam .tuya b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rojo); transition: width .35s; }
.hz-seam-labels { display: flex; font-size: 13px; margin-top: 8px; }
.hz-seam-labels span:first-child { flex: 80; }
.hz-seam-labels span:last-child { flex: 20; white-space: nowrap; }

/* Página */
.hz-page { max-width: 1200px; margin: 0 auto; }
.hz-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--velo); }
.hz-gallery::-webkit-scrollbar { display: none; }
.hz-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.hz-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.hz-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--linea); }
.hz-dots i.on { background: var(--rojo); }
.hz-pd { padding: 20px var(--gutter) 30px; }
.hz-pd h1 { font: 300 clamp(26px, 7vw, 36px)/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.hz .hz-pd-inc { color: var(--gris); margin: 14px 0 20px; }
.hz-pd .hz-price-box { width: 170px; font-size: 16px; margin-bottom: 18px; }
.hz-pd-meta { font-size: 15px; display: grid; gap: 4px; margin: 18px 0; }
.hz-pd-seam { margin: 22px 0 8px; }
.hz-pd-cta { display: none !important; }
.hz-agotado { color: var(--gris); }
.hz-pd-page { padding-bottom: 72px; }
.hz-sticky-cta {
  position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + var(--safe));
  background: #fff; border-top: 1px solid var(--velo); display: flex; gap: 12px; align-items: center;
}
.hz-sticky-cta .p { font-weight: 600; white-space: nowrap; }
.hz-sticky-cta .p s { font-weight: 400; color: var(--gris); font-size: 13px; margin-left: 6px; }
.hz-sticky-cta .hz-btn { flex: 1; }
.hz-related { padding: 8px var(--gutter) 96px; }
.hz-related h2 { font: 300 24px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; text-align: center; }
.hz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.hz-card { text-decoration: none; display: block; text-align: center; min-width: 0; }
.hz-card .ph { aspect-ratio: 4 / 5; background: var(--velo); overflow: hidden; margin-bottom: 12px; }
.hz-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hz-card:hover img { transform: scale(1.03); }
.hz-card b { display: block; font-weight: 400; font-size: 14px; line-height: 1.25; }
.hz-card small { display: block; color: var(--gris); font-size: 12.5px; line-height: 1.35; margin: 2px 0 10px; min-height: 34px; }

/* Flujo de compra */
.hz-flow { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: flex-end; background: rgba(40, 0, 3, .62); }
.hz-panel { width: 100%; height: 100%; background: #fff; display: flex; flex-direction: column; }
.hz-panel.enter { animation: hz-rise .28s cubic-bezier(.2,.8,.2,1); }
@keyframes hz-rise { from { transform: translateY(40px); } }
.hz-fl-head { padding: 10px var(--gutter) 12px; border-bottom: 1px solid var(--velo); }
.hz-fl-row { display: flex; gap: 12px; align-items: center; }
.hz-fl-row img { width: 46px; height: 58px; object-fit: cover; background: var(--velo); }
.hz-fl-row div { flex: 1; min-width: 0; }
.hz-fl-row h2 { font: 400 20px/1.15 var(--display); }
.hz-fl-row small { color: var(--gris); font-size: 13px; }
.hz .hz-close { width: 44px; height: 44px; font-size: 26px; line-height: 1; margin-right: -10px; }
.hz-fl-seam { margin-top: 10px; }
.hz-fl-seam .hz-seam-labels { font-size: 12px; color: var(--gris); margin-top: 3px; }
.hz-fl-body { flex: 1; overflow-y: auto; padding: 20px var(--gutter) 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.hz-fl-foot { padding: 10px var(--gutter) calc(10px + var(--safe)); border-top: 1px solid var(--velo); display: flex; gap: 10px; }
.hz .hz-back { flex: 0 0 auto; padding: 0 16px; min-height: 50px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.hz-fl-foot .hz-btn { flex: 1; padding: 0 12px; }
.hz-step-title { font: 400 28px/1.15 var(--display); margin-bottom: 4px !important; }
.hz-step-sub { color: var(--gris); font-size: 14.5px; margin-bottom: 18px !important; }
.hz-err { color: var(--rojo); font-size: 14px; margin-top: 10px !important; }

.hz-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--negro); margin-bottom: 18px; }
.hz .hz-switch button { min-height: 44px; font-size: 14.5px; font-weight: 500; }
.hz .hz-switch button[aria-pressed="true"] { background: var(--negro); color: #fff; }

.hz-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hz-tile { position: relative; display: block; cursor: pointer; margin: 0; font-weight: 400; }
.hz .hz-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; border: 0; background: none; }
.hz-tile > span { display: block; height: 100%; border: 1px solid var(--linea); text-align: center; transition: border-color .15s; background: #fff; }
.hz-tile input:checked + span { border-color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }
.hz-tile input:focus-visible + span { outline: 2px solid var(--rojo); outline-offset: 2px; }
.hz-size-tile > span { padding: 14px 2px; font: 400 26px/1 var(--display); }
.hz .hz-size-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 16px 0 0; border: 0; background: none; }
.hz .hz-size-table caption { caption-side: bottom; text-align: left; font-size: 13.5px; color: var(--gris); padding-top: 6px; }
.hz .hz-size-table th, .hz .hz-size-table td { border: 0; border-bottom: 1px solid var(--velo); padding: 8px 4px; text-align: center; font-weight: 400; background: none; }
.hz .hz-size-table th { color: var(--gris); }
.hz .hz-size-table tr.on td { color: var(--rojo); font-weight: 600; }
.hz-fine { font-size: 13.5px; color: var(--gris); margin-top: 14px !important; }
.hz .hz-link { text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: inherit; }

.hz-field { display: grid; grid-template-columns: 96px 1fr 88px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--velo); }
.hz-field img { width: 96px; height: 96px; object-fit: contain; }
.hz-field label { font-size: 15px; font-weight: 500; line-height: 1.25; margin: 0; }
.hz-field small { display: block; font-weight: 400; color: var(--gris); font-size: 12.5px; }
.hz-field .cm { display: flex; align-items: center; border: 1px solid var(--linea); background: #fff; }
.hz .hz-field input { width: 100%; min-width: 0; height: auto; border: 0; padding: 10px 2px 10px 10px; background: transparent; font-size: 16px; outline-offset: 0; -moz-appearance: textfield; }
.hz-field .cm span { padding-right: 8px; color: var(--gris); font-size: 13px; }
.hz-field.bad .cm { border-color: var(--rojo); }
.hz-suggest { margin-top: 14px !important; font: 500 15px/1.3 var(--mano); color: var(--rojo); min-height: 20px; }

.hz-opt { margin-bottom: 26px; }
.hz-opt h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 10px; font-family: var(--texto); }
.hz-opt h3 small { font-weight: 400; color: var(--gris); font-size: 14px; }
.hz-opt h3 label { font: inherit; margin: 0; }
.hz-opt-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.hz-opt-row::-webkit-scrollbar { display: none; }
.hz-opt-row .hz-tile { flex: 0 0 104px; }
.hz-img-tile > span { padding: 8px 6px 7px; font-size: 12.5px; line-height: 1.2; }
.hz-img-tile img { width: 100%; height: 66px; object-fit: contain; margin-bottom: 6px; }
.hz-img-tile .none { height: 66px; display: flex; align-items: center; justify-content: center; font: 400 13px var(--mano); color: var(--gris); margin-bottom: 6px; }
.hz-text-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-text-tile > span { padding: 10px 14px; font-size: 14px; }
.hz-text-tile small { display: block; font-size: 12px; color: var(--gris); }
.hz-swatch-tile > span { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; font-size: 14px; }
.hz-swatch-tile i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.hz .hz-opt textarea { width: 100%; border: 1px solid var(--linea); padding: 10px; font-size: 16px; resize: vertical; min-height: 70px; background: #fff; }

/* Ficha de taller */
.hz-ficha { position: relative; background: var(--papel); padding: 18px 16px 14px; transform: rotate(-.6deg); box-shadow: 0 8px 18px rgba(50, 42, 30, .16); margin-top: 8px; }
.hz-ficha::before { content: ""; position: absolute; top: -14px; right: 26px; width: 12px; height: 38px; border: 1.5px solid #8d8d8d; border-radius: 6px; transform: rotate(6deg); }
.hz-ficha h4 { margin: 0 0 8px; font: 400 19px/1.1 var(--display); }
.hz-ficha dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; font-size: 13px; }
.hz-ficha dt { color: var(--gris); padding: 3px 0; border-bottom: 1px solid #e3ddd2; font-weight: 400; }
.hz-ficha dd { margin: 0; font: 500 13.5px/1.35 var(--mano); padding: 3px 0; border-bottom: 1px solid #e3ddd2; min-height: 26px; overflow-wrap: anywhere; }

.hz-done { text-align: center; padding: 26px 0; }
.hz-done img { width: 150px; height: 188px; object-fit: cover; margin: 0 auto 18px; }
.hz-done p { color: var(--gris); max-width: 32ch; margin: 8px auto 0; }

.hz-guide-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--velo); align-items: center; }
.hz-guide-item img { width: 120px; height: 120px; object-fit: contain; }
.hz-guide-item b { display: block; font-weight: 600; }
.hz-guide-item p { font-size: 14px; color: var(--gris); }

.hz-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 100001;
  background: var(--negro); color: #fff; padding: 10px 16px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s;
}
.hz-toast.on { opacity: 1; transform: translate(-50%, 0); }

body.hz-abierto { overflow: hidden; }

@media (min-width: 900px) {
  .hz { --gutter: 36px; }
  .hz-sticky-cta { display: none; }
  .hz-pd-page { padding-bottom: 0; }
  .hz-pd-top { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; }
  .hz-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; background: none; }
  .hz-gallery img:only-child { grid-column: 1 / -1; }
  .hz-dots { display: none; }
  .hz-pd { position: sticky; top: 110px; padding: 34px var(--gutter); }
  .hz-pd-cta { display: flex !important; }
  .hz-related { padding-top: 56px; }
  .hz-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
  .hz-panel { width: 500px; }
  .hz-panel.enter { animation-name: hz-slide; }
  @keyframes hz-slide { from { transform: translateX(50px); } }
  .hz-opt-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px; }
  .hz-opt-row .hz-tile { flex: 0 0 calc(33.333% - 6px); }
  .hz-toast { bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hz *, .hz *::before, .hz *::after { animation: none !important; transition: none !important; }
}
