/* VERSION 4 - CTA con boton por producto */
/* =========================================================================
   Pharmachem · Estilos compartidos para páginas de producto
   Todo vive dentro de .lp-page, así que no afecta header, footer ni style.css
   ========================================================================= */

.lp-page {
  --lp-navy: #002060;
  --lp-blue: #377ab7;
  --lp-blue-soft: #eaf2fa;
  --lp-bg-soft: #f6f9fc;
  --lp-ink: #2b3440;
  --lp-muted: #5b6673;
  --lp-line: #e3e9f0;
  --lp-radius: 14px;
  --lp-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 3.929a1 1 0 0 1 .086 1.412l-6.5 7.25a1 1 0 0 1-1.46.034l-3.5-3.5a1 1 0 1 1 1.414-1.414l2.752 2.752 5.796-6.464a1 1 0 0 1 1.412-.07z'/%3E%3C/svg%3E");
  font-family: 'Arimo', sans-serif;
  color: var(--lp-ink);
  line-height: 1.7;
  font-size: 1.02rem;
}
.lp-page img { display: block; max-width: 100%; height: auto; }
.lp-page p { margin: 0 0 14px; }
.lp-page p:last-child { margin-bottom: 0; }
.lp-page b, .lp-page strong { color: var(--lp-navy); }

/* ---------- Encabezado de la página ---------- */
.lp-page .lp-hero {
  background: linear-gradient(135deg, var(--lp-navy) 0%, var(--lp-blue) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.lp-page .lp-hero h1,
.lp-page .lp-hero h2 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 26ch;
}
.lp-page .lp-hero p {
  max-width: 72ch;
  color: rgba(255,255,255,.92);
  font-size: 1.08rem;
}
.lp-page .lp-hero b, .lp-page .lp-hero strong { color: #fff; }

/* ---------- Secciones ---------- */
.lp-page .lp-section { padding: 64px 0; }
.lp-page .lp-section--soft { background: var(--lp-bg-soft); }
.lp-page .lp-section--tight { padding-top: 0; }
.lp-page h2, .lp-page h3, .lp-page h4 {
  color: var(--lp-navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}
.lp-page h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lp-page h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.lp-page h4 { font-size: 1.15rem; }
.lp-page .lp-text h3, .lp-page .lp-text h4 { margin-top: 22px; }
.lp-page .lp-text > h2:first-child,
.lp-page .lp-text > h3:first-child { margin-top: 0; }
.lp-page .lp-bar {
  width: 56px; height: 4px; border-radius: 4px;
  background: var(--lp-blue);
  margin: 0 0 18px;
}
.lp-page .lp-lead { color: var(--lp-muted); max-width: 72ch; }
.lp-page .lp-section > .container > p,
.lp-page .lp-section > .container > .lp-lead { max-width: 80ch; }
.lp-page .lp-block-gap { margin-top: 26px; }

/* ---------- Imágenes ---------- */
.lp-page .lp-figure {
  border-radius: var(--lp-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0,32,96,.35);
  background: #fff;
}
.lp-page .lp-figure img { width: 100%; }
.lp-page .lp-figure--wide img { max-height: 460px; object-fit: cover; }

/* ---------- Lista con palomitas (junto a la imagen) ---------- */
.lp-page .lp-props { list-style: none; padding: 0; margin: 0 0 14px; }
.lp-page .lp-props li {
  position: relative;
  padding: 16px 0 16px 58px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-page .lp-props li:last-child { border-bottom: 0; }
.lp-page .lp-props li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lp-blue-soft);
}
.lp-page .lp-props li::after {
  content: "";
  position: absolute; left: 12px; top: 26px;
  width: 18px; height: 18px;
  background: var(--lp-blue);
  -webkit-mask: var(--lp-check) center / contain no-repeat;
          mask: var(--lp-check) center / contain no-repeat;
}

/* ---------- Lista sencilla con palomitas ---------- */
.lp-page .lp-check { list-style: none; padding: 0; margin: 0 0 14px; }
.lp-page .lp-check li {
  position: relative;
  padding: 6px 0 6px 32px;
  break-inside: avoid;
}
.lp-page .lp-check li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lp-blue);
}
.lp-page .lp-check li::after {
  content: "";
  position: absolute; left: 5px; top: 16px;
  width: 10px; height: 10px;
  background: #fff;
  -webkit-mask: var(--lp-check) center / contain no-repeat;
          mask: var(--lp-check) center / contain no-repeat;
}
@media (min-width: 768px) {
  .lp-page .lp-check--cols { columns: 2; column-gap: 40px; }
}

/* ---------- Tarjetas numeradas ---------- */
.lp-page .lp-cards { counter-reset: lpcard; margin-top: 8px; }
.lp-page .lp-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-page .lp-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 16px 34px -16px rgba(0,32,96,.30);
}
.lp-page .lp-card::before {
  counter-increment: lpcard;
  content: counter(lpcard, decimal-leading-zero);
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--lp-blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.lp-page .lp-card p { color: var(--lp-muted); margin: 0; }
.lp-page .lp-card p > b:first-child,
.lp-page .lp-card p > strong:first-child {
  display: block;
  color: var(--lp-navy);
  font-size: 1.06rem;
  margin-bottom: 6px;
}

/* ---------- Bloque de cierre ---------- */
.lp-page .lp-closing {
  background: var(--lp-blue-soft);
  border-left: 5px solid var(--lp-blue);
  border-radius: var(--lp-radius);
  padding: 36px 32px;
}

/* ---------- Llamado intermedio (dentro del contenido) ---------- */
.lp-page .lp-inline-cta {
  text-align: center;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 30px 26px;
  box-shadow: 0 12px 30px -20px rgba(0,32,96,.35);
}
.lp-page .lp-inline-cta p { max-width: 70ch; margin-left: auto; margin-right: auto; }

/* ---------- Separador entre bloques (páginas con 2 usos) ---------- */
.lp-page .lp-divider {
  height: 1px;
  background: var(--lp-line);
  margin: 8px auto 0;
  max-width: 1140px;
}

/* ---------- Botones ---------- */
.lp-page .lp-back { text-align: center; padding: 8px 0 56px; }
.lp-page .lp-back .my-button { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Tablas u otro contenido ---------- */
.lp-page .lp-raw table { width: 100%; }

/* ---------- CTA final ---------- */
.lp-page .lp-cta-wrap {
  background: var(--lp-navy);
  padding: 48px 16px;
  text-align: center;
}
.lp-page .lp-cta-wrap .cta {
  display: inline-block;
  max-width: 780px;
  color: #fff;
  text-decoration: none;
  line-height: 1.6;
  padding: 22px 30px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--lp-radius);
  transition: background .2s ease, border-color .2s ease;
}
.lp-page .lp-cta-wrap .cta b,
.lp-page .lp-cta-wrap .cta strong { color: #fff; font-size: 1.2rem; }
.lp-page .lp-cta-wrap .cta:hover {
  background: rgba(255,255,255,.08);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 767.98px) {
  .lp-page .lp-hero { padding: 44px 0 40px; }
  .lp-page .lp-section { padding: 44px 0; }
  .lp-page .lp-section--tight { padding-top: 0; }
  .lp-page .lp-closing { padding: 26px 22px; }
}

/* Textos con color fijo escrito en el HTML: dentro del encabezado azul se leen en blanco */
.lp-page .lp-hero [style*="color"] { color: inherit !important; }
.lp-page .lp-cta-wrap [style*="color"] { color: inherit !important; }
.lp-page .lp-section.pb-0 + .lp-section--tight { padding-top: 40px; }

/* =========================================================================
   AJUSTES v2 · Prioridad sobre style.css del sitio
   ========================================================================= */

/* 1) Encabezado azul: todo el texto en blanco */
.lp-page .lp-hero,
.lp-page .lp-hero h1,
.lp-page .lp-hero h2,
.lp-page .lp-hero h3,
.lp-page .lp-hero b,
.lp-page .lp-hero strong,
.lp-page .lp-hero em,
.lp-page .lp-hero i,
.lp-page .lp-hero span,
.lp-page .lp-hero a { color: #fff !important; }
.lp-page .lp-hero p { color: rgba(255,255,255,.92) !important; }

/* 2) Imagen junto al texto: tamaño intermedio (columna de ~5/12 en escritorio) */
@media (min-width: 992px) {
  .lp-page .row > .col-lg-6[data-lp-media] { flex: 0 0 auto; width: 42%; }
}
.lp-page .col-lg-6[data-lp-media] .lp-figure {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.lp-page .col-lg-6[data-lp-media] .lp-figure img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}
.lp-page .lp-figure--wide img { width: 100%; }

/* 3) Franja de contacto: todo el texto en blanco */
.lp-page .lp-cta-wrap .cta,
.lp-page .lp-cta-wrap .cta * { color: #fff !important; }
.lp-page .lp-cta-wrap .cta { font-weight: 400; }

/* =========================================================================
   v4 · Franja de contacto con botón (texto distinto en cada producto)
   ========================================================================= */
.lp-page .lp-cta-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--lp-radius);
  text-align: center;
}
.lp-page .lp-cta-box p,
.lp-page .lp-cta-box strong { color: #fff !important; }
.lp-page .lp-cta-title { font-size: 1.3rem; line-height: 1.4; margin: 0 0 10px !important; }
.lp-page .lp-cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88) !important;
  max-width: 64ch;
  margin: 0 auto 24px !important;
}
.lp-page .lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--lp-navy) !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.lp-page .lp-cta-btn i { color: var(--lp-blue) !important; font-size: 1.1rem; }
.lp-page .lp-cta-btn:hover {
  background: var(--lp-blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
@media (max-width: 767.98px) {
  .lp-page .lp-cta-box { padding: 28px 20px; }
  .lp-page .lp-cta-title { font-size: 1.15rem; }
}
