/* ══════════════════════════════════════════════════════════════
   inicio.css — Estilos exclusivos de la página de inicio (inicio.php)
   Depende de /css/variables.css (ya cargado antes por header.php)
═══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero { padding: 44px 0 var(--gap-xl); }
.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap-lg);
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow-line { width: 24px; height: 2px; background: var(--g2); }

.hero-h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.hero-h1 .hl { color: var(--g2); }

.hero-lead { font-size: 1.02rem; line-height: 1.7; color: var(--text-2); margin: 20px 0 22px; max-width: 480px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hpill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--card-bg); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-2);
}
.hpill svg { width: 15px; height: 15px; }
.hpill strong { color: var(--text-1); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-right { display: flex; flex-direction: column; gap: 16px; }

.hcard-guarantee {
  background: linear-gradient(135deg, var(--g2), var(--g1));
  border-radius: var(--r-lg); padding: 22px; color: #fff;
  box-shadow: var(--sh-g);
}
.hcg-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hcg-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hcg-num { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.hcg-sub { font-size: .78rem; opacity: .9; }
.hcg-body { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.hcg-desc { font-size: .82rem; opacity: .88; line-height: 1.5; }

.hcard-compare { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-2); }
.hcc-label { font-size: .78rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.hcc-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--border); }
.hcc-row:first-of-type { border-top: none; }
.hcc-name { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); }
.hcc-name svg { width: 15px; height: 15px; }
.hcc-val { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; }
.hcc-val.cg { color: var(--g1); }
.hcc-val svg { width: 14px; height: 14px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hstat { text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 8px; }
.hstat-num { font-size: 1.4rem; font-weight: 900; color: var(--g1); }
.hstat-lbl { font-size: .68rem; color: var(--text-3); margin-top: 2px; }

/* El trust-strip (banner de 3 años de garantía / envío gratis / etc.)
   se movió a components/footer.css — ahora es compartido y aparece
   arriba del footer en todas las páginas, no solo en el inicio. */

/* ── CÓMO FUNCIONA ── */
.steps-grid { display: flex; align-items: flex-start; gap: 10px; }
.step-card {
  flex: 1; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 20px; text-align: center; position: relative;
}
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g2); color: #fff; font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.step-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--g2-soft);
  display: flex; align-items: center; justify-content: center; margin: 10px auto 16px;
}
.step-icon svg { width: 24px; height: 24px; }
.step-title { font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.step-desc { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.step-sep { color: var(--text-3); flex-shrink: 0; margin-top: 40px; }
.step-sep svg { width: 20px; height: 20px; }

/* ── TABLA COMPARATIVA ── */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-bg); }
.ctable { width: 100%; border-collapse: collapse; min-width: 620px; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; font-size: .85rem; border-bottom: 1px solid var(--border); }
.ctable thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); font-weight: 700; }
.th-us { color: var(--g1); }
.col-us { background: var(--g2-soft); }
.td-feat-label { display: block; font-weight: 700; color: var(--text-1); }
.td-feat-desc { display: block; font-size: .74rem; color: var(--text-3); margin-top: 2px; }
.ci { display: inline-flex; align-items: center; gap: 6px; }
.ci svg { width: 14px; height: 14px; }
.ci-yes { color: var(--g1); font-weight: 700; }
.ci-meh { color: #A8760E; }
.ci-no { color: var(--red); }

/* Los filtros de categoría y las tarjetas de producto (.filter-bar,
   .pgrid, .pcard y todo lo de adentro) se movieron a css/catalogo.css
   porque ahora los usan TANTO el inicio como productos/index.php. */

/* ── BUNDLES ── */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bundle-card { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.bundle-tag { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.bundle-savings { display: block; font-size: .72rem; font-weight: 700; color: var(--g1); margin-bottom: 6px; }
.bundle-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.bundle-sub { font-size: .82rem; color: var(--text-2); line-height: 1.5; margin-bottom: 16px; }

/* Fotos reales de los productos que arma el kit (antes esta parte no
   existía — el bundle era solo texto). Se traslapan un poco, como
   fichas apiladas, para que quede compacto con 2 o 3 fotos. */
.bundle-imgs { display: flex; margin-bottom: 14px; }
.bundle-imgs img {
  width: 52px; height: 52px; object-fit: contain; border-radius: var(--r-md);
  background: var(--bg-s); border: 2px solid var(--card-bg);
  margin-left: -14px;
}
.bundle-imgs img:first-child { margin-left: 0; }

.bundle-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.bundle-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-2); }
.bundle-item svg { width: 14px; height: 14px; }
.bundle-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bundle-was { font-size: .78rem; color: var(--text-3); text-decoration: line-through; }
.bundle-now { font-size: 1.3rem; font-weight: 900; color: var(--text-1); }
.bundle-pct { background: var(--red-soft); color: var(--red); font-weight: 800; font-size: .78rem; padding: 5px 10px; border-radius: var(--r-pill); }

/* ── POR QUÉ ELEGIRNOS ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.wcard { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.wicon { width: 46px; height: 46px; border-radius: 12px; background: var(--g2-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.wicon svg { width: 22px; height: 22px; }
.wtitle { font-weight: 700; margin-bottom: 8px; }
.wdesc { font-size: .84rem; color: var(--text-2); line-height: 1.6; }

/* ── PAGOS Y ENVÍOS ── */
.pago-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pago-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.pago-htag { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text-1); margin-bottom: 18px; font-size: .92rem; }
.pmethod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.pmethod:first-of-type { border-top: none; }
.pmethod-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--g2-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pmethod-ico svg { width: 17px; height: 17px; }
.pmethod-name { display: block; font-size: .86rem; font-weight: 600; color: var(--text-1); }
.pmethod-sub { display: block; font-size: .74rem; color: var(--text-3); }
.sec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sec-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--text-2); background: var(--bg-s); padding: 5px 10px; border-radius: var(--r-pill); }
.sec-badge svg { width: 12px; height: 12px; }

.ship-timeline { display: flex; flex-direction: column; gap: 16px; }
.ship-step { display: flex; align-items: flex-start; gap: 12px; }
.ship-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--g2-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ship-dot svg { width: 14px; height: 14px; }
.ship-info { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.ship-info strong { color: var(--text-1); }
.ship-info span { color: var(--text-3); font-size: .76rem; }
.ship-free-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--g1); background: var(--g2-soft); padding: 10px 12px; border-radius: var(--r-sm); margin-top: 18px; }

.cfdi-info { display: flex; flex-direction: column; gap: 12px; }
.cfdi-row { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--text-2); line-height: 1.5; }
.cfdi-row svg { width: 14px; height: 14px; margin-top: 2px; }
.cfdi-box { margin-top: 16px; padding: 12px; background: var(--amber-soft); border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 3px; }
.cfdi-box strong { font-size: .82rem; color: var(--text-1); }
.cfdi-box span { font-size: .76rem; color: var(--text-2); }

/* ── GARANTÍA ── */
.guar-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.guar-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap-lg); padding: var(--gap-lg); }
.gtag { font-size: .78rem; font-weight: 700; color: var(--g2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.gtitle { font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.gdesc { font-size: .92rem; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.gfeats { display: flex; flex-direction: column; gap: 16px; }
.gfeat { display: flex; align-items: flex-start; gap: 12px; }
.gfeat-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--g2-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gfeat-ico svg { width: 18px; height: 18px; }
.gfeat div > strong { display: block; font-size: .88rem; color: var(--text-1); margin-bottom: 2px; }
.gfeat div > span { font-size: .8rem; color: var(--text-2); }

.gbadge {
  background: linear-gradient(135deg, var(--g2), var(--g1)); border-radius: var(--r-lg);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 20px;
}
.gb-num { font-size: 4rem; font-weight: 900; line-height: 1; }
.gb-años { font-weight: 700; margin-top: 4px; }
.gb-sub { font-size: .78rem; opacity: .88; margin-top: 10px; }
.gb-brand { font-size: .7rem; opacity: .75; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 12px; width: 100%; }

.guar-process { border-top: 1px solid var(--border); padding: var(--gap-lg); background: var(--bg-s); }
.gp-label { font-size: .82rem; font-weight: 700; color: var(--text-1); margin-bottom: 20px; }
.gp-steps { display: flex; align-items: flex-start; gap: 10px; }
.gp-step { flex: 1; text-align: center; }
.gp-num { width: 30px; height: 30px; border-radius: 50%; background: var(--g2); color: #fff; font-weight: 800; font-size: .82rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.gp-step strong { display: block; font-size: .82rem; color: var(--text-1); margin-bottom: 3px; }
.gp-step span { font-size: .72rem; color: var(--text-3); }
.gp-arrow { margin-top: 8px; color: var(--text-3); flex-shrink: 0; }
.gp-arrow svg { width: 16px; height: 16px; }

/* ── RASTREO ── */
.track-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.track-input-wrap { display: flex; gap: 10px; position: relative; }
.track-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; }
.track-input { flex: 1; padding: 13px 14px 13px 38px; border-radius: var(--r-pill); border: 1px solid var(--border); font-size: .9rem; color: var(--text-1); background: var(--bg); }
.track-input:focus { outline: none; border-color: var(--g2); }
.track-hint { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-3); margin-top: 14px; }
.track-hint svg { width: 13px; height: 13px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; text-align: left; font-size: .9rem; font-weight: 700; color: var(--text-1); }
.faq-arr { flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-arr { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 18px; }
.faq-body p { font-size: .85rem; color: var(--text-2); line-height: 1.7; padding-bottom: 16px; }
.faq-item.open .faq-body { max-height: 400px; }

/* ── CTA BANNER ── */
.cta-wrap {
  text-align: center; max-width: 640px; margin: 0 auto;
  background: linear-gradient(135deg, var(--g2-soft), var(--blue-soft));
  border: 1px solid var(--accent-border);
  border-radius: var(--r-lg); padding: 44px 28px;
}
.cta-title { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; margin-bottom: 10px; }
.cta-sub { font-size: .92rem; color: var(--text-2); margin-bottom: 24px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.blog-vis { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.blog-body { padding: 18px; }
.blog-tag { font-size: .68rem; font-weight: 700; color: var(--g2); text-transform: uppercase; margin-bottom: 8px; }
.blog-title { font-size: .96rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-meta { display: flex; gap: 6px; font-size: .74rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════
   MODALES (Contacto, Exit Intent, Welcome Popup)
   El modal genérico (.modal-overlay/.modal-sheet/...) y la Vista
   Rápida (.qv-*) se movieron a css/catalogo.css, compartidos con
   productos/index.php. Aquí solo queda lo propio del inicio.
═══════════════════════════════════════════════════════════════ */

.cf-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.cf-input { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); font-size: .9rem; background: var(--bg); color: var(--text-1); }
.cf-input:focus { outline: none; border-color: var(--g2); }
.cf-err { display: none; font-size: .74rem; color: var(--red); }
.cf-field.error .cf-input { border-color: var(--red); }
.cf-field.error .cf-err { display: block; }

.exit-overlay, .popup-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.exit-overlay.active, .popup-overlay.active { opacity: 1; pointer-events: auto; }
.exit-box, .popup-box {
  width: 100%; max-width: 380px; background: var(--card-bg); border-radius: var(--r-lg);
  overflow: hidden; transform: scale(.94); transition: transform .25s ease;
}
.exit-overlay.active .exit-box, .popup-overlay.active .popup-box { transform: scale(1); }

.exit-top { position: relative; background: linear-gradient(135deg, var(--g2), var(--g1)); padding: 28px 22px 22px; text-align: center; color: #fff; }
.exit-close-btn { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.exit-ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.exit-head { font-size: 1.1rem; font-weight: 800; }
.exit-sub { font-size: .82rem; opacity: .9; margin-top: 4px; }
.exit-body { padding: 22px; }
.exit-msg { font-size: .88rem; line-height: 1.6; color: var(--text-2); margin-bottom: 16px; text-align: center; }
.exit-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.exit-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--text-2); background: var(--bg-s); padding: 5px 10px; border-radius: var(--r-pill); }
.exit-chip svg { width: 12px; height: 12px; }
.exit-dismiss { display: block; text-align: center; font-size: .78rem; color: var(--text-3); margin-top: 14px; }

.popup-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-s); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.popup-box { position: relative; padding: 30px 24px 24px; text-align: center; }
.popup-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--g1); background: var(--g2-soft); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.popup-title { font-size: 1.25rem; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.popup-desc { font-size: .84rem; color: var(--text-2); margin-bottom: 20px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-input { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); font-size: .9rem; background: var(--bg); color: var(--text-1); }
.popup-btn { width: 100%; margin-top: 4px; }
.popup-skip { display: block; font-size: .78rem; color: var(--text-3); margin-top: 14px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first real: en escritorio "ensanchamos"
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .guar-inner { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-sep { display: none; }
  .scroll-hint { display: flex; }
  .gp-steps { flex-direction: column; align-items: stretch; gap: 18px; }
  .gp-arrow { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 40px; }
  .hero-ctas .btn, .cta-btns .btn { width: 100%; }
}