/* Diseño de las páginas de compra de las 13 experiencias.
   Va DESPUÉS de los CSS heredados de la plantilla (los pisa) y se enlaza al final del <head>.
   Paleta de producto/ficha.css: verde PHN, tinta oscura, fondos tinte. Sin degradados. */
:root {
  --pc-verde: #70B62F;
  --pc-verde-osc: #4a8a1e;
  --pc-verde-hondo: #3f7a14;
  --pc-tinte: #f4faec;
  --pc-linea: #e3ecd8;
  --pc-tinta: #232a1f;
  --pc-gris: #5d655a;
  --pc-wa: #157a3f;
}

body { background: #fff; color: var(--pc-tinta); }

/* ── Banner superior: se ve completo, sin ocupar toda la pantalla ── */
#heroBanner {
  background: var(--pc-tinte);
  border-bottom: 1px solid var(--pc-linea);
  display: flex; justify-content: center;
}
#heroBanner img {
  width: 100%; max-height: 58vh; object-fit: contain; display: block;
}

/* ── Ficha de compra ── */
.product-section { padding-top: 36px; padding-bottom: 28px; }
.product-section .page-width { max-width: 1120px; padding-left: 20px; padding-right: 20px; }
.product-section .product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: start; margin: 0; padding: 0 !important;
}

.product-section .product__media-wrapper,
.product-section .product__info-wrapper { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.product-section .product__media-wrapper { position: sticky; top: 90px; }
.product-section #productImg {
  width: 100%; height: auto; border-radius: 22px; display: block;
  box-shadow: 0 18px 44px rgba(35, 42, 31, .16);
}

.product__title {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem); line-height: 1.18; font-weight: 800;
  letter-spacing: -.01em; color: var(--pc-tinta); margin: 0 0 14px;
}
#productPrice, .price-item--regular {
  font-size: 2rem; font-weight: 800; color: var(--pc-verde-osc); letter-spacing: -.01em;
}
.price { margin-bottom: 6px; }

.product-form__quantity > label, .product-form__quantity .form__label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-gris);
}
#quantitySelect {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-weight: 600; color: var(--pc-tinta);
  background-color: #fff; border: 1.5px solid var(--pc-linea); border-radius: 12px;
}
#quantitySelect:focus { outline: 2px solid var(--pc-verde); outline-offset: 1px; border-color: var(--pc-verde); }

/* ── Botones: pagar es el principal; carrito y WhatsApp, secundarios ── */
div:has(> #buyBtn) { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
#payNowBtn {
  order: 1; width: 100% !important; padding: 18px 24px !important; font-size: 1.05rem !important;
  background: var(--pc-verde-osc) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(63, 122, 20, .32); margin: 0 !important;
}
#payNowBtn:hover { background: var(--pc-verde-hondo) !important; }
#payNowBtn:disabled { opacity: .7; cursor: wait; }
#addToCartBtn {
  order: 2; width: 100% !important; padding: 15px 24px !important; font-size: 1rem !important;
  background: #fff !important; color: var(--pc-verde-hondo) !important;
  border: 2px solid var(--pc-verde) !important; border-radius: 12px !important; margin: 0 !important;
}
#addToCartBtn:hover { background: var(--pc-tinte) !important; }
#buyBtn {
  order: 3; width: 100% !important; padding: 15px 24px !important; font-size: 1rem !important;
  background: #fff !important; color: var(--pc-wa) !important;
  border: 2px solid #25d366 !important; border-radius: 12px !important; box-shadow: none !important; margin: 0 !important;
}
#buyBtn:hover { background: #ecfaf1 !important; }
/* Cuando el pago en línea no está activo, WhatsApp vuelve a ser el principal */
div:not(:has(#payNowBtn)) > #buyBtn {
  background: #25d366 !important; color: #fff !important; border-color: #25d366 !important;
}

/* ── Descripción y contenido ── */
#productDesc { margin-top: 22px; font-size: 1rem; line-height: 1.75; color: #3d4439; max-width: 62ch; }
#productDesc p { margin: 0 0 14px; }
#productDesc ul {
  list-style: none !important; margin: 18px 0 !important; padding: 0 !important; display: grid; gap: 8px;
}
#productDesc ul li {
  position: relative; padding: 12px 14px 12px 44px; background: var(--pc-tinte);
  border: 1px solid var(--pc-linea); border-radius: 12px; font-size: .94rem; line-height: 1.5;
}
#productDesc ul li::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pc-verde)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ── Sección de nanotecnología (video): solo título más contenido ── */
section[id$="23ebe759-1d1f-463f-b143-c1657d84e78a"] h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; color: var(--pc-tinta);
}

/* ── Celular ── */
@media (max-width: 860px) {
  .product-section { padding-top: 20px; }
  .product-section .product { grid-template-columns: 1fr; gap: 22px; }
  .product-section .product__media-wrapper { position: static; }
  #heroBanner img { max-height: 40vh; }
  #productPrice, .price-item--regular { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
