/* ============================================
   DESEI — Ficha de producto v1.0
   Sistema de diseño coherente con la home
   ============================================ */

/* ── BASE ── */
.desei-product-page {
  font-family: var(--b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--INK);
  background: var(--CR);
  overflow-x: hidden;
}

/* Heredar sistema de botones y nav de desei.css */

/* ── TAG / EYEBROW ── */
.dp-tag {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--S);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.dp-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--S);
  flex-shrink: 0;
}
.dp-tag--light {
  color: var(--M);
}
.dp-tag--light::before {
  background: var(--M);
}

/* ── TÍTULOS DE SECCIÓN ── */
.dp-section-title {
  font-family: var(--d);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--INK);
  margin-bottom: 4rem;
}

/* ══════════════════════════════════════
   S1 — HERO PRODUCTO
══════════════════════════════════════ */
.dp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  padding-top: 5rem; /* espacio para nav sticky */
}
@media (max-width: 900px) {
  .dp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Galería */
.dp-gallery {
  background: var(--PA);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}
@media (max-width: 900px) {
  .dp-gallery {
    position: static;
    padding: 2rem;
  }
}

.dp-gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--PAW);
  position: relative;
}
.dp-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.dp-gallery-main:hover .dp-gallery-main-img {
  transform: scale(1.03);
}
.dp-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.dp-gallery-placeholder span {
  font-family: var(--d);
  font-style: italic;
  font-size: .85rem;
  color: var(--MID);
  text-align: center;
  padding: 2rem;
  opacity: .6;
}

.dp-gallery-thumbs {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.dp-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--PAW);
  transition: border-color .2s;
}
.dp-thumb.active,
.dp-thumb:hover {
  border-color: var(--S);
}
.dp-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info de compra */
.dp-info {
  padding: 5rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .dp-info {
    padding: 3rem 2rem;
  }
}

.dp-title {
  font-family: var(--d);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--INK);
  margin-bottom: 2rem;
}

.dp-short-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--MID);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 2.5rem;
}
.dp-short-desc p { margin: 0; }

/* Precio */
.dp-price-wrap {
  margin-bottom: 1.5rem;
}
.dp-price-wrap .price {
  font-family: var(--d);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--INK);
  display: block;
  margin-bottom: .35rem;
}
.dp-price-wrap .woocommerce-Price-amount {
  color: var(--INK);
}
.dp-price-wrap del .woocommerce-Price-amount {
  color: var(--MID);
  font-size: 1.5rem;
}
.dp-price-wrap ins {
  text-decoration: none;
}
.dp-price-wrap ins .woocommerce-Price-amount {
  color: var(--S);
}
.dp-price-note {
  font-size: .75rem;
  color: var(--MID);
  font-weight: 300;
  letter-spacing: .02em;
}

/* Stock */
.dp-stock {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 2rem;
}
.dp-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dp-stock--in .dp-stock-dot  { background: #6B9E5A; }
.dp-stock--in  { color: #4A7A3A; }
.dp-stock--out .dp-stock-dot { background: var(--S); }
.dp-stock--out { color: var(--SD); }

/* Formulario WooCommerce — override estilos */
.dp-form {
  margin-bottom: 2.5rem;
}
.dp-form .quantity {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.dp-form .qty {
  font-family: var(--b);
  font-size: .9rem;
  font-weight: 500;
  width: 72px;
  height: 52px;
  border: 1px solid rgba(61,32,16,.2);
  border-radius: 2px;
  background: transparent;
  color: var(--INK);
  text-align: center;
  padding: 0 .75rem;
  transition: border-color .2s;
}
.dp-form .qty:focus {
  outline: none;
  border-color: var(--S);
}
.dp-form .single_add_to_cart_button {
  font-family: var(--b) !important;
  font-size: .65rem !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  background: var(--S) !important;
  color: var(--CR) !important;
  border: none !important;
  border-radius: 1px !important;
  padding: 1rem 2.5rem !important;
  min-height: 52px !important;
  cursor: pointer !important;
  transition: background .2s, transform .15s, box-shadow .2s !important;
  width: 100% !important;
}
.dp-form .single_add_to_cart_button:hover {
  background: var(--SD) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(196,115,90,.35) !important;
}

/* Garantías */
.dp-guarantees {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(61,32,16,.08);
}
.dp-guarantee {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .82rem;
  color: var(--MID);
  font-weight: 300;
  line-height: 1.5;
}
.dp-guarantee-icon {
  color: var(--S);
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ══════════════════════════════════════
   S2 — ESPECIFICACIONES
══════════════════════════════════════ */
.dp-specs {
  background: var(--CR);
  padding: 8rem 2rem;
  border-top: 1px solid rgba(61,32,16,.06);
}
.dp-specs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.dp-specs-header {
  margin-bottom: 5rem;
}
.dp-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(61,32,16,.1);
}
@media (max-width: 700px) {
  .dp-specs-grid { grid-template-columns: 1fr; }
}
.dp-spec-item {
  padding: 3rem 3rem 3rem 0;
  border-right: 1px solid rgba(61,32,16,.08);
  transition: background .3s;
}
.dp-spec-item + .dp-spec-item {
  padding-left: 3rem;
}
.dp-spec-item:last-child {
  border-right: none;
  padding-right: 0;
}
.dp-spec-item:hover {
  background: rgba(212,175,106,.04);
}
@media (max-width: 700px) {
  .dp-spec-item {
    border-right: none;
    border-bottom: 1px solid rgba(61,32,16,.08);
    padding: 2.5rem 0;
  }
  .dp-spec-item + .dp-spec-item { padding-left: 0; }
}
.dp-spec-num {
  font-family: var(--d);
  font-size: 4rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(212,175,106,.3);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color .3s;
}
.dp-spec-item:hover .dp-spec-num {
  color: var(--M);
}
.dp-spec-line {
  width: 32px;
  height: 1px;
  background: var(--S);
  margin-bottom: 1.25rem;
}
.dp-spec-title {
  font-family: var(--d);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--INK);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.dp-spec-body {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--MID);
  font-weight: 300;
}
.dp-food-info {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(61,32,16,.06);
}
.dp-food-info p {
  font-size: .78rem;
  line-height: 1.7;
  color: var(--MID);
  font-weight: 300;
  font-style: italic;
}

/* ══════════════════════════════════════
   S3 — PROCESO MINI (mostaza)
══════════════════════════════════════ */
.dp-process {
  background: var(--M);
  padding: 7rem 2rem;
}
.dp-process-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.dp-process-title {
  font-family: var(--d);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--INK);
  margin-bottom: 5rem;
}
.dp-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(61,32,16,.15);
}
@media (max-width: 700px) {
  .dp-process-steps { grid-template-columns: 1fr; }
}
.dp-process-step {
  padding: 3rem 3rem 3rem 0;
  border-right: 1px solid rgba(61,32,16,.1);
  transition: background .3s;
}
.dp-process-step + .dp-process-step {
  padding-left: 3rem;
}
.dp-process-step:last-child {
  border-right: none;
  padding-right: 0;
}
@media (max-width: 700px) {
  .dp-process-step {
    border-right: none;
    border-bottom: 1px solid rgba(61,32,16,.1);
    padding: 2rem 0;
  }
  .dp-process-step + .dp-process-step { padding-left: 0; }
}
.dp-process-n {
  font-family: var(--d);
  font-size: 4rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(61,32,16,.15);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.dp-process-sep {
  width: 32px;
  height: 1px;
  background: rgba(61,32,16,.3);
  margin-bottom: 1.25rem;
}
.dp-process-name {
  font-family: var(--d);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--INK);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.dp-process-body {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(61,32,16,.55);
  font-weight: 300;
}

/* ══════════════════════════════════════
   S4 — DESCRIPCIÓN LARGA
══════════════════════════════════════ */
.dp-description {
  background: var(--CR);
  padding: 8rem 2rem;
  border-top: 1px solid rgba(61,32,16,.06);
}
.dp-description-inner {
  max-width: 760px;
  margin: 0 auto;
}
.dp-description-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--MID);
  font-weight: 300;
}
.dp-description-content p { margin-bottom: 1.5rem; }
.dp-description-content h2,
.dp-description-content h3 {
  font-family: var(--d);
  font-style: italic;
  font-weight: 300;
  color: var(--INK);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

/* ══════════════════════════════════════
   S5 — FAQ INLINE
══════════════════════════════════════ */
.dp-faq {
  background: var(--PA);
  padding: 8rem 2rem;
}
.dp-faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.dp-faq-list {
  margin-top: 0;
}
.dp-faq-item {
  border-top: 1px solid rgba(61,32,16,.1);
}
.dp-faq-item:last-child {
  border-bottom: 1px solid rgba(61,32,16,.1);
}
.dp-faq-q {
  font-family: var(--d);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--INK);
  padding: 1.6rem 3rem 1.6rem 0;
  cursor: pointer;
  position: relative;
  line-height: 1.3;
  letter-spacing: -.01em;
  user-select: none;
  transition: color .2s;
}
.dp-faq-q:hover { color: var(--S); }
.dp-faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--d);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--S);
  transition: transform .35s;
  font-style: normal;
}
.dp-faq-item.open .dp-faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}
.dp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
}
.dp-faq-ai {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--MID);
  font-weight: 300;
  padding-bottom: 1.75rem;
}
.dp-faq-item.open .dp-faq-a {
  max-height: 300px;
}

/* ══════════════════════════════════════
   S6 — CTA FINAL (chocolate)
══════════════════════════════════════ */
.dp-cta-final {
  background: var(--BG-DARK);
  padding: 9rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dp-cta-final::before {
  content: 'D';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--d);
  font-size: 80vw;
  font-weight: 700;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,175,106,.06);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}
.dp-cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.dp-cta-title {
  font-family: var(--d);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--CR);
  line-height: .9;
  letter-spacing: -.04em;
  margin-bottom: 2rem;
}
.dp-cta-title em {
  color: var(--S);
  display: block;
}
.dp-cta-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,253,247,.38);
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto 3rem;
}
.dp-cta-note {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(196,115,90,.3);
  margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS (reutiliza el sistema de la home)
══════════════════════════════════════ */
.dp-hero .dp-gallery,
.dp-hero .dp-info,
.dp-specs-header,
.dp-specs-grid .dp-spec-item,
.dp-process-title,
.dp-process-steps .dp-process-step,
.dp-faq-inner,
.dp-cta-final-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.dp-hero .dp-gallery.v,
.dp-hero .dp-info.v,
.dp-specs-header.v,
.dp-specs-grid .dp-spec-item.v,
.dp-process-title.v,
.dp-process-steps .dp-process-step.v,
.dp-faq-inner.v,
.dp-cta-final-inner.v {
  opacity: 1;
  transform: none;
}

/* Delays en grid items */
.dp-spec-item:nth-child(2)  { transition-delay: .12s; }
.dp-spec-item:nth-child(3)  { transition-delay: .24s; }
.dp-process-step:nth-child(2) { transition-delay: .12s; }
.dp-process-step:nth-child(3) { transition-delay: .24s; }
.dp-hero .dp-info { transition-delay: .15s; }

/* ══════════════════════════════════════
   RESPONSIVE FINE-TUNING
══════════════════════════════════════ */
@media (max-width: 700px) {
  .dp-specs { padding: 5rem 1.5rem; }
  .dp-process { padding: 5rem 1.5rem; }
  .dp-faq { padding: 5rem 1.5rem; }
  .dp-cta-final { padding: 6rem 1.5rem; }
  .dp-description { padding: 5rem 1.5rem; }

  .dp-form .single_add_to_cart_button {
    width: 100% !important;
  }
}
