:root {
  color-scheme: light;
  --ink: #182620;
  --muted: #526258;
  --paper: #f4f7f2;
  --lime: #dafa79;
  --green: #173e2e;
  --line: #dae3d9;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary, .upload-link { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #317448; outline-offset: 3px; }
button:disabled { opacity: .46; cursor: default; }
.shell { max-width: 1290px; margin-inline: auto; padding-inline: clamp(17px, 4vw, 60px); }
.topbar { background: #11271e; color: #fff; }
.topbar-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.06em; text-decoration: none; }
.brand-accent { color: var(--lime); }
.sun { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--lime); color: #142b21; font-size: 1.4rem; }
.top-contact { font-size: .875rem; color: var(--lime); text-decoration: none; text-align: right; }
.top-contact:hover { text-decoration: underline; }
.intro { padding: clamp(32px, 5vw, 62px) 0 31px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #315442; font-size: .875rem; font-weight: 750; letter-spacing: .11em; }
.eyebrow span, .map-tag span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #83ad3a; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.45rem, 5.8vw, 5.2rem); line-height: .99; letter-spacing: -.07em; margin-bottom: 16px; }
.intro > p:last-child { color: var(--muted); margin-bottom: 0; font-size: clamp(1rem, 1.7vw, 1.15rem); }
.layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(298px, 1fr); gap: 26px; align-items: start; }
.editor { min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 13px; background: #e7ede5; margin-bottom: 12px; }
.steps button { border: 0; color: #374940; border-radius: 9px; padding: 9px 5px; font-size: .9rem; font-weight: 700; background: transparent; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 46px; line-height: 1.2; }
.steps button span { flex: 0 0 23px; height: 23px; line-height: 23px; border-radius: 50%; background: #d5e1d5; font-size: .8rem; }
.steps button[aria-current] { background: #fff; color: #1f4934; box-shadow: 0 1px 3px #1f322915; }
.steps button[aria-current] span { background: var(--lime); color: var(--ink); }
.card { border: 1px solid var(--line); background: #fff; border-radius: 19px; padding: clamp(15px, 2.25vw, 28px); }
.section-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); letter-spacing: -.045em; line-height: 1.17; margin-bottom: 7px; }
.section-head p, .muted, .map-info { color: var(--muted); }
.section-head p, .muted { margin-bottom: 0; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-bottom: 9px; }
input:not([type=file]), select { min-width: 0; width: 100%; min-height: 47px; border: 1px solid #bccbbf; border-radius: 9px; color: var(--ink); background: #fff; padding: 9px 12px; }
select { appearance: none; padding-right: 33px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23335040' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; }
input::placeholder { color: #64746b; }
.primary, .secondary, .quiet { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 750; font-size: .92rem; line-height: 1.3; text-align: center; }
.primary { background: var(--lime); color: #192b16; }
.primary:hover { background: #c9ef59; }
.secondary { background: #ecf3ed; color: var(--green); border-color: #d5e3d7; }
.secondary:hover:not(:disabled) { background: #deecdf; }
.quiet { background: transparent; color: #35594a; }
.quiet:hover:not(:disabled) { background: #edf4ed; }
.status { color: #3c5145; margin: 7px 0 11px; font-size: .9rem; }
.status:empty, #energy-error:empty { display: none; }
.locations { display: grid; gap: 3px; background: #f1f6ef; border: 1px solid var(--line); border-radius: 9px; margin: 9px 0; padding: 4px; }
.locations button { background: white; border: 0; border-radius: 6px; padding: 10px; color: var(--green); text-align: left; }
.locations button:hover { background: #e5f0e4; }
.map-frame { position: relative; border-radius: 13px; overflow: hidden; isolation: isolate; background: #30483e; }
#map { height: clamp(290px, 38vw, 410px); width: 100%; background: #30483e; }
#map.is-drawing, #map.is-drawing .leaflet-interactive { cursor: crosshair; }
.map-tag { position: absolute; z-index: 600; top: 11px; left: 11px; display: flex; align-items: center; gap: 8px; border-radius: 7px; padding: 6px 9px; background: #12271eec; color: #fff; font-size: .8125rem; pointer-events: none; }
.map-tag span { background: var(--lime); width: 7px; height: 7px; }
.map-actions, .bottom-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.map-actions { padding-top: 12px; }
.map-info { display: flex; justify-content: space-between; gap: 13px; align-items: baseline; font-size: .9rem; margin-top: 10px; }
.map-info p { margin: 0; }
.map-info strong { flex-shrink: 0; color: #234c34; }
.bottom-actions { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 15px; }
.summary-card { border-radius: 18px; overflow: hidden; background: #132d22; color: white; }
.summary-photo { height: 203px; background: linear-gradient(0deg, #132d22 0%, #132d2200 58%), url('assets/instalacion.webp') center 55% / cover; }
.summary-inner { padding: 0 clamp(17px, 2.1vw, 26px) 24px; }
.summary-card h2 { margin: 0 0 12px; }
.summary-metrics { margin: 0 0 10px; }
.summary-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #375245; }
.summary-metrics dt { font-size: .88rem; color: #e1ede4; }
.summary-metrics dd { color: var(--lime); font-weight: 780; margin: 0; text-align: right; }
.summary-inner p { font-size: .875rem; color: #c3d7ca; margin: 14px 0; }
.summary-quote { width: 100%; }
.upload { display: flex; align-items: center; gap: 13px; background: #f0f6eb; border: 1px dashed #91aa8d; padding: 16px; border-radius: 11px; }
.upload.is-hover { border-style: solid; background: #e1edda; }
.upload:focus-within { outline: 3px solid #317448; outline-offset: 3px; }
.upload-icon { font-size: 1.5rem; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #234c34; background: #deebd9; font-weight: 750; flex: 0 0 40px; }
.upload-link { display: inline-block; color: #204b33; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }
.upload p { margin: 0; color: var(--muted); font-size: .875rem; }
.invoice-privacy { font-size: .875rem; margin-block: 9px 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid label { display: grid; gap: 5px; align-content: start; font-weight: 650; font-size: .9rem; }
.field-grid input, .field-grid select { font-weight: 450; }
.input-unit { position: relative; }
.input-unit input { padding-right: 66px; }
.input-unit > span { position: absolute; top: 12px; right: 12px; color: var(--muted); pointer-events: none; }
.advanced { margin-top: 18px; }
.advanced summary { font-size: .93rem; color: var(--green); font-weight: 700; }
.advanced > div, .advanced > p { margin-top: 10px; }
#energy-error { margin-top: 12px; }
.notice { border-radius: 9px; background: #edf5e8; color: #2b4e36; padding: 11px 13px; font-size: .93rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.specs div { background: #f3f6f2; border-radius: 9px; padding: 11px; }
.specs dt { font-size: .875rem; color: var(--muted); }
.specs dd { font-size: 1.2rem; font-weight: 780; margin: 2px 0 0; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 13px; }
.option { border: 1px solid var(--line); border-radius: 11px; padding: clamp(10px, 1.5vw, 16px); }
.option + .option { background: #f2f9e5; border-color: #cadab9; }
.option h3 { margin: 0 0 8px; font-size: 1rem; }
.option > p { color: var(--green); line-height: 1.2; font-size: 1.55rem; font-weight: 780; margin-bottom: 13px; }
.option > p small { font-size: .875rem; font-weight: 500; }
.option dl { margin: 0; }
.option dl div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 7px 0; font-size: .875rem; }
.option dt { color: var(--muted); }
.option dd { margin: 0; font-weight: 700; text-align: right; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block: 26px 0; border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: .875rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary-photo { height: 164px; }
  .desktop-break { display: none; }
}
@media (max-width: 460px) {
  .topbar-inner { height: 59px; }
  .steps button { gap: 4px; font-size: .82rem; }
  .steps button span { flex-basis: 19px; height: 19px; line-height: 19px; }
  .field-grid, .comparison { grid-template-columns: minmax(0, 1fr); }
  .map-actions .quiet { padding-inline: 7px; }
  .bottom-actions { justify-content: flex-end; }
}
