/* Estimador de ingresos — complementa site.css */

.est-hero { padding: 56px 0 96px; }
.est-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.est-hero h1 { margin: 18px 0 22px; }
.est-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: var(--ink-2); }
.est-points li { display: flex; gap: 12px; align-items: flex-start; }
.est-points svg { color: var(--olive); flex: none; margin-top: 4px; }
.est-date { margin-top: 26px; font-size: .86rem; color: var(--muted); }

.est-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg); }
.est-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.est-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.est-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.address-wrap { position: relative; }
.address-spinner {
  position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  opacity: 0; animation: est-spin .8s linear infinite; pointer-events: none;
}
.address-spinner.active { opacity: 1; }
@keyframes est-spin { to { transform: rotate(360deg); } }
.autocomplete-list {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.autocomplete-list.open { display: block; }
.autocomplete-item { padding: 12px 14px; cursor: pointer; font-size: .95rem; border-bottom: 1px solid var(--sand); }
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item small { display: block; color: var(--muted); font-size: .82rem; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--sand); }

.bedroom-stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); height: 50px; overflow: hidden; }
.stepper-btn { height: 100%; border: 0; background: transparent; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.stepper-btn:hover:not(:disabled) { background: var(--sand); }
.stepper-btn:disabled { color: #CFC6B8; cursor: not-allowed; }
.stepper-value { text-align: center; font-weight: 600; font-size: 1.05rem; }
.stepper-caption { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.estimate-btn .btn-loading { display: none; }
.estimate-btn.loading { pointer-events: none; opacity: .85; }
.estimate-btn.loading .btn-text { display: none; }
.estimate-btn.loading .btn-loading { display: inline; }

/* Resultados */
.results-section { display: none; padding: 96px 0; background: var(--sand); }
.results-section.active { display: block; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 30px; margin-bottom: 40px; }
.results-head h2 { margin: 14px 0 8px; }
.property-summary { color: var(--ink-2); }
.airbnb-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); }
.airbnb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.airbnb-badge.local { background: var(--surface); color: var(--ink-2); }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease;
}
.result-card.visible { opacity: 1; transform: none; }
.result-card:nth-child(2) { transition-delay: .08s; }
.result-card:nth-child(3) { transition-delay: .16s; }
.result-card.full { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.tier-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-card.full .tier-label { color: #E8A383; }
.result-card h3 { margin: 8px 0 20px; font-size: 1.3rem; }
.result-card.full h3 { color: var(--on-deep); }
.income-label { font-size: .85rem; color: var(--muted); }
.result-card.full .income-label, .result-card.full .nightly { color: var(--on-deep-muted); }
.income { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 4px 0 4px; }
.income small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.result-card.full .income small { color: var(--on-deep-muted); }
.nightly { font-size: .88rem; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-card.full .kpis { border-color: rgba(255,255,255,.12); }
.kpis strong { display: block; font-size: 1.15rem; }
.kpis span { font-size: .8rem; color: var(--muted); }
.result-card.full .kpis span { color: var(--on-deep-muted); }
.result-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); flex: 1; align-content: start; }
.result-card.full ul { color: var(--on-deep-muted); }
.result-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.result-card li svg { margin-top: 4px; }
.result-card.solo li svg { color: #B3AA9E; }
.result-card.fotos li svg { color: var(--olive); }
.result-card.full li svg { color: #E8A383; }

.diff-banner { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 32px 36px; }
.diff-banner p { color: rgba(255,255,255,.88); }
.diff-amount { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: #fff; display: block; margin: 2px 0; }
.diff-banner .btn-light { color: var(--accent-hover); }

/* Metodología */
.method-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.method-steps .num { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; }
.method-steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.method-steps p { color: var(--ink-2); font-size: .96rem; }

@media (max-width: 900px) {
  .est-hero { padding: 32px 0 72px; }
  .est-grid, .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card.full { order: -1; }
}
@media (max-width: 620px) {
  .est-card { padding: 26px 20px; }
  .est-row { grid-template-columns: 1fr; gap: 0; }
  .diff-banner { padding: 26px 22px; }
  .diff-banner .btn { width: 100%; }
}
