/* ===== ESTILO EDITORIAL SPA / TERRACOTA APLICADO A ALIVIO EN CADA PLATO ===== */
:root {
  --style-paper: #faf7f1;
  --style-cream: #f2e7da;
  --style-card: #fffdfa;
  --style-ink: #2a201d;
  --style-muted: #7a6a62;
  --style-clay: #a8443c;
  --style-clay-2: #c9743c;
  --style-clay-dark: #6f2f2a;
  --style-lav: #cdb4d4;
  --style-gold: #d4913f;
  --style-line: #e6d8c9;
  --style-cta: linear-gradient(100deg, #a8443c, #c9743c);
  --style-shadow: 0 18px 45px rgba(111, 47, 42, .14);
  --style-shadow-pop: 0 22px 55px rgba(111, 47, 42, .28);
}

html { scroll-behavior: smooth; }
body {
  background: var(--style-paper) !important;
  color: var(--style-ink) !important;
  font-family: "Montserrat", "Assistant", Arial, sans-serif !important;
  line-height: 1.6;
}
body, .gradient, .color-scheme-1, .color-scheme-2 {
  background-color: var(--style-paper) !important;
}
h1, h2, h3, h4, .h1, .h2, .h3,
.alivio-title, .bpsg-pain h2, .bpsg-cont h2, .bpsg-bonos h2,
.bpsg-rev h2, .bpsg-faq h2, .bpsg-cierre h2 {
  font-family: "Montserrat", "Assistant", Arial, sans-serif !important;
  letter-spacing: -0.045em !important;
  font-weight: 800 !important;
  color: var(--style-ink) !important;
}

/* Barra superior y cabecera */
.header-wrapper, .section-header, header {
  background: rgba(250, 247, 241, .92) !important;
  border-bottom: 1px solid var(--style-line) !important;
  backdrop-filter: blur(12px);
}
.header { min-height: 66px; }
.header__heading-link, .header__menu-item, .header__icon {
  color: var(--style-ink) !important;
}

/* Primer bloque */
.alivio-section {
  background: radial-gradient(circle at 78% 18%, rgba(205,180,212,.34), transparent 28%), var(--style-paper) !important;
  padding: clamp(62px, 8vw, 100px) 20px !important;
}
.alivio-title {
  color: var(--style-ink) !important;
  font-size: clamp(42px, 6vw, 76px) !important;
  letter-spacing: -0.06em !important;
}
.alivio-title .highlight, .alivio-subtitle {
  color: var(--style-clay) !important;
}
.alivio-text { color: var(--style-muted) !important; }
.alivio-book img {
  border-radius: 26px !important;
  box-shadow: var(--style-shadow-pop) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.alivio-book img:hover { transform: translateY(-5px) rotate(1deg) !important; }
.alivio-highlight, .alivio-footer {
  background: var(--style-cta) !important;
  border-radius: 999px !important;
  box-shadow: var(--style-shadow) !important;
}
.alivio-icon-circle {
  border-color: var(--style-clay) !important;
  background: var(--style-card);
  box-shadow: 0 8px 20px rgba(111,47,42,.10);
}
.alivio-icon-text { color: var(--style-muted) !important; }

/* Secciones editoriales */
.bpsg-hero2, .bpsg-pain, .bpsg-cont, .bpsg-bonos, .bpsg-rev, .bpsg-faq,
.bpsg-cierre, .bpsg-medios-pago, .bpsg-garantia, .bpsg-urgencia {
  background: var(--style-paper) !important;
}
.bpsg-pain, .bpsg-cont, .bpsg-bonos, .bpsg-rev, .bpsg-faq, .bpsg-cierre {
  padding-top: clamp(58px, 8vw, 92px) !important;
  padding-bottom: clamp(58px, 8vw, 92px) !important;
}
.bpsg-pain-label, .bpsg-rev-label, .bpsg-cont-label, .bpsg-bonos-label,
.bpsg-faq-label {
  color: var(--style-clay) !important;
  letter-spacing: .22em !important;
  font-weight: 800 !important;
}
.bpsg-pain-sub, .bpsg-rev-sub, .bpsg-cont-sub, .bpsg-bonos-sub {
  color: var(--style-muted) !important;
}
.bpsg-pain-grid, .bpsg-cont-grid, .bpsg-bonos-grid, .bpsg-rev-grid {
  gap: 20px !important;
}
.bpsg-pain-card, .bpsg-cont-card, .bpsg-bono-card, .bpsg-rev-card {
  background: var(--style-card) !important;
  border: 1px solid var(--style-line) !important;
  border-left-width: 1px !important;
  border-radius: 22px !important;
  box-shadow: var(--style-shadow) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bpsg-pain-card:hover, .bpsg-cont-card:hover, .bpsg-bono-card:hover, .bpsg-rev-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--style-shadow-pop) !important;
}
.bpsg-pain-icon { background: #f3dfd8 !important; }
.bpsg-pain-text, .bpsg-cont-card-desc, .bpsg-rev-text { color: var(--style-ink) !important; }
.bpsg-pain-text strong, .bpsg-cont-card-title, .bpsg-bono-title { color: var(--style-clay) !important; }
.bpsg-cont-card-img, .bpsg-bono-card-img, .bpsg-rev-photo {
  border-radius: 18px 18px 0 0 !important;
}

/* Producto y precio */
#shopify-section-template--27150248575255__main,
.product__info-wrapper, .product__media-wrapper {
  background: var(--style-paper) !important;
}
.product__info-container {
  background: var(--style-card) !important;
  border: 1px solid var(--style-line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 42px) !important;
  box-shadow: var(--style-shadow);
}
.product__title h1, .product__title h2 { color: var(--style-ink) !important; }
.price-item--sale, .price-item--last { color: var(--style-clay) !important; }
.price__badge-sale, .badge.price__badge-sale {
  background: var(--style-cta) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}
.product__media img, .product-media-container {
  border-radius: 26px !important;
  box-shadow: var(--style-shadow) !important;
}
.product-form__submit, .button, .bonos-cta, .bpsg-cierre-btn {
  background: var(--style-cta) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: var(--style-shadow-pop) !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-form__submit:hover, .button:hover, .bonos-cta:hover, .bpsg-cierre-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Garantía, urgencia y medios de pago */
.bpsg-garantia-box, .bpsg-urgencia-box {
  background: var(--style-card) !important;
  border: 1px solid var(--style-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--style-shadow) !important;
}
.bpsg-urgencia-title, .bpsg-urgencia-cupos span { color: var(--style-clay) !important; }
.bpsg-urgencia-promo { background: var(--style-cta) !important; border-radius: 999px !important; }
.bpsg-counter-num { background: var(--style-ink) !important; border-radius: 12px !important; }

/* FAQ */
.bpsg-faq-item {
  background: var(--style-card) !important;
  border: 1px solid var(--style-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(111,47,42,.08);
  margin-bottom: 12px !important;
}
.bpsg-faq-q { color: var(--style-ink) !important; }
.bpsg-faq-icon { color: var(--style-clay) !important; }
.bpsg-cierre { background: linear-gradient(135deg, #f2e7da, #faf7f1) !important; }
.bpsg-cierre h2 span { color: var(--style-clay) !important; }

@media (max-width: 700px) {
  .alivio-title { font-size: clamp(40px, 12vw, 58px) !important; }
  .product__info-container { border-radius: 20px; padding: 22px !important; }
  .bpsg-rev-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ===== ENCABEZADO FIJO DE OFERTA ===== */
#inicio {
  display: none !important;
}
.offer-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  min-height: 68px;
  background: linear-gradient(100deg, #2a201d 0%, #6f2f2a 52%, #a8443c 100%);
  color: #fffdfa;
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(42,32,29,.22);
}
.offer-header__inner {
  width: min(1160px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 9px clamp(16px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.offer-header__copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.offer-header__badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255,224,184,.7);
  border-radius: 999px;
  color: #ffe0b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.offer-header__text {
  min-width: 0;
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
}
.offer-header__text strong { color: #ffe0b8; }
.offer-header__timer {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-left: 6px;
  color: #ffe0b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.offer-header__timer-label {
  color: rgba(255,253,250,.74);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.offer-header__buy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 19px;
  border: 0;
  border-radius: 999px;
  background: #fffdfa;
  color: #6f2f2a;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer-header__buy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.offer-header__buy:focus-visible { outline: 3px solid #ffe0b8; outline-offset: 3px; }
body { padding-top: 68px; }
@media (max-width: 650px) {
  .offer-header__inner { min-height: 76px; padding: 8px 12px; gap: 9px; }
  .offer-header__copy { gap: 7px; }
  .offer-header__badge { padding: 5px 7px; font-size: 8px; letter-spacing: .08em; }
  .offer-header__text { font-size: 10px; }
  .offer-header__timer { display: flex; margin: 3px 0 0; }
  .offer-header__timer-label { font-size: 8px; }
  .offer-header__buy { min-height: 38px; padding: 9px 12px; font-size: 9px; }
  body { padding-top: 76px; }
}


/* ===== ANIMACIÓN DE ATENCIÓN PARA COMPRAR AHORA ===== */
.offer-header__buy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #fffdfa, #ffe0b8, #ffffff, #f6c98f, #fffdfa) !important;
  background-size: 300% 100% !important;
  animation: offer-buy-colors 3.2s ease-in-out infinite, offer-buy-pulse 2s ease-out infinite;
}
.offer-header__buy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.9) 48%, transparent 70%);
  transform: translateX(-130%);
  animation: offer-buy-shine 2.8s ease-in-out infinite;
}
@keyframes offer-buy-colors {
  0%, 100% { background-position: 0% 50%; color: #6f2f2a; }
  50% { background-position: 100% 50%; color: #a8443c; }
}
@keyframes offer-buy-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.18), 0 0 0 0 rgba(255,224,184,.55); }
  55% { box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 0 10px rgba(255,224,184,0); }
}
@keyframes offer-buy-shine {
  0%, 35% { transform: translateX(-130%); }
  70%, 100% { transform: translateX(130%); }
}
.offer-header__buy:hover {
  animation-play-state: paused;
  background: linear-gradient(110deg, #a8443c, #c9743c) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.06);
}
.product-form__submit,
.bpsg-cierre-btn,
.bonos-cta {
  background-size: 250% 100% !important;
  animation: page-cta-colors 3.6s ease-in-out infinite, page-cta-pulse 2.4s ease-out infinite;
}
@keyframes page-cta-colors {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes page-cta-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(111,47,42,.26), 0 0 0 0 rgba(168,68,60,.35); }
  55% { box-shadow: 0 14px 32px rgba(111,47,42,.34), 0 0 0 9px rgba(168,68,60,0); }
}
@media (prefers-reduced-motion: reduce) {
  .offer-header__buy, .offer-header__buy::after,
  .product-form__submit, .bpsg-cierre-btn, .bonos-cta {
    animation: none !important;
  }
}


/* El CTA del producto usa el mismo acabado que el botón fijo Comprar ahora. */
.product-form__submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #fffdfa, #ffe0b8, #ffffff, #f6c98f, #fffdfa) !important;
  background-size: 300% 100% !important;
  color: #6f2f2a !important;
  animation: offer-buy-colors 3.2s ease-in-out infinite, offer-buy-pulse 2s ease-out infinite;
}
.product-form__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.9) 48%, transparent 70%);
  transform: translateX(-130%);
  animation: offer-buy-shine 2.8s ease-in-out infinite;
}
.product-form__submit:hover {
  background: linear-gradient(110deg, #a8443c, #c9743c) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.03);
}
