/*
HACK 2026-05-22: css compartido para las quias de compra.
*/ 
:root {
  /* Paleta verde */
  --lec-bordo: #3c9142;         /* COLOR PRINCIPAL — verde */
  --lec-bordo-dark: #2d7233;    /* hover/active oscuro */
  --lec-bordo-mid: #4aa150;     /* verde medio */
  --lec-bordo-light: #e8f5e9;   /* fondo muy claro para selección */
  --lec-bordo-pale: #c8e6c9;    /* borde pálido */
  --lec-accent: #e74c3c;        /* Acento secundario (Precios) */
  --bg: #ffffff;
  --bg-secondary: #f0efec;      /* gris cálido de fondo */
  --text-primary: #333333;
  --text-secondary: #777777;
  --border: #e0e0dc;
  --radius-md: 8px;
  --radius-lg: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }
body { font-family: 'Awesome', 'Helvetica Neue', Helvetica, Arial; background: transparent; color: var(--text-primary); margin: 0; padding: 0; }
.calc-wrap { width: 100%; margin: 0; border-radius: var(--radius-lg); border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.quiz-panel { padding: 2rem 1.75rem 2.5rem; min-width: 0; background: var(--bg-secondary); }
.img-panel { position: relative; overflow: hidden; min-height: 0; }
.img-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease; }
@media (max-width: 640px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .quiz-panel { order: 2; }
  .img-panel { order: 1; height: 240px; }
  .calc-wrap.has-result .img-panel { display: none; }
}
.progress-bar-outer { height: 4px; background: #ececea; border-radius: 2px; margin-bottom: 1.5rem; }
.progress-bar-inner { height: 4px; background: var(--lec-bordo); border-radius: 2px; transition: width 0.4s ease; }
.step-counter { font-size: 13px; color: var(--text-secondary); margin-bottom: 0.4rem; }
.question { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.3rem; line-height: 1.4; }
.question-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 1.5rem; }
.options-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options-grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options-grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) {
  .options-grid-2,.options-grid-3,.options-grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
.option-btn {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 14px; cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  position: relative; width: 100%; font-family: inherit;
}
.option-btn:hover { border-color: var(--lec-bordo); background: var(--lec-bordo-light); }
.option-btn.selected { border: 2px solid var(--lec-bordo); background: var(--lec-bordo-light); padding: 15px 13px; }
.check-circle {
  position: absolute; top: 14px; right: 14px; width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.option-btn.selected .check-circle { background: var(--lec-bordo); border-color: var(--lec-bordo); }
.check-circle svg { display: none; }
.option-btn.selected .check-circle svg { display: block; }
.option-label { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.3; padding-right: 26px; }
.option-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-back { background: none; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px 20px; cursor: pointer; font-size: 14px; color: var(--text-secondary); font-family: inherit; }
.btn-back:hover { background: var(--bg-secondary); }
.btn-next { background: var(--lec-bordo); border: none; border-radius: var(--radius-md); padding: 10px 24px; cursor: pointer; font-size: 14px; font-weight: 500; color: #fff; opacity: 0.35; pointer-events: none; transition: opacity 0.2s, background 0.2s; font-family: inherit; }
.btn-next.active { opacity: 1; pointer-events: all; }
.btn-next.active:hover { background: var(--lec-bordo-dark); }
.result-card { background: var(--bg); border: 2px solid var(--lec-bordo); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.result-badge { display: inline-block; background: var(--lec-bordo-light); color: var(--lec-bordo-dark); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: var(--radius-md); margin-bottom: 0.75rem; }
.result-title { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }
.result-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.result-why { font-size: 13px; color: var(--text-secondary); background: var(--bg-secondary); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 1rem; }
.result-why strong { color: var(--text-primary); font-weight: 500; }
.result-features { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-pill { background: var(--lec-bordo-light); color: var(--lec-bordo-dark); font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.products-label { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.75rem; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.25rem; }
@media (max-width: 400px) { .products-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); } }
.product-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--lec-bordo); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f9f9f9; }
.product-card-body { padding: 10px 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.product-name { font-size: 12px; font-weight: 500; color: var(--text-primary); line-height: 1.35; }
.product-price { font-size: 14px; font-weight: 600; color: var(--lec-accent); }
.product-cta { margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--lec-bordo); font-weight: 500; }
.btn-restart { display: block; background: none; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 20px; cursor: pointer; font-size: 14px; color: var(--text-secondary); width: 100%; text-align: center; font-family: inherit; margin-bottom: 1.25rem; }
.btn-restart:hover { background: var(--bg-secondary); }
.btn-cat { display: block; background: var(--lec-bordo); color: #fff; border-radius: var(--radius-md); padding: 11px 20px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 1.25rem; transition: background 0.2s; }
.btn-cat:hover { background: var(--lec-bordo-dark); color: #fff; text-decoration: none; }
