@font-face {
  font-family: Archivo;
  src: url('/assets/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f3f4ef;
  --ink: #121512;
  --ink-soft: #4b5249;
  --line: #e1e4dc;
  --field-line: #8b9286;
  --sage: #555d3e;
  --sage-deep: #3e452c;
  --sage-tint: #e8ebdf;
  --sage-light: #c9d1b0;
  --night: #0f130f;
  --danger: #b42318;
  --danger-tint: #fdeceb;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4.4vw, 56px);
  --page: 1360px;
  --header-height: 72px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --lift: 0 1px 2px rgb(18 21 18 / .06), 0 28px 56px -32px rgb(18 21 18 / .4);
  --focus: var(--sage);
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-stretch: 100%;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: #b7bdb0 var(--paper);
  scroll-padding-top: calc(var(--header-height) + 16px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; font-size: 17px; line-height: 1.6; }
::selection { background: var(--sage); color: #fff; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus, .quote:focus, .quote-success:focus { outline: none; }
h1, h2, h3, .tile-title { font-stretch: 116%; }

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-s); background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.icon { display: inline-block; flex-shrink: 0; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-phone { --icon: url('/assets/icons/phone.svg'); }
.icon-whatsapp { --icon: url('/assets/icons/whatsapp.svg'); }
.icon-list { --icon: url('/assets/icons/list.svg'); }
.icon-x { --icon: url('/assets/icons/x.svg'); }
.icon-arrow-right { --icon: url('/assets/icons/arrow-right.svg'); }
.icon-snowflake { --icon: url('/assets/icons/snowflake.svg'); }
.icon-wind { --icon: url('/assets/icons/wind.svg'); }
.icon-flame { --icon: url('/assets/icons/flame.svg'); }
.icon-waves { --icon: url('/assets/icons/waves.svg'); }
.icon-wrench { --icon: url('/assets/icons/wrench.svg'); }
.icon-paint-roller { --icon: url('/assets/icons/paint-roller.svg'); }
.icon-shield-check { --icon: url('/assets/icons/shield-check.svg'); }
.icon-clipboard-text { --icon: url('/assets/icons/clipboard-text.svg'); }
.icon-user-circle { --icon: url('/assets/icons/user-circle.svg'); }
.icon-chat-circle-text { --icon: url('/assets/icons/chat-circle-text.svg'); }
.icon-envelope-simple { --icon: url('/assets/icons/envelope-simple.svg'); }
.icon-map-pin { --icon: url('/assets/icons/map-pin.svg'); }
.icon-caret-down { --icon: url('/assets/icons/caret-down.svg'); }
.icon-check-circle { --icon: url('/assets/icons/check-circle.svg'); }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 1px solid transparent; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.button .icon { width: 21px; height: 21px; }
.button:active { transform: scale(.97); }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-whatsapp { background: var(--sage); color: #fff; }
.button-quiet { border-color: var(--field-line); color: var(--ink); }
.button-compact { min-height: 42px; padding: 9px 18px; font-size: 14px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--page); min-height: var(--header-height); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: block; width: 132px; flex-shrink: 0; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 550; color: var(--ink-soft); text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone .icon { width: 19px; height: 19px; color: var(--sage); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.menu-toggle .icon { width: 22px; height: 22px; }

.hero { max-width: var(--page); margin-inline: auto; padding: 16px var(--gutter) 0; }
.hero-stage { position: relative; isolation: isolate; min-height: clamp(540px, 74vh, 720px); display: grid; align-items: end; overflow: hidden; border-radius: var(--radius-l); background: var(--night); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 64% 50%; }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 13 10 / .8) 0%, rgb(10 13 10 / .52) 38%, rgb(10 13 10 / 0) 72%), linear-gradient(0deg, rgb(10 13 10 / .5), rgb(10 13 10 / 0) 46%); }
.hero-content { max-width: 680px; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) 132px; color: #fff; }
.hero h1 { font-size: clamp(34px, 4.3vw, 62px); font-weight: 620; line-height: 1.03; letter-spacing: -.024em; text-wrap: balance; }
.hero-lead { max-width: 50ch; margin-top: 20px; font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .86); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.finder { position: relative; z-index: 2; width: min(100% - 2 * clamp(12px, 3vw, 40px), 1220px); margin: -84px auto 0; padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 20px; border-radius: 22px; background: var(--paper); box-shadow: var(--lift); }
.finder h2 { padding-inline: 14px 4px; font-size: 19px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.finder ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.finder button { width: 100%; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 12px 8px; border: 0; border-radius: 16px; background: transparent; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.finder button .icon { width: 28px; height: 28px; color: var(--sage); transition: transform 240ms var(--ease-out); }
.finder button:active { transform: scale(.97); }

.assurances { max-width: 1220px; margin: 36px auto 0; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.assurances li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 550; line-height: 1.35; color: var(--ink-soft); }
.assurances .icon { width: 24px; height: 24px; color: var(--sage); }

.services { max-width: var(--page); margin-inline: auto; padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(64px, 8vw, 112px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2, .process h2, .about h2, .contact h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 620; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.section-head p { max-width: 46ch; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(220px, 21vw, 300px)); grid-template-areas: "clima clima aero" "clima clima calderas" "suelo mant reformas"; gap: 14px; }
.tile-climatizacion { grid-area: clima; }
.tile-aerotermia { grid-area: aero; }
.tile-calderas { grid-area: calderas; }
.tile-suelo { grid-area: suelo; }
.tile-mantenimiento { grid-area: mant; }
.tile-reformas { grid-area: reformas; }
.tile button { position: relative; isolation: isolate; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(18px, 2vw, 28px); overflow: hidden; border: 0; border-radius: 22px; background: var(--night); color: #fff; text-align: left; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 13 10 / .82) 0%, rgb(10 13 10 / .28) 48%, rgb(10 13 10 / 0) 74%); }
.tile-text { display: grid; gap: 4px; }
.tile-title { font-size: clamp(21px, 1.9vw, 28px); font-weight: 620; line-height: 1.1; letter-spacing: -.015em; }
.tile-climatizacion .tile-title { font-size: clamp(30px, 3.4vw, 48px); }
.tile-hint { font-size: 15px; line-height: 1.4; color: rgb(255 255 255 / .84); }
.tile-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.tile-more .icon { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
.services-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 18px; padding: 26px 30px; border-radius: 22px; background: var(--mist); }
.services-cta p { max-width: 44ch; font-size: 19px; font-weight: 550; line-height: 1.4; }
.services-cta .actions { margin-top: 0; }

.process { background: var(--mist); }
.process-inner { max-width: var(--page); margin-inline: auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.process-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px; }
.process-head p { max-width: 44ch; font-size: 18px; color: var(--ink-soft); }
.process-steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.process-steps li { counter-increment: step; display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 1px solid #c9cec1; }
.process-steps li::before { content: counter(step, decimal-leading-zero); margin-bottom: 18px; font-size: clamp(44px, 4.2vw, 64px); font-weight: 250; font-stretch: 125%; line-height: 1; letter-spacing: -.03em; color: var(--sage); font-variant-numeric: tabular-nums; }
.process-steps h3 { font-size: 19px; font-weight: 620; line-height: 1.25; text-wrap: balance; }
.process-steps p { font-size: 15px; color: var(--ink-soft); }

.about { max-width: var(--page); margin-inline: auto; padding: clamp(72px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius-l); }
.about-lead { margin-top: 22px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 520; font-stretch: 108%; line-height: 1.3; letter-spacing: -.012em; text-wrap: balance; }
.about-copy > p:not(.about-lead) { max-width: 60ch; margin-top: 18px; color: var(--ink-soft); text-wrap: pretty; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.reasons li { display: flex; gap: 14px; }
.reasons .icon { width: 26px; height: 26px; margin-top: 1px; color: var(--sage); }
.reasons strong { font-size: 16px; font-weight: 650; line-height: 1.35; }
.reasons p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; --focus: #fff; }
.contact-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 13 10 / .9) 0%, rgb(10 13 10 / .76) 44%, rgb(10 13 10 / .5) 100%); }
.contact-inner { max-width: var(--page); margin-inline: auto; padding: clamp(72px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro > p { max-width: 40ch; margin-top: 16px; font-size: 18px; color: rgb(255 255 255 / .82); }
.contact-list { display: grid; gap: 18px; margin-top: 36px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; color: rgb(255 255 255 / .7); }
.contact-list dt .icon { width: 18px; height: 18px; color: var(--sage-light); }
.contact-list dd { padding-left: 26px; font-size: 20px; font-weight: 600; font-stretch: 108%; }
.contact-list a { text-decoration: none; }

.quote { padding: clamp(24px, 3.2vw, 40px); border-radius: var(--radius-l); background: var(--paper); color: var(--ink); --focus: var(--sage); }
.quote-title { font-size: 26px; font-weight: 620; letter-spacing: -.015em; }
.quote-form { margin-top: 22px; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.4; caret-color: var(--sage); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgb(85 93 62 / .28); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; pointer-events: none; color: var(--ink-soft); }
.field-hint { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.field-error { display: flex; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--danger); }
.field-error::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; background: currentColor; -webkit-mask: url('/assets/icons/warning-circle.svg') center / contain no-repeat; mask: url('/assets/icons/warning-circle.svg') center / contain no-repeat; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.form-status { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--danger-tint); color: #7a1a12; font-size: 15px; font-weight: 600; }
.form-status:empty { padding: 0; }
.form-status a { justify-self: start; color: #7a1a12; }
.submit-row { display: flex; }
.button-submit { min-width: 220px; }
.quote-form[data-state="sending"] .button-submit { cursor: progress; background: #2f352f; }
.quote-success { display: grid; justify-items: start; gap: 12px; padding-block: 8px; }
.quote-success:not([hidden]) { animation: rise 280ms var(--ease-out); }
.success-icon { width: 44px; height: 44px; color: var(--sage); }
.quote-success h4 { font-size: 26px; font-weight: 620; font-stretch: 116%; letter-spacing: -.015em; }
.quote-success p { max-width: 52ch; font-size: 17px; color: var(--ink-soft); }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.quote-offline { display: grid; gap: 8px; margin-top: 18px; }
.quote-offline p { max-width: 52ch; font-size: 17px; color: var(--ink-soft); }

.site-footer { background: var(--night); color: rgb(255 255 255 / .72); --focus: #fff; }
.footer-inner { max-width: var(--page); margin-inline: auto; padding: 56px var(--gutter) 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 12px; font-size: 12px; font-weight: 600; font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; }
.footer-brand p span { margin-inline: 6px; color: var(--sage-light); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 26px; font-size: 15px; font-weight: 550; color: #fff; }
.footer-nav a, .footer-legal a { text-decoration: none; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 14px; }
.footer-legal nav { display: flex; gap: 20px; }

.header-actions-end { margin-left: auto; }
.legal { max-width: 820px; margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); }
.legal h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 620; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.legal-updated { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.legal section { margin-top: 44px; scroll-margin-top: calc(var(--header-height) + 24px); }
.legal h2 { font-size: 22px; font-weight: 620; line-height: 1.25; letter-spacing: -.01em; }
.legal section p { margin-top: 12px; color: var(--ink-soft); text-wrap: pretty; }
.legal ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 22px; list-style: disc; color: var(--ink-soft); }
.legal li::marker { color: var(--sage); }
.legal a { color: var(--ink); }
.legal-data { margin-top: 16px; border-top: 1px solid var(--line); }
.legal-data div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.legal-data dt { font-weight: 600; }
.legal-data dd { color: var(--ink-soft); }

.sheet { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; background: var(--paper); color: var(--ink); box-shadow: -30px 0 60px -30px rgb(0 0 0 / .45); }
.sheet::backdrop { background: rgb(10 13 10 / .5); }
.sheet[open] { animation: sheet-in 340ms var(--ease-drawer); }
.sheet[open]::backdrop { animation: fade-in 240ms ease-out; }
.sheet-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 6px 18px -6px rgb(0 0 0 / .35); }
.sheet-close .icon { width: 20px; height: 20px; }
.sheet-body { padding: 28px 32px 40px; }
.sheet-body h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 620; line-height: 1.08; letter-spacing: -.02em; }
.sheet-body h2:focus { outline: none; }
.sheet-lead { margin-top: 12px; font-size: 18px; color: var(--ink-soft); }
.sheet-points { display: grid; gap: 12px; margin-top: 24px; }
.sheet-points li { display: flex; gap: 10px; font-size: 16px; font-weight: 500; line-height: 1.45; }
.sheet-points li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; background: var(--sage); -webkit-mask: url('/assets/icons/check.svg') center / contain no-repeat; mask: url('/assets/icons/check.svg') center / contain no-repeat; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: .4; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { opacity: .4; transform: translateY(64px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .button-dark:hover { background: #2b322b; }
  .button-light:hover { background: var(--sage-tint); }
  .button-whatsapp:hover { background: var(--sage-deep); }
  .button-quiet:hover { background: var(--sage-tint); }
  .main-nav a:hover { color: var(--ink); background: var(--mist); }
  .header-phone:hover span:last-child, .contact-list a:hover, .footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; }
  .finder button:hover { background: var(--mist); }
  .finder button:hover .icon { transform: translateY(-2px); }
  .tile button:hover img { transform: scale(1.045); }
  .tile button:hover .tile-more .icon { transform: translateX(3px); }
  .sheet-close:hover { background: var(--mist); }
}

@media (max-width: 1180px) {
  .header-phone { display: none; }
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder h2 { padding: 4px 6px 0; }
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}

@media (max-width: 959px) {
  :root { --header-height: 64px; }
  .header-inner { gap: 12px; }
  .brand { width: 108px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 4px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgb(18 21 18 / .4); }
  .main-nav:not(.is-open) { display: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; border-radius: 0; font-size: 18px; color: var(--ink); }
  .main-nav li + li a { border-top: 1px solid var(--line); }
  .header-actions { margin-left: auto; gap: 8px; }
  .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .process-head { grid-template-columns: minmax(0, 1fr); }
  .about, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .about-photo img { aspect-ratio: 3 / 2; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero { padding: 10px 10px 0; }
  .hero-stage { min-height: 640px; border-radius: 22px; }
  .hero-media img { object-position: 50% 30%; }
  .hero-stage::after { background: linear-gradient(0deg, rgb(10 13 10 / .92) 0%, rgb(10 13 10 / .72) 48%, rgb(10 13 10 / .12) 78%); }
  .hero-content { padding: 24px 20px 28px; }
  .hero h1 { font-size: clamp(29px, 8vw, 38px); line-height: 1.06; }
  .hero-lead { margin-top: 14px; font-size: 16px; }
  .actions { flex-direction: column; margin-top: 22px; }
  .actions .button, .sheet-actions .button, .success-actions .button, .services-cta .button { width: 100%; }
  .finder { width: auto; margin: 12px 0 0; padding: 14px 12px 12px; border-radius: 22px; }
  .finder h2 { font-size: 18px; }
  .finder ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .finder button { min-height: 92px; padding: 10px 4px; font-size: 13px; background: var(--mist); }
  .finder button .icon { width: 26px; height: 26px; }
  .assurances { margin-top: 24px; gap: 16px 14px; }
  .assurances li { align-items: flex-start; font-size: 14px; }
  .assurances .icon { width: 22px; height: 22px; }
  .services { padding-top: 64px; }
  .section-head p { font-size: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px repeat(2, 200px) 180px; grid-template-areas: "clima clima" "aero calderas" "suelo mant" "reformas reformas"; gap: 10px; }
  .tile button { padding: 16px; border-radius: 18px; }
  .tile-title { font-size: 18px; }
  .tile-climatizacion .tile-title { font-size: 30px; }
  .tile-hint { font-size: 13px; }
  .tile-more { display: none; }
  .tile-climatizacion .tile-more { display: inline-flex; }
  .services-cta { padding: 22px 20px; }
  .services-cta p { font-size: 17px; }
  .services-cta .actions { width: 100%; }
  .process-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .process-steps li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding-block: 18px; }
  .process-steps li::before { grid-row: 1 / 3; margin: 0; font-size: 40px; }
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact::before { background: rgb(10 13 10 / .82); }
  .contact-list dd { font-size: 18px; }
  .quote { padding: 22px 18px; border-radius: 22px; }
  .quote-fields { grid-template-columns: minmax(0, 1fr); }
  .button-submit { width: 100%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-brand p { font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
  .footer-legal { flex-direction: column; }
  .legal-data div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-body { padding: 22px 20px 32px; }
}

@media (max-width: 379px) {
  .button-compact { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .finder button, .finder button .icon, .tile img, .tile-more .icon { transition: none; }
  .button:active, .finder button:active { transform: none; }
  .quote-success:not([hidden]), .sheet[open], .sheet[open]::backdrop { animation: none; }
  .tile button:hover img { transform: none; }
}
