/* ─────────────────────────────────────────────────────────────
   Estilos propios de la página "quote" (Presupuesto).

   Declarada en build/pages.php → 'styles'. Se carga DESPUÉS de
   styles.css, así que lo de aquí gana. Los tokens (--brand, --surface…)
   vienen de allí.

   La calculadora reproduce el componente de la web actual: fondo
   oscuro, cifra grande en Big Shoulders naranja, campos sobre
   --surface con borde naranja translúcido.
   ───────────────────────────────────────────────────────────── */

/* ── Proceso ────────────────────────────────────────────────── */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 40px; }
.step { display: flex; flex-direction: column; }
.step-num {
  font-family: 'Big Shoulders', sans-serif; font-size: 34px; font-weight: 900;
  line-height: 1; color: var(--brand); opacity: .35; margin-bottom: 10px;
}
.step-title { font-size: 22px; }
.step-body { color: var(--muted); font-size: 15px; margin: 0; }

/* ── Formatos aceptados ─────────────────────────────────────── */
.formats { margin-top: 40px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); }
.formats-title {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--brand); margin: 0 0 16px;
}
.formats-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.formats-list li {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'Big Shoulders', sans-serif; font-size: 15px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text);
}
.formats-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ── Calculadora ────────────────────────────────────────────── */
.calc-box {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  margin-top: 40px; background: var(--ground-deep);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.calc-controls { padding: 32px; }
.calc-row { display: flex; flex-direction: column; gap: 9px; margin: 0 0 26px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-row label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
/* El espesor elegido se lee en grande, como en la web actual. */
.calc-row label output {
  font-family: 'Big Shoulders', sans-serif; font-size: 22px; font-weight: 900;
  letter-spacing: 0; color: var(--brand); vertical-align: -2px;
}
.calc-row select, .calc-row input[type="number"] {
  font: inherit; font-size: 14px; padding: 13px 15px; width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; transition: border-color .2s;
}
.calc-row select:focus, .calc-row input:focus { border-color: var(--brand); outline: none; }

.calc-row input[type="range"] {
  width: 100%; height: 3px; padding: 0; margin: 6px 0 2px;
  background: var(--line); border: none; border-radius: 2px;
  accent-color: var(--brand); cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  background: var(--brand); border-radius: 50%; cursor: pointer;
}
.calc-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--brand);
  border: none; border-radius: 50%; cursor: pointer;
}
.calc-minmax { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.calc-hint { font-size: 11px; color: var(--muted); }

.calc-out {
  padding: 32px; background: var(--surface-2);
  border-left: 1px solid var(--line-soft);
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.calc-out-label {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); margin: 0 0 6px;
}
.calc-price {
  font-family: 'Big Shoulders', sans-serif; font-size: clamp(42px, 6vw, 62px);
  font-weight: 900; line-height: 1; color: var(--brand); margin: 0;
}
.calc-unit { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
.calc-rate { font-size: 12px; color: var(--muted); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.calc-rate span { color: var(--text); font-weight: 600; }

/* El aviso de qué incluye el precio, marcado como nota. */
.calc-disclaimer {
  margin: 24px 0 0; padding: 14px 16px; max-width: 72ch;
  background: var(--tint); border-left: 2px solid var(--brand);
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.calc-cta { margin: 24px 0 0; }

@media (max-width: 760px) {
  .calc-box { grid-template-columns: 1fr; }
  .calc-out { border-left: none; border-top: 1px solid var(--line-soft); }
}

/* Sin datos todavía: el guion se atenúa para que no parezca un resultado
   ni una barra de carga. */
.calc-price.is-empty { color: var(--line); }

/* ── Preguntas frecuentes ───────────────────────────────────── */
.faq-list { max-width: 820px; margin-top: 36px; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'Big Shoulders', sans-serif; font-size: 26px; font-weight: 800; color: var(--brand);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.faq-answer { padding: 0 40px 20px 0; color: var(--muted); font-size: 15px; }
.faq-answer p:last-child { margin: 0; }
