/* ==========================================================================
   SantaMati — Ficha de producto (PDP)
   Depende de las variables :root de santamati.css y de [data-reveal]/.sm-card
   ya definidos en santamati-landing.css.
   ========================================================================== */

.pdp { max-width: 1180px; margin: 0 auto; padding: 18px 20px 80px; }

.pdp-crumbs { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.02em; margin: 0 0 22px; }
.pdp-crumbs a { color: var(--ink-soft); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--gold-deep); }
.pdp-crumbs span { color: var(--ink); font-weight: 600; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.pdp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: flex-start; }
@media (max-width: 860px) { .pdp-hero { grid-template-columns: 1fr; gap: 26px; } }

.pdp-gallery { position: sticky; top: 90px; }
@media (max-width: 860px) { .pdp-gallery { position: static; } }

.pdp-gallery-main {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--paper-2), var(--paper));
  border: 1px solid rgba(var(--gold-rgb), 0.16);
}
.pdp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: center; justify-content: center; }
.pdp-slide.is-active { opacity: 1; }
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; }
.pdp-bottle-svg { width: 44%; height: auto; filter: drop-shadow(0 18px 30px rgba(26,22,18,0.18)); }

.pdp-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #cc2200; color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 900;
  letter-spacing: 0.03em; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(204,34,0,0.35);
  animation: pdpBadgePulse 1.8s ease-in-out infinite;
}
@keyframes pdpBadgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 66px; height: 66px; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; background: var(--paper-2);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 0.9; }
.pdp-thumb.is-active { opacity: 1; border-color: var(--gold); }

/* ── BUYBOX (tarjeta clara) ───────────────────────────────────────────── */
.pdp-buybox {
  background: var(--paper-2); color: var(--ink); border-radius: 18px;
  padding: 32px 30px; box-shadow: 0 20px 50px rgba(26,22,18,0.08); border: 1px solid rgba(var(--gold-rgb), 0.16);
}
.pdp-eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 8px; }
.pdp-eyebrow-name { font-weight: 900; font-size: 13px; letter-spacing: 0.06em; margin-left: 2px; }
.pdp-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--ink); margin: 0 0 14px; }

.pdp-rating-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 18px; transition: transform 0.36s cubic-bezier(0.16,1,0.3,1); }
.pdp-rating-link:hover { transform: scale(1.05); }
.pdp-rating-num { font-family: var(--sans); font-size: 13px; font-weight: 800; color: var(--ink); }
.pdp-rating-count { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
/* Estrellas: mismo brillo en cascada de las tarjetas del catálogo, siempre activo */
.pdp-rating-stars svg polygon:nth-child(1) { animation: pdpStarWave 3.5s 0.00s ease-in-out infinite; }
.pdp-rating-stars svg polygon:nth-child(2) { animation: pdpStarWave 3.5s 0.14s ease-in-out infinite; }
.pdp-rating-stars svg polygon:nth-child(3) { animation: pdpStarWave 3.5s 0.28s ease-in-out infinite; }
.pdp-rating-stars svg polygon:nth-child(4) { animation: pdpStarWave 3.5s 0.42s ease-in-out infinite; }
.pdp-rating-stars svg polygon:nth-child(5) { animation: pdpStarWave 3.5s 0.56s ease-in-out infinite; }
@keyframes pdpStarWave { 0%, 55%, 100% { fill: #c9a96e; } 25% { fill: #f5e0a0; } }

.pdp-price-block { display: flex; flex-direction: column; gap: 4px; }
.pdp-price-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* Precio tachado: la línea se dibuja de izq. a der. cada vez que el bloque de precio entra al viewport */
.pdp-price-anchor { font-family: var(--sans); font-size: 17px; color: var(--ink-soft); display: inline-block; position: relative; }
.pdp-price-anchor::after { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--ink-soft); transition: width 0.45s ease 0.05s; }
.pdp-price-block.is-visible .pdp-price-anchor::after { width: 100%; }
/* Precio principal: cae suavemente desde arriba, se repite cada vez que entra al viewport */
@keyframes pdpPriceDrop { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.pdp-price-current { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--gold-deep); opacity: 0; }
.pdp-price-block.is-visible .pdp-price-current { animation: pdpPriceDrop 0.45s ease 0.28s both; }
/* Ahorras: salta con bounce, se repite cada vez que entra al viewport */
@keyframes pdpSavingsPop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.12); } 80% { transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
.pdp-savings { display: inline-flex; align-items: center; gap: 4px; background: rgba(74,124,78,0.1); border: 1px solid rgba(74,124,78,0.22); border-radius: 20px; padding: 3px 10px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: #4a7c4e; margin: 0; opacity: 0; transform: scale(0.6); }
.pdp-price-block.is-visible .pdp-savings { animation: pdpSavingsPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.55s both; }

.pdp-desire { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }

.pdp-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 24px 0 10px; }

.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid rgba(var(--gold-rgb), 0.35);
  background: var(--paper); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font-family: var(--sans); min-width: 0;
}
.pdp-size-btn .ml { font-size: 12px; font-weight: 700; color: var(--ink); }
.pdp-size-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.pdp-size-btn:active { transform: translateY(0) scale(0.96); }
.pdp-size-btn.is-active {
  border-color: var(--gold); background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.16);
  animation: pdpSizePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pdpSizePop { 0% { transform: scale(0.92); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
.pdp-size-btn.is-active .ml { color: var(--ink); }
.pdp-size-btn.is-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.pdp-status-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pdp-status-stack .pdp-social-proof,
.pdp-status-stack .pdp-urgency { margin-top: 0; }

.pdp-cta-row { display: flex; align-items: stretch; gap: 10px; margin-top: 22px; height: 40px; }

.pdp-qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid rgba(var(--gold-rgb), 0.35); border-radius: 10px; background: var(--paper); overflow: hidden; flex-shrink: 0; }
.pdp-qty-btn {
  width: 30px; height: 100%; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 700;
  color: var(--ink); transition: background 0.2s ease, transform 0.12s ease;
}
.pdp-qty-btn:hover { background: rgba(var(--gold-rgb), 0.12); }
.pdp-qty-btn:active { transform: scale(0.85); background: rgba(var(--gold-rgb), 0.22); }
.pdp-qty-input {
  width: 32px; height: 100%; border: 0; border-left: 1.5px solid rgba(var(--gold-rgb), 0.25); border-right: 1.5px solid rgba(var(--gold-rgb), 0.25);
  background: transparent; text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink);
  -moz-appearance: textfield; transition: transform 0.15s ease;
}
.pdp-qty-input::-webkit-outer-spin-button, .pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-qty-input.pdp-qty-bump { animation: pdpQtyBump 0.25s ease; }
@keyframes pdpQtyBump { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }

.pdp-cta, .pdp-cta--outline {
  display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0;
  padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none;
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.3);
}
.pdp-cta--outline { width: 100%; margin-top: 22px; flex: none; padding: 17px 20px; }
.pdp-cta::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.pdp-cta:hover::before { animation: pdpCtaShimmer 0.7s ease forwards; }
@keyframes pdpCtaShimmer { from { left: -120%; } to { left: 140%; } }
.pdp-cta:hover, .pdp-cta--outline:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(var(--gold-rgb), 0.4); }
.pdp-cta:active { transform: translateY(0) scale(0.98); }
.pdp-cta.is-loading { opacity: 0.75; cursor: wait; }
.pdp-cta.is-added { background: linear-gradient(135deg, #8fcf93, #4a7c4e); color: #fff; }
.pdp-cta--outline { background: var(--ink); color: var(--gold); box-shadow: none; }

.pdp-cta-note { text-align: center; font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft); margin: 10px 0 0; }

.pdp-urgency {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  background: rgba(192,57,43,0.06); border-left: 3px solid #c0392b;
  border-radius: 4px; padding: 6px 10px;
  animation: pdpUrgencyShake 2s ease-in-out infinite;
}
.pdp-urgency-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #c0392b; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(192,57,43,0.55); animation: pdpUrgencyDotPulse 1.4s ease-in-out infinite;
}
.pdp-urgency p { font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: #c0392b; margin: 0; }
@keyframes pdpUrgencyDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192,57,43,0.55); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(192,57,43,0); }
}
/* Sacudida más seguida, para que se note constantemente sin dejar de ser sutil */
@keyframes pdpUrgencyShake {
  0%, 70%, 100% { transform: translateX(0) rotate(0deg); }
  73%  { transform: translateX(-7px) rotate(-2deg); }
  76%  { transform: translateX(6px) rotate(2deg); }
  79%  { transform: translateX(-6px) rotate(-2deg); }
  82%  { transform: translateX(5px) rotate(1.5deg); }
  85%  { transform: translateX(-4px) rotate(-1deg); }
  88%  { transform: translateX(2px) rotate(0.5deg); }
  91%  { transform: translateX(0) rotate(0deg); }
}

/* Timeline de entrega dentro de la buybox: misma pieza del Home, pero chica para
   que quepa entera en el ancho de la caja de compra sin desbordarse. */
.pdp-buybox-tline { margin-top: 18px; }
.pdp-buybox-tline .sm-tline-dot { width: 26px; height: 26px; }
.pdp-buybox-tline .sm-tline-dot svg { width: 11px; height: 11px; }
.pdp-buybox-tline .sm-tline-track { top: 13px; }
.pdp-buybox-tline .sm-tline-label { font-size: 9px; }
.pdp-buybox-tline .sm-tline-date { font-size: 11px; }
.pdp-buybox-tline .sm-tline-arrow { font-size: 12px; }
/* En el Home, a los 640px la línea pasa a 2x2 en zigzag (mucho más espacio ahí).
   Dentro de la buybox no hay espacio para eso: se mantiene en fila incluso en
   celular, solo que aún más chica. */
@media (max-width: 640px) {
  .pdp-buybox-tline.sm-tline { grid-template-columns: repeat(4, 1fr); row-gap: 0; }
  .pdp-buybox-tline .sm-tline-track { display: block; }
  .pdp-buybox-tline .sm-tline-arrow--h,
  .pdp-buybox-tline .sm-tline-arrow--v { display: none; }
  .pdp-buybox-tline .sm-tline-dot { width: 22px; height: 22px; }
  .pdp-buybox-tline .sm-tline-dot svg { width: 9px; height: 9px; }
  .pdp-buybox-tline .sm-tline-track { top: 11px; }
  .pdp-buybox-tline .sm-tline-label { font-size: 7.5px; }
  .pdp-buybox-tline .sm-tline-date { font-size: 9px; }
}
@media (max-width: 380px) {
  .pdp-buybox-tline .sm-tline-label { display: none; }
}

.pdp-social-proof {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: #3f7a45;
  background: rgba(76,175,80,0.06); border-left: 3px solid #4caf50;
  border-radius: 4px; padding: 6px 10px;
}
.pdp-social-proof-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4caf50; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(76,175,80,0.55); animation: pdpLiveDotPulse 1.8s ease-out infinite;
}
@keyframes pdpLiveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,80,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* ── VALUE REFRAME ────────────────────────────────────────────────────── */
.pdp-value { max-width: 720px; margin: 90px auto 0; text-align: center; }
.pdp-value h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 32px); color: var(--ink); margin: 10px 0 28px; line-height: 1.25; }
.pdp-value-box {
  background: var(--paper-2); border: 1.5px solid rgba(var(--gold-rgb), 0.4); color: var(--ink);
  border-radius: 16px; padding: 40px 32px; box-shadow: 0 20px 50px rgba(var(--gold-rgb), 0.14);
}
.pdp-value-box p { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.pdp-value-box .strike { text-decoration: line-through; opacity: 0.7; }
.pdp-value-price {
  position: relative; display: inline-block; font-family: var(--display); font-size: clamp(40px, 7vw, 58px);
  margin-top: 14px; background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: pdpValueShimmer 3.5s linear infinite;
}
.pdp-value-price::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 64px; height: 3px; border-radius: 3px;
  background: var(--gold); transform: translateX(-50%);
}
@keyframes pdpValueShimmer { to { background-position: -200% center; } }

.pdp-eyebrow-c { text-align: center; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }

/* ── ACORDEONES ───────────────────────────────────────────────────────── */
.pdp-accordions { max-width: 780px; margin: 90px auto 0; }
/* Variante oscura: redefine las mismas variables que ya usan todas las reglas de
   abajo (--ink, --ink-soft, --paper-2, --gold-deep), así no hay que duplicar CSS. */
.pdp-accordions--dark {
  background: #1a1612; padding: 64px 24px 20px; margin: 90px 0 0; max-width: none;
  width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  --ink: #faf6ee; --ink-soft: rgba(250,246,238,0.65); --paper-2: rgba(255,255,255,0.06); --gold-deep: #c9a96e;
}
.pdp-accordions--dark .pdp-accordions-inner { max-width: 780px; margin: 0 auto; }
.pdp-acc { border-bottom: 1px solid rgba(var(--gold-rgb), 0.2); }
.pdp-acc-head {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: none; border: 0; cursor: pointer; text-align: left; padding: 22px 4px;
  position: relative;
}
.pdp-acc-head .k { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.pdp-acc-head .t { font-family: var(--display); font-size: 20px; color: var(--ink); }
.pdp-acc-head::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 26px; color: var(--gold-deep); transition: transform 0.25s ease;
}
.pdp-acc.is-open .pdp-acc-head::after { transform: translateY(-50%) rotate(45deg); }
.pdp-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.pdp-acc.is-open .pdp-acc-body { max-height: 1400px; }
.pdp-acc-body p { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--ink-soft); padding: 0 4px 26px; margin: 0; }

.pdp-pyramid { padding: 0 4px 22px; display: flex; flex-direction: column; gap: 10px; }
.pdp-pyramid-tier { border: 1px solid rgba(var(--gold-rgb), 0.22); border-radius: 10px; overflow: hidden; }
.pdp-pyramid-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--paper-2); padding: 14px 18px; }
.pdp-pyramid-head .lbl { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); }
.pdp-pyramid-notes { font-family: var(--serif); font-size: 15.5px; color: var(--ink-soft); padding: 14px 18px; margin: 0; }

.pdp-ficha { padding: 0 4px 26px; display: flex; flex-direction: column; }
.pdp-ficha-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(var(--gold-rgb), 0.25); }
.pdp-ficha-row:last-child { border-bottom: 0; }
.pdp-ficha-row .k { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.pdp-ficha-row .v { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }

.pdp-ocasiones { padding: 0 4px 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 520px) { .pdp-ocasiones { grid-template-columns: 1fr; } }
.pdp-ocasion { background: var(--paper-2); border-radius: 10px; padding: 16px; }
.pdp-ocasion .ic { font-size: 20px; margin-bottom: 6px; }
.pdp-ocasion .tt { font-family: var(--sans); font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.pdp-ocasion .ds { font-family: var(--serif); font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.45; }

.pdp-porque { list-style: none; margin: 0; padding: 0 4px 26px; display: flex; flex-direction: column; gap: 10px; }
.pdp-porque li { font-family: var(--serif); font-size: 16.5px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.pdp-porque li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }

.pdp-protegida { padding: 0 4px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 600px) { .pdp-protegida { grid-template-columns: repeat(2, 1fr); } }
.pdp-protegida .pp {
  text-align: center; background: var(--paper-2); border-radius: 10px; padding: 18px 10px;
  border: 1px solid transparent; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pdp-protegida .pp:hover {
  transform: translateY(-5px); border-color: rgba(var(--gold-rgb), 0.5);
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.18);
  animation-play-state: paused;
}
/* Respiración constante, sin necesitar hover: ícono + halo, escalonados por tarjeta.
   Solo corre mientras .pdp-protegida está en pantalla (clase .is-visible puesta por
   JS con IntersectionObserver) — así se ve de inmediato, no hasta que le toque turno
   a una animación que ya llevaba corriendo desde que cargó la página. */
.pdp-protegida.is-visible .pp {
  animation: pdpProtegidaFloat 3.6s ease-in-out infinite;
}
.pdp-protegida.is-visible .pp:nth-child(1) { animation-delay: 0s; }
.pdp-protegida.is-visible .pp:nth-child(2) { animation-delay: 0.15s; }
.pdp-protegida.is-visible .pp:nth-child(3) { animation-delay: 0.3s; }
.pdp-protegida.is-visible .pp:nth-child(4) { animation-delay: 0.45s; }
@keyframes pdpProtegidaFloat {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--gold-rgb), 0); }
  50%      { box-shadow: 0 6px 18px rgba(var(--gold-rgb), 0.16); transform: translateY(-3px); }
}
.pdp-protegida .ic {
  display: block; font-size: 22px; color: var(--gold-deep); margin-bottom: 8px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.pdp-protegida.is-visible .ic {
  animation: pdpProtegidaIcPulse 3.6s ease-in-out infinite;
}
.pdp-protegida.is-visible .pp:nth-child(1) .ic { animation-delay: 0s; }
.pdp-protegida.is-visible .pp:nth-child(2) .ic { animation-delay: 0.15s; }
.pdp-protegida.is-visible .pp:nth-child(3) .ic { animation-delay: 0.3s; }
.pdp-protegida.is-visible .pp:nth-child(4) .ic { animation-delay: 0.45s; }
@keyframes pdpProtegidaIcPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.pdp-protegida .pp:hover .ic { animation-play-state: paused; transform: scale(1.25) rotate(-8deg); }
.pdp-protegida .pp p { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .pdp-protegida .pp, .pdp-protegida .ic { animation: none; }
}

/* ── RESEÑAS (envuelve el markup nativo de WooCommerce/WordPress) ───────── */
.pdp-reviews { max-width: 780px; margin: 90px auto 0; }
.pdp-reviews-head { text-align: center; margin-bottom: 30px; }
.pdp-reviews-head h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 30px); color: var(--ink); margin: 0 0 16px; }
.pdp-reviews-avg { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pdp-reviews-avg .num { font-family: var(--display); font-size: 36px; color: var(--ink); }
.pdp-reviews-avg p { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; }
.pdp-review-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--gold); color: var(--gold-deep); border-radius: 999px;
  padding: 10px 22px; cursor: pointer; transition: background 0.2s ease;
}
.pdp-review-cta:hover { background: rgba(var(--gold-rgb), 0.1); }

/* Overrides del markup nativo de WooCommerce dentro de #comments / #review_form_wrapper */
.pdp-reviews-native .woocommerce-Reviews { font-family: var(--sans); }
.pdp-reviews-native #comments { margin-bottom: 30px; }
.pdp-reviews-native .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pdp-reviews-native .comment_container { background: var(--paper-2); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; }
.pdp-reviews-native .avatar { border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; }
.pdp-reviews-native .comment-text { flex: 1; }
.pdp-reviews-native .star-rating { color: var(--gold); font-size: 14px; margin-bottom: 4px; }
.pdp-reviews-native .comment-text p.meta strong { font-family: var(--sans); font-size: 13.5px; font-weight: 800; color: var(--ink); }
.pdp-reviews-native .comment-text .description p { font-family: var(--serif); font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 0; }
.pdp-reviews-native .woocommerce-review__dash,
.pdp-reviews-native .woocommerce-review__published-date { display: none; }
.pdp-reviews-native #review_form_wrapper {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.pdp-reviews-native.is-form-open #review_form_wrapper { max-height: 900px; }
.pdp-reviews-native #review_form { background: var(--paper-2); border-radius: 12px; padding: 22px; margin-top: 6px; }
.pdp-reviews-native #reply-title { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 0 0 14px; }
.pdp-reviews-native .comment-form-rating label,
.pdp-reviews-native .comment-form-comment label,
.pdp-reviews-native .comment-form-author label,
.pdp-reviews-native .comment-form-email label { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.pdp-reviews-native input[type="text"],
.pdp-reviews-native input[type="email"],
.pdp-reviews-native textarea,
.pdp-reviews-native select {
  width: 100%; font-family: var(--sans); font-size: 14px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(var(--gold-rgb), 0.3); background: var(--paper); margin-bottom: 14px;
}
.pdp-reviews-native #submit {
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--ink); border: 0; border-radius: 8px; padding: 12px 26px; cursor: pointer;
}

/* ── CROSS-SELL ───────────────────────────────────────────────────────── */
.pdp-crosssell { margin: 90px auto 0; max-width: 1180px; }
/* .pdp ya trae 20px de padding lateral; sin esto, el carrusel sumaba el padding
   propio de .sm-bs-wrap encima y las tarjetas quedaban más angostas que en el Home. */
.pdp-crosssell .sm-bs-wrap { padding-left: 0; padding-right: 0; }
@media (max-width: 768px) {
  .pdp-crosssell .sm-bs-wrap { padding-left: 0; padding-right: 0; }
  .pdp-crosssell .sm-savings { font-size: 10px; padding: 3px 7px 3px 6px; white-space: nowrap; }
  .pdp-crosssell .sm-cta { font-size: 11px; padding: 9px; }
}
.pdp-crosssell-head { text-align: center; margin-bottom: 30px; }
.pdp-crosssell-head h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 30px); color: var(--ink); margin: 8px 0 0; }
.pdp-crosssell-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .pdp-crosssell-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pdp-crosssell-grid { grid-template-columns: 1fr; } }

/* ── CTA FINAL (copiado tal cual del footer del catálogo, mismas clases) ─── */
.sm-cat-footer { background: #1a1612; padding: 56px 24px; position: relative; overflow: hidden; }
.sm-cat-footer-inner { max-width: 600px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.sm-cat-footer-inner .title { font-family: 'Italiana', serif; font-size: clamp(22px,4vw,34px); color: #faf6ee; margin-bottom: 8px; letter-spacing: 0.02em; }
.sm-cat-footer-inner .sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(14px,2.5vw,17px); color: rgba(250,246,238,0.48); margin-bottom: 28px; line-height: 1.55; }
.sm-cat-footer-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px; background: #c9a96e; color: #1a1612;
  font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 3px; text-decoration: none;
  transition: filter 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  animation: smWaPulseGlow 2.6s ease-in-out infinite;
}
.sm-cat-footer-cta:hover { filter: brightness(1.08); color: #1a1612; transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 28px rgba(201,169,110,0.4); }
.sm-cat-footer-cta:active { transform: translateY(-1px) scale(0.97); }
.sm-cat-footer-cta svg,
.sm-cat-footer-cta span { position: relative; z-index: 1; }
.sm-cat-footer-cta svg { transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.sm-cat-footer-cta:hover svg { transform: rotate(-8deg) scale(1.1); }
.sm-cat-footer-cta::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.65) 50%, transparent 60%);
  background-size: 250% 100%; background-position: -140% 0;
  animation: smWaShine 2.6s ease-in-out infinite;
}
@keyframes smWaPulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(201,169,110,0); }
  50%      { box-shadow: 0 0 22px rgba(201,169,110,0.45); }
}
@keyframes smWaShine {
  0%, 55% { background-position: -140% 0; }
  100%    { background-position: 140% 0; }
}
/* Versión clara: mismo layout/botón, solo cambia el fondo (como ya lo tenía la ficha de producto) */
.sm-cat-footer--light { background: var(--paper); }
.sm-cat-footer--light .sm-cat-footer-inner .title { color: var(--ink); }
.sm-cat-footer--light .sm-cat-footer-inner .sub { color: var(--ink-soft); }

/* ── STICKY CTA ───────────────────────────────────────────────────────── */
.pdp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); background: var(--paper);
  box-shadow: 0 -8px 28px rgba(26,22,18,0.16);
}
/* Franja dorada arriba de la barra: la separa claramente de lo que hay detrás
   al hacer scroll, en vez de un borde de 1px que se pierde. */
.pdp-sticky::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold), var(--gold-light), var(--gold-deep));
  background-size: 200% auto; animation: pdpStickyBarShift 4s linear infinite;
}
.pdp-sticky.is-visible { transform: translateY(0); animation: pdpStickyGlow 3s ease-in-out 0.4s infinite; }
@keyframes pdpStickyGlow {
  0%, 100% { box-shadow: 0 -8px 28px rgba(26,22,18,0.16); }
  50%      { box-shadow: 0 -10px 34px rgba(var(--gold-rgb), 0.4); }
}
@keyframes pdpStickyBarShift { to { background-position: -200% center; } }
.pdp-sticky-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 640px) { .pdp-sticky-inner { padding: 18px 10px; gap: 6px; } }
.pdp-sticky-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdp-sticky-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (max-width: 640px) { .pdp-sticky-thumb { display: none; } }
.pdp-sticky-info:hover .pdp-sticky-thumb { transform: scale(1.08) rotate(-2deg); box-shadow: 0 4px 14px rgba(var(--gold-rgb), 0.35); }
.pdp-sticky-info .name { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .pdp-sticky-info .name { max-width: 60px; font-size: 10.5px; } }
@media (max-width: 640px) { .pdp-sticky-info .price { font-size: 11px; } }
.pdp-sticky-info .price { font-family: var(--sans); font-size: 13px; font-weight: 800; color: var(--gold-deep); margin: 2px 0 0; transition: transform 0.2s ease; }
.pdp-sticky-btn {
  position: relative; overflow: hidden;
  flex-shrink: 0; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 8px; text-decoration: none;
  font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (max-width: 640px) { .pdp-sticky-btn { padding: 15px 12px; font-size: 10.5px; } }
.pdp-sticky-btn::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.pdp-sticky-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.4); }
.pdp-sticky-btn:hover::before { animation: pdpCtaShimmer 0.7s ease forwards; }
.pdp-sticky-btn:active { transform: translateY(0) scale(0.96); }
.pdp-sticky-btn.pdp-qty-bump { animation: pdpQtyBump 0.3s ease; }

.pdp-sticky-sizes { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) { .pdp-sticky-sizes { gap: 3px; } }
.pdp-sticky-size-btn {
  border: 1.5px solid rgba(var(--gold-rgb), 0.35); background: var(--paper); color: var(--ink);
  border-radius: 8px; padding: 8px 12px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
@media (max-width: 640px) { .pdp-sticky-size-btn { padding: 12px 9px; font-size: 10.5px; } }
.pdp-sticky-size-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.pdp-sticky-size-btn.is-active {
  border-color: var(--gold); background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
}
.pdp-sticky-size-btn.is-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
