/* assets/pdp.css — layout de la página de producto (PDP) */

/* ── VERSUS MATRIX (PDP) — GAP-3 fix, 2026-06-25 ────────────────────────── */
/* Tabla comparativa NARA vs mueblería tradicional. Antes solo en el HOME,
   ahora en cada PDP porque el tráfico de ads cae directo al producto. */
.pdp-versus {
  max-width: 900px; margin: 0 auto; padding: 64px 0 40px;
}
.pdp-versus__label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 14px;
}
.pdp-versus__title {
  font-family: var(--f-head); font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--charcoal); margin: 0 0 28px;
}
.pdp-versus__title em { font-style: normal; color: var(--terra); }
.pdp-versus__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pdp-versus__table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 480px;
}
.pdp-versus__table thead th {
  padding: 12px 16px; border-bottom: 2px solid var(--charcoal);
  font-family: var(--f-head); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 700; text-align: left;
}
.pdp-versus__col-nara {
  background: var(--charcoal); color: #fff; text-align: center !important;
  border-radius: 6px 6px 0 0;
}
.pdp-versus__col-trad {
  color: var(--mist); text-align: center !important;
}
.pdp-versus__table tbody td {
  padding: 13px 16px; vertical-align: middle;
  color: var(--graphite);
}
.pdp-versus__table tbody td:first-child {
  font-weight: 500;
}
.pdp-versus__good {
  text-align: center; font-weight: 700; color: var(--matcha, #3D4A3E);
  background: rgba(61,74,62,0.06);
}
.pdp-versus__bad {
  text-align: center; color: var(--stone);
}
.pdp-versus__alt td { background: var(--paper); }
.pdp-versus__alt .pdp-versus__good { background: rgba(61,74,62,0.1); }
@media (max-width: 600px) {
  .pdp-versus { padding: 48px 16px 32px; }
  .pdp-versus__table { font-size: 13px; }
  .pdp-versus__table tbody td { padding: 11px 12px; }
}

/* ── Desglose de costos "¿En qué se va tu dinero?" (transparencia anti-estafa) ── */
.pdp-cost { padding: 8px 16px 40px; display: flex; justify-content: center; }
.pdp-cost__card {
  background: var(--charcoal); color: #fff; border-radius: 14px;
  padding: 26px 24px; max-width: 680px; width: 100%;
}
.pdp-cost__label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra-glow, #e8794e); margin-bottom: 16px;
}
.pdp-cost__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px; line-height: 1.4;
}
.pdp-cost__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pdp-cost__row--margin { color: var(--terra-glow, #e8794e); }
.pdp-cost__total {
  border-bottom: none; padding-top: 14px; font-size: 15px; font-weight: 800;
}
.pdp-cost__total span:last-child { font-weight: 800; }
.pdp-cost__note {
  font-size: 12px; color: rgba(255,255,255,0.65); margin: 14px 0 0; line-height: 1.6;
}
@media (max-width: 600px) {
  .pdp-cost { padding: 4px 16px 32px; }
  .pdp-cost__card { padding: 22px 18px; }
  .pdp-cost__row { font-size: 13px; }
}

/* ── Wishlist button ──────────────────────────────────────────────────── */
.wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(248,244,236,0.9); backdrop-filter: blur(6px);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--stone); transition: color 0.2s, background 0.2s, transform 0.2s;
  z-index: 10;
}
.wishlist-btn:hover { color: var(--terra); background: #fff; }
.wishlist-btn--active { color: var(--terra); }
.wishlist-btn--active svg path { fill: var(--terra); stroke: var(--terra); }
.wishlist-btn--pulse { animation: wishPulse 0.4s ease; }
@keyframes wishPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* ── WCAG 2.1 AA: Focus rings en todos los elementos interactivos ── */
*:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
.gallery__thumb:focus-visible { outline-offset: 2px; }
.swatch--dot:focus-visible { outline-offset: 2px; border-color: var(--charcoal); }
.tabs__btn:focus-visible { outline-offset: -2px; }
.buy__journey > summary:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; border-radius: 3px; }
.lightbox__close:focus-visible { outline: 2px solid #fff; border-radius: 2px; }

/* Sticky PDP: aumentar target size en mobile (44×44px mínimo WCAG 2.5.8) */
@media (max-width: 600px) {
  .gallery__thumb { width: 52px; height: 52px; }
  .swatch--dot { width: 44px; height: 44px; }
  .tabs__btn { padding: 16px 14px; min-height: 44px; }
}

/* ── Mobile overflow guard — evita que elementos internos rompan el viewport ── */
.page { overflow-x: hidden; }
.wrap { overflow-x: hidden; }

.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); padding: 16px 0 72px; align-items: start; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  /* Asegura que ningún elemento interno rompa el ancho del viewport */
  .pdp, .buy, .gallery { max-width: 100%; overflow-x: hidden; }
  .buy__name { word-break: break-word; }
  .dist-pick { grid-template-columns: repeat(3, 1fr); }
}

/* Galería — el bloque completo (imagen + miniaturas) queda sticky como unidad */
@media (min-width: 901px) { .gallery { position: sticky; top: 88px; align-self: start; } }
.gallery__main {
  background: var(--sand-deep); border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gallery__main { cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery__main:hover img { transform: scale(1.04); }

/* Lightbox (zoom de la imagen) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(26,26,27,0.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: fixed; top: 18px; right: 22px; color: #fff; font-size: 32px; line-height: 1; opacity: 0.8; }
@media (max-width: 900px) { .gallery__main { position: static; aspect-ratio: 1 / 1; } }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  width: 76px; height: 76px; border-radius: 4px; overflow: hidden;
  background: var(--sand-deep); border: 2px solid transparent; cursor: pointer;
  flex-shrink: 0; transition: border-color 0.2s, transform 0.15s; scroll-snap-align: start;
}
.gallery__thumb:hover { transform: scale(1.05); }
.gallery__thumb[aria-pressed="true"] { border-color: var(--charcoal); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.gallery__thumb--ph { display: flex; align-items: center; justify-content: center; color: var(--mist); font-size: 10px; }
/* Thumb de video (unboxing) — badge play sobrepuesto */
.gallery__thumb--video { position: relative; }
.gallery__thumb--video .gallery__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.gallery__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
/* Swipe hint en móvil */
@media (max-width: 900px) {
  .gallery__main::after { content: '← →'; position: absolute; bottom: 12px; right: 12px; font-size: 11px; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.3); padding: 3px 8px; border-radius: 100px; pointer-events: none; }
  .gallery__main { position: relative; }
}

/* Buy box */
.buy__sub { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px; }
.buy__name { font-family: var(--f-head); font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 16px; }
.buy__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--stone); }
.buy__stars { color: var(--terra); letter-spacing: 0.08em; font-size: 14px; }
.buy__guarantee { display: flex; gap: 12px; align-items: center; margin: 18px 0 24px; padding: 14px 16px; background: #FBEAE3; border: 1px solid #E8B8A6; border-radius: 4px; }
.buy__guarantee svg { color: var(--terra-dk); flex-shrink: 0; }
.buy__guarantee strong { display: block; font-size: 14px; color: var(--graphite); }
.buy__guarantee span { font-size: 12.5px; color: var(--stone); }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 12px; margin-bottom: 20px; }
.buy__price-now { font-family: var(--f-head); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.buy__price-was { font-size: 18px; }
.buy__save { font-size: 12px; font-weight: 600; color: var(--terra); background: #FBEAE3; padding: 4px 10px; border-radius: 100px; }
/* MSI badge debajo del precio — se fuerza a nueva línea con flex-basis:100% */
.buy__msi-note { display: block; flex-basis: 100%; font-size: 12px; color: #6b5a1f; background: #FFF4D6; border: 1px solid #E9D9A3; border-radius: 3px; padding: 6px 12px; margin-top: 2px; line-height: 1.45; }

/* MSI inline box verde (igual que Shopify msi-inline) — reemplaza el badge amarillo */
.buy__msi-inline {
  display: flex; flex-basis: 100%; align-items: center; gap: 8px;
  background: #effaef; border: 1px solid #2d8050; border-radius: 6px;
  padding: 9px 12px; margin-top: 4px; line-height: 1.4;
}
.buy__msi-inline__ic { font-size: 16px; line-height: 1; flex-shrink: 0; }
.buy__msi-inline__t { font-size: 12.5px; color: #1f4d33; }
.buy__msi-inline__t strong { font-weight: 700; color: #1f4d33; }
.buy__msi-inline__t span { font-weight: 700; color: #2d8050; }

/* Grid CRO de 4 íconos (igual que Shopify .cro) */
.buy__cro-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  margin: 0 0 20px;
}
.buy__cro-item {
  padding: 12px 8px; text-align: center; background: var(--paper);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.buy__cro-item:nth-child(2n) { border-right: none; }
.buy__cro-item:nth-last-child(-n+2) { border-bottom: none; }
.buy__cro-ic { font-size: 18px; line-height: 1; }
.buy__cro-tx { font-size: 10.5px; font-weight: 600; color: var(--graphite); line-height: 1.3; }
@media (min-width: 901px) {
  .buy__cro-grid { grid-template-columns: repeat(4, 1fr); }
  .buy__cro-item { border-bottom: none; }
  .buy__cro-item:nth-child(2n) { border-right: 1px solid var(--rule); }
  .buy__cro-item:last-child { border-right: none; }
}
.buy__desc { font-size: 15px; line-height: 1.75; color: var(--stone); margin-bottom: 28px; }
.buy__eta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 22px; font-size: 13.5px; color: var(--graphite); }
.buy__eta svg { color: var(--terra); flex-shrink: 0; margin-top: 2px; }
.buy__eta strong { font-weight: 600; color: var(--charcoal); }
.buy__eta [data-delivery-range] { color: var(--terra-dk); font-weight: 700; }
.buy__eta-sub { font-size: 12px; color: var(--stone); }
.buy__eta-why { font-size: 11.5px; color: var(--terra-dk); font-weight: 500; margin-top: 3px; display: block; }

/* Timeline del recorrido (4 hitos con fechas dinámicas) */
.buy__journey { margin: 0 0 22px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.buy__journey > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buy__journey > summary::-webkit-details-marker { display: none; }
.buy__journey-arrow { font-family: var(--f-body); font-size: 22px; font-weight: 300; color: var(--terra); transition: transform 0.3s var(--ease-out); line-height: 1; }
.buy__journey[open] .buy__journey-arrow { transform: rotate(45deg); }
.buy__journey-lede { font-size: 12.5px; color: var(--stone); line-height: 1.6; margin: 0 14px 14px; }
.dtl { list-style: none; padding: 0 18px 18px; margin: 0; position: relative; counter-reset: dtl; }
.dtl__step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.dtl__step:last-child { padding-bottom: 0; }
.dtl__step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--rule); }
.dtl__step:last-child::before { display: none; }
.dtl__num { width: 28px; height: 28px; border-radius: 50%; background: var(--charcoal); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: 13px; font-weight: 700; z-index: 1; flex-shrink: 0; }
.dtl__step:last-child .dtl__num { background: var(--terra); }
.dtl__body { padding-top: 3px; }
.dtl__t { font-size: 14px; font-weight: 600; color: var(--charcoal); line-height: 1.3; }
.dtl__d { font-size: 12.5px; color: var(--stone); line-height: 1.55; margin: 3px 0 6px; }
.dtl__date { font-size: 12.5px; font-weight: 700; color: var(--terra-dk); letter-spacing: 0.01em; }

.buy__opt { margin-bottom: 22px; }
.buy__opt-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; display: flex; gap: 8px; }
.buy__opt-label b { color: var(--charcoal); font-weight: 600; }

.buy__features { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.buy__features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--graphite); }
.buy__features svg { flex-shrink: 0; color: var(--terra); }

.buy__cta { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
/* ATC button variant in sticky bar */
.sticky-buy__btn--atc { background: var(--charcoal); }
.sticky-buy__btn--atc:hover { background: var(--graphite); }
.buy__trust { padding-top: 22px; border-top: 1px solid var(--rule); }
.buy__payment-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-badge {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 3px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--graphite);
  white-space: nowrap;
}
.pay-badge--mp    { border-color: #009EE3; color: #009EE3; }
.pay-badge--stripe { border-color: #635BFF; color: #635BFF; }
.pay-badge--spei  { border-color: var(--stone); color: var(--stone); }
.pay-badge--msi   { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.buy__secure-note {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px; font-size: 11.5px; color: var(--stone); line-height: 1.4;
}
.buy__secure-note svg { color: var(--matcha); flex-shrink: 0; }

/* Tabs */
.tabs { max-width: 1180px; margin: 0 auto; padding: 8px 0 64px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tabs__btn {
  padding: 14px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--stone); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tabs__btn[aria-selected="true"] { color: var(--charcoal); border-bottom-color: var(--terra); }
.tabs__panel { padding: 28px 0; font-size: 15px; line-height: 1.8; color: var(--stone); max-width: 720px; display: none; }
.tabs__panel.active { display: block; }
.tabs__panel h4 { font-family: var(--f-head); color: var(--charcoal); font-size: 16px; margin: 18px 0 8px; }
.tabs__panel ul { margin: 8px 0 8px 18px; }
.tabs__panel li { margin-bottom: 6px; }

/* Swatches visuales (círculos del color real) */
.swatches--color { gap: 12px; }
.swatch--dot { padding: 3px; background: transparent; border-radius: 100px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; transition: border-color 0.2s; }
.swatch--dot:hover { border-color: var(--rule); }
.swatch--dot[aria-pressed="true"] { border-color: var(--charcoal); background: transparent; }
.swatch__dot { width: 100%; height: 100%; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }

/* Specs */
.specs { width: 100%; border-collapse: collapse; margin-top: 18px; }
.specs th, .specs td { padding: 11px 14px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--rule); }
.specs th { color: var(--stone); font-weight: 500; width: 38%; }
.specs td { color: var(--charcoal); font-weight: 500; }

/* Reviews */
.reviews { max-width: 1180px; margin: 0 auto; padding: 24px 0 56px; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.reviews__title { font-family: var(--f-head); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.reviews__summary { font-size: 14px; color: var(--stone); }
.reviews__summary b { color: var(--charcoal); }
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .reviews__grid { grid-template-columns: 1fr; } }
.review { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 22px; }
.review__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.review__stars { color: var(--terra); letter-spacing: 0.06em; font-size: 14px; }
.review__verified { font-size: 11px; font-weight: 600; color: var(--matcha); background: #E8EFE6; padding: 3px 8px; border-radius: 100px; }
.review__text { font-size: 14px; line-height: 1.65; color: var(--graphite); font-style: italic; margin-bottom: 12px; }
.review__meta { font-size: 12.5px; color: var(--stone); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review__name { color: var(--charcoal); font-weight: 600; }
.review__dot { color: var(--mist); }

/* Related */
.related { max-width: 1180px; margin: 0 auto; padding: 8px 0 80px; }
.related__title { font-family: var(--f-head); font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 28px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .related__grid { grid-template-columns: 1fr; } }
.rel-card { display: block; border-radius: 6px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,26,27,0.08); }
.rel-card__img { aspect-ratio: 4 / 3; background: var(--sand-deep); overflow: hidden; }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.rel-card:hover .rel-card__img img { transform: scale(1.05); }
.rel-card__body { padding: 16px 18px 20px; }
.rel-card__name { font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.rel-card__sub { font-size: 12px; color: var(--stone); margin: 2px 0 8px; }
.rel-card__price { font-size: 14px; font-weight: 600; color: var(--terra); }

/* ─── Sticky buy bar (móvil) ──────────────────────── */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(248,244,236,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: 11px clamp(16px,5vw,24px); padding-bottom: max(11px, env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 -6px 24px rgba(26,26,27,0.06);
}
.sticky-buy__info { min-width: 0; }
.sticky-buy__name { font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-size: 13px; color: var(--terra); font-weight: 600; margin-top: 1px; }
.sticky-buy__btn { flex-shrink: 0; height: 46px; padding: 0 24px; background: var(--terra); color: #fff; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; transition: background 0.2s, transform 0.15s var(--ease-out); }
.sticky-buy__btn:hover { background: var(--terra-dk); }
.sticky-buy__btn:active { transform: scale(0.97); }
@media (max-width: 760px) { .sticky-buy { display: flex; } .footer { padding-bottom: 92px; } }


/* ── Configurador modal (embebido en PDP, sin saltar de página) ── */
.cfg-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(26,26,27,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.cfg-modal.open { display: flex; }
.cfg-modal__inner { background: var(--sand); border-radius: 10px; width: 100%; max-width: 1100px; height: 90vh; max-height: 860px; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.cfg-modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--charcoal); color: #fff; border: none; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cfg-modal__close:hover { background: var(--terra); }
.cfg-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .cfg-modal { padding: 0; } .cfg-modal__inner { height: 100vh; max-height: none; border-radius: 0; } }

/* ── FEATURES (ingeniería soft) ── */
.feat { max-width: 1180px; margin: 0 auto; padding: 64px 0; }
.feat__label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 12px; }
.feat__title { font-family: var(--f-head); font-size: clamp(24px,3.5vw,36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 36px; }
.feat__title em { font-style: normal; color: var(--terra); }
.feat__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat__card { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 28px 24px; }
.feat__num { font-family: var(--f-head); font-size: 30px; font-weight: 800; color: var(--terra); opacity: 0.5; margin-bottom: 14px; }
.feat__t { font-family: var(--f-head); font-size: 17px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.feat__x { font-size: 14px; line-height: 1.6; color: var(--stone); margin: 0; }
@media (max-width: 760px) { .feat__grid { grid-template-columns: 1fr; } }

/* ── FOUNDER en PDP ── */
.fnd-pdp { max-width: 1180px; margin: 0 auto; padding: 24px 0 64px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.fnd-pdp__media { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--sand-deep); }
.fnd-pdp__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.fnd-pdp__label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 12px; }
.fnd-pdp__t { font-family: var(--f-head); font-size: clamp(24px,3.5vw,38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 20px; }
.fnd-pdp__x { font-size: 15px; line-height: 1.7; color: var(--graphite); margin: 0 0 16px; }
.fnd-pdp__x strong { color: var(--charcoal); }
.fnd-pdp__sign { font-family: var(--f-head); font-weight: 700; font-size: 15px; margin: 8px 0 20px; }
.fnd-pdp__sign span { font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--stone); }
@media (max-width: 760px) { .fnd-pdp { grid-template-columns: 1fr; gap: 24px; } }

/* ── FAQ en PDP ── */
.faq-pdp { max-width: 760px; margin: 0 auto; padding: 0 0 72px; }
.faq-pdp__label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 10px; }
.faq-pdp__title { font-family: var(--f-head); font-size: clamp(24px,3.5vw,34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 28px; }
.faq-pdp__i { border-top: 1px solid var(--rule); }
.faq-pdp__i:last-child { border-bottom: 1px solid var(--rule); }
.faq-pdp__i summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-pdp__i summary::-webkit-details-marker { display: none; }
.faq-pdp__chev { font-family: var(--f-body); font-size: 22px; font-weight: 300; color: var(--terra); flex-shrink: 0; transition: transform 0.25s; }
.faq-pdp__i[open] .faq-pdp__chev { transform: rotate(45deg); }
.faq-pdp__a { padding: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--stone); max-width: 640px; }


/* ── Distribución SORA inline (selector dentro del buy box) ── */
.dist-pick { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.dist-pick__btn { background: var(--paper); border: 1.5px solid var(--rule); border-radius: 6px; padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .2s, background .2s; }
.dist-pick__btn:hover { border-color: var(--stone); }
.dist-pick__btn[aria-pressed="true"] { border-color: var(--terra); background: #fef9f5; }
.dist-pick__btn svg { width: 36px; height: 29px; color: var(--stone); }
.dist-pick__btn[aria-pressed="true"] svg { color: var(--terra); }
.dist-pick__btn span { font-size: 9.5px; font-weight: 600; color: var(--stone); letter-spacing: 0.01em; text-align: center; }
.dist-pick__btn[aria-pressed="true"] span { color: var(--charcoal); }
.dist-pick__hint { font-size: 11.5px; color: var(--mist); margin: 8px 0 0; line-height: 1.4; }
@media (max-width: 420px) { .dist-pick { grid-template-columns: repeat(3,1fr); } }

/* ── UGC — tarjetas de cliente (foto + reseña) ── */
.ugc { max-width: 1180px; margin: 0 auto; padding: 64px 0; }
.ugc__title { font-family: var(--f-head); font-size: clamp(22px,3.2vw,30px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 28px; }
.ugc__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ugc__item { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ugc__photo { aspect-ratio: 1; overflow: hidden; background: var(--sand-deep); }
.ugc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.ugc__item:hover .ugc__photo img { transform: scale(1.04); }
.ugc__cap { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ugc__stars { color: var(--terra); font-size: 12px; letter-spacing: 0.1em; }
.ugc__quote { font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--charcoal); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.ugc__text { font-size: 12.5px; color: var(--stone); line-height: 1.5; margin: 0; }
.ugc__who { font-size: 11.5px; color: var(--mist); margin-top: 2px; }
.ugc__who .ugc__name { color: var(--graphite); font-weight: 600; }
@media (max-width: 900px) { .ugc__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ugc__grid { grid-template-columns: 1fr; } }

/* ── MEDIDAS REALES — stats de dimensión con arco (firma NARA) ── */
.medidas { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px; text-align: center; }
.medidas__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 24px); max-width: 860px; margin: 0 auto 26px;
}
.medidas__stat {
  background: var(--paper, #FBFAF5);
  border: 1px solid var(--rule, rgba(46,43,40,0.12));
  border-radius: 120px 120px 10px 10px;
  padding: clamp(30px, 4vw, 46px) 14px clamp(20px, 2.6vw, 30px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.medidas__num {
  font-family: var(--f-head); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 44px); color: var(--charcoal, #2E2B28); line-height: 1;
}
.medidas__num em { font-style: normal; font-size: 0.42em; font-weight: 600; color: var(--terra, #2F7A4D); margin-left: 3px; }
.medidas__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone, #7A756E); }
.medidas__box {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(47,122,77,0.09); color: var(--charcoal, #2E2B28);
  border-radius: 100px; padding: 12px 22px; font-size: 14px; margin: 0 auto 30px;
  text-align: left;
}
.medidas__box svg { flex: 0 0 auto; color: var(--terra, #2F7A4D); }
.medidas__table { max-width: 640px; margin: 0 auto; text-align: left; }
.medidas__table .specs { width: 100%; }
@media (max-width: 560px) { .medidas__stats { grid-template-columns: 1fr 1fr; } }

/* ── Swatches de color con nombre (chips) ── */
.swatch--chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 9px; border-radius: 100px;
  background: var(--paper, #FBFAF5);
  border: 1.5px solid var(--rule, rgba(46,43,40,0.14));
  font-size: 13px; font-weight: 500; color: var(--charcoal, #2E2B28);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.swatch--chip .swatch__dot { width: 20px; height: 20px; flex: 0 0 auto; }
.swatch--chip:hover { border-color: var(--stone, #7A756E); }
.swatch--chip[aria-pressed="true"] {
  border-color: var(--charcoal, #2E2B28);
  box-shadow: 0 0 0 1px var(--charcoal, #2E2B28);
  font-weight: 700;
}
.swatches--color { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Dropdown Catálogo del nav ── */
.nav__dd { position: relative; }
.nav__dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; }
.nav__dd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 250px; background: var(--paper, #FBFAF5);
  border: 1px solid var(--rule, rgba(46,43,40,0.12)); border-radius: 14px;
  box-shadow: 0 22px 48px rgba(46,43,40,0.16);
  padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav__dd:hover .nav__dd-menu, .nav__dd:focus-within .nav__dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; } /* puente hover */
.nav__dd-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
}
.nav__dd-item b { font-size: 12.5px; letter-spacing: .06em; color: var(--charcoal, #2E2B28); }
.nav__dd-item span { font-size: 12px; color: var(--stone, #7A756E); }
.nav__dd-item:hover { background: rgba(47,122,77,0.09); }
.nav__dd-item--active b { color: var(--terra, #2F7A4D); }

/* Pill de producto insignia (SORA) */
.buy__flag { display: inline-block; background: var(--terra, #2F7A4D); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 10px; border-radius: 100px; vertical-align: middle; margin-right: 6px; }

/* ── Guard anti-overflow móvil (auditoría 2026-07-13, fix grid-blowout) ──
   El min-width:480px de la tabla comparativa forzaba el track 1fr a min-content
   y ensanchaba toda la columna .buy. minmax(0,1fr) + min-width:0 lo corrige. */
@media (max-width: 900px){
  .pdp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px){
  .pdp > *, .buy, .gallery { min-width: 0; }
  .pdp-versus { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .pdp-versus__table { min-width: 0; }
  .buy__eta, .buy__eta *, .buy__cro-tx, .trust__item { overflow-wrap: anywhere; }
  img, video { max-width: 100%; height: auto; }
}
