/* Estimador de techos (pagina-contratista). De Rufero Pro / ConstruIA.
   Usa los colores y fuentes del sitio: --brand, --brand-oscuro, --brand-suave, --fuente-titulos, --fuente-texto. */
.est-calc {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  font-family: var(--fuente-texto);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.est-calc .step { display: none; }
.est-calc .step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.est-calc .step-meta { font-size: 13px; color: #888; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.est-calc .back-btn { background: #f3f3f3; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #444; }
.est-calc .back-btn:hover { background: #eaeaea; }
.est-calc h2 { font-family: var(--fuente-titulos); font-weight: 700; font-size: 26px; color: #181818; margin: 0 0 24px 0; line-height: 1.2; }
.est-calc h2 em { color: var(--brand); font-style: italic; text-decoration: underline; text-underline-offset: 4px; }
.est-calc .welcome-intro {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.est-calc .welcome-intro .welcome-title {
  font-size: 30px;
  margin: 0 0 12px 0;
}
.est-calc .welcome-intro .welcome-desc {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}
.est-calc .btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #ffffff;
  border: 1px solid var(--brand);
  padding: 14px 32px; border-radius: 999px;
  font-family: var(--fuente-texto); font-size: 16px; font-weight: 500;
  cursor: pointer; transition: all .2s ease;
}
.est-calc .btn-primary:hover { background: transparent; color: var(--brand); }
.est-calc .btn-primary:disabled { background: #ccc; border-color: #ccc; cursor: not-allowed; color: #fff; }
.est-calc .options { display: grid; gap: 14px; }
.est-calc .options.cols-1 { grid-template-columns: 1fr; }
.est-calc .options.cols-2 { grid-template-columns: 1fr 1fr; }
.est-calc .options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.est-calc .options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.est-calc .opt {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  background: #fff;
  text-align: left;
  word-wrap: break-word;
}
.est-calc .opt:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.est-calc .opt.selected {
  border-color: var(--brand);
  background: var(--brand-suave);
}
.est-calc .opt-title { font-weight: 600; color: #181818; margin: 0 0 4px 0; font-size: 15px; }
.est-calc .opt-sub { font-size: 13px; color: #777; margin: 0; }
.est-calc .opt.slope-opt { text-align: center; padding: 22px 14px; }
.est-calc .slope-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: block; object-fit: contain; }
.est-calc .opt.image {
  padding: 12px;
  background: #fff;
  color: #181818;
  text-align: left;
}
.est-calc .opt.image .img-wrap {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eaeaea;
}
.est-calc .opt.image .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.est-calc .opt.image .opt-label {
  margin-top: 10px;
  padding: 2px 4px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  color: #181818;
}
.est-calc .arrow-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #181818;
  -webkit-mask: url('/estimador/img/arrow.svg') no-repeat center / contain;
  mask: url('/estimador/img/arrow.svg') no-repeat center / contain;
  flex-shrink: 0;
}
.est-calc input[type=text], .est-calc input[type=email], .est-calc input[type=tel], .est-calc textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px;
  font-family: var(--fuente-texto); font-size: 15px; box-sizing: border-box; background: #fff;
}
.est-calc input:focus, .est-calc textarea:focus { outline: none; border-color: var(--brand); }
.est-calc textarea { resize: vertical; min-height: 110px; }
.est-calc label { display: block; font-size: 14px; font-weight: 500; color: #444; margin: 12px 0 6px; }
.est-calc #map { width: 100%; height: 360px; border-radius: 10px; margin-top: 12px; background: #eaeaea; }
.est-calc .actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.est-calc .consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; color: #555; line-height: 1.5; }
.est-calc .consent-row input { margin-top: 3px; }
.est-calc .consent-row a { color: var(--brand); text-decoration: underline; }
.est-calc.results-mode { max-width: 880px; }
.est-calc .results-header { text-align: center; margin-bottom: 30px; }
.est-calc .results-header img { max-width: 70px; margin-bottom: 12px; }
.est-calc .results-header h2 { font-size: 24px; margin-bottom: 4px; }
.est-calc .results-header .addr { color: #666; font-size: 14px; }
.est-calc .estimate-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid #eee; }
.est-calc .estimate-card:first-of-type { border-top: none; }
.est-calc .estimate-card .img-box { width: 200px; height: 150px; border-radius: 10px; background: #ddd; background-size: cover; background-position: center; }
.est-calc .estimate-card h3 { margin: 0 0 6px 0; font-size: 17px; color: #181818; font-family: var(--fuente-texto); font-weight: 600; }
.est-calc .estimate-card .price { font-size: 22px; color: #181818; font-weight: 700; margin: 0 0 2px 0; font-family: var(--fuente-texto); }
.est-calc .estimate-card .monthly { font-size: 13px; color: #888; margin: 0 0 10px 0; }
.est-calc .estimate-card .desc { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 12px 0; }
.est-calc .estimate-card .cta-small {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 9px 16px; border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: background .15s ease;
}
.est-calc .estimate-card .cta-small:hover { background: var(--brand-oscuro); }
.est-calc .stats-box { background: #181818; color: #fff; border-radius: 14px; padding: 30px; margin-top: 30px; }
.est-calc .stats-box h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.est-calc .stats-box .stats-sub { color: #aaa; font-size: 13px; margin-bottom: 18px; }
.est-calc .stats-grid { display: flex; gap: 40px; margin-bottom: 18px; }
.est-calc .stats-grid .stat-num { font-family: var(--fuente-texto); font-size: 38px; font-weight: 700; color: #fff; line-height: 1; }
.est-calc .stats-grid .stat-label { font-size: 13px; color: #aaa; margin-top: 4px; }
.est-calc .stats-box #stats-map { width: 100%; height: 220px; border-radius: 8px; }
.est-calc .stats-box .disclaimer { font-size: 11px; color: #999; margin-top: 14px; line-height: 1.5; }
.est-calc .loading { text-align: center; padding: 40px 20px; }
.est-calc .loading .spinner { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .est-calc { padding: 24px; border-radius: 12px; }
  .est-calc .options.cols-4 { grid-template-columns: 1fr 1fr; }
  .est-calc .estimate-card { grid-template-columns: 1fr; }
  .est-calc .estimate-card .img-box { width: 100%; height: 180px; }
  .est-calc .stats-grid { flex-direction: column; gap: 18px; }
  .est-calc .welcome-intro .welcome-title { font-size: 24px; }
}

/* ---- agregado para pagina-contratista ---- */
.est-calc .solo-manual { display: none; }
.est-calc[data-modo="manual"] .solo-manual { display: block; }
.est-calc[data-modo="manual"] .solo-mapa { display: none !important; }
.est-calc select { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--fuente-texto); font-size: 15px; background: #fff; color: #181818; }
.est-calc select:focus { outline: none; border-color: var(--brand); }
.est-calc .est-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-calc .opcional { font-weight: 400; color: #888; font-size: 13px; }
.est-calc .consent-row label { margin: 0; font-weight: 400; }
.est-calc .consent-row label.fino { font-size: 12px; color: #777; }
.est-calc .est-error { color: #b42318; font-size: 14px; min-height: 1px; margin: 12px 0 0; }
.est-calc gmp-place-autocomplete { width: 100%; color-scheme: light; }
.est-calc #estAddressWrap { margin-bottom: 4px; }
.est-calc .stats-grid { flex-wrap: wrap; }
@media (max-width: 700px) { .est-calc .est-two { grid-template-columns: 1fr; } }
.est-calc .est-link { background: none; border: 0; padding: 8px 0 0; color: var(--brand); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
