/* ═══════════════════════════════════════════════════════════
   SANARE CAPILAR — home.css (bundle)
   Bundle de overlays.css + home.css + sprint3.css + sprint4.css
   propio del home (index.html), unidos para reducir requests
   bloqueantes en el <head>. Para editar un bloque en particular,
   buscá el comentario de sección correspondiente.
   ═══════════════════════════════════════════════════════════ */

/* ───────── overlays.css ───────── */
/* ═══════════════════════════════════════════
   SANARE CAPILAR — Overlays
   (Product Sheet · Diagnosis · Article · Identify)
   ═══════════════════════════════════════════ */

/* ── Shared overlay backdrop ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.45); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════
   PRODUCT BOTTOM SHEET
══════════════════════════════════════ */
.product-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 501;
  background: var(--white); border-radius: 28px 28px 0 0;
  max-height: 92vh; overflow-y: auto; scrollbar-width: none;
  transform: translateY(100%); transition: transform .42s var(--ease);
  /* Sin padding-bottom: la barra fija (.sheet-ctas, sticky bottom:0) debe quedar
     pegada al borde real del contenedor. El safe-area inset se aplica dentro de
     .sheet-ctas, no aquí (si no, dejaba un hueco blanco bajo la barra). */
}
.product-sheet::-webkit-scrollbar { display: none; }
.product-sheet.open { transform: translateY(0); }

.sheet-handle {
  display: flex; justify-content: center; padding: 14px 0 10px;
  position: sticky; top: 0; background: white; z-index: 3;
  border-radius: 28px 28px 0 0;
}
.sheet-handle-bar { width: 40px; height: 4px; border-radius: 2px; background: rgba(27,27,27,.15); }

.sheet-toprow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 0; position: sticky; top: 27px; background: white; z-index: 2;
}
.sheet-toprow-label { font-size: 12px; font-weight: 600; color: rgba(27,27,27,.35); letter-spacing: .4px; }
.sheet-toprow-actions { display: flex; align-items: center; gap: 8px; }
.sheet-close, .sheet-share {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(27,27,27,.15); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text); transition: all .2s;
}
.sheet-close:hover { background: var(--text); color: white; }
.sheet-share { color: var(--green); border-color: rgba(74,124,89,.3); }
.sheet-share:hover { background: var(--green); color: white; border-color: var(--green); }
.sheet-share svg { width: 16px; height: 16px; }

.sheet-img-wrap {
  margin: 12px 20px 4px; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid rgba(27,27,27,.06);
  display: flex; align-items: center; justify-content: center;
  height: 56vh; max-height: 460px; min-height: 300px; padding: 16px;
}
.sheet-img-wrap img { width: 100%; height: 100%; object-fit: contain; }

.sheet-body { padding: 0 24px 8px; }
.sheet-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.15; margin-bottom: 8px; }
.sheet-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sheet-stars { color: #F5A623; font-size: 14px; }
.sheet-rating-txt { font-size: 13px; color: rgba(27,27,27,.45); }
.sheet-price { display: flex; align-items: baseline; gap: 10px; font-size: 30px; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.sheet-price .price-was { font-size: 17px; font-weight: 500; color: rgba(27,27,27,.4); text-decoration: line-through; }
.sheet-desc { font-size: 14px; color: rgba(27,27,27,.7); line-height: 1.65; margin-bottom: 20px; }

.sheet-section-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text); margin-bottom: 12px; margin-top: 24px;
}
.sheet-benefits { display: flex; flex-direction: column; gap: 10px; }
.sheet-benefit {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px;
}
.sheet-benefit-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.sheet-benefit-text { font-size: 13px; color: rgba(27,27,27,.72); line-height: 1.45; }

.sheet-ingredients {
  background: var(--bg); border-radius: 16px; padding: 16px;
  font-size: 13px; color: rgba(27,27,27,.68); line-height: 1.7;
}
.sheet-mode-steps { display: flex; flex-direction: column; gap: 10px; }
.sheet-mode-step { display: flex; align-items: flex-start; gap: 12px; }
.sheet-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green);
  color: white; font-size: 12px; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.sheet-step-text { font-size: 13px; color: rgba(27,27,27,.72); line-height: 1.5; padding-top: 4px; }

.sheet-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-result-card { background: var(--bg); border-radius: 14px; padding: 14px 12px; text-align: center; }
.sheet-result-icon { font-size: 24px; margin-bottom: 6px; }
.sheet-result-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.sheet-result-time { font-size: 11px; color: rgba(27,27,27,.4); }

.sheet-faq { display: flex; flex-direction: column; gap: 10px; }
.sheet-faq-item { background: var(--bg); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.sheet-faq-q { font-size: 13px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.sheet-faq-chevron { transition: transform .2s; font-size: 12px; opacity: .5; }
.sheet-faq-item.open .sheet-faq-chevron { transform: rotate(180deg); }
.sheet-faq-a { font-size: 13px; color: rgba(27,27,27,.62); line-height: 1.55; margin-top: 10px; display: none; }
.sheet-faq-item.open .sheet-faq-a { display: block; }

.sheet-testimonials { display: flex; flex-direction: column; gap: 10px; }
.sheet-t-card { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.sheet-t-stars { color: #F5A623; font-size: 12px; margin-bottom: 6px; }
.sheet-t-text { font-size: 13px; color: rgba(27,27,27,.68); line-height: 1.5; margin-bottom: 8px; }
.sheet-t-name { font-size: 12px; font-weight: 600; color: var(--text); }

.sheet-ctas {
  padding: 14px 20px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(74,124,89,.12); margin-top: 28px;
  position: sticky; bottom: 0; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); z-index: 5; box-shadow: 0 -6px 24px rgba(27,27,27,.07);
}
.sheet-bar-main { display: flex; align-items: center; gap: 14px; }
.sheet-bar-price { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.sheet-bar-price-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: rgba(27,27,27,.45); }
#sheetBarPrice { font-size: 23px; font-weight: 700; color: var(--green); }
.sheet-bar-main .btn-sheet-wa { flex: 1; width: auto; padding: 15px; }
.btn-sheet-wa {
  background: var(--wa); color: white; border: none;
  padding: 16px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: background .2s;
}
.btn-sheet-wa:hover { background: var(--wa-dark); }
.btn-sheet-rutina {
  background: transparent; color: var(--green); border: 1.5px solid var(--green);
  padding: 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  width: 100%; transition: all .2s;
}
.btn-sheet-rutina:hover { background: var(--green); color: white; }

/* ══════════════════════════════════════
   DIAGNOSIS QUIZ OVERLAY
══════════════════════════════════════ */
.diag-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg); overflow-y: auto;
  transform: translateX(100%); transition: transform .42s var(--ease);
}
.diag-overlay.open { transform: translateX(0); }

.diag-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  padding: 18px 24px; background: var(--white);
  border-bottom: 1px solid rgba(74,124,89,.08);
  position: sticky; top: 0; z-index: 10;
}
.diag-logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--green); }
.diag-back {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(74,124,89,.22); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; color: var(--green); transition: all .2s; flex-shrink: 0;
}
.diag-back:hover { background: var(--green); color: white; }
.diag-progress-wrap { padding: 18px 24px 0; background: white; }
.diag-bar-outer { height: 6px; background: rgba(74,124,89,.14); border-radius: 3px; overflow: hidden; }
.diag-bar-inner { height: 100%; background: var(--green); border-radius: 3px; transition: width .4s ease; }
.diag-step-label { font-size: 12px; color: rgba(27,27,27,.4); margin-top: 8px; padding-bottom: 6px; }

.diag-screen { display: none; padding: 0 24px 48px; flex-direction: column; }
.diag-screen.active { display: flex; }
.diag-q-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; margin-top: 28px; }
.diag-q-text { font-family: var(--font-display); font-size: clamp(22px,5vw,30px); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 30px; }

.diag-options { display: flex; flex-direction: column; gap: 12px; }
.diag-opt {
  background: white; border: 1.5px solid rgba(74,124,89,.2); border-radius: 16px;
  padding: 16px 20px; font-size: 15px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all .2s; text-align: left;
  font-family: var(--font-body); display: flex; align-items: center; gap: 12px;
}
.diag-opt:hover { border-color: var(--green); background: rgba(74,124,89,.04); }
.diag-opt.selected { border-color: var(--green); background: rgba(74,124,89,.09); color: var(--green); font-weight: 600; }
.diag-opt-icon { font-size: 22px; flex-shrink: 0; }

.diag-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diag-opt-grid {
  background: white; border: 1.5px solid rgba(74,124,89,.2); border-radius: 16px;
  padding: 18px 12px; font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all .2s; text-align: center; font-family: var(--font-body);
}
.diag-opt-grid:hover { border-color: var(--green); background: rgba(74,124,89,.04); }
.diag-opt-grid.selected { border-color: var(--green); background: rgba(74,124,89,.09); color: var(--green); font-weight: 600; }
.diag-opt-grid-icon { font-size: 28px; display: block; margin-bottom: 8px; }

.diag-nav { display: flex; gap: 12px; margin-top: 32px; }
.diag-btn-back {
  background: transparent; color: rgba(27,27,27,.45);
  border: 1.5px solid rgba(27,27,27,.15); padding: 14px 24px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: all .2s;
}
.diag-btn-back:hover { border-color: var(--text); color: var(--text); }
.diag-btn-next {
  flex: 1; background: var(--green); color: white; border: none;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
  opacity: .45; pointer-events: none; transition: opacity .2s, background .2s;
}
.diag-btn-next.enabled { opacity: 1; pointer-events: all; }
.diag-btn-next.enabled:hover { background: var(--green-dark); }

/* Diagnosis Result */
.diag-result { display: none; padding: 0 24px 48px; flex-direction: column; }
.diag-result.active { display: flex; }
.diag-result-card {
  background: linear-gradient(135deg,var(--green),var(--green-dark));
  border-radius: 24px; padding: 30px 26px;
  margin-top: 28px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.diag-result-card::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.diag-result-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.diag-result-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: white; line-height: 1.2; margin-bottom: 8px; }
.diag-result-sub { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.55; margin-bottom: 22px; }
.diag-bars { display: flex; flex-direction: column; gap: 12px; }
.diag-bar-row { }
.diag-bar-lbl { font-size: 12px; color: rgba(255,255,255,.72); margin-bottom: 5px; display: flex; justify-content: space-between; }
.diag-bar-outer2 { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.diag-bar-fill { height: 100%; border-radius: 3px; background: white; transition: width 1s ease .5s; }

.diag-reco-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.diag-reco-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.diag-reco-item {
  display: flex; align-items: center; gap: 14px; background: white;
  border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s;
}
.diag-reco-item:hover { transform: translateX(4px); }
.diag-reco-thumb {
  width: 58px; height: 58px; flex-shrink: 0; overflow: hidden;
  background: #fff; border: 1px solid rgba(27,27,27,.07); padding: 3px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.diag-reco-thumb img { width: 100%; height: 100%; object-fit: contain; }
.diag-reco-info { flex: 1; }
.diag-reco-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.diag-reco-why { font-size: 12px; color: rgba(27,27,27,.5); line-height: 1.4; }
.diag-reco-price { font-size: 15px; font-weight: 700; color: var(--green); flex-shrink: 0; }

.diag-cta-wa {
  background: var(--wa); color: white; border: none; width: 100%;
  padding: 18px; border-radius: var(--r-pill); font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 12px; transition: background .2s;
}
.diag-cta-wa:hover { background: var(--wa-dark); }
.diag-cta-back {
  background: transparent; color: rgba(27,27,27,.5); border: 1.5px solid rgba(27,27,27,.15);
  width: 100%; padding: 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: all .2s;
}
.diag-cta-back:hover { border-color: var(--text); color: var(--text); }

/* ══════════════════════════════════════
   ARTICLE OVERLAY
══════════════════════════════════════ */
.article-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--white); overflow-y: auto;
  transform: translateX(100%); transition: transform .42s var(--ease);
}
.article-overlay.open { transform: translateX(0); }

.article-header {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  border-bottom: 1px solid rgba(74,124,89,.08);
  position: sticky; top: 0; background: white; z-index: 10;
  box-shadow: 0 2px 12px rgba(74,124,89,.05);
}
.article-back {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(74,124,89,.22); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; color: var(--green); transition: all .2s;
}
.article-back:hover { background: var(--green); color: white; }
.article-header-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); }

.article-hero {
  height: 220px; background: linear-gradient(135deg,#e4ede5,#ccd9c7);
  display: flex; align-items: center; justify-content: center; font-size: 72px;
}
.article-hero.has-img { background-size: cover; background-position: center; }
.article-hero.has-img svg { display: none; }
.article-hero-photo { margin: 4px 0 20px; border-radius: var(--r-lg); overflow: hidden; }
.article-hero-photo img { width: 100%; height: 260px; object-fit: cover; display: block; }
.article-body-wrap { padding: 28px 24px 80px; max-width: 680px; margin: 0 auto; }
.article-content-tag { display: inline-block; background: rgba(74,124,89,.1); color: var(--green); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; margin-bottom: 12px; }
.article-content-title { font-family: var(--font-display); font-size: clamp(22px,4vw,32px); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 10px; }
.article-meta { font-size: 13px; color: rgba(27,27,27,.4); margin-bottom: 28px; }
.article-text { font-size: 15px; color: rgba(27,27,27,.72); line-height: 1.8; }
.article-text h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 28px 0 12px; }
.article-text p { margin-bottom: 16px; }
.article-text ul { padding-left: 20px; margin-bottom: 16px; }
.article-text ul li { margin-bottom: 8px; }
.article-tip {
  background: rgba(74,124,89,.08); border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 20px 0;
  font-size: 14px; color: var(--green); font-weight: 500; line-height: 1.55;
}
.article-toc {
  background: rgba(74,124,89,.08); border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 28px;
}
.article-toc-title { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.article-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.article-toc a { font-size: 14px; color: var(--text); text-decoration: none; opacity: .8; }
.article-toc a:hover { color: var(--green); text-decoration: underline; }
.article-related-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px; margin-top: 40px; }
.article-reco-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.article-reco-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border-radius: 16px; padding: 14px;
  cursor: pointer; transition: transform .2s;
}
.article-reco-card:hover { transform: translateX(4px); }
.article-reco-card .product-heart { position: static; width: 32px; height: 32px; margin-left: auto; flex-shrink: 0; box-shadow: none; background: transparent; }
.article-reco-thumb { width: 52px; height: 52px; background: #fff; border: 1px solid rgba(27,27,27,.07); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;}
.article-reco-thumb img { width: 100%; height: 100%; object-fit: contain; }
.article-reco-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.article-reco-price { font-size: 13px; color: rgba(27,27,27,.45); }
.article-actions { display: flex; gap: 10px; }
.article-cta-wa {
  background: var(--wa); color: white; border: none; flex: 1;
  padding: 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s;
}
.article-cta-wa:hover { background: var(--wa-dark); }
.article-share-btn {
  flex-shrink: 0; width: 56px; background: var(--bg); color: var(--green);
  border: 1.5px solid var(--beige); border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.article-share-btn:hover { border-color: var(--green); background: #fff; }
.article-share-btn .ic-svg { width: 19px; height: 19px; }

/* ══════════════════════════════════════
   IDENTIFY MODAL (favoritos → clientes potenciales)
   Mismo lenguaje visual y animación que .product-sheet.
══════════════════════════════════════ */
/* z-index por encima de .article-overlay/.diag-overlay (600): el corazón de
   favoritos puede pulsarse desde dentro de esos overlays, y el modal de
   identificación debe quedar siempre visible por encima, no detrás. */
#identifyOverlay { z-index: 650; }
.identify-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 651;
  background: var(--white); border-radius: 28px 28px 0 0;
  max-height: 92vh; overflow-y: auto; scrollbar-width: none;
  transform: translateY(100%); transition: transform .42s var(--ease);
}
.identify-sheet::-webkit-scrollbar { display: none; }
.identify-sheet.open { transform: translateY(0); }

.identify-body { padding: 4px 24px max(24px, env(safe-area-inset-bottom)); text-align: center; }
.identify-icon {
  width: 56px; height: 56px; margin: 8px auto 16px; border-radius: 50%;
  background: rgba(74,124,89,.1); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.identify-icon .ic-svg { width: 26px; height: 26px; }
.identify-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.identify-body .diag-lead-intro { text-align: left; }
.identify-body .diag-lead-fields { text-align: left; margin-bottom: 4px; }
.identify-optional { font-weight: 400; color: rgba(27,27,27,.4); }
.identify-submit { width: 100%; margin-top: 20px; padding: 16px; font-size: 15px; }
.identify-submit:disabled { opacity: .65; pointer-events: none; }

@media (min-width: 769px) {
  .identify-sheet {
    left: 0; right: 0; width: auto; max-width: 460px; margin: 0 auto;
    bottom: 28px; border-radius: 28px;
    box-shadow: 0 32px 90px rgba(27,27,27,.30);
  }
  .identify-sheet:not(.open) { transform: translateY(calc(100% + 48px)); }
  .identify-sheet .sheet-handle { display: none; }
  .identify-sheet .sheet-toprow { padding: 20px 32px 4px; border-radius: 28px 28px 0 0; }
  .identify-body { padding: 4px 32px 28px; }
}

/* ───────── home.css (original) ───────── */
/* ═══════════════════════════════════════════
   SANARE CAPILAR — Home Page Styles
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg,#e8ede5 0%,#f0f4ee 55%,#dde5d9 100%);
  border-radius: 0 0 40px 40px; margin: 0 20px 52px;
  padding: 64px var(--gutter) 28px; position: relative; overflow: hidden;
  min-height: 480px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle,rgba(74,124,89,.12) 0%,transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content { flex: 1; z-index: 2; }
.hero-badge { margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(36px,4.2vw,58px);
  line-height: 1.08; color: var(--text); margin-bottom: 18px; max-width: 500px;
}
.hero-title em { color: var(--green); font-style: italic; }
.hero-sub {
  font-size: 16px; color: rgba(27,27,27,.6); margin-bottom: 30px;
  max-width: 380px; line-height: 1.65;
}
.hero-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-rating .stars { color: #F5A623; font-size: 16px; }
.hero-rating span { font-size: 13px; color: rgba(27,27,27,.5); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-primary,
.hero-ctas .btn-outline { flex-shrink: 0; }
.hero-dots { display: flex; gap: 8px; margin-top: 34px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(74,124,89,.28); cursor: pointer; transition: all .3s; }
.dot.active { background: var(--green); width: 24px; border-radius: 4px; }

.hero-visual {
  flex: 0 0 480px; display: flex; align-items: center;
  justify-content: center; position: relative; height: 420px;
  background: #fff; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero-product-img {
  width: 100%; height: 100%; object-fit: contain;
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* ── Featured Product Detail ── */
.featured-product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  background: white; border-radius: var(--r-xl); padding: 48px;
  margin: 0 20px 60px; box-shadow: var(--shadow);
}
.featured-img-wrap {
  background: #fff; border: 1px solid rgba(27,27,27,.06);
  border-radius: 22px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; padding: 24px;
}
.featured-img-wrap img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; }
.featured-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.featured-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.featured-name { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--text); line-height: 1.1; margin-bottom: 10px; }
.featured-sub { font-size: 15px; color: var(--green); font-weight: 500; margin-bottom: 16px; }
.featured-desc { font-size: 15px; color: rgba(27,27,27,.63); line-height: 1.65; margin-bottom: 24px; }
.featured-attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.featured-attr { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.featured-attr-lbl { font-size: 11px; color: rgba(27,27,27,.42); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.featured-attr-val { font-size: 14px; font-weight: 600; color: var(--text); }
.featured-price { font-size: 36px; font-weight: 700; color: var(--green); margin-bottom: 24px; }
.featured-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Products Grid ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img-wrap {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  height: 280px; position: relative; overflow: hidden; padding: 18px;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-heart {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  z-index: 5;
  border-radius: 50%; background: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s;
}
.product-heart:hover { transform: scale(1.2); }
.product-offer-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; padding: 5px 10px; border-radius: var(--r-pill);
}
.product-info { padding: 18px 20px 20px; }
.product-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.product-desc { font-size: 13px; color: rgba(27,27,27,.52); margin-bottom: 14px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { display: flex; align-items: baseline; gap: 6px; font-size: 20px; font-weight: 700; color: var(--green); }
.price-was { font-size: 13px; font-weight: 500; color: rgba(27,27,27,.4); text-decoration: line-through; }
.btn-ver {
  background: var(--green); color: white; border: none;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: background .2s, transform .15s;
}
.btn-ver:hover { background: var(--green-dark); transform: scale(1.04); }

/* ── Diagnosis CTA Section ── */
.diag-cta-section {
  background: linear-gradient(135deg,var(--green),var(--green-dark));
  border-radius: var(--r-xl); margin: 0 20px 60px; padding: 60px var(--gutter);
  display: flex; align-items: center; gap: 60px; position: relative; overflow: hidden;
}
.diag-cta-section::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 350px; height: 350px; background: rgba(255,255,255,.05); border-radius: 50%;
}
.diag-cta-content { flex: 1; color: white; z-index: 1; }
.diag-cta-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: white; padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.diag-cta-title { font-family: var(--font-display); font-size: clamp(26px,3vw,42px); color: white; margin-bottom: 14px; line-height: 1.15; }
.diag-cta-desc { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.6; max-width: 420px; }
.diag-cta-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.diag-cta-step { display: flex; align-items: center; gap: 12px; }
.diag-cta-step-num { width: 30px; height: 30px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
.diag-cta-step span { font-size: 14px; color: rgba(255,255,255,.86); }
.btn-diag { background: white; color: var(--green); border: none; padding: 14px 32px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: transform .2s, box-shadow .2s; }
.btn-diag:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.diag-cta-card { flex: 0 0 290px; z-index: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 24px; backdrop-filter: blur(12px); }
.diag-cta-card-title { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; opacity: .78; }
.diag-bars-preview { display: flex; flex-direction: column; gap: 12px; }
.diag-bar-preview-lbl { font-size: 12px; color: rgba(255,255,255,.68); margin-bottom: 5px; display: flex; justify-content: space-between; }
.diag-bar-preview-track { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.diag-bar-preview-fill { height: 100%; border-radius: 3px; background: white; }
.diag-cta-hint { margin-top: 18px; padding: 14px; background: rgba(255,255,255,.15); border-radius: 12px; font-size: 13px; color: white; font-weight: 500; line-height: 1.45; }
.diag-cta-hint-lbl { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 5px; }

/* ── Why Us ── */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card { background: white; border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.why-icon { font-size: 34px; margin-bottom: 14px; }
.why-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.why-desc { font-size: 13px; color: rgba(27,27,27,.52); line-height: 1.55; }

/* ── Testimonials ── */
.resenas-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 6px 16px; background: rgba(245,166,35,.12); color: #B97A0A;
  border-radius: 20px; font-size: 13px; font-weight: 600;
}
.testimonials-track { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card { width: 340px; flex: 0 0 auto; min-width: 0; scroll-snap-align: start; background: var(--bg); border-radius: var(--r-lg); padding: 28px; }
.t-stars { color: #F5A623; font-size: 14px; margin-bottom: 14px; }
.t-text { font-size: 14px; line-height: 1.65; color: rgba(27,27,27,.72); margin-bottom: 20px; }
.t-user { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--green3),var(--green)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px; }
.t-name { font-size: 14px; font-weight: 600; }
.t-role { font-size: 12px; color: rgba(27,27,27,.42); }
.testimonials-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.t-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(74,124,89,.28); background: transparent; cursor: pointer; font-size: 16px; color: var(--green); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.t-nav-btn:hover { background: var(--green); color: white; border-color: var(--green); }
.testimonials-wa { text-align: center; margin-top: 32px; }
.testimonials-wa .btn-whatsapp { max-width: 340px; margin: 0 auto; width: auto; padding: 14px 28px; }

/* ── Valoraciones (reseñas enviadas desde la web, moderadas en el panel) ── */
.review-block { text-align: center; margin-top: 26px; }
.review-open-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid rgba(74,124,89,.28); color: var(--green); font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: var(--r-pill); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.review-open-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.review-open-btn .ic-svg { width: 16px; height: 16px; }
.review-form { max-width: 460px; margin: 8px auto 0; background: var(--white); border: 1px solid rgba(74,124,89,.14); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; text-align: left; }
.review-form-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 14px; text-align: center; }
.review-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.review-star { font-size: 30px; line-height: 1; background: none; border: none; cursor: pointer; color: rgba(27,27,27,.18); transition: color .15s, transform .1s; padding: 2px; }
.review-star:hover { transform: scale(1.12); }
.review-star.on { color: #F5A623; }
.review-fields { display: flex; gap: 12px; margin-bottom: 12px; }
.review-input { width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--white); border: 1.5px solid rgba(74,124,89,.2); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.review-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,124,89,.12); }
.review-textarea { resize: vertical; min-height: 80px; margin-bottom: 14px; }
.review-submit { width: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; background: var(--green); border: none; border-radius: var(--r-pill); padding: 14px; cursor: pointer; transition: background .2s; }
.review-submit:hover { background: var(--green-dark); }
.review-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: rgba(27,27,27,.5); margin-top: 12px; }
.review-note .ic-svg { width: 13px; height: 13px; }
.review-thanks { display: flex; align-items: center; gap: 12px; padding: 8px; font-size: 15px; color: var(--green-dark); line-height: 1.5; }
.review-thanks svg { width: 30px; height: 30px; color: var(--green); flex-shrink: 0; }
@media (max-width: 480px) { .review-fields { flex-direction: column; } }

/* ── Líneas de Tratamiento (home, debajo de Centro Educativo) ──
   Reutiliza .diag-line-card (sprint4.css), ya probada en el resultado del
   diagnóstico — aquí solo se agrega el contenedor en grilla. ── */
.lineas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }

/* Resalta brevemente la sección al llegar desde un link de "compartir línea" */
#lineas-section.linea-deeplink-highlight .diag-line-card {
  box-shadow: 0 0 0 3px rgba(74,124,89,.35), var(--shadow);
  transition: box-shadow .3s var(--ease);
}

/* ── Edu Cards ── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
.edu-card { background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; cursor: pointer; }
.edu-card:hover { transform: translateY(-4px); }
.edu-thumb { height: 136px; background: linear-gradient(135deg,#e4ede5,#ccd9c7); display: flex; align-items: center; justify-content: center; font-size: 46px; }
.edu-body { padding: 20px; }
.edu-tag-pill { display: inline-block; background: rgba(74,124,89,.1); color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: .4px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; }
.edu-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.edu-meta { font-size: 12px; color: rgba(27,27,27,.42); }
.edu-readmore { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.edu-readmore .ic-svg { width: 12px; height: 12px; }
.edu-viewall { display: flex; justify-content: center; margin-top: 28px; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg,#dde8de,#c8d8c5);
  border-radius: var(--r-xl); margin: 0 20px 60px; padding: 60px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.cta-title { font-family: var(--font-display); font-size: clamp(28px,3vw,42px); color: var(--text); line-height: 1.15; margin-bottom: 14px; }
.cta-sub { font-size: 15px; color: rgba(27,27,27,.62); max-width: 380px; line-height: 1.6; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta-actions .btn-whatsapp { width: 100%; }
.cta-actions .btn-outline { text-align: center; }

/* ── Footer ── */
footer { background: var(--text); color: rgba(255,255,255,.65); padding: 64px var(--gutter) 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-display); font-size: 22px; color: white; margin-bottom: 12px; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: background .2s; }
.social-btn:hover { background: var(--green); }
.footer-col-title { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.58); cursor: pointer; transition: color .2s; }
.footer-links a:hover { color: var(--green3); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }

/* ── Mobile responsive home ── */
@media (max-width: 768px) {
  .hero { margin: 0 0 32px; border-radius: 0 0 28px 28px; padding: 28px 20px 32px; flex-direction: column; align-items: flex-start; min-height: auto; }
  .hero-visual { display: flex; flex: none; order: -1; width: 100%; height: 200px; margin-bottom: 22px; padding: 14px; box-shadow: var(--shadow); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; text-align: center; }
  .featured-product { grid-template-columns: 1fr; gap: 28px; margin: 0 0 40px; padding: 26px 20px; border-radius: 24px; }
  .diag-cta-section { margin: 0 0 40px; border-radius: 24px; flex-direction: column; padding: 40px 22px; gap: 28px; }
  .diag-cta-card { width: 100%; flex: unset; }
  .products-grid { display: flex !important; overflow-x: auto; gap: 14px; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .products-grid::-webkit-scrollbar { display: none; }
  .product-card { width: 260px; min-width: 260px; flex-shrink: 0; scroll-snap-align: start; }
  .edu-grid { display: flex !important; overflow-x: auto; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .edu-grid::-webkit-scrollbar { display: none; }
  .edu-card { flex: 0 0 87%; min-width: 0; scroll-snap-align: start; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-track { gap: 14px; }
  .testimonial-card { width: min(300px, 84vw); padding: 24px 22px; }
  .featured-ctas .btn-whatsapp { padding-left: 18px; padding-right: 18px; }
  .cta-banner { margin: 0 0 40px; border-radius: 22px; flex-direction: column; padding: 36px 20px; text-align: center; }
  .cta-sub { max-width: 100%; }
  .cta-actions { width: 100%; }
  footer { padding: 48px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ═══ Mejoras P0/P1 ═══════════════════════════ */

/* Subtítulo de sección */
.section-sub { font-size: 15px; color: rgba(27,27,27,.55); max-width: 540px; margin: 14px auto 0; line-height: 1.6; }

/* Testimonios: handle + verificada */
.t-user { display: flex; align-items: center; gap: 12px; }
.t-user-info { flex: 1; min-width: 0; }
.t-handle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(27,27,27,.5); }
.t-handle .ic-svg { width: 13px; height: 13px; color: var(--green2); }
.t-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--green); background: rgba(74,124,89,.1); padding: 4px 9px; border-radius: 20px; flex-shrink: 0; }
.t-verified .ic-svg { width: 12px; height: 12px; }

/* Estado vacío de categoría */
.products-empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.products-empty .ic-svg { width: 40px; height: 40px; color: var(--green3); }
.products-empty-title { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.products-empty-text { font-size: 14px; color: rgba(27,27,27,.55); max-width: 360px; line-height: 1.55; margin-bottom: 6px; }

/* Sección Antes / Después */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-case { display: flex; flex-direction: column; gap: 12px; }
.ba-slider { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #eef2ec; user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; }
.ba-img image-slot { display: block; width: 100%; height: 100%; }
.ba-after { will-change: clip-path; }
.ba-tag { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #fff; }
.ba-tag-before { left: 12px; background: rgba(27,27,27,.62); }
.ba-tag-after { right: 12px; background: var(--green); }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); cursor: ew-resize; z-index: 4; box-shadow: 0 0 0 1px rgba(27,27,27,.08); }
.ba-handle-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: -1px; box-shadow: 0 3px 12px rgba(27,27,27,.22); }
.ba-slider.dragging .ba-handle-grip { transform: translate(-50%,-50%) scale(1.08); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-handle-grip { outline: 2px solid var(--green); outline-offset: 3px; }
.ba-caption { font-size: 13px; color: rgba(27,27,27,.6); line-height: 1.45; }
.ba-caption strong { color: var(--text); font-weight: 600; }
.ba-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: 13px; color: rgba(27,27,27,.5); }
.ba-note .ic-svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 768px) {
  .ba-grid { display: flex; overflow-x: auto; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ba-grid::-webkit-scrollbar { display: none; }
  .ba-case { flex: 0 0 87%; width: auto; scroll-snap-align: start; }

  /* Microanimación de descubrimiento (una sola vez al entrar en viewport) */
  @keyframes sc-peek-hint {
    0%, 100% { transform: translateX(0); }
    45%      { transform: translateX(-14px); }
  }
  .sc-peek-hint { animation: sc-peek-hint .85s cubic-bezier(.4,0,.2,1) both; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .sc-peek-hint { animation: none; }
}

/* ═══ Banda tablet intermedia 769–1080px (P0-1) ═══ */
@media (min-width: 769px) and (max-width: 1080px) {
  .hero { gap: 32px; padding-top: 48px; }
  .hero-visual { flex: 0 0 clamp(260px, 36vw, 400px); height: 360px; padding: 20px; }
  .hero-title { font-size: clamp(30px, 3.8vw, 44px); }
  .featured-product { gap: 32px; padding: 36px 32px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag-cta-section { gap: 36px; }
  .diag-cta-card { flex: 0 0 270px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
}

/* ───────── sprint3.css ───────── */
/* ═══════════════════════════════════════════
   SANARE CAPILAR — Sprint 3 · Refinamiento Premium
   Solo eleva la percepción premium.
   No rediseña, no cambia branding, no altera arquitectura.
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   P1-1 · PRODUCT SHEET — Experiencia desktop
   Ancho máximo controlado · centrado · legible.
   El comportamiento móvil (<769px) queda intacto.
══════════════════════════════════════════ */
@media (min-width: 769px) {
  .product-sheet {
    left: 0;
    right: 0;
    width: auto;
    max-width: 820px;
    margin: 0 auto;
    max-height: 90vh;
    border-radius: 28px;
    bottom: 28px;
    box-shadow: 0 32px 90px rgba(27,27,27,.30);
    /* El transform (translateY) original queda intacto: la animación
       de entrada/salida y el arrastre móvil siguen funcionando igual. */
  }
  /* Cerrado en desktop: el sheet vive a 28px del borde inferior (bottom:28px),
     así que translateY(100%) lo dejaba 28px corto y su parte superior (el toprow
     "DETALLE DEL PRODUCTO") asomaba en el borde inferior de la pantalla.
     Empujamos esos 28px + margen para que salga completo de cuadro. */
  .product-sheet:not(.open) { transform: translateY(calc(100% + 48px)); }
  /* El "drag handle" es una afordancia táctil: en desktop se oculta */
  .product-sheet .sheet-handle { display: none; }

  .product-sheet .sheet-toprow {
    top: 0;
    padding: 20px 32px 4px;
    border-radius: 28px 28px 0 0;
  }
  /* Respiración interna mayor para mejor legibilidad */
  .product-sheet .sheet-img-wrap {
    margin: 14px 32px 4px;
    height: 44vh;
    max-height: 400px;
    min-height: 320px;
  }
  .product-sheet .sheet-body { padding: 4px 36px 8px; }
  .product-sheet .sheet-ctas {
    padding: 16px 32px 22px;
    border-radius: 0 0 28px 28px;
  }
  /* La rejilla de resultados respira mejor en panel ancho */
  .product-sheet .sheet-results-grid { grid-template-columns: repeat(4, 1fr); }
  .product-sheet .sheet-benefits { display: grid; grid-template-columns: 1fr 1fr; }
}

/* En pantallas amplias acercamos imagen y datos clave para look "store" */
@media (min-width: 980px) {
  .product-sheet .sheet-results-grid { gap: 12px; }
}

/* ══════════════════════════════════════════
   P1-2 · HERO — Más suave, premium y estable
   Altura reservada para evitar saltos al rotar.
══════════════════════════════════════════ */
.hero-title,
.hero-sub { transition: opacity .45s var(--ease); will-change: opacity; }

/* Badge en una sola línea (evita el quiebre "RESULTADOS / REALES") */
.hero-badge { white-space: nowrap; }

@media (min-width: 769px) {
  /* Reserva de espacio: el titular y el subtítulo no empujan el layout
     cuando cambia su contenido entre slides. */
  .hero-title { min-height: 2.18em; }
  .hero-sub   { min-height: 3.3em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-img { animation: none; }
  .hero-title, .hero-sub { transition: none; }
}

/* ══════════════════════════════════════════
   P1-11 · TARGETS TÁCTILES ≥ 44px
   Se amplía el área activa SIN cambiar el aspecto visual,
   mediante una capa transparente centrada (::after).
══════════════════════════════════════════ */
/* .product-heart ya es position:absolute (ver home.css); NO se sobreescribe
   aquí para que siga flotando en la esquina superior derecha de la imagen.
   El ::after de abajo funciona igual sobre un elemento absolute. */
.sheet-close,
.social-btn,
.t-nav-btn,
.diag-back,
.article-back,
.nav-icon-btn { position: relative; }

.product-heart::after,
.sheet-close::after,
.social-btn::after,
.t-nav-btn::after,
.diag-back::after,
.article-back::after,
.nav-icon-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: auto;
}

/* Comparador antes/después: agranda la zona de arrastre del grip */
.ba-handle-grip { position: relative; }
.ba-handle-grip::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Dots del hero: zona táctil cómoda manteniendo el punto pequeño */
.hero-dots .dot { position: relative; }
.hero-dots .dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 36px;
  transform: translate(-50%, -50%);
}

/* ══════════════════════════════════════════
   P2-2 · BOTONES WHATSAPP — Unificación
   Misma altura, padding, tipografía y comportamiento.
   Se conservan adaptaciones (full-width vs. auto, flex).
══════════════════════════════════════════ */
.btn-whatsapp,
.btn-sheet-wa,
.diag-cta-wa,
.article-cta-wa {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  border-radius: var(--r-pill);
  line-height: 1.1;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover,
.btn-sheet-wa:hover,
.diag-cta-wa:hover,
.article-cta-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }

/* Barra fija de la ficha: el CTA mantiene la altura unificada */
.sheet-bar-main .btn-sheet-wa { padding: 14px 22px; min-height: 52px; }

/* ══════════════════════════════════════════
   P2-3 · SIMETRÍA VISUAL
   Ritmo de gaps consistente y tarjetas a igual altura.
══════════════════════════════════════════ */
/* Rejillas de tarjetas: mismo gap base (24px) para un ritmo uniforme */
.why-grid { gap: 24px; }

/* Why cards: igual altura para una fila perfectamente simétrica */
.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.why-grid { align-items: stretch; }

/* Featured: alinea el bloque de imagen y el de info a igual ritmo vertical */
.featured-img-wrap { align-self: stretch; }

/* ───────── sprint4.css ───────── */
/* ═══════════════════════════════════════════════════════════
   SANARE CAPILAR — Sprint 4 (Conversión)
   ───────────────────────────────────────────────────────────
   Estilos ADITIVOS. No modifican nada existente. Reutilizan los
   tokens de variables.css. Cubren:
     · Línea de tratamiento recomendada en el diagnóstico
     · Paso de captura de lead (nombre + WhatsApp)
     · Microcopy de confianza junto a los CTA (envío/pago/garantía)
   ═══════════════════════════════════════════════════════════ */

/* ── Microcopy de confianza junto a CTAs ───────────────────── */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px 16px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px; color: rgba(27,27,27,.6);
  text-align: center;
}
.trust-strip .trust-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-strip .trust-item svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
.trust-strip.on-dark { color: rgba(255,255,255,.78); }
.trust-strip.on-dark .trust-item svg { color: var(--green3); }

/* ── Captura de lead en el diagnóstico ─────────────────────── */
.diag-lead-intro {
  font-family: var(--font-body); font-size: 15px;
  color: rgba(27,27,27,.62); line-height: 1.6; margin-bottom: 22px;
}
.diag-lead-fields { display: flex; flex-direction: column; gap: 14px; }
.diag-field-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 7px;
}
.diag-input {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(74,124,89,.22);
  border-radius: var(--r-sm); padding: 15px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.diag-input::placeholder { color: rgba(27,27,27,.34); }
.diag-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,124,89,.12); }
.diag-input-err { border-color: #d35b5b; box-shadow: 0 0 0 3px rgba(211,91,91,.12); }
.diag-lead-privacy {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; font-size: 12.5px; color: rgba(27,27,27,.5); line-height: 1.5;
}
.diag-lead-privacy svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* ── Línea de tratamiento recomendada (resultado del diagnóstico) ── */
.diag-line-section-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin: 26px 0 14px;
}
.diag-line-section-title .brand-mark { width: 22px; height: 22px; }
.diag-line-card {
  background: var(--white);
  border: 1.5px solid rgba(74,124,89,.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diag-line-media {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 230px;
  margin: 14px 14px 0;
  border-radius: var(--r-xl); /* misma curva que .hero-visual */
  box-shadow: inset 0 0 0 1px rgba(74,124,89,.08);
}
.diag-line-media img { max-height: 200px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 32px rgba(74,124,89,.26)); }
.diag-line-body { padding: 20px 22px 24px; }
.diag-line-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: var(--green-dark); background: rgba(74,124,89,.12);
  padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.diag-line-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.12; margin-bottom: 6px; }
.diag-line-problem { font-size: 13.5px; color: var(--green); font-weight: 500; margin-bottom: 14px; }
.diag-line-benefits { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.diag-line-benefits li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: rgba(27,27,27,.78); line-height: 1.45; }
.diag-line-benefits li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.diag-line-incluye { font-size: 13px; color: rgba(27,27,27,.6); line-height: 1.5; padding-top: 14px; border-top: 1px solid rgba(74,124,89,.12); }
.diag-line-incluye strong { color: var(--text); }
.diag-line-pricing { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.diag-line-was { font-size: 17px; color: rgba(27,27,27,.4); text-decoration: line-through; }
.diag-line-now { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--green); }
.diag-line-save { font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: rgba(74,124,89,.12); padding: 4px 10px; border-radius: var(--r-pill); }

.diag-line-cta-wa {
  width: 100%; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--white); background: var(--wa);
  border: none; border-radius: var(--r-pill); padding: 16px;
  cursor: pointer; transition: background .2s var(--ease), transform .1s var(--ease);
}
.diag-line-cta-wa:hover { background: var(--wa-dark); }
.diag-line-cta-wa:active { transform: scale(.98); }
.diag-line-cta-wa svg { width: 20px; height: 20px; }

.diag-line-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.diag-line-actions .diag-line-cta-wa { width: auto; flex: 1; margin-top: 0; }
.diag-line-share-btn {
  flex-shrink: 0; width: 52px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(74,124,89,.3); background: transparent; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s var(--ease);
}
.diag-line-share-btn:hover { background: var(--green); color: white; }
.diag-line-share-btn:active { transform: scale(.95); }
.diag-line-share-btn svg { width: 20px; height: 20px; }

.diag-reco-alt-title { font-size: 13px; font-weight: 600; color: rgba(27,27,27,.5); text-transform: uppercase; letter-spacing: .4px; margin: 24px 0 12px; }

@media (max-width: 768px) {
  .diag-line-name { font-size: 23px; }
  .diag-line-now { font-size: 28px; }
}
