/* public/styles/cotizacion.css — formulario guiado de cotización (lo común está en base.css). */

.quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--green-soft);
}

.quote-chip i {
  color: var(--gold);
}

.quote-step {
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.quote-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.quote-step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  background: #198754;
}

.form-optional {
  font-weight: 500;
  color: var(--muted);
}

/* Opciones seleccionables (radios con apariencia de tarjeta o píldora) */
.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid--cards {
  grid-template-columns: repeat(4, 1fr);
}

.choice-grid--pills {
  grid-template-columns: repeat(4, 1fr);
}

.choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-2);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.choice-grid--cards .choice-box {
  flex-direction: column;
  padding: 1rem 0.5rem;
}

.choice-grid--cards .choice-box i {
  font-size: 1.3rem;
}

.choice-box i {
  color: var(--green);
}

.choice:hover .choice-box {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
}

.choice input:checked + .choice-box {
  color: var(--ink);
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice input:focus-visible + .choice-box {
  outline: 3px solid color-mix(in srgb, var(--green) 60%, transparent);
  outline-offset: 2px;
}

/* Columna lateral: resumen en vivo + contacto directo */
.quote-aside {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: 1rem;
}

.quote-summary {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid #198754;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quote-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.quote-summary-title i {
  color: var(--green);
}

.quote-summary dl {
  margin: 0;
}

.quote-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.quote-summary-row dt {
  font-weight: 600;
  color: var(--muted);
}

.quote-summary-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: var(--muted);
}

.quote-summary-row.is-filled dd {
  color: var(--ink);
}

.quote-summary-row.is-filled dt::before {
  content: '\f00c';
  margin-right: 6px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--green);
}

.quote-summary-note {
  display: flex;
  gap: 8px;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .quote-aside { position: static; }
}

@media (max-width: 767.98px) {
  .choice-grid--cards,
  .choice-grid--pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Confirmación tras enviar la cotización (/contactanos/gracias) ===== */
.sent-steps {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.sent-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.sent-steps li:last-child {
  border-bottom: none;
}

.sent-step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: var(--green);
}

.sent-whatsapp {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

/* Verde oscuro de WhatsApp: el #25d366 de la marca no alcanza contraste AA con texto blanco */
.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0f7a41;
  --bs-btn-border-color: #0f7a41;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0c6636;
  --bs-btn-hover-border-color: #0c6636;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0b5e34;
  --bs-btn-active-border-color: #0b5e34;
  font-weight: 700;
}

.sent-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.sent-home:hover {
  text-decoration: underline;
}
