/* ==========================================================================
   ZPRODUCTO.CSS — Hoja unificada para TODAS las páginas de producto (z*.html)
   Diseño profesional inspirado en layout MAX: galería izquierda, info centro,
   sidebar sticky derecha con compra, specs debajo.
   Usa tokens de brand-tokens.css. Cero colores hardcodeados aquí.
   ========================================================================== */

:root {
  --zp-gap: clamp(16px, 2vw, 28px);
  --zp-radius: var(--radius-md);
  --zp-sidebar-bg: var(--surface);
  --zp-border: var(--border-soft);
}

/* --- Reset/base mínimo ---------------------------------------------------- */
body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--surface-soft);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Contenedor principal ------------------------------------------------- */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
}

/* --- Trust banner superior ------------------------------------------------ */
.trust-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  padding: 14px 18px;
  margin-bottom: var(--zp-gap);
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.trust-item i {
  font-size: 1.2rem;
  color: var(--naranja-cta);
  flex-shrink: 0;
}
.trust-item strong { color: var(--primary); }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--naranja-cta); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--primary); font-weight: 600; }

/* --- Grid principal del producto ----------------------------------------- */
.product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 340px;
  gap: var(--zp-gap);
  background: var(--surface);
  border-radius: var(--zp-radius);
  padding: clamp(16px, 2vw, 28px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--zp-border);
}

@media (max-width: 1100px) {
  .product-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .product-sidebar { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .product-container {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

/* --- Galería -------------------------------------------------------------- */
.product-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.thumbnail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}
.thumbnail {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--zp-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  background: var(--surface-soft);
}
.thumbnail:hover { transform: translateY(-1px); }
.thumbnail.active { border-color: var(--naranja-cta); }

.main-image {
  position: relative;
  background: var(--surface-soft);
  border-radius: var(--zp-radius);
  border: 1px solid var(--zp-border);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 240ms ease;
}
.main-image:hover img { transform: scale(1.04); }
.main-image::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--zp-border);
  border-radius: 50%;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .product-gallery { grid-template-columns: 1fr; }
  .thumbnail-gallery {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    order: 2;
  }
  .thumbnail { width: 64px; height: 64px; flex-shrink: 0; }
}

/* --- Columna de información ---------------------------------------------- */
.product-info { min-width: 0; }

.product-brandline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--naranja-cta);
  margin-bottom: 8px;
}
.product-brandline .brand-name { font-weight: 700; }
.product-brandline .seller { color: var(--muted); }
.product-brandline .seller b { color: var(--naranja-cta); font-weight: 700; }
.product-brandline .dot { color: var(--border); }

.product-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 10px;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--zp-border);
  margin-bottom: 16px;
}
.product-meta .availability {
  color: #107a3f;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-meta .availability::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}
.product-meta .sku { text-transform: uppercase; letter-spacing: 0.03em; }

.product-description-box {
  background: var(--surface-soft);
  border-left: 3px solid var(--naranja-cta);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.product-description-box p { margin: 0; }

/* --- Bloque de precio ---------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: end;
  padding: 16px 0;
  border-bottom: 1px solid var(--zp-border);
  margin-bottom: 16px;
}
.price-main { display: flex; flex-direction: column; gap: 4px; }
.price-discount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.discount-badge {
  background: var(--rojo-promo);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}
.price-original {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.price-final {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.price-final sup { font-size: 0.55em; font-weight: 700; top: -0.9em; }
.price-valid {
  font-size: 0.78rem;
  color: var(--muted);
}
.price-installments {
  background: var(--surface-soft);
  border: 1px solid var(--zp-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 190px;
}
.price-installments .label {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}
.price-installments .amount {
  font-weight: 700;
  color: var(--naranja-cta);
  font-size: 1.15rem;
  display: block;
  margin-top: 2px;
}
.price-installments .foot {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

@media (max-width: 540px) {
  .pricing { grid-template-columns: 1fr; }
}

/* --- Selector de variantes ----------------------------------------------- */
.variant-block { margin-bottom: 16px; }
.variant-block label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.variant-block label i { color: var(--naranja-cta); margin-right: 6px; }
.variant-dropdown {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--zp-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  color: var(--text);
}
.variant-dropdown:focus {
  outline: none;
  border-color: var(--naranja-cta);
  box-shadow: 0 0 0 3px rgba(254, 119, 0, 0.15);
}

/* --- Features bullets ---------------------------------------------------- */
.product-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text);
}
.product-features li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--naranja-cta);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  top: 2px;
}

/* --- Sidebar compra ------------------------------------------------------ */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1101px) {
  .product-sidebar { position: sticky; top: 16px; align-self: start; }
}

.sidebar-card {
  background: var(--zp-sidebar-bg);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card + .sidebar-card { }

.sidebar-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.sidebar-row + .sidebar-row { border-top: 1px solid var(--zp-border); }
.sidebar-row i {
  color: var(--primary);
  font-size: 1.15rem;
  width: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-row .row-body { flex: 1; font-size: 0.88rem; }
.sidebar-row .row-body .row-title {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.sidebar-row .row-body .row-sub { color: var(--muted); display: block; font-size: 0.82rem; }
.sidebar-row .row-body .row-link {
  color: var(--naranja-cta);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
}
.sidebar-row .row-body .row-link:hover { text-decoration: underline; }
.sidebar-row .row-body .row-highlight {
  color: #107a3f;
  font-weight: 600;
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.cart-add-section { margin-top: 4px; }

.btn-add-to-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}
.btn-add-to-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-add-to-cart:active { transform: translateY(0); }
.btn-add-to-cart i { font-size: 1.05rem; }

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.payment-icons .pay-chip {
  background: var(--surface-soft);
  border: 1px solid var(--zp-border);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.help-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--zp-sidebar-bg);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.help-card:hover { border-color: var(--naranja-cta); box-shadow: var(--shadow-md); }
.help-card .help-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.help-card .help-text { flex: 1; font-size: 0.88rem; }
.help-card .help-text b { display: block; color: var(--text); }
.help-card .help-text span { color: var(--muted); font-size: 0.8rem; }
.help-card .help-chev { color: var(--muted); }

.sidebar-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* --- Botones secundarios (WhatsApp / llamar) ----------------------------- */
.product-action-buttons {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--zp-border);
}
.product-details1 .info-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) { .action-buttons-grid { grid-template-columns: 1fr; } }
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-whatsapp-quote {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn-whatsapp-quote:hover { background: #1fb658; border-color: #1fb658; }
.btn-call-direct {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-call-direct:hover { background: var(--primary); color: #fff; }

/* --- Promo banner -------------------------------------------------------- */
.promo-banner-elegant {
  background: var(--naranja-cta);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Especificaciones del producto --------------------------------------- */
.product-specs {
  background: var(--surface);
  border-radius: var(--zp-radius);
  border: 1px solid var(--zp-border);
  padding: clamp(16px, 2vw, 28px);
  margin-top: var(--zp-gap);
  box-shadow: var(--shadow-sm);
}
.product-specs h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 18px;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 720px) { .specs-grid { grid-template-columns: 1fr; } }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.spec-row:nth-child(odd) { background: var(--surface-soft); }
.spec-row .spec-label { color: var(--muted); font-weight: 500; }
.spec-row .spec-value { color: var(--text); font-weight: 600; }

.specs-more {
  text-align: center;
  margin-top: 16px;
}
.specs-more button {
  background: transparent;
  border: 0;
  color: var(--naranja-cta);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 8px 14px;
  font-family: inherit;
}
.specs-more button i { margin-left: 6px; transition: transform var(--transition); }
.specs-more.is-open button i { transform: rotate(180deg); }
.specs-grid.collapsed .spec-row:nth-child(n+7) { display: none; }
@media (max-width: 720px) {
  .specs-grid.collapsed .spec-row:nth-child(n+5) { display: none; }
}

/* --- Banner puntos / acumula ------------------------------------------- */
.points-banner {
  margin-top: var(--zp-gap);
  background: linear-gradient(90deg, var(--rojo-promo), var(--primary));
  color: #fff;
  border-radius: var(--zp-radius);
  padding: clamp(16px, 2.2vw, 22px) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.points-banner .pb-title {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
}
.points-banner .pb-mark {
  background: #000;
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  font-weight: 800;
}
.points-banner .pb-mark span { color: var(--rojo-promo); }

/* --- Recomendados -------------------------------------------------------- */
.recommended-products {
  background: var(--surface);
  border-radius: var(--zp-radius);
  border: 1px solid var(--zp-border);
  padding: clamp(16px, 2vw, 28px);
  margin-top: var(--zp-gap);
  box-shadow: var(--shadow-sm);
}
.recommended-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.recommended-header h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text);
  font-weight: 700;
}
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--zp-border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary);
  transition: all var(--transition);
}
.carousel-controls button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.recommended-grid-wrapper {
  position: relative;
  overflow: hidden;
}
.recommended-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 2);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.recommended-grid::-webkit-scrollbar { display: none; }

@media (min-width: 560px) {
  .recommended-grid { grid-auto-columns: calc((100% - 32px) / 3); }
}
@media (min-width: 820px) {
  .recommended-grid { grid-auto-columns: calc((100% - 48px) / 4); }
}
@media (min-width: 1100px) {
  .recommended-grid { grid-auto-columns: calc((100% - 64px) / 5); }
}

.recommended-grid .recommended-item {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--zp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.recommended-grid .recommended-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--naranja-cta);
}
.recommended-grid .recommended-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.recommended-grid .recommended-item .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  overflow: hidden;
  position: relative;
}
.recommended-grid .recommended-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.recommended-grid .recommended-item:hover .product-image img { transform: scale(1.04); }
.recommended-grid .recommended-item .product-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.recommended-grid .recommended-item h3 {
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.recommended-grid .recommended-item .recommended-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--naranja-cta);
  color: #fff;
}
.recommended-grid .recommended-item[data-type="Evento"] .recommended-pill {
  background: var(--cafe-oscuro);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--naranja-cta);
  width: 22px;
  border-radius: 4px;
}
.carousel-progress {
  height: 3px;
  background: var(--surface-soft);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--naranja-cta);
  transition: width .25s ease;
}

/* --- Security box / Cajitas secundarias ---------------------------------- */
.security-box {
  background: var(--surface-soft);
  border: 1px solid var(--zp-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
}
.security-box h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.security-box h3 i { color: var(--naranja-cta); }
.security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.security-list li {
  font-size: 0.85rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.security-list li i { color: #10b981; margin-top: 3px; }

/* --- Utilidades ---------------------------------------------------------- */
.hide-on-mobile { display: block; }
@media (max-width: 720px) { .hide-on-mobile { display: none; } }

.show-on-mobile { display: none; }
@media (max-width: 720px) { .show-on-mobile { display: block; } }

/* --- Mobile buy bar (sticky bottom CTA for phones) ----------------------- */
.mobile-buy-bar { display: none; }
@media (max-width: 720px) {
  .mobile-buy-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--zp-border);
    box-shadow: 0 -6px 18px rgba(107, 27, 0, 0.12);
  }
  .mobile-buy-bar .mbb-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    flex: 0 0 auto;
  }
  .mobile-buy-bar .mbb-label {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .mobile-buy-bar .mbb-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cafe-oscuro);
  }
  .mobile-buy-bar .mbb-cta {
    flex: 1 1 auto;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--cafe-oscuro);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
    box-shadow: 0 4px 12px rgba(107, 27, 0, 0.25);
  }
  .mobile-buy-bar .mbb-cta:hover,
  .mobile-buy-bar .mbb-cta:focus-visible {
    background: #000;
    transform: translateY(-1px);
  }
  .mobile-buy-bar .mbb-cta:active { transform: translateY(0); }
  body:has(.mobile-buy-bar) { padding-bottom: 80px; }
}

/* ==========================================================================
   TEMA DEFINITIVO PROFESIONAL - Compra, confianza y armonia visual
   ========================================================================== */

body {
  background:
    linear-gradient(180deg, var(--bg) 0%, #FFFFFF 46%, var(--bg) 100%);
  color: var(--text);
}

.main-container {
  max-width: 1220px;
  padding: 24px 18px 34px;
}

.trust-banner,
.product-container,
.product-specs,
.recommended-products {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.trust-banner {
  background: #FFFFFF;
  border-radius: 8px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.trust-item {
  min-height: 58px;
  padding: 14px 18px;
  border-right: 1px solid var(--border-soft);
  font-size: 0.9rem;
}

.trust-item:last-child { border-right: 0; }

.trust-item i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-warm);
  color: var(--naranja-cta);
  font-size: 1rem;
}

.breadcrumbs {
  max-width: 1220px;
  margin: 0 auto 14px;
  padding: 0 2px;
}

.product-container {
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr) 350px;
  gap: 24px;
  border-radius: 8px;
  padding: 24px;
  background: #FFFFFF;
}

@media (min-width: 1101px) {
  .product-sidebar {
    position: sticky;
    top: calc(var(--topbar-height, 32px) + var(--header-height, 60px) + var(--nav-height, 44px) + 18px);
    align-self: start;
  }
}

.product-gallery {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
}

.thumbnail {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  opacity: 0.82;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--naranja-cta);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.main-image {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}

.main-image img {
  padding: 10px;
  object-fit: cover;
}

.main-image::after {
  border-radius: 8px;
  color: var(--primary);
}

.product-brandline {
  margin-bottom: 10px;
  color: var(--primary);
}

.product-brandline .brand-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-title {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}

.product-title .discount-badge {
  vertical-align: middle;
  margin-left: 6px;
}

.product-meta {
  gap: 10px;
  padding-bottom: 16px;
  border-bottom-color: var(--border-soft);
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.product-meta .availability {
  color: var(--success);
  background: #ECFDF3;
  border-color: #BBF7D0;
}

.product-description-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--naranja-cta);
  background: var(--surface-warm);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
}

.promo-banner-elegant {
  background: var(--surface-pink);
  color: var(--primary);
  border: 1px solid #FFD4E6;
  border-radius: 8px;
  box-shadow: none;
}

.promo-banner-elegant i { color: var(--rojo-promo); }

.pricing {
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 18px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-warm) 100%);
}

.price-main {
  gap: 8px;
}

.discount-badge {
  background: var(--rojo-promo);
  border-radius: 999px;
}

.price-final {
  font-size: 2.35rem;
  color: var(--primary);
  letter-spacing: 0;
}

.price-installments {
  width: 100%;
  min-width: 0;
  background: var(--surface-blue);
  border-color: #C7EFFE;
  border-radius: 8px;
}

.price-installments .amount {
  color: #0369A1;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-features li {
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #FFFFFF;
}

.product-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-size: 0.82rem;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ECFDF3;
  color: var(--success);
}

.product-action-buttons {
  border-top-color: var(--border-soft);
}

.action-buttons-grid {
  grid-template-columns: 1fr;
}

.btn-action,
.btn-add-to-cart {
  border-radius: 8px;
  min-height: 48px;
}

.btn-add-to-cart {
  background: var(--naranja-cta);
  color: #FFFFFF;
  box-shadow: 0 10px 22px rgba(255, 107, 0, 0.22);
  font-weight: 850;
}

.btn-add-to-cart:hover {
  background: var(--secondary-dark);
  box-shadow: 0 12px 28px rgba(217, 78, 0, 0.28);
}

.btn-call-direct {
  background: #FFFFFF;
  color: var(--primary);
  border-color: var(--border);
}

.btn-call-direct:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-whatsapp-quote {
  background: #20B85A;
  border-color: #20B85A;
}

.sidebar-card,
.help-card {
  border-radius: 8px;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-card.cart-add-section {
  border-color: rgba(255, 107, 0, 0.32);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-warm) 100%);
}

.sidebar-row i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-warm);
  color: var(--primary);
  font-size: 1rem;
}

.sidebar-row .row-body .row-highlight {
  color: var(--success);
}

.payment-icons {
  justify-content: flex-start;
}

.payment-icons .pay-chip {
  background: #FFFFFF;
  color: var(--primary);
  border-color: var(--border);
  border-radius: 999px;
}

.sidebar-note {
  color: var(--muted);
  text-align: left;
}

.help-card {
  background: #FFFFFF;
}

.help-card:hover {
  border-color: #20B85A;
}

.help-card .help-ico {
  border-radius: 8px;
}

.product-specs,
.recommended-products,
.security-box {
  border-radius: 8px;
}

.product-specs h2,
.recommended-header h2 {
  color: var(--text);
  letter-spacing: 0;
}

.spec-row {
  border-radius: 8px;
}

.spec-row:nth-child(odd) {
  background: var(--surface-warm);
}

.recommended-grid .recommended-item {
  border-radius: 8px;
}

.recommended-grid .recommended-item:hover {
  border-color: var(--naranja-cta);
}

.recommended-grid .recommended-item .recommended-pill,
.carousel-dot.active,
.carousel-progress-bar {
  background: var(--naranja-cta);
}

.points-banner {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
  .product-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .main-container {
    padding: 16px 12px 28px;
  }

  .trust-banner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .trust-item:last-child { border-bottom: 0; }

  .product-container {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 18px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 1.55rem;
  }

  .price-final {
    font-size: 2rem;
  }

  .mobile-buy-bar {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: var(--border);
    box-shadow: 0 -10px 28px rgba(58, 18, 7, 0.14);
  }

  .mobile-buy-bar .mbb-amount {
    color: var(--primary);
  }

  .mobile-buy-bar .mbb-cta {
    border-radius: 8px;
    background: var(--naranja-cta);
    box-shadow: 0 8px 18px rgba(255, 107, 0, 0.24);
  }

  .mobile-buy-bar .mbb-cta:hover,
  .mobile-buy-bar .mbb-cta:focus-visible {
    background: var(--secondary-dark);
  }
}
