/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink: #0c2b2a;
  --ink-2: #133d3a;
  --ink-3: #1b524d;
  --sun: #ffb81c;
  --sun-deep: #f39a00;
  --leaf: #1f9d6b;
  --cream: #fbf7ee;
  --sand: #f3ecdc;
  --paper: #ffffff;
  --text: #15302e;
  --muted: #5a6e6b;
  --line: #e6dfcf;
  --wa: #25d366;

  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(12, 43, 42, .05), 0 12px 32px -12px rgba(12, 43, 42, .18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --top-h: 96px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--top-h); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--paper); color: var(--ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.section--ink .kicker { color: var(--sun); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: 1.06rem; }
.section--ink .section-head p { color: rgba(251, 247, 238, .75); }

.tag {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 184, 28, .22); color: #8a5a00; border: 1px dashed rgba(138, 90, 0, .45);
}

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(243, 154, 0, .8); }
.btn--sun:hover { transform: translateY(-2px); background: #ffc440; box-shadow: 0 16px 30px -12px rgba(243, 154, 0, .9); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn--ghost { border: 1.5px solid rgba(251, 247, 238, .35); color: var(--cream); }
.btn--ghost:hover { background: rgba(251, 247, 238, .1); }
.btn--sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* --- Barra de demostración + cabecera (siempre visibles) --- */
.top { position: sticky; top: 0; z-index: 50; }
.demo-bar {
  background: var(--sun); color: var(--ink);
  font-size: clamp(.68rem, 2.9vw, .8rem); font-weight: 600; line-height: 1.3;
  text-align: center; padding: .4rem var(--gutter);
}
.demo-bar a { text-decoration: underline; text-underline-offset: 2px; }
.header {
  background: rgba(251, 247, 238, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .header { background: rgba(251, 247, 238, .82); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.header .btn { white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.logo span span { color: var(--sun-deep); }
.nav { display: none; gap: 1.6rem; font-weight: 600; font-size: .94rem; color: var(--muted); }
.nav a { padding-block: .4rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* --- Tarjetas --- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow);
}

/* --- Formularios --- */
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315302e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.input:focus, .select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(31, 157, 107, .16); }
.input[type="file"] { padding: .6rem; font-size: .9rem; }
.input[type="file"]::file-selector-button {
  margin-right: .8rem; padding: .5rem .9rem; border: 0; border-radius: 999px;
  background: var(--sand); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.euro { position: relative; }
.euro .input { padding-right: 4.6rem; }
.euro span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

/* =============================================================
   5. Sections
   ============================================================= */

/* --- Portada --- */
.hero { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70vmax; height: 70vmax;
  background: radial-gradient(closest-side, rgba(255, 184, 28, .22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(251, 247, 238, .1); border: 1px solid rgba(251, 247, 238, .18);
  font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero-badge i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 184, 28, .25); }
.hero h1 { font-size: clamp(2.5rem, 9.5vw, 4.6rem); line-height: 1; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: rgba(251, 247, 238, .82); max-width: 34rem; }
.hero-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-points { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: rgba(251, 247, 238, .8); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: "✓"; color: var(--sun); font-weight: 800; }
.hero-art { position: relative; }
.hero-art svg, .hero-art img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.hero-chip {
  position: absolute; left: -.4rem; bottom: 1.2rem;
  display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem;
  background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.25;
}
.hero-chip b { display: block; font-family: var(--display); font-size: 1.05rem; }
.hero-chip svg { width: 34px; height: 34px; flex: none; }

/* --- Calculadora --- */
.calc { display: grid; gap: 1.25rem; }
.calc-inputs { display: grid; gap: 1.6rem; align-content: start; }
.bill-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bill-value { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bill-value small { font-size: .42em; font-weight: 600; color: var(--muted); margin-left: .2rem; }
.range {
  --fill: 33%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
}
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--sun) var(--fill), var(--sand) var(--fill)); }
.range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--sand); }
.range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--sun); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 4px 12px rgba(12, 43, 42, .35);
}
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 4px 12px rgba(12, 43, 42, .35); }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }

.seg { display: grid; gap: .5rem; border: 0; padding: 0; min-width: 0; }
.seg legend { margin-bottom: .5rem; padding: 0; }
.seg-opts { display: grid; gap: .5rem; }
.seg label {
  display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .65rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); transition: border .2s; }
.seg label:has(input:checked) { border-color: var(--ink); background: #f2f7f4; }
.seg label:has(input:checked)::before { border: 6px solid var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sun-deep); outline-offset: 2px; }

.calc-results { background: var(--ink); color: var(--cream); border-color: transparent; display: grid; gap: 1.1rem; align-content: start; }
.calc-results h3 { font-size: 1.15rem; font-weight: 600; color: rgba(251, 247, 238, .85); }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.result { background: rgba(251, 247, 238, .07); border: 1px solid rgba(251, 247, 238, .12); border-radius: 16px; padding: 1rem; min-width: 0; }
.result--hl { grid-column: 1 / -1; background: var(--sun); color: var(--ink); border-color: transparent; }
.result dt { font-size: .8rem; font-weight: 700; letter-spacing: .02em; opacity: .8; }
.result dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 6.5vw, 2.3rem); line-height: 1.1; margin-top: .25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result--hl dd { font-size: clamp(2.3rem, 10vw, 3.4rem); }
.result dd small { font-size: .45em; font-weight: 600; margin-left: .15rem; }
.calc-consumo { font-size: .9rem; color: rgba(251, 247, 238, .75); }
.calc-note { font-size: .82rem; color: rgba(251, 247, 238, .65); }

/* --- Ayudas --- */
.aids { display: grid; gap: 1rem; }
.aid-icon { width: 48px; height: 48px; border-radius: 14px; background: #e9f5ef; color: var(--leaf); display: grid; place-items: center; margin-bottom: 1rem; }
.aid-icon svg { width: 24px; height: 24px; }
.aid h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.aid p { color: var(--muted); font-size: .97rem; }
.aid p + p { margin-top: .6rem; }
.aids-foot {
  margin-top: 1.25rem; display: grid; gap: 1rem; align-items: center;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem);
}
.aids-foot strong { font-family: var(--display); font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.15; display: block; }
.aids-foot p { color: rgba(251, 247, 238, .75); font-size: .95rem; margin-top: .35rem; }
.updated { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* --- Cómo trabajamos --- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem; border-radius: var(--radius); background: rgba(251, 247, 238, .06); border: 1px solid rgba(251, 247, 238, .12); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: rgba(251, 247, 238, .75); font-size: .96rem; }

/* --- Proyectos --- */
.grid-3 { display: grid; gap: 1rem; }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-art { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #a9dbe6, #fdeeb9); }
.project-art svg { width: 100%; height: 100%; }
.project-art .tag { position: absolute; top: .8rem; left: .8rem; background: var(--paper); }
.project-body { padding: 1.25rem; display: grid; gap: .9rem; }
.project-body h3 { font-size: 1.3rem; }
.project-body p { color: var(--muted); font-size: .94rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.specs div { background: var(--cream); border-radius: 12px; padding: .7rem .8rem; }
.specs dt { font-size: .75rem; color: var(--muted); font-weight: 700; }
.specs dd { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

/* --- Opiniones --- */
.review { display: flex; flex-direction: column; gap: 1rem; }
.stars { color: var(--sun-deep); letter-spacing: .15em; font-size: 1.05rem; }
.review blockquote { font-size: 1.02rem; flex: 1; }
.review footer { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.review footer b { display: block; color: var(--text); }

/* --- Presupuesto --- */
.quote { display: grid; gap: 1.5rem; }
.quote-aside ul { margin-top: 1.4rem; display: grid; gap: .8rem; }
.quote-aside li { display: flex; gap: .7rem; align-items: flex-start; }
.quote-aside li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: .1rem; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.form-hint {
  display: none; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: #e9f5ef; color: #14694a; font-size: .9rem; font-weight: 600;
}
.form-hint.is-on { display: block; }
.form-legal { font-size: .82rem; color: var(--muted); }

/* --- Zonas / municipios --- */
.towns { display: grid; gap: .8rem; }
.town {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s;
}
.town:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.town small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.town svg { width: 20px; height: 20px; flex: none; }

/* --- Página de municipio --- */
.local-hero .hero-inner { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.local-hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 8vw, 4rem); }
.crumbs { font-size: .85rem; color: rgba(251, 247, 238, .65); margin-bottom: 1rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.serp { background: var(--paper); color: #202124; border-radius: 18px; padding: 1.25rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); font-family: Arial, Helvetica, sans-serif; }
.serp-label { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.serp-search { display: flex; align-items: center; gap: .6rem; border: 1px solid #dfe1e5; border-radius: 999px; padding: .55rem 1rem; font-size: .92rem; margin-bottom: 1.1rem; }
.serp-search svg { width: 16px; height: 16px; color: #9aa0a6; flex: none; }
.serp-site { display: flex; align-items: center; gap: .6rem; font-size: .8rem; line-height: 1.3; }
.serp-site i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.serp-site i svg { width: 16px; height: 16px; }
.serp-site span { color: #4d5156; display: block; overflow-wrap: anywhere; }
.serp-title { color: #1a0dab; font-size: 1.2rem; line-height: 1.3; margin: .5rem 0 .3rem; font-weight: 400; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.serp-desc { color: #4d5156; font-size: .88rem; line-height: 1.5; }
.local-list { display: grid; gap: 1rem; }
.local-list h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.local-list p { color: var(--muted); font-size: .96rem; }
.cta-band { background: var(--sun); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.2rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.cta-band p { margin-top: .4rem; }

/* --- Pie --- */
.footer { background: #08201f; color: rgba(251, 247, 238, .78); padding-block: 3rem 2rem; font-size: .94rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer .logo { color: var(--cream); margin-bottom: .8rem; }
.footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: .8rem; }
.footer li + li { margin-top: .45rem; }
.footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-note { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(251, 247, 238, .14); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .86rem; }
.footer-note strong { color: var(--sun); }

/* --- Ventana: aviso de WhatsApp simulado --- */
.wa-dialog {
  border: 0; padding: 0; background: transparent; margin: auto;
  width: min(400px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: visible;
}
.wa-dialog::backdrop { background: rgba(8, 32, 31, .72); backdrop-filter: blur(4px); }
.wa-dialog[open] { animation: popIn .45s var(--ease-out); }
.wa-box { background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.wa-phone { background: linear-gradient(165deg, #173f3c, #0a2423 70%); color: #fff; padding: 1.4rem 1rem 1.6rem; text-align: center; }
.wa-phone small { display: block; font-size: .78rem; opacity: .7; }
.wa-clock { font-family: var(--display); font-size: 3rem; font-weight: 600; line-height: 1.1; margin-bottom: 1rem; }
.wa-notif {
  text-align: left; background: rgba(255, 255, 255, .92); color: #111; border-radius: 18px; padding: .8rem .9rem;
  display: grid; grid-template-columns: 38px 1fr; gap: .7rem; align-items: start;
  animation: dropIn .6s .15s var(--ease-out) both;
}
.wa-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--wa); display: grid; place-items: center; }
.wa-ico svg { width: 24px; height: 24px; }
.wa-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.wa-notif b { display: block; font-size: .95rem; margin-top: .1rem; }
.wa-notif p { font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.wa-body { padding: 1.2rem; display: grid; gap: .9rem; }
.wa-body h2 { font-size: 1.25rem; }
.wa-data { display: grid; gap: .35rem; font-size: .9rem; background: var(--cream); border-radius: 12px; padding: .8rem .9rem; }
.wa-data div { display: flex; justify-content: space-between; gap: 1rem; }
.wa-data dt { color: var(--muted); flex: none; }
.wa-data dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.wa-sim { font-size: .82rem; color: var(--muted); }

/* =============================================================
   6. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-18px); } }
@keyframes sunPulse { 50% { opacity: .55; transform: scale(1.08); } }
.sun-halo { transform-origin: center; transform-box: fill-box; animation: sunPulse 6s ease-in-out infinite; }
.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.03); } }

/* =============================================================
   7. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .seg-opts { grid-template-columns: repeat(3, 1fr); }
  .seg label { flex-direction: column; align-items: flex-start; justify-content: center; gap: .5rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .towns { grid-template-columns: repeat(3, 1fr); }
  .hero-chip { left: 1rem; }
}
@media (min-width: 720px) {
  .aids, .grid-3, .local-list { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .aids-foot, .cta-band { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --top-h: 110px; }
  .nav { display: flex; }
  .header-inner { min-height: 70px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .calc { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .quote { grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
  .quote-aside { position: sticky; top: calc(var(--top-h) + 1rem); }
}

/* =============================================================
   8. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun-halo { animation: none; }
}
