/* Calculadora */
.calc-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.calc-controls { display: flex; flex-direction: column; gap: 32px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-field-h { display: flex; justify-content: space-between; align-items: baseline; }
.calc-field-h label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.calc-val {
  font-family: var(--tight); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em; color: var(--brand);
}
.calc-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; background: var(--line-2);
  outline: none;
}
.calc-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--brand); cursor: pointer;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--brand);
}
.calc-controls input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--brand); cursor: pointer;
  border: 3px solid var(--paper);
}
.calc-range-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--muted);
  margin-top: 4px;
}
.calc-disclaim {
  margin-top: 16px; padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px; line-height: 1.6; color: var(--muted);
  max-width: 50ch;
}
.calc-results {
  background: var(--paper); border: 1px solid var(--line);
  padding: 36px;
  display: flex; flex-direction: column; gap: 24px;
}
.calc-hero { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.calc-hero-lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.calc-hero-num {
  font-family: var(--tight); font-weight: 200;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.04em; line-height: 1;
  color: var(--brand); margin-top: 14px;
}
.calc-hero-num span { font-size: 0.32em; opacity: 0.6; font-weight: 400; }
.calc-hero-sub {
  margin-top: 14px; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}
.calc-rows { display: flex; flex-direction: column; }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.calc-row .lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.calc-row .val { font-family: var(--tight); font-size: 19px; letter-spacing: -0.01em; }

.calc-saving { padding: 24px; background: rgba(91,20,24,0.05); border: 1px solid rgba(91,20,24,0.2); }
.calc-saving-h { margin-bottom: 14px; }
.calc-saving-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px dashed var(--line-2);
}
.calc-saving-grid > div { display: flex; flex-direction: column; gap: 4px; }
.calc-saving-grid .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.calc-saving-grid .val { font-family: var(--tight); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.calc-saving-num {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px;
}
.calc-saving-num .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.calc-saving-num .val {
  font-family: var(--tight); font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em; color: var(--brand);
}

@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }

/* H1 calculadora (responsive controlado) */
.calc-h1 { font-size: clamp(40px, 6vw, 88px); margin-top: 18px; line-height: 1.0; }
.calc-h1 em { font-style: normal; color: var(--brand); font-weight: 500; }

/* Tabs */
.calc-tabs-section { padding: 24px 0 0; background: var(--paper); border-top: 1px solid var(--line); }
.calc-tabs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.calc-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 20px; background: transparent; border: 0; border-right: 1px solid var(--line);
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
  color: var(--ink-2);
}
.calc-tab:last-child { border-right: none; }
.calc-tab:hover { background: var(--paper); color: var(--ink); }
.calc-tab.active { background: var(--paper); color: var(--brand); position: relative; }
.calc-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand);
}
.calc-tab-n {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted);
}
.calc-tab.active .calc-tab-n { color: var(--brand); }
.calc-tab-t {
  font-family: var(--tight); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (max-width: 920px) {
  .calc-tabs { grid-template-columns: 1fr 1fr; }
  .calc-tab { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .calc-tab:nth-child(2n) { border-right: none; }
  .calc-tab:nth-last-child(-n+1):nth-child(odd) { border-bottom: none; }
  .calc-tab:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 520px) {
  .calc-tabs { grid-template-columns: 1fr; }
  .calc-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .calc-tab:last-child { border-bottom: none; }
}

/* Info block (escrituración) */
.calc-info-block {
  padding: 20px 22px; border-left: 2px solid var(--brand);
  background: rgba(140,30,34,0.05);
}

/* Versus (alquilar/comprar) */
.versus {
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0;
  border: 1px solid var(--line); margin-top: 4px;
}
.versus-col { padding: 22px 24px; }
.versus-col + .versus-col { border-left: 1px solid var(--line); }
.versus-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tight); font-weight: 300; font-size: 16px; letter-spacing: 0.2em;
  color: var(--muted); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.versus-h {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.versus-num {
  font-family: var(--tight); font-weight: 300; font-size: 32px; letter-spacing: -0.025em;
  line-height: 1; margin-bottom: 8px;
}
.versus-col.win .versus-num { color: var(--brand); font-weight: 400; }
.versus-d { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 14px; }
.versus-extra { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); }
.versus-extra strong { color: var(--ink); font-family: var(--tight); font-size: 14px; letter-spacing: -0.01em; }
.versus-col.win { background: rgba(140,30,34,0.04); }
.versus-col.win .versus-extra strong { color: var(--brand); }
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; }
  .versus-col + .versus-col { border-left: none; border-top: 1px solid var(--line); }
  .versus-vs { display: none; }
}

/* Segments (energía) */
.calc-segments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.calc-seg {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 14px 14px; background: transparent; border: 0; border-right: 1px solid var(--line);
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
  font-family: var(--tight); font-weight: 500; font-size: 13px; color: var(--ink-2); letter-spacing: -0.005em;
}
.calc-seg:last-child { border-right: none; }
.calc-seg:hover { background: var(--paper-2); }
.calc-seg.active { background: var(--brand); color: #f3e8da; }
.calc-seg-s {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.calc-seg.active .calc-seg-s { color: rgba(243,232,218,0.7); }

/* Energy bars */
.energy-bars { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.energy-bar-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.energy-bar-track { height: 8px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.energy-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; transition: width .4s ease; }
.energy-bar-fill.bad { background: linear-gradient(90deg, #f59e0b, #b91c1c); }
.energy-bar-fill.good { background: var(--brand); }

/* Contacto */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-block .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; display: block;
}
.contact-block .val {
  font-family: var(--tight); font-weight: 400;
  font-size: 26px; letter-spacing: -0.02em;
}
.contact-block .val a { transition: color .2s; }
.contact-block .val a:hover { color: var(--brand); }
.contact-form {
  background: var(--paper); border: 1px solid var(--line);
  padding: 40px;
}
.contact-form h3 {
  font-family: var(--tight); font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Office card */
.office {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #0c0a09; color: #f3e8da;
  margin-top: 60px;
}
.office-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.office-map { aspect-ratio: 1; }
@media (max-width: 760px) { .office { grid-template-columns: 1fr; } }
