/* OKB product detail UX layer */
:root {
  --okb-pdp-brown: #6E5437;
  --okb-pdp-brown-dark: #5A4630;
  --okb-pdp-camel: #D2B48C;
  --okb-pdp-beige: #F2EBD7;
  --okb-pdp-cream: #FAF7F1;
  --okb-pdp-black: #1C1C1E;
  --okb-pdp-gray: #8E857A;
  --okb-pdp-border: #E1D5C7;
  --okb-pdp-surface: #FFFDF9;
  --okb-pdp-pink: #E9B5C4;
}

.mateo-pdp {
  background:
    radial-gradient(circle at 92% 0%, rgba(210, 180, 140, .22), transparent 26rem),
    radial-gradient(circle at 8% 4%, rgba(233, 181, 196, .14), transparent 22rem),
    linear-gradient(180deg, var(--okb-pdp-cream), #FFFDF9 52%, var(--okb-pdp-cream)) !important;
  color: var(--okb-pdp-black) !important;
}

.okb-pdp-shell {
  width: min(100%, 1220px);
}

.okb-pdp-breadcrumb {
  border: 1px solid rgba(225, 213, 199, .82);
  border-radius: 999px;
  background: rgba(255, 253, 249, .76);
  box-shadow: 0 12px 30px rgba(62, 45, 29, .04);
  padding: .7rem .95rem;
}

.okb-pdp-layout {
  align-items: start;
}

.okb-pdp-gallery {
  min-width: 0;
}

.okb-pdp-gallery-grid {
  align-items: start;
}

.okb-pdp-gallery-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.okb-pdp-thumbs {
  scrollbar-width: none;
}

.okb-pdp-thumbs::-webkit-scrollbar {
  display: none;
}

.okb-pdp-thumb {
  border-radius: .9rem !important;
  background: #FFFFFF !important;
  box-shadow: 0 10px 24px rgba(62, 45, 29, .06);
}

.okb-pdp-thumb img {
  object-fit: contain !important;
  padding: .25rem;
  background: #FAF7F1;
}

.okb-pdp-main-figure {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: min(100%, 860px);
  margin-inline: auto;
  border-color: var(--okb-pdp-border) !important;
  border-radius: 1.25rem !important;
  background:
    linear-gradient(180deg, #FFFFFF, #FAF7F1) !important;
  box-shadow: 0 24px 60px rgba(62, 45, 29, .09);
}

.okb-pdp-main-image {
  object-fit: contain !important;
  object-position: center center !important;
  padding: clamp(.5rem, 1.2vw, 1rem);
  background: transparent;
}

.okb-pdp-badge {
  border-color: rgba(210, 180, 140, .72) !important;
  background: rgba(255, 253, 249, .94) !important;
  color: var(--okb-pdp-brown) !important;
}

.okb-pdp-info-card {
  border-color: var(--okb-pdp-border) !important;
  border-radius: 1.35rem !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, .98), rgba(250, 247, 241, .88)) !important;
  box-shadow: 0 24px 60px rgba(62, 45, 29, .1) !important;
}

.okb-pdp-category-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(210, 180, 140, .72);
  border-radius: 999px;
  background: rgba(242, 235, 215, .72);
  padding: .45rem .7rem;
  color: var(--okb-pdp-brown) !important;
}

.okb-pdp-title {
  font-family: "Playfair Display", serif !important;
  letter-spacing: -.025em;
}

.okb-pdp-price-block {
  border-color: rgba(225, 213, 199, .92) !important;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .68);
  padding: 1rem 0;
}

.okb-pdp-option-section {
  border-color: rgba(225, 213, 199, .92) !important;
}

.okb-pdp-qty {
  border-radius: 999px !important;
}

.okb-pdp-primary,
.mateo-pdp button.okb-pdp-primary {
  border-radius: .95rem !important;
  background: var(--okb-pdp-brown) !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 34px rgba(110, 84, 55, .22) !important;
}

.okb-pdp-primary:hover {
  background: var(--okb-pdp-brown-dark) !important;
}

.okb-pdp-whatsapp {
  border-color: var(--okb-pdp-camel) !important;
  border-radius: .95rem !important;
  background: var(--okb-pdp-beige) !important;
  color: var(--okb-pdp-brown) !important;
}

.okb-pdp-whatsapp:hover {
  background: #E9DDC7 !important;
  color: var(--okb-pdp-brown-dark) !important;
}

.okb-pdp-description-card,
.okb-pdp-trust-section {
  border-color: var(--okb-pdp-border) !important;
  border-radius: 1.2rem !important;
  background: rgba(255, 253, 249, .86) !important;
  box-shadow: 0 16px 42px rgba(62, 45, 29, .06);
}

.okb-pdp-trust-grid {
  background: var(--okb-pdp-border) !important;
}

.okb-pdp-zoom-img {
  aspect-ratio: 4 / 5;
  width: min(92vw, 680px);
  height: auto;
  max-height: 90vh;
  object-fit: contain !important;
}

@media (min-width: 1024px) {
  .okb-pdp-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
    gap: clamp(2rem, 4vw, 4rem) !important;
  }
}

@media (min-width: 1280px) {
  .okb-pdp-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, .72fr) !important;
  }
}

@media (min-width: 768px) {
  .okb-pdp-gallery-grid--with-thumbs {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .okb-pdp-gallery-grid--with-thumbs .okb-pdp-thumbs {
    order: 1;
  }

  .okb-pdp-gallery-grid--with-thumbs .okb-pdp-main-figure {
    order: 2;
  }

  .okb-pdp-gallery-grid--single .okb-pdp-main-figure {
    max-width: min(100%, 820px);
  }
}

@media (max-width: 767px) {
  .okb-pdp-breadcrumb {
    border-radius: 1rem;
  }

  .okb-pdp-main-figure {
    border-radius: 1rem !important;
  }

  .okb-pdp-info-card {
    border-radius: 1.1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MÉTODO TÓTEM - HIGH-CONVERTING LANDING PDP STYLES
   ═══════════════════════════════════════════════════════════ */

.totem-shell {
  width: min(100%, 1240px);
  margin-left: auto;
  margin-right: auto;
}

.totem-card {
  background: #FFFDF9;
  border: 1px solid #E5DCD1;
  border-radius: 1.25rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.totem-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(62, 45, 29, 0.08);
  border-color: #D2B48C;
}

/* Selector de variantes enriquecido */
.totem-variant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1.5px solid #E5DCD1;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  text-align: left;
}

.totem-variant-card:hover:not(.disabled) {
  border-color: #8A6A3F;
  background: #FFFCF7;
}

.totem-variant-card.active {
  border-color: #8A6A3F !important;
  background: #FFF9F0 !important;
  box-shadow: 0 6px 20px rgba(138, 106, 63, 0.12);
  ring: 1px solid #8A6A3F;
}

.totem-variant-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F4EFEA;
}

/* Stepper del Método JF */
.totem-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A6A3F 0%, #6F5430 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(138, 106, 63, 0.24);
  flex-shrink: 0;
}

/* Timeline 30-60-90 días */
.totem-timeline-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5DCD1;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.totem-timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8A6A3F, #D2B48C);
  opacity: 0.85;
}

.totem-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(62, 45, 29, 0.09);
  border-color: #8A6A3F;
}

/* Acordeón FAQ Interactivo */
.totem-faq-details {
  border: 1px solid #E5DCD1;
  border-radius: 1rem;
  background: #FFFFFF;
  overflow: hidden;
  transition: all 0.25s ease;
}

.totem-faq-details[open] {
  border-color: #8A6A3F;
  box-shadow: 0 8px 24px rgba(138, 106, 63, 0.07);
}

.totem-faq-details summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.totem-faq-details summary::-webkit-details-marker {
  display: none;
}

.totem-faq-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5A534C;
}

/* Sticky Bottom Action Bar (Móvil / Tablet) */
.totem-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(229, 220, 209, 0.9);
  box-shadow: 0 -8px 30px rgba(62, 45, 29, 0.1);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1rem;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}

.totem-sticky-bar.hidden-bar {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

.totem-sticky-bar.visible-bar {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED LUXURY CLINICAL DESIGN (TÓTEM V2)
   ═══════════════════════════════════════════════════════════ */

.totem-editorial-title {
  font-family: var(--font-heading), 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.015em;
}

.totem-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stepper conector de pasos en desktop */
@media (min-width: 1024px) {
  .totem-stepper-grid {
    position: relative;
  }
  .totem-stepper-grid::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: linear-gradient(90deg, #8A6A3F 0%, #D2B48C 50%, #8A6A3F 100%);
    opacity: 0.35;
    z-index: 0;
  }
}

/* Barras de progreso de timeline clínico */
.totem-timeline-progress {
  height: 4px;
  width: 100%;
  background: #E5DCD1;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.totem-timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8A6A3F, #C4A77D);
  border-radius: 9999px;
}

/* Bloque oscuro de prestigio */
.totem-dark-callout {
  background: linear-gradient(135deg, #1C1917 0%, #26211E 100%);
  color: #FAF7F2;
  border: 1px solid rgba(210, 180, 140, 0.25);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.35);
}

/* Micro-fichas técnicas de ingredientes */
.totem-ingredient-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(250, 247, 241, 0.9);
  border: 1px solid rgba(229, 220, 209, 0.85);
  border-radius: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6F5430;
}

/* Animación sutil de pulse para botones de compra */
@keyframes totem-glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(138, 106, 63, 0.26); }
  50% { box-shadow: 0 14px 34px rgba(138, 106, 63, 0.42); }
}

.totem-btn-glow {
  animation: totem-glow 3.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   TÓTEM 1: HERO & BUY BOX LUXURY CLINICAL HARMONIZATION
   ═══════════════════════════════════════════════════════════ */

.totem-hero-shell {
  background: #FFFDF9;
  border: 1px solid #D8C7AD;
  border-radius: 2rem;
  box-shadow: 0 20px 55px rgba(62, 45, 29, 0.07);
}

.totem-gallery-figure {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid #D8C7AD;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F1 100%);
  box-shadow: 0 16px 44px rgba(62, 45, 29, 0.08);
  position: relative;
  overflow: hidden;
}

.totem-thumb-btn {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1.5px solid #D8C7AD;
  background: #FFFFFF;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.totem-thumb-btn:hover {
  border-color: #8E65B5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 106, 63, 0.15);
}

.totem-thumb-btn.active {
  border-color: #8E65B5 !important;
  box-shadow: 0 0 0 2px rgba(142, 101, 181, 0.4), 0 8px 22px rgba(110, 68, 148, 0.22) !important;
  transform: scale(1.03);
}

.totem-micro-feature {
  background: #FFFDF9;
  border: 1px solid #E5DCD1;
  border-radius: 1.15rem;
  padding: 0.85rem 0.65rem;
  text-align: center;
  transition: all 0.25s ease;
}

.totem-micro-feature:hover {
  border-color: #8E65B5;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(62, 45, 29, 0.07);
}

.totem-micro-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #EEE8F4;
  border: 1px solid #D9CDE4;
  display: grid;
  place-items: center;
  margin: 0 auto 0.5rem auto;
  color: #7E55A5 !important;
  font-size: 1rem;
}

.totem-micro-icon-wrap i {
  color: #7E55A5 !important;
}

/* Buy Box Card */
.totem-buybox {
  background: #FFFDF9;
  border: 1px solid #D8C7AD;
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 20px 50px rgba(62, 45, 29, 0.08);
}

.totem-price-container {
  border: 1px solid #D8C7AD;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF7F1 100%);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 6px 20px rgba(62, 45, 29, 0.04);
}

.totem-discount-badge {
  background: linear-gradient(135deg, #8E65B5 0%, #68418C 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(138, 106, 63, 0.25);
}

.totem-discount-badge i {
  color: #FDE68A !important;
}

.totem-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #D8C7AD;
  background: #FAF7F1;
  color: #6F5430;
}

.totem-status-pill i {
  color: #8A6A3F !important;
}

.totem-variant-container {
  border-top: 1px solid #D8C7AD;
  padding-top: 1.35rem;
  margin-top: 1.35rem;
}

.totem-variant-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  border: 1.5px solid #E5DCD1;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
}

.totem-variant-option:hover:not(.disabled) {
  border-color: #8E65B5;
  background: #FAF6FD;
  transform: translateY(-1px);
}

.totem-variant-option.active {
  border-color: #8E65B5 !important;
  background: #FAF6FD !important;
  box-shadow: 0 8px 24px rgba(110, 68, 148, 0.14) !important;
}

.totem-variant-radio {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid #D8C7AD;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.totem-variant-option.active .totem-variant-radio {
  border-color: #8E65B5;
  background: #8E65B5;
  color: #FFFFFF;
}

.totem-variant-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  background: #FAF7F1;
  border: 1px solid #E5DCD1;
  color: #6F5430;
}

.totem-reassurance-box {
  background: #FAF7F1;
  border: 1px solid #D8C7AD;
  border-radius: 1.15rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #5A4630;
}

.totem-reassurance-box strong {
  color: #181818;
}

.totem-btn-primary {
  background: linear-gradient(135deg, #8E65B5 0%, #68418C 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 32px rgba(138, 106, 63, 0.3) !important;
  border: 1px solid #8A6A3F !important;
  transition: all 0.25s ease;
}

.totem-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7E55A5 0%, #58337C 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(138, 106, 63, 0.38) !important;
}

.totem-btn-secondary {
  background: #FFFFFF !important;
  color: #181818 !important;
  border: 1.5px solid #D8C7AD !important;
  transition: all 0.25s ease;
}

.totem-btn-secondary:hover:not(:disabled) {
  border-color: #8E65B5 !important;
  background: #EEE8F4 !important;
  color: #5B3B7E !important;
}

.totem-btn-whatsapp-concierge {
  background: rgba(37, 211, 102, 0.08) !important;
  color: #1B6F39 !important;
  border: 1.5px solid rgba(37, 211, 102, 0.3) !important;
  transition: all 0.25s ease;
}

.totem-btn-whatsapp-concierge:hover {
  background: rgba(37, 211, 102, 0.16) !important;
  border-color: #25D366 !important;
  color: #125529 !important;
  transform: translateY(-1px);
}
