/* Perro Sazón — estilos diferidos (todo lo que no es above-the-fold).
   Compilado de los componentes del prototipo (Tienda/*.jsx + responsive.css). */

/* ---------- Carrusel horizontal (HScroll) ---------- */
.ps-hs { position: relative; }
.ps-hscroll {
  display: flex;
  align-items: stretch;
  gap: var(--ps-s7);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ps-hscroll::-webkit-scrollbar { display: none; }
.ps-hscroll > * {
  /* grow:1 = si sobra ancho (desktop, pocas tarjetas) crecen y llenan hasta el
     borde; si no caben (móvil o muchas tarjetas) se quedan en 300px y hacen
     scroll. Así un carrusel de 3 se ve como grid completo en desktop. */
  flex: 1 0 300px;
  max-width: 85vw;
  scroll-snap-align: start;
  display: grid;
  box-sizing: border-box;
}
.ps-hscroll--wide > * { flex-basis: 320px; }
.ps-hs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ps-line);
  background: var(--ps-white);
  box-shadow: 0 4px 14px rgba(28, 27, 58, 0.12);
  cursor: pointer;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ps-ink);
  font-size: 18px;
  padding: 0;
}
.ps-hs-btn.is-on { display: flex; }
.ps-hs-btn--l { left: -6px; }
.ps-hs-btn--r { right: -6px; }

/* ---------- Tile de producto ---------- */
.ps-tile { display: flex; flex-direction: column; }
.ps-tile-media { cursor: pointer; position: relative; display: block; text-decoration: none; }
.ps-tile-img {
  border-radius: var(--ps-r-img);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform .35s ease;
}
.ps-tile-media:hover .ps-tile-img { transform: translateY(-4px); }
.ps-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-tile-badge { position: absolute; top: 12px; right: 12px; }
.ps-tile-rating { margin-top: var(--ps-s4); display: flex; align-items: center; gap: 8px; }
.ps-tile-rating .ps-tile-pct { font-family: var(--ps-font); font-size: var(--ps-t-xs); color: var(--ps-slate); }
.ps-tile-title { font-size: var(--ps-t-h4); margin-top: var(--ps-s2); }
.ps-tile-title a { text-decoration: none; color: var(--ps-ink); }
.ps-tile-desc { color: var(--ps-slate); font-size: var(--ps-t-sm); margin: var(--ps-s2) 0 0; }
.ps-tile-pricing { margin-top: var(--ps-s3); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ps-price { font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-lg); color: var(--ps-ink); }
.ps-price--sale { color: var(--ps-price-sale); }
.ps-price-was { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); text-decoration: line-through; }
.ps-tile-volume { font-family: var(--ps-font); font-size: var(--ps-t-xs); color: var(--ps-savings); font-weight: var(--ps-w-bold); }
.ps-tile-cta { margin-top: var(--ps-s4); margin-bottom: 2px; }
.ps-tile-cta .ps-btn { width: 100%; }

/* ---------- Franja de valor (FeatureRow) ---------- */
.ps-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ps-s5);
  border-top: 1px solid var(--ps-line);
  border-bottom: 1px solid var(--ps-line);
  padding: var(--ps-s6) 0;
}
.ps-feature { display: flex; gap: var(--ps-s4); align-items: center; }
.ps-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-grape);
  flex-shrink: 0;
}
.ps-feature-title { font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-md); color: var(--ps-ink); }
.ps-feature-sub { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); margin-top: 2px; }

/* ---------- Home: selector por síntoma ---------- */
.ps-symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ps-s4); }
.ps-symptom {
  text-align: left;
  cursor: pointer;
  border: none;
  border-radius: var(--ps-r-img);
  padding: var(--ps-s5);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: var(--ps-s3);
  text-decoration: none;
}
.ps-symptom-emoji { font-size: 28px; line-height: 1; }
.ps-symptom-text { font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-md); color: var(--ps-ink); line-height: 1.35; }
.ps-symptom-go { margin-top: auto; font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-sm); color: var(--ps-grape); }

/* ---------- Banda destacada (kit upsell / cross-sell) ---------- */
.ps-band {
  border-radius: var(--ps-r-img);
  padding: var(--ps-s7);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--ps-s7);
  align-items: center;
}
.ps-band-img { border-radius: var(--ps-r-img); overflow: hidden; aspect-ratio: 5 / 4; }
.ps-band-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Shop / archivo ---------- */
.ps-shop-toolbar {
  display: flex;
  align-items: center;
  gap: var(--ps-s3);
  flex-wrap: wrap;
  padding-bottom: var(--ps-s5);
  border-bottom: 1px solid var(--ps-line);
}
.ps-cat-chips { display: flex; gap: var(--ps-s2); flex-wrap: wrap; }
.ps-cat-chip {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-sm);
  padding: 10px 18px;
  border-radius: var(--ps-r-pill);
  cursor: pointer;
  background: var(--ps-white);
  color: var(--ps-ink);
  border: 1.5px solid var(--ps-line);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.ps-cat-chip.is-on, .ps-cat-chip:hover { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); }
.ps-shop-tools { margin-left: auto; display: flex; align-items: center; gap: var(--ps-s3); }
.ps-shop-count { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); }
.ps-sort {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-medium);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
  background: var(--ps-white);
  border: 1.5px solid var(--ps-line);
  border-radius: var(--ps-r-pill);
  padding: 10px 16px;
  cursor: pointer;
  appearance: auto;
}
.ps-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ps-s7);
  row-gap: var(--ps-s8);
}

/* ---------- PDP: chips e info ---------- */
.ps-chip {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-xs);
  color: var(--ps-ink);
  border: 1.5px solid var(--ps-line);
  border-radius: var(--ps-r-pill);
  padding: 5px 11px;
  display: inline-block;
}
.ps-pdp-badges { display: flex; gap: var(--ps-s2); flex-wrap: wrap; align-items: center; }
.ps-pdp-rating { display: flex; align-items: center; gap: 8px; margin-top: var(--ps-s4); font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-ink); }
.ps-pdp-rating a { color: var(--ps-grape); cursor: pointer; font-weight: 700; text-decoration: none; }
.ps-pdp-kit-line { margin-top: var(--ps-s4); font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); }
.ps-pdp-title { font-size: var(--ps-t-h1); margin-top: var(--ps-s3); }
.ps-pdp-price-top { display: flex; align-items: center; gap: var(--ps-s4); margin-top: var(--ps-s4); flex-wrap: wrap; }
.ps-pdp-price-top .ps-price-big { font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: 32px; color: var(--ps-ink); }
.ps-pdp-price-top .ps-price-big--sale { color: var(--ps-price-sale); }
.ps-pdp-price-top .ps-price-was { font-size: var(--ps-t-lg); }
.ps-pdp-kit-note { width: 100%; font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); }
.ps-pdp-hook { font-family: var(--ps-font); font-size: var(--ps-t-md); color: var(--ps-ink); line-height: var(--ps-lh-body); margin: var(--ps-s4) 0 0; }
.ps-bullets { list-style: none; margin: var(--ps-s5) 0 0; padding: 0; display: grid; gap: var(--ps-s3); }
.ps-bullets li { display: flex; align-items: flex-start; gap: var(--ps-s3); font-family: var(--ps-font); font-size: var(--ps-t-md); }
.ps-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ps-green);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.ps-x {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ps-line);
  color: var(--ps-slate);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
  line-height: 1;
}

/* ---------- PDP: barra de entrega ---------- */
.ps-delivery-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--ps-lilac);
  border-radius: var(--ps-r-md);
  padding: 12px 16px;
  margin-top: var(--ps-s5);
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
}
.ps-delivery-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ps-green); display: inline-block; flex-shrink: 0; }

/* ---------- PDP: selector de piezas (tiers) ---------- */
.ps-tiers { display: grid; gap: 16px; margin-top: var(--ps-s6); }
.ps-tier {
  position: relative;
  text-align: left;
  cursor: pointer;
  background: var(--ps-white);
  border: 2px solid var(--ps-line);
  border-radius: var(--ps-r-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: var(--ps-s4);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ps-tier input { position: absolute; opacity: 0; pointer-events: none; }
.ps-tier.is-on {
  background: var(--ps-lilac);
  border-color: var(--ps-grape);
  box-shadow: 0 6px 18px rgba(110, 79, 160, 0.12);
}
.ps-tier-radio {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 2px solid var(--ps-line);
  background: var(--ps-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-tier.is-on .ps-tier-radio { border-color: var(--ps-grape); }
.ps-tier-radio::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.ps-tier.is-on .ps-tier-radio::after { background: var(--ps-grape); }
/* Contenido del tier en grid 2×2: fila 1 = piezas | precios (tachado + total);
   fila 2 = precio unitario | etiqueta de ahorro (empujada a la derecha).
   Dos renglones fijos en móvil en vez de tres cuando la etiqueta se envolvía. */
.ps-tier-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "units prices"
    "each  save";
  align-items: center;
  column-gap: var(--ps-s4);
  row-gap: 3px;
}
.ps-tier-units { grid-area: units; font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-md); }
/* Etiqueta como listón sobre el borde superior de la tarjeta (patrón CRO):
   ancla la mirada sin consumir renglones dentro de la tarjeta. */
.ps-tier-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-xs);
  color: var(--ps-white);
  background: var(--ps-green);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--ps-white);
}
.ps-tier-tag--popular { background: var(--ps-grape); }
.ps-tier-each { grid-area: each; font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); }
.ps-tier-save {
  grid-area: save;
  justify-self: end;
  display: inline-block;
  background: var(--ps-mint);
  color: #2C6B42;
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-xs);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* Precios en un solo renglón: tachado a la izquierda del total en rojo. */
.ps-tier-prices { grid-area: prices; justify-self: end; display: flex; align-items: baseline; gap: 8px; }
.ps-tier-total { font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-lg); color: var(--ps-ink); }
.ps-tier-total--sale { color: var(--ps-price-sale); }
.ps-tier-orig { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); text-decoration: line-through; }

/* ---------- PDP: CTA y marketplaces ---------- */
.ps-pdp-cta { margin-top: var(--ps-s5); }
.ps-pay { margin-top: var(--ps-s3); text-align: center; }
/* CTA de dos líneas: acción + refuerzo de pago seguro adentro del botón. */
.ps-btn--stacked { flex-direction: column; gap: 6px; padding-top: 13px; padding-bottom: 12px; }
.ps-btn--stacked .ps-cta-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: var(--ps-w-medium);
  opacity: 0.8;
  letter-spacing: 0;
  line-height: 1;
}
.ps-cta-lock { flex-shrink: 0; opacity: 0.9; }
.ps-pay-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ps-pay-badge {
  width: 48px;
  height: 30px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: var(--ps-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ps-pay-badge svg { width: 26px; height: 17px; display: block; }
.ps-mkt { margin-top: var(--ps-s5); }
.ps-mkt-label { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); text-align: center; margin-bottom: var(--ps-s3); }
.ps-mkt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-s3); }
.ps-mkt-btn {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
  border: 1.5px solid var(--ps-line);
  border-radius: var(--ps-r-pill);
  padding: 11px 18px;
  text-decoration: none;
  background: var(--ps-white);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ps-mkt-btn:hover { border-color: var(--ps-ink); }

/* ---------- PDP: galería (thumbnails) ---------- */
.ps-thumbs-wrap { position: relative; }
.ps-thumbs {
  display: flex;
  gap: var(--ps-s3);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: none;
}
.ps-thumbs::-webkit-scrollbar { display: none; }
/* Centrado sin brincos (CLS): los márgenes auto centran cuando los thumbs
   caben y se vuelven 0 solos cuando desbordan — sin toggles de JS. */
.ps-thumb:first-child { margin-left: auto; }
.ps-thumb:last-child { margin-right: auto; }
.ps-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--ps-r-md);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ps-font);
  font-weight: 700;
  font-size: var(--ps-t-sm);
  color: var(--ps-grape);
}
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb.is-on { border-color: var(--ps-grape); }
.ps-thumbs-wrap .ps-hs-btn { width: 32px; height: 32px; font-size: 16px; box-shadow: 0 3px 10px rgba(28, 27, 58, 0.14); }
.ps-gallery-caption { margin: 0; font-family: var(--ps-font); font-size: var(--ps-t-xs); color: var(--ps-slate); text-align: center; }

/* ---------- Tarjeta de confianza ---------- */
.ps-trust {
  display: flex;
  align-items: center;
  gap: var(--ps-s4);
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-md);
  padding: var(--ps-s4) var(--ps-s5);
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
}
.ps-trust-desktop { margin-top: var(--ps-s2); }
.ps-trust-mobile { display: none; margin-top: var(--ps-s6); }
.ps-avatars { display: flex; flex-shrink: 0; }
.ps-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid var(--ps-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ps-avatar + .ps-avatar { margin-left: -12px; }
.ps-avatar { overflow: hidden; }
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Acordeones ---------- */
.ps-accordion { margin-top: var(--ps-s6); border-bottom: 1px solid var(--ps-line); }
.ps-acc-item { border-top: 1px solid var(--ps-line); }
.ps-acc-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-md);
  color: var(--ps-ink);
  text-align: left;
}
.ps-acc-arrow { color: var(--ps-grape); transition: transform .2s; font-size: 14px; flex-shrink: 0; }
.ps-acc-item.is-open .ps-acc-arrow { transform: rotate(180deg); }
.ps-acc-panel { margin: 0 4px; padding: 0 0 16px; font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); line-height: var(--ps-lh-body); max-width: 480px; }
.ps-acc-panel[hidden] { display: none; }

.ps-boxed-acc { display: grid; gap: var(--ps-s3); }
.ps-boxed-acc .ps-acc-item {
  background: var(--ps-line);
  border: 1px solid transparent;
  border-radius: var(--ps-r-md);
  overflow: hidden;
  border-top: 1px solid transparent;
}
.ps-boxed-acc .ps-acc-item.is-open { background: var(--ps-white); border-color: var(--ps-grape); }
.ps-boxed-acc .ps-acc-btn { padding: 16px 18px; }
.ps-boxed-acc .ps-acc-panel { margin: 0; padding: 0 18px 18px; max-width: none; }

/* ---------- Sección de videos (influencers) ---------- */
.ps-section-head { display: flex; align-items: baseline; gap: var(--ps-s4); flex-wrap: wrap; margin-bottom: var(--ps-s5); }
.ps-section-head h2 { font-size: var(--ps-t-h1); }
.ps-section-kicker { font-family: var(--ps-font); font-weight: 700; color: var(--ps-grape); }
.ps-ugc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ps-s5); }
.ps-video {
  position: relative;
  border-radius: var(--ps-r-img);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--ps-lilac);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.ps-video video, .ps-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(28, 27, 58, 0.25);
  pointer-events: none;
  color: var(--ps-ink);
}
.ps-video.is-playing .ps-play { display: none; }

/* ---------- Tabla comparativa ---------- */
.ps-vs { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; }
.ps-vs-head {
  padding: 16px 12px 14px;
  text-align: center;
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-md);
  color: var(--ps-ink);
}
.ps-vs-head--ps { background: var(--ps-lilac); border-top-left-radius: 22px; border-top-right-radius: 22px; }
.ps-vs-head--them { font-size: var(--ps-t-sm); color: var(--ps-slate); display: flex; align-items: center; justify-content: center; }
.ps-vs-label {
  padding: 20px 14px 20px 4px;
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-md);
  color: var(--ps-ink);
  display: flex;
  align-items: center;
  min-width: 0;
  border-top: 1px solid var(--ps-line);
}
.ps-vs-cell {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  min-width: 0;
}
.ps-vs-cell--ps { background: var(--ps-lilac); color: var(--ps-ink); }
.ps-vs-cell--ps.is-last { border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; }
.ps-vs-cell--them { color: var(--ps-slate); border-top: 1px solid var(--ps-line); }

/* ---------- Reseñas ---------- */
.ps-review-card {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-img);
  padding: var(--ps-s5);
  display: flex;
  flex-direction: column;
  gap: var(--ps-s3);
  background: var(--ps-white);
}
.ps-review-text { font-family: var(--ps-font); font-size: var(--ps-t-md); color: var(--ps-ink); line-height: var(--ps-lh-body); margin: 0; }
.ps-review-author { margin-top: auto; font-family: var(--ps-font); font-weight: 700; font-size: var(--ps-t-xs); color: var(--ps-slate); }

/* Reseñas de la PDP: resumen con desglose + lista vertical */
.ps-rev-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--ps-s7);
  align-items: start;
}
.ps-rev-summary {
  position: sticky;
  top: 88px;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-img);
  background: var(--ps-white);
  padding: var(--ps-s5);
}
.ps-rev-avg { display: flex; align-items: center; gap: var(--ps-s4); }
.ps-rev-avg-num { font-weight: 800; font-size: 44px; line-height: 1; color: var(--ps-ink); }
.ps-rev-avg-count { display: block; font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); margin-top: 2px; }
.ps-rev-bars { margin-top: var(--ps-s5); display: grid; gap: 6px; }
.ps-rev-bar-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: var(--ps-s3);
  font-family: var(--ps-font);
  font-size: var(--ps-t-xs);
  color: var(--ps-slate);
}
.ps-rev-bar { height: 8px; border-radius: 99px; background: var(--ps-lilac); overflow: hidden; }
.ps-rev-bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--ps-star, #F5A623); }
.ps-rev-bar-count { text-align: right; font-variant-numeric: tabular-nums; }
.ps-rev-pct {
  margin: var(--ps-s5) 0 0;
  padding-top: var(--ps-s4);
  border-top: 1px solid var(--ps-line);
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
}
/* minmax(0,1fr): la tira de fotos (contenido más ancho que la pantalla) debe
   scrollear adentro, no inflar la columna y estirar las cards con ella. */
.ps-rev-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ps-s4); min-width: 0; }
.ps-rev-card {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-img);
  background: var(--ps-white);
  padding: var(--ps-s5);
}
.ps-rev-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ps-s3); }
.ps-rev-date { font-family: var(--ps-font); font-size: var(--ps-t-xs); color: var(--ps-slate); }
.ps-rev-title { font-size: var(--ps-t-md); margin: var(--ps-s3) 0 0; }
.ps-rev-text { font-family: var(--ps-font); font-size: var(--ps-t-md); color: var(--ps-ink); line-height: var(--ps-lh-body); margin: var(--ps-s2) 0 0; }
.ps-rev-author { display: block; margin-top: var(--ps-s3); font-family: var(--ps-font); font-weight: 700; font-size: var(--ps-t-xs); color: var(--ps-slate); }
.ps-rev-verified { color: var(--ps-savings); }
/* Paginación numerada de reseñas */
.ps-rev-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--ps-s4);
  font-family: var(--ps-font);
}
.ps-rev-page {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  background: var(--ps-white);
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
  cursor: pointer;
}
.ps-rev-page:hover { border-color: var(--ps-grape); }
.ps-rev-page.is-on { background: var(--ps-grape); border-color: var(--ps-grape); color: var(--ps-white); cursor: default; }
.ps-rev-gap { color: var(--ps-slate); font-size: var(--ps-t-sm); padding: 0 2px; }

/* Tira de fotos de clientes: vive entre el resumen y la primera reseña */
.ps-rev-photos { min-width: 0; max-width: 100%; }
.ps-rev-photos-track { display: flex; gap: var(--ps-s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.ps-rev-photo {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ps-lilac);
  cursor: pointer;
  scroll-snap-align: start;
}
.ps-rev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Visor de fotos (lightbox propio, vanilla) */
.ps-lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 27, 58, 0.92);
}
.ps-lb.is-open { display: flex; }
.ps-lb img { max-width: 92vw; max-height: 82vh; border-radius: 16px; display: block; }
.ps-lb button {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ps-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-lb button:hover { background: rgba(255, 255, 255, 0.3); }
.ps-lb-close { top: 16px; right: 16px; }
.ps-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ps-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.ps-lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 600px) {
  .ps-rev-photo { width: 88px; height: 88px; }
  .ps-lb-prev, .ps-lb-next { display: none; } /* en móvil se navega con swipe */
}
@media (max-width: 920px) {
  .ps-rev-layout { grid-template-columns: minmax(0, 1fr); gap: var(--ps-s5); }
  .ps-rev-summary { position: static; }
  .ps-rev-more { width: 100%; }
}

/* ---------- FAQ de la PDP ---------- */
.ps-faq-split { grid-template-columns: 0.85fr 1.15fr; }
.ps-faq-split h2 { font-size: var(--ps-t-h1); line-height: 1.05; }
.ps-faq-intro { color: var(--ps-slate); font-size: var(--ps-t-md); line-height: var(--ps-lh-body); margin-top: var(--ps-s4); }

/* ---------- Secciones genéricas ---------- */
.ps-section { margin-top: var(--ps-s9); }
.ps-page-hero { padding-top: var(--ps-s8); padding-bottom: var(--ps-s5); }
.ps-page-hero h1 { font-size: var(--ps-t-xl); margin-top: var(--ps-s3); }
.ps-page-hero .ps-page-sub { color: var(--ps-slate); font-size: var(--ps-t-lg); max-width: 760px; margin: var(--ps-s4) 0 0; }
.ps-cta-panel { background: var(--ps-lilac); border-radius: var(--ps-r-img); padding: var(--ps-s7); text-align: center; }
.ps-cta-panel p { color: var(--ps-ink); margin: var(--ps-s3) auto 0; max-width: 460px; }
.ps-cta-panel .ps-cta-actions { display: flex; gap: var(--ps-s4); justify-content: center; margin-top: var(--ps-s5); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ps-footer-outer { background: var(--ps-ink); margin-top: var(--ps-s9); }
.ps-footer {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.ps-foot-plate { display: inline-flex; background: var(--ps-white); border-radius: var(--ps-r-md); padding: 10px 14px; }
.ps-foot-plate img { height: 40px; width: auto; display: block; }
.ps-foot-brand p { color: rgba(255, 255, 255, 0.7); font-size: var(--ps-t-sm); max-width: 240px; margin: 16px 0 0; line-height: var(--ps-lh-body); }
.ps-foot-col { display: flex; flex-direction: column; gap: 12px; }
.ps-foot-head {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-sm);
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.ps-foot-col a { font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-white); text-decoration: none; }
.ps-foot-col a:hover { text-decoration: underline; }
.ps-foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ps-foot-bottom-in {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: var(--ps-t-xs);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--ps-font);
}
.ps-foot-bottom-in a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.ps-foot-bottom-in a:hover { text-decoration: underline; }

/* ---------- Formularios (contacto) ---------- */
.ps-form-card { border: 1px solid var(--ps-line); border-radius: var(--ps-r-img); padding: var(--ps-s6); }
.ps-form-grid { display: grid; gap: var(--ps-s4); }
.ps-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-s4); }
.ps-field { display: flex; flex-direction: column; gap: var(--ps-s2); }
.ps-field label { font-family: var(--ps-font); font-weight: var(--ps-w-medium); font-size: var(--ps-t-sm); color: var(--ps-ink); }
.ps-field input, .ps-field textarea {
  font-family: var(--ps-font);
  font-size: var(--ps-t-md);
  color: var(--ps-ink);
  background: var(--ps-white);
  padding: 13px 16px;
  border-radius: var(--ps-r-md);
  border: 1.5px solid var(--ps-line);
  outline: none;
  width: 100%;
}
.ps-field input:focus, .ps-field textarea:focus { border-color: var(--ps-grape); }
.ps-field textarea { resize: vertical; }
.ps-contact-row { display: flex; gap: var(--ps-s4); align-items: flex-start; text-decoration: none; }
.ps-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ps-r-pill);
  background: var(--ps-lilac);
  color: var(--ps-grape);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-contact-label { display: block; font-family: var(--ps-font); font-weight: var(--ps-w-bold); font-size: var(--ps-t-sm); color: var(--ps-ink); }
.ps-contact-value { display: block; font-family: var(--ps-font); font-size: var(--ps-t-sm); color: var(--ps-slate); margin-top: 2px; line-height: var(--ps-lh-body); }

/* ---------- Prosa (páginas legales / contenido) ---------- */
.ps-prose { max-width: 760px; }
.ps-prose h2 { font-size: var(--ps-t-h3); margin-top: var(--ps-s6); }
.ps-prose p { font-family: var(--ps-font); font-size: var(--ps-t-md); color: var(--ps-slate); line-height: var(--ps-lh-body); margin: var(--ps-s3) 0 0; }
.ps-prose a { color: var(--ps-grape); font-weight: var(--ps-w-bold); text-decoration: none; }
.ps-prose ul, .ps-prose ol { color: var(--ps-slate); line-height: var(--ps-lh-body); }

/* ---------- Avisos de WooCommerce ---------- */
.ps-notices { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.ps-notices:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error li, .woocommerce-error {
  font-family: var(--ps-font);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
  background: var(--ps-mint);
  border-radius: var(--ps-r-md);
  padding: 14px 18px;
  margin: var(--ps-s4) 0 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.woocommerce-error, .woocommerce-error li { background: var(--ps-orange-soft); }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button {
  font-family: var(--ps-font);
  font-weight: var(--ps-w-bold);
  font-size: var(--ps-t-sm);
  color: var(--ps-ink);
  text-decoration: underline;
  background: none;
  border: none;
  order: 2;
}

/* ---------- 404 ---------- */
.ps-404 { text-align: center; padding: var(--ps-s9) 0; }
.ps-404 .ps-404-emoji { font-size: 56px; }
.ps-404 h1 { font-size: var(--ps-t-h1); margin-top: var(--ps-s4); }
.ps-404 p { color: var(--ps-slate); margin-top: var(--ps-s3); }

/* ---------- Responsive (portado de responsive.css) ---------- */
@media (max-width: 920px) {
  .ps-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-symptom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Bandas (kit, marca): foto arriba a todo lo ancho, texto abajo. */
  .ps-band { grid-template-columns: minmax(0, 1fr); gap: var(--ps-s5); padding: var(--ps-s6); }
  .ps-faq-split { grid-template-columns: minmax(0, 1fr); }
  .ps-hero-split { grid-template-columns: minmax(0, 1fr); }
  .ps-form-2col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ps-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ps-s4); row-gap: var(--ps-s6); }
  .ps-symptom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ps-s3); }
  .ps-ugc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-feature-row { grid-template-columns: 1fr; gap: var(--ps-s5); }
  .ps-footer { grid-template-columns: 1fr 1fr; gap: var(--ps-s5) var(--ps-s6); }
  .ps-foot-brand { grid-column: 1 / -1; }
  .ps-band { padding: var(--ps-s5); }
  .ps-band-img { aspect-ratio: 16 / 11; }
  .ps-band .ps-btn { width: 100%; }
  .ps-trust-desktop { display: none; }
  .ps-trust-mobile { display: flex; }
  .ps-delivery-bar { font-size: 12px; gap: 5px; }
  .ps-delivery-dot { display: none; }
  /* Chip de ahorro más compacto para que quepa junto a "N piezas". */
  .ps-tier-save { font-size: 11px; padding: 2px 8px; }
  .ps-tier { padding: 12px 14px; }
}
