/* LBP Frontend — Redesign v2 */
/* Tailwind is loaded via CDN in the PHP head; this file handles
   only the non-Tailwind specifics: custom properties, animations,
   scroll-reveal, accordion, chat bubble, and a few component overrides. */

:root {
  --lbp-primary: #d40037;
  --lbp-secondary: #0f0f0f;
  --lbp-light: #f8f8f8;
  --lbp-accent: #ff1a52;
}

/* ── reset helpers ── */
.lbp *, .lbp *::before, .lbp *::after { box-sizing: border-box; }
.lbp img { max-width: 100%; display: block; }
.lbp a { text-decoration: none; color: inherit; }

/* ── scroll-reveal ── */
.lbp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(.22,.68,0,1.2), transform 0.6s cubic-bezier(.22,.68,0,1.2);
}
.lbp-reveal.lbp-visible {
  opacity: 1;
  transform: none;
}
.lbp-reveal-delay-1 { transition-delay: 0.1s; }
.lbp-reveal-delay-2 { transition-delay: 0.2s; }
.lbp-reveal-delay-3 { transition-delay: 0.3s; }
.lbp-reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .lbp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── topbar ── */
.lbp-topbar {
  background: var(--lbp-topbar, var(--lbp-secondary));
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  letter-spacing: .03em;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── header ── */
.lbp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow .2s;
}
.lbp-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.08); }
.lbp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lbp-logo img { height: 40px; width: auto; }
.lbp-logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.04em;
  color: var(--lbp-secondary);
}

/* nav */
.lbp-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lbp-nav li { position: relative; }
.lbp-nav li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  transition: background .15s, color .15s;
}
.lbp-nav li > a:hover { background: #f2f2f2; }

/* dropdown */
.lbp-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 12px;
  gap: 4px;
  grid-template-columns: repeat(2, 180px);
  z-index: 200;
  min-width: 280px;
}
.lbp-nav li.has-dropdown:hover .lbp-dropdown,
.lbp-nav li.force-open .lbp-dropdown { display: grid; }
.lbp-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s;
}
.lbp-dropdown-link:hover { background: #f5f5f5; }
.lbp-dropdown-link img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }

/* header actions */
.lbp-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lbp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #333;
  transition: background .15s;
  position: relative;
}
.lbp-icon-btn:hover { background: #f2f2f2; }
.lbp-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* burger */
.lbp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  transition: background .15s;
}
.lbp-burger:hover { background: #f2f2f2; }
.lbp-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.lbp-header.open .lbp-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lbp-header.open .lbp-burger span:nth-child(2) { opacity: 0; }
.lbp-header.open .lbp-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile nav */
.lbp-mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  padding: 8px 0 16px;
}
.lbp-mobile-nav a {
  display: block;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 15px;
  color: #111;
  transition: background .15s;
}
.lbp-mobile-nav a:hover { background: #f8f8f8; }
.lbp-header.open .lbp-mobile-nav { display: flex; }

@media (max-width: 900px) {
  .lbp-nav { display: none; }
  .lbp-header-actions .lbp-icon-btn { display: none; }
  .lbp-burger { display: flex; }
}

/* ── hero ── */
.lbp-hero {
  padding: 80px 0 72px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 60%, #fff3f6 100%);
  overflow: hidden;
}
.lbp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lbp-container-narrow { max-width: 800px; }
.lbp-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.lbp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,0,55,.08);
  color: var(--lbp-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.lbp-hero-badge { max-width: 200px; margin-bottom: 16px; }
.lbp-hero-text h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--lbp-secondary);
  margin: 0 0 20px;
}
.lbp-hero-desc {
  font-size: 17px;
  color: #555;
  line-height: 1.65;
  margin: 0 0 24px;
}
.lbp-hero-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lbp-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #222;
}
.lbp-hero-bullets li svg {
  flex-shrink: 0;
  color: var(--lbp-primary);
  width: 16px;
  height: 16px;
}
.lbp-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.lbp-hero-badge-sec { max-width: 180px; margin-top: 28px; }
.lbp-hero-image img {
  border-radius: 20px;
  box-shadow: 0 32px 64px rgba(0,0,0,.12);
}

@media (max-width: 820px) {
  .lbp-hero-inner { grid-template-columns: 1fr; }
  .lbp-hero-image { display: none; }
}

/* ── buttons ── */
.lbp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.lbp-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lbp-btn-primary {
  background: var(--lbp-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,0,55,.25);
}
.lbp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,0,55,.35); }
.lbp-btn-ghost {
  background: var(--lbp-secondary);
  color: #fff;
}
.lbp-btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.lbp-btn-outline {
  border: 1.5px solid rgba(0,0,0,.14);
  color: #222;
  background: #fff;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.lbp-btn-outline:hover { border-color: var(--lbp-secondary); background: var(--lbp-secondary); color: #fff; }

/* ── section base ── */
.lbp-section { padding: 80px 0; }
.lbp-section-alt { background: var(--lbp-light); }
.lbp-section-dark { background: var(--lbp-secondary); }
.lbp-section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-align: center;
  margin: 0 0 48px;
  color: var(--lbp-secondary);
}
.lbp-section-eyebrow {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lbp-primary);
  margin-bottom: 10px;
}

/* ── grids ── */
.lbp-grid { display: grid; gap: 24px; }
.lbp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lbp-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .lbp-grid-3, .lbp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lbp-grid-3, .lbp-grid-4 { grid-template-columns: 1fr; } }

/* ── feature cards ── */
.lbp-feature {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  transition: box-shadow .2s, transform .2s;
}
.lbp-section-alt .lbp-feature { background: #fff; }
.lbp-feature:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.lbp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(212,0,55,.07);
  color: var(--lbp-primary);
  border-radius: 14px;
  margin: 0 auto 18px;
}
.lbp-feature-icon svg { width: 26px; height: 26px; }
.lbp-feature img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 12px;
}
.lbp-feature h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: #111; }
.lbp-feature p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }

/* ── process steps ── */
.lbp-process-step {
  position: relative;
  text-align: center;
  padding: 36px 24px 32px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
}
.lbp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lbp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  margin: 0 auto 18px;
}
.lbp-process-step img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.lbp-process-step h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: #111; }
.lbp-process-step p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }

/* ── cards (order / special / secondary / samples) ── */
.lbp-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.lbp-section-alt .lbp-card { background: #fff; }
.lbp-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.09); transform: translateY(-4px); }
.lbp-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.lbp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
}
.lbp-card:hover .lbp-card-img img { transform: scale(1.04); }
.lbp-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lbp-card h3 { font-size: 17px; font-weight: 800; margin: 0; color: #111; }
.lbp-card p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }
.lbp-price {
  font-weight: 900;
  color: var(--lbp-primary);
  font-size: 18px;
  margin: 0 !important;
}
/* card without image (old template compatibility) */
.lbp-card > img:not(.lbp-card-img img) {
  border-radius: 14px;
  margin: 18px 18px 0;
}
.lbp-card > h3, .lbp-card > p, .lbp-card > .lbp-price, .lbp-card > .lbp-btn {
  margin-left: 18px;
  margin-right: 18px;
}
.lbp-card > .lbp-btn { margin-bottom: 18px; }

/* ── CTA block ── */
.lbp-cta-wrap {
  background: linear-gradient(135deg, var(--lbp-secondary) 0%, #1a0008 100%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  margin-bottom: 56px;
}
.lbp-cta-wrap h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 14px;
}
.lbp-cta-wrap p { color: rgba(255,255,255,.65); font-size: 16px; margin: 0 0 28px; }

/* logos strip */
.lbp-logos-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.lbp-logos-strip img { height: 38px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .2s; }
.lbp-logos-strip img:hover { opacity: .85; filter: none; }

/* ── reviews ── */
.lbp-review {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lbp-section-alt .lbp-review { background: #fff; }
.lbp-stars { display: flex; gap: 3px; color: #f59e0b; }
.lbp-stars svg { width: 16px; height: 16px; fill: currentColor; }
.lbp-review p { margin: 0; color: #333; font-size: 14.5px; line-height: 1.65; flex: 1; }
.lbp-review-author { font-size: 13px; font-weight: 700; color: #888; }
.lbp-reviews-embed { max-width: 900px; margin: 0 auto; }

/* ── FAQ accordion ── */
.lbp-accordion { border-top: 1px solid #ebebeb; }
.lbp-accordion-item { border-bottom: 1px solid #ebebeb; }
.lbp-accordion-head {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color .15s;
}
.lbp-accordion-head:hover { color: var(--lbp-primary); }
.lbp-accordion-head .lbp-acc-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .2s;
}
.lbp-accordion-head .lbp-acc-icon svg { width: 12px; height: 12px; transition: transform .2s; }
.lbp-accordion-item.open .lbp-acc-icon { background: var(--lbp-primary); border-color: var(--lbp-primary); color: #fff; }
.lbp-accordion-item.open .lbp-acc-icon svg { transform: rotate(45deg); }
.lbp-accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.lbp-accordion-body p { margin: 0 0 20px; color: #555; font-size: 14.5px; line-height: 1.7; }
.lbp-accordion-item.open .lbp-accordion-body { max-height: 800px; }

/* ── footer ── */
.lbp-footer { background: var(--lbp-secondary); color: #fff; padding: 56px 0 40px; }
.lbp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.lbp-footer-brand { max-width: 280px; }
.lbp-footer-brand img { height: 36px; margin-bottom: 14px; }
.lbp-footer-brand p { margin: 0; color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.6; }
.lbp-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
.lbp-footer-links a { font-size: 13.5px; color: rgba(255,255,255,.55); transition: color .15s; }
.lbp-footer-links a:hover { color: #fff; }

/* ── WhatsApp chat bubble ── */
.lbp-chat-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
}
.lbp-chat-bubble:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 36px rgba(37,211,102,.5); }
.lbp-chat-bubble svg { width: 30px; height: 30px; flex-shrink: 0; fill: #fff; }
.lbp-chat-bubble > span { display: none; }
.lbp-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
  pointer-events: none;
}

/* puente hover dropdown */
.lbp-nav li.has-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.lbp-nav li.has-dropdown { position: relative; }

/* ── Panel carrito ── */
.lbp-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.lbp-cart-overlay.open { display: block; }
.lbp-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 95vw;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,.68,0,1.1);
}
.lbp-cart-panel.open { transform: translateX(0); }
.lbp-cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 800;
  font-size: 16px;
}
.lbp-cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #555;
  display: flex;
  transition: background .15s;
}
.lbp-cart-close:hover { background: #f5f5f5; }
.lbp-cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.lbp-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: #aaa;
  text-align: center;
  padding: 40px 0;
}
.lbp-cart-empty p { margin: 0; font-size: 15px; font-weight: 600; color: #555; }
.lbp-cart-empty small { color: #aaa; font-size: 13px; }
.lbp-cart-items { display: flex; flex-direction: column; gap: 14px; }
.lbp-cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
}
.lbp-cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.lbp-cart-item-info { flex: 1; min-width: 0; }
.lbp-cart-item-name { font-weight: 700; font-size: 13.5px; color: #111; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-cart-item-price { font-size: 13px; color: var(--lbp-primary); font-weight: 800; margin: 0; }
.lbp-cart-item-qty { font-size: 12px; color: #888; margin: 2px 0 0; }
.lbp-cart-item-remove { background: none; border: none; cursor: pointer; color: #bbb; padding: 4px; border-radius: 6px; flex-shrink: 0; transition: color .15s, background .15s; }
.lbp-cart-item-remove:hover { color: #e53e3e; background: #fff0f0; }
.lbp-cart-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lbp-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.lbp-cart-total span { color: #666; }
.lbp-cart-total strong { font-size: 20px; font-weight: 900; color: #111; }
/* badge count en icono carrito */
.lbp-cart-count { display: none; }
.lbp-cart-count.visible { display: flex !important; }