/* =========================================================================
   Aislamientos Logroño · 1.0
   Piedra clara y blanco, granate de vino riojano y dorado de trigo; verde
   viña y teja para las familias. Titulares en Bricolage Grotesque, texto en
   Figtree. Botones de esquina suave (no píldora) y pie oscuro.
   ========================================================================= */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  --c-bg: #fbf8f4;
  --c-card: #ffffff;
  --c-ink: #2e101a;
  --c-ink-2: #4a2630;
  --c-text: #33242a;
  --c-muted: #6e5e5a;
  --c-faint: #a3958f;
  --c-line: #ece2d8;
  --c-cream: #f4eee6;
  --c-cream-2: #ebe1d4;
  --c-accent: #8e2340;
  --c-accent-deep: #7b1e3a;
  --c-accent-ink: #ffffff;
  --c-accent-soft: #f7e9ec;
  --c-gold: #f2c265;
  --c-gold-deep: #c98f1c;
  --c-vine: #4f7a1f;
  --c-pink: #be345a;
  --c-grad: linear-gradient(120deg, #8e2340 0%, #a8304f 100%);
  --c-hot: #e2683a;
  --c-cold: #3f7fae;
  --c-moss: #4f7a1f;
  --c-ok: #3d8a3a;
  --c-error: #c23a2b;
  --c-whatsapp: #1fa855;

  --f-sans: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Bricolage", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --f-mono: var(--f-sans);
  --f-display: var(--f-serif);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(46, 16, 26, .06);
  --shadow-2: 0 1px 2px rgba(46, 16, 26, .05), 0 14px 34px rgba(46, 16, 26, .09);
  --ring: inset 0 0 0 1px var(--c-line);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --gutter: clamp(16px, 3.5vw, 32px);
  --header-h: 70px;
}

/* Familias de color: tinto, viña, arena, cielo, teja y piedra. */
.tone-tinto  { --t-bg: #f9ecef; --t-bg2: #f1d3da; --t-fg: #8e2340; }
.tone-vina   { --t-bg: #eef4e4; --t-bg2: #dce8c7; --t-fg: #4f7a1f; }
.tone-arena  { --t-bg: #fbf2e2; --t-bg2: #f3e0bd; --t-fg: #a26a12; }
.tone-cielo  { --t-bg: #e9f1f7; --t-bg2: #d2e2ee; --t-fg: #2f6690; }
.tone-teja   { --t-bg: #fbece6; --t-bg2: #f4d4c7; --t-fg: #b0482a; }
.tone-piedra { --t-bg: #f1efeb; --t-bg2: #e2ddd4; --t-fg: #6b6256; }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.62 var(--f-sans); color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* Chrome para Android solo respeta el recorte lateral si también está en html. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
@media (max-width: 640px) { body { font-size: 15px; } }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { color: var(--c-ink); margin: 0 0 .45em; text-wrap: balance; }
h1, h2 { font-family: var(--f-serif); font-weight: 420; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 380; color: var(--c-accent-deep); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--c-accent-soft); font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-deep); }
.eyebrow::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c-grad); box-shadow: inset 0 0 0 4px var(--c-accent-soft); }
.eyebrow--light { background: rgba(255, 255, 255, .12); color: #fff; }
.link-arrow, .pill-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--ring); font-size: 13.5px; font-weight: 600; color: var(--c-ink); text-decoration: none; white-space: nowrap; transition: box-shadow .2s, transform .2s var(--ease); }
.link-arrow .icon, .pill-link .icon { width: 12px; height: 12px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--c-ink); color: #fff; transition: transform .25s var(--ease), background .2s; }
.link-arrow:hover, .pill-link:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.link-arrow:hover .icon, .pill-link:hover .icon { transform: translateX(2px); background: var(--c-accent); }

/* -------------------------------------------------------------- botones */
/* Píldora; si el último hijo es un icono, va dentro de un círculo (estilo ADS Doctor). */

.btn {
  --b-bg: var(--c-ink); --b-fg: #fff; --b-ring: transparent; --b-dot: rgba(255, 255, 255, .16); --b-dot-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--b-ring);
  background: var(--b-bg); color: var(--b-fg); font: 600 14.5px/1 var(--f-sans); letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s var(--ease), filter .2s; white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn > .icon:last-child:not(:first-child) { width: 14px; height: 14px; padding: 9px; margin-right: -13px; box-sizing: content-box; border-radius: 50%; background: var(--b-dot); color: var(--b-dot-fg); transition: transform .25s var(--ease); }
.btn:hover > .icon:last-child:not(:first-child) { transform: translateX(3px) rotate(-8deg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--primary, .btn--accent { --b-bg: var(--c-grad); --b-fg: #fff; box-shadow: 0 8px 22px rgba(142, 35, 64, .28); }
.btn--primary:hover, .btn--accent:hover { filter: saturate(1.15) brightness(1.04); box-shadow: 0 10px 28px rgba(142, 35, 64, .38); }
.btn--ink, .btn--dark { --b-bg: var(--c-ink); --b-fg: #fff; --b-dot: var(--c-accent); }
.btn--ink:hover, .btn--dark:hover { --b-bg: #4a1826; }
.btn--ghost, .btn--light { --b-bg: #fff; --b-fg: var(--c-ink); --b-ring: var(--c-line); --b-dot: var(--c-ink); }
.btn--ghost:hover, .btn--light:hover { --b-ring: var(--c-ink); }
.btn--whatsapp { --b-bg: var(--c-whatsapp); }
.btn--lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn--lg > .icon:last-child:not(:first-child) { padding: 11px; margin-right: -16px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--sm > .icon:last-child:not(:first-child) { padding: 6px; margin-right: -10px; }

/* Iconos con vida: fondo pastel degradado, trazo de color y relleno suave. */
.ico-tile, .mm-ico, .pain__ico, .sol-list__ico, .quick__ico, .chip-link__ico, .drawer__tile-ico, .drawer__ico, .service__icon, .place-card__ico, .deck__icon, .footer-cta__ico, .mm-help__ico, .tile__icon {
  display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--t-bg, #f9ecef), var(--t-bg2, #f1d3da));
  color: var(--t-fg, #8e2340);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(46, 16, 26, .06);
}
:is(.ico-tile, .mm-ico, .pain__ico, .sol-list__ico, .quick__ico, .chip-link__ico, .drawer__tile-ico, .drawer__ico, .service__icon, .place-card__ico, .deck__icon, .footer-cta__ico, .mm-help__ico, .tile__icon) .icon :is(path, rect, circle) { fill: currentColor; fill-opacity: .13; }

/* =========================================================== configurador */

.cfg { --tile-r: 18px; }
.cfg__fallback { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.cfg__fallback .btn { margin: 4px 8px 4px 0; }
.cfg__layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .cfg__layout { grid-template-columns: minmax(0, 1fr) 320px; } .cfg__layout.is-done { grid-template-columns: minmax(0, 760px); justify-content: center; } }

.cfg__card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(20px, 4vw, 40px); min-width: 0; }
.cfg__restored { margin: -6px 0 14px; font-size: 14px; color: var(--c-moss); font-weight: 600; }

.cfg__progress { margin-bottom: 28px; }
.cfg__dots { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cfg__dots li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); min-width: 0; }
.cfg__dots span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--c-line); font-weight: 700; font-size: 12px; background: #fff; }
.cfg__dots span .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.cfg__dots em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg__dots .is-current span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cfg__dots .is-current em { color: var(--c-ink); font-weight: 700; }
.cfg__dots .is-done span { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
@media (max-width: 620px) {
  .cfg__dots { display: flex; justify-content: space-between; }
  .cfg__dots em { display: none; }
  .cfg__dots .is-current { flex: 1; }
  .cfg__dots .is-current em { display: block; overflow: visible; }
}
.cfg__bar { height: 4px; border-radius: 4px; background: var(--c-cream-2); overflow: hidden; }
.cfg__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), #c98f1c); border-radius: 4px; transition: width .45s var(--ease); min-width: 6%; }

.cfg__head { margin-bottom: 22px; }
.cfg__count { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 6px; }
.cfg__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -.025em; margin-bottom: 6px; outline: none; }
.cfg__hint { color: var(--c-muted); margin: 0; }
.cfg__step { animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }

.cfg__field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cfg__field legend, .cfg__field > label, .cfg__label { display: block; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; font-size: 16px; }
.cfg__field > label span { font-weight: 400; color: var(--c-muted); }
.cfg__help { font-size: 14px; color: var(--c-muted); margin: 10px 0 0; }

/* fichas grandes */
.tiles { display: grid; gap: 10px; }
.tiles--kinds { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tiles--homes { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tiles--homes { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left;
  padding: 18px; border-radius: var(--tile-r); border: 1.5px solid var(--c-line); background: #fff; color: var(--c-text);
  font: inherit; cursor: pointer; transition: border-color .18s, background .18s, transform .18s var(--ease), box-shadow .18s;
}
.tile:hover { border-color: #dccfc2; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.tile__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--c-cream); color: var(--c-ink); transition: background .18s, color .18s; }
.tile__icon .icon { width: 28px; height: 28px; }
.tile__text b { display: block; font-size: 16px; color: var(--c-ink); line-height: 1.25; }
.tile__text small { display: block; font-size: 13.5px; color: var(--c-muted); margin-top: 4px; line-height: 1.4; }
.tile__check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-accent-ink); opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.tile__check .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.tile.is-selected { border-color: var(--c-accent); background: #fdf9f5; box-shadow: 0 0 0 3px var(--c-accent-soft); }
.tile.is-selected .tile__icon { background: var(--c-accent); color: var(--c-accent-ink); }
.tile.is-selected .tile__check { opacity: 1; transform: none; }
.tile--home { align-items: center; text-align: center; padding: 18px 12px; }

/* chips y pastillas */
.chips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font: 600 15px/1.3 var(--f-sans); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #dccfc2; background: #fff center/14px no-repeat; transition: .15s; }
.chip[role="radio"]::before { border-radius: 50%; }
.chip:hover { border-color: #dccfc2; }
.chip.is-selected { border-color: var(--c-ink); background: var(--c-cream); }
.chip.is-selected::before { background-color: var(--c-ink); border-color: var(--c-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chip .tile__text b { font-size: 15px; font-weight: 600; }


/* superficie */
.area { display: flex; align-items: center; gap: 16px; }
.area input[type="range"] { flex: 1; accent-color: var(--c-accent); height: 32px; }
.area__num { display: flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 14px; overflow: hidden; background: #fff; }
.area__num input { width: 88px; border: 0; padding: 12px; font: 700 20px var(--f-sans); color: var(--c-ink); text-align: right; background: none; -moz-appearance: textfield; }
.area__num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.area__num span { padding: 0 14px 0 4px; color: var(--c-muted); font-weight: 600; }

/* datos de contacto */
.form-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.cfg__field input[type="text"], .cfg__field input[type="tel"], .cfg__field input[type="email"], .cfg__notes textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--c-line); background: #fff;
  font: 500 17px var(--f-sans); color: var(--c-ink); transition: border-color .15s, box-shadow .15s;
}
.cfg__field input:focus, .cfg__notes textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-cream-2); }
.cfg__field input.is-invalid { border-color: var(--c-error); box-shadow: 0 0 0 4px #fbe4e2; }
.cfg__row { display: grid; gap: 0 24px; }
@media (min-width: 720px) { .cfg__row { grid-template-columns: 1fr 1fr; } }
.cfg__notes { margin: 0 0 18px; }
.cfg__notes summary { cursor: pointer; font-weight: 650; color: var(--c-ink); padding: 6px 0; }
.cfg__notes textarea { margin-top: 10px; resize: vertical; min-height: 96px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* estimación */
.estimate { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; margin-bottom: 26px; background: var(--c-ink); color: rgba(255, 255, 255, .78); }
.estimate::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(142, 35, 64, .45), transparent 65%); }
.estimate__label { font-size: 13px; font-weight: 650; letter-spacing: .04em; margin: 0 0 4px; position: relative; }
.estimate__value { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; color: #fff; margin: 0 0 6px; position: relative; line-height: 1.1; }
.estimate__value small { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.estimate__note { font-size: 14px; margin: 0; position: relative; }

.cfg__error:not(:empty) { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: var(--c-error); font-weight: 600; font-size: 15px; }

/* progreso con ánimo */
.cfg__cheer { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--c-ink-2); }
.cfg__cheer .icon { color: var(--c-accent); width: 18px; height: 18px; }
.cfg__cheer b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--c-accent-deep); }

/* navegación del configurador */
.cfg__nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.cfg__back { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font: 650 15px var(--f-sans); cursor: pointer; flex: none; }
.cfg__back:hover { border-color: var(--c-ink); }
.cfg__next { margin-left: auto; }
.cfg__nav-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--c-muted); }
.cfg__trust { text-align: center; font-size: 13px; color: var(--c-muted); margin: 12px 0 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* respuesta inmediata al elegir */
.tile.is-selected, .chip.is-selected, .seg__opt.is-selected { animation: pick .28s var(--ease); }
@keyframes pick { 50% { transform: scale(.97); } }

/* estimación en directo (paso 2) */
.live-est { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-ink); font-size: 15px; }
.live-est .icon { color: var(--c-accent-deep); flex: none; }
.live-est b { font-variant-numeric: tabular-nums; }

/* recomendación (paso 3) */
.reco { display: grid; gap: 4px; margin-top: 4px; padding: 16px 18px; border-radius: 18px; background: #edf5ef; border: 1px solid #d4e7da; animation: step-in .3s var(--ease); }
.reco b { font-size: 18px; color: var(--c-ink); }
.reco > span:last-child { font-size: 14.5px; color: var(--c-ink-2); }
.reco__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ok); }
.reco__badge .icon { width: 16px; height: 16px; }
.reco--empty { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--c-line); color: var(--c-muted); font-size: 14.5px; }
.reco--empty .icon { color: var(--c-accent); flex: none; }

/* estimación desbloqueada (paso 4) */
.estimate__label { display: flex; align-items: center; gap: 6px; }
.estimate__label .icon { width: 15px; height: 15px; color: #c98f1c; }
.estimate__value span { font-variant-numeric: tabular-nums; }
.estimate__perks { position: relative; list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.estimate__perks li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; }
.estimate__perks .icon { width: 14px; height: 14px; color: #7ee0a6; stroke-width: 2.6; }

/* controles segmentados */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--c-cream); }
.seg__opt { min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; font: 650 14.5px var(--f-sans); color: var(--c-ink-2); cursor: pointer; transition: background .15s, box-shadow .15s; }
.seg__opt.is-selected { background: #fff; color: var(--c-ink); box-shadow: 0 1px 3px rgba(46, 16, 26, .12), 0 0 0 1.5px var(--c-accent); }

/* comentario y consentimiento */
.cfg__notes summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.cfg__notes summary::-webkit-details-marker { display: none; }
.cfg__notes summary span { font-weight: 400; color: var(--c-muted); }
.cfg__notes summary .icon { width: 18px; height: 18px; color: var(--c-accent-deep); }
.consent { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--c-line); font-size: 14.5px; color: var(--c-ink-2); line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #dccfc2; background: #fff; color: transparent; transition: .15s; }
.consent__box .icon { width: 16px; height: 16px; stroke-width: 3; }
.consent:has(input:checked) { border-color: var(--c-ok); background: #f1f8f3; }
.consent input:checked + .consent__box { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.consent a { color: var(--c-ink); }

/* confeti */
.done { position: relative; }
.confetti { position: absolute; inset: -20px 0 auto; height: 0; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti 1.6s var(--ease) forwards; }
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), 320px) rotate(var(--r)); }
}

/* ---------- configurador en móvil: todo dentro de pantalla, pulgar primero */
@media (max-width: 640px) {
  .cfg__card { padding: 20px 16px 0; border-radius: 22px; }
  .cfg__title { font-size: 23px; }
  .cfg__progress { margin-bottom: 20px; }
  .tiles--kinds { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 14px 12px; gap: 10px; border-radius: 16px; }
  .tile__icon { width: 42px; height: 42px; border-radius: 12px; }
  .tile__icon .icon { width: 24px; height: 24px; }
  .tile__text b { font-size: 15px; }
  .tile__text small { font-size: 12.5px; }
  .tile__check { top: 10px; right: 10px; width: 22px; height: 22px; }
  .tiles--homes { gap: 8px; }
  .chips { grid-template-columns: 1fr; }
  .area { gap: 10px; }
  .area__num input { width: 64px; font-size: 18px; padding: 10px 8px; }
  .estimate { padding: 18px; border-radius: 18px; }
  .cfg__nav {
    position: sticky; bottom: 0; z-index: 5; margin: 22px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 22px 22px;
  }
  .cfg__back { width: 54px; padding: 0; justify-content: center; }
  .cfg__back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cfg__next { flex: 1; min-width: 0; white-space: nowrap; font-size: 16px; padding: 0 14px; }
  .cfg__trust { padding-bottom: 16px; }
  .section { padding: 56px 0; }
}

/* resumen lateral */
.cfg__aside { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); position: sticky; top: calc(var(--header-h) + 20px); }
.cfg__aside-title { font-weight: 600; color: var(--c-ink); font-size: 17px; margin-bottom: 14px; }
.cfg__aside-empty { color: var(--c-muted); font-size: 14.5px; }
.cfg__aside dl { margin: 0 0 16px; }
.cfg__aside dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); font-size: 14.5px; }
.cfg__aside dt { color: var(--c-muted); }
.cfg__aside dd { margin: 0; font-weight: 700; color: var(--c-ink); text-align: right; }
.cfg__aside-price { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--c-accent-soft); margin-bottom: 16px; }
.cfg__aside-price span { font-size: 13px; font-weight: 700; color: #7b1e3a; }
.cfg__aside-price b { font-size: 24px; color: var(--c-ink); letter-spacing: -.02em; }
.cfg__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--c-ink-2); }
.cfg__perks li { display: flex; gap: 10px; align-items: center; }
.cfg__perks .icon { color: var(--c-moss); }
@media (max-width: 999px) { .cfg__aside { display: none; } }

/* pantalla final */
.done { text-align: center; padding: 12px 0; animation: step-in .4s var(--ease); }
.done__check { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ok); color: #fff; box-shadow: 0 0 0 10px #e3f4ea; animation: pop .5s var(--ease); }
.done__check .icon { width: 38px; height: 38px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.done__ref { color: var(--c-muted); margin-bottom: 6px; }
.done__promise { font-size: 19px; color: var(--c-ink); font-weight: 600; }
.done__estimate { color: var(--c-muted); }
.timeline { list-style: none; counter-reset: t; margin: 28px auto; padding: 0; display: grid; gap: 12px; max-width: 560px; text-align: left; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--c-cream); }
.timeline li::before { content: counter(t); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; color: var(--c-ink); }
.timeline b { color: var(--c-ink); }
.timeline span { color: var(--c-muted); font-size: 14.5px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================================================ contenido */

.page-hero { background: var(--c-bg); padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { max-width: 20ch; }
.page-hero p { font-size: 17px; color: var(--c-muted); max-width: 60ch; }
.crumbs { font-size: 14px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: var(--c-muted); }
.meta { font-size: 14px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }

.prose { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); font-size: 17px; line-height: 1.75; color: var(--c-ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(23px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.022em; margin-top: 1.9em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose a { color: var(--c-ink); text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--c-accent); font-family: var(--f-serif); font-style: italic; font-size: 1.15em; color: var(--c-ink); }
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; }
.prose th { background: var(--c-cream); }
.post-cover { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.post-cover img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: -1px; }

.post-cta { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 80px); padding: 0 var(--gutter); }
.post-cta__box { background: var(--c-ink); color: rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; }
.post-cta__box h2 { color: #fff; font-size: 24px; margin: 0; }
.post-cta__box p { margin: 0; }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-bottom: clamp(56px, 8vw, 100px); }
.card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--c-line); text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card__img { aspect-ratio: 3/2; background: var(--c-cream) linear-gradient(135deg, var(--c-cream), var(--c-cream-2)); display: grid; place-items: center; color: var(--c-accent); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img .logo-mark { width: 56px; height: 56px; opacity: .5; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.card__body p { color: var(--c-muted); font-size: 15.5px; flex: 1; }
.card__meta { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 72px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 650; }
.pagination .current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.notfound h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.notfound p { color: var(--c-muted); font-size: 18px; }
.notfound .btn { margin: 6px; }

/* ======================================================= esquemas animados */

.diagram { margin: 0 0 2em; padding: clamp(14px, 3vw, 28px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2); border: 1px solid var(--c-line); }
.diagram figcaption { font-size: 14px; color: var(--c-muted); text-align: center; margin-top: 12px; line-height: 1.5; }
.dg { display: block; width: 100%; height: auto; font-family: var(--f-sans); }
.dg-label text { font-size: 12px; font-weight: 750; text-anchor: middle; fill: #fff; letter-spacing: .02em; }
.dg-pill--bad { fill: #cf6d4b; }
.dg-pill--good { fill: #2f8f4e; }
.dg-small { font-size: 11px; font-weight: 600; fill: #6e5e5a; letter-spacing: .04em; }
.dg-flow path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 8; }
.dg-flow--hot path { stroke: #ff7a45; }
.dg-flow--cold path { stroke: #3a8fb7; }
.dg-hose { fill: none; stroke: #2e101a; stroke-width: 6; stroke-linecap: round; }
.dg-hose--thin { stroke-width: 5; }
.dg-vapor path { fill: none; stroke: #a6cfd9; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.dg-waves path { fill: none; stroke: #c98f1c; stroke-width: 3; stroke-linecap: round; }
.dg-waves .dg-wave--weak { stroke: #a9c48a; stroke-width: 2; }

/* Animación: solo mientras el esquema se ve (is-playing). */
.diagram * { animation-play-state: paused !important; }
.diagram.is-playing * { animation-play-state: running !important; }
.dg-flow path { animation: flow 1.6s linear infinite; }
.dg-flow--slow path { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.dg-rise { transform-box: fill-box; transform-origin: 50% 100%; animation: rise 5s var(--ease) infinite; }
@keyframes rise { 0% { transform: scaleY(.02); } 70%, 100% { transform: scaleY(1); } }
.dg-particles circle { animation: fall .9s linear infinite; }
@keyframes fall { from { transform: translateY(0); opacity: 1; } to { transform: translateY(150px); opacity: 0; } }
.dg-drops path { transform-box: fill-box; animation: drip 2.6s ease-in infinite; opacity: 0; }
@keyframes drip { 0% { opacity: 0; transform: translateY(0) scale(.3); } 20% { opacity: 1; transform: translateY(0) scale(1); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(60px); } }
.dg-vapor path { animation: vapor 3s ease-in-out infinite; }
@keyframes vapor { 0% { transform: translateX(0); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateX(50px); opacity: 0; } }
.dg-mold circle { transform-box: fill-box; transform-origin: center; animation: grow 4s ease-in-out infinite; }
@keyframes grow { 0%, 20% { transform: scale(.2); opacity: 0; } 60%, 100% { transform: scale(1); opacity: 1; } }
.dg-ok { transform-box: fill-box; transform-origin: center; animation: okpop 3s var(--ease) infinite; }
@keyframes okpop { 0%, 15% { transform: scale(.4); opacity: 0; } 30%, 100% { transform: scale(1); opacity: 1; } }
.dg-waves path { transform-box: fill-box; transform-origin: 0 50%; animation: wave 1.5s ease-out infinite; opacity: 0; }
@keyframes wave { 0% { transform: translateX(0) scale(.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(34px) scale(1.2); opacity: 0; } }
.dg-sun { animation: spin 18s linear infinite; }
.dg-machine rect:nth-child(2) { animation: blinkbar 1.2s ease-in-out infinite; }
@keyframes blinkbar { 50% { opacity: .45; } }

/* Selector de esquemas de la portada */
.dg-tabs__list { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); overflow-x: auto; scrollbar-width: none; }
.dg-tabs__list::-webkit-scrollbar { display: none; }
.dg-tabs__list button { flex: 1 0 auto; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 650 14.5px var(--f-sans); color: var(--c-ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dg-tabs__list button[aria-selected="true"] { background: var(--c-ink); color: #fff; }
.dg-tabs__panel .diagram { margin: 0; animation: tab-in .35s var(--ease); }
/* Sin opacidad: si la animación no llega a correr, el esquema sigue visible. */
@keyframes tab-in { from { transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .dg-flow path, .dg-particles circle, .dg-drops path, .dg-vapor path, .dg-waves path { animation-duration: 4s; }
  .dg-sun, .dg-rise { animation: none; }
}

/* ======================================================= páginas de servicio */

.svc-hero { background: var(--c-bg); padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); overflow: hidden; border-bottom: 1px solid var(--c-line); }
.svc-hero__inner { display: grid; gap: 32px; align-items: center; }
.svc-hero h1 { max-width: 18ch; }
.svc-hero__lead { font-size: 18px; color: var(--c-muted); max-width: 56ch; margin-bottom: 26px; line-height: 1.55; }
.svc-hero .btn--ghost { background: #fff; }
.svc-hero__badge { display: none; }
@media (min-width: 900px) {
  .svc-hero__inner { grid-template-columns: 1fr 260px; }
  .svc-hero__badge { display: grid; place-items: center; width: 200px; aspect-ratio: 1; border-radius: 40px; background: var(--c-cream); color: var(--c-accent-deep); justify-self: end; }
  .svc-hero__badge .icon { width: 88px; height: 88px; stroke-width: 1.1; }
}

.svc { display: grid; gap: 32px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 1000px) { .svc { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } }
.prose--flush { padding: 0; margin: 0; max-width: 720px; }
.prose--flush > h2:first-child { margin-top: 0; }
.prose .not-prose ul { list-style: none; padding: 0; }
.svc__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.svc-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow-1); }
.svc-card__title { font-weight: 600; font-size: 17px; color: var(--c-ink); margin: 0; }
.svc-card__price { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--c-accent-soft); margin: 0; }
.svc-card__price span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-deep); }
.svc-card__price b { font-size: 26px; color: var(--c-ink); letter-spacing: -.02em; }
.svc-card__price small { font-size: 13px; color: var(--c-muted); }
.svc-card .btn { width: 100%; }
.svc-card__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.svc-card__links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--c-ink); }
.svc-card__links a:hover { background: var(--c-cream); }
.svc-card__links .icon { color: var(--c-accent); }

.fit { display: grid; gap: 14px; margin: 2em 0; }
@media (min-width: 700px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col { border-radius: var(--r-lg); padding: 22px; }
.fit__col h2 { font-size: 19px !important; margin: 0 0 12px !important; }
.fit__col ul { display: grid; gap: 10px; }
.fit__col li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; margin: 0 !important; }
.fit__col .icon { margin-top: 3px; stroke-width: 2.4; }
.fit__col--yes { background: #edf5ef; }
.fit__col--yes .icon { color: var(--c-ok); }
.fit__col--no { background: var(--c-cream); }
.fit__col--no .icon { color: var(--c-muted); }
.prose .faq__list { margin-top: 1em; }
.prose .faq__item summary { font-size: 17px; }
.prose .faq__item p { font-size: 16px; line-height: 1.65; }

.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--tight + .section--tight { padding-top: 0; }
.group-title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.zones__list a { color: inherit; text-decoration: none; }

/* ================================================================== chat */

.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--c-ink); color: #fff;
  font: 650 15px var(--f-sans); cursor: pointer; box-shadow: 0 12px 32px rgba(46, 16, 26, .28);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(46, 16, 26, .34); }
.chat-launcher .logo-mark { width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: #fff; }
.chat-launcher__dot { position: absolute; left: 34px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; border: 2px solid var(--c-ink); }
.chat-open .chat-launcher { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: #fbf8f4; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(46, 16, 26, .3); animation: chat-in .3s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--c-ink); color: #fff; }
.chat__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.chat__avatar .logo-mark { width: 28px; height: 28px; }
.chat__who { flex: 1; min-width: 0; line-height: 1.3; }
.chat__who b { display: block; font-size: 16px; }
.chat__who small { font-size: 12.5px; color: rgba(255, 255, 255, .72); display: flex; align-items: center; gap: 6px; }
.chat__live { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; display: inline-block; }
.chat__icon { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat__icon:hover { background: rgba(255, 255, 255, .2); }
.chat__icon .icon { width: 18px; height: 18px; }
.chat__msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat__msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: chat-in .25s var(--ease); }
.chat__msg--bot { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 6px; color: var(--c-text); align-self: flex-start; }
.chat__msg--me { background: var(--c-ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat__msg b { color: var(--c-ink); }
.chat__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9aca5; animation: blink 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; transform: translateY(-2px); } }
.chat__summary { list-style: none; margin: 10px 0 0; padding: 10px 12px; background: var(--c-cream); border-radius: 12px; display: grid; gap: 4px; font-size: 14px; }
.chat__summary span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
/* Las opciones son fichas: pastilla de color, título y línea de apoyo. */
.chat__cards { display: grid; gap: 8px; padding-top: 4px; }
.chat__card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; border-radius: 16px;
  border: 1px solid var(--c-line); background: #fff; color: inherit; text-decoration: none; cursor: pointer;
  text-align: left; box-shadow: 0 1px 2px rgba(46, 16, 26, .04);
  animation: card-in .35s var(--ease) both; animation-delay: var(--d, 0ms);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.chat__card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46, 16, 26, .1); border-color: #e4d6ca; }
.chat__card:active { transform: scale(.99); }
.chat__card--primary { border-color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-ink); }
.chat__cic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.chat__cic .icon { width: 21px; height: 21px; }
.chat__ctx { flex: 1; min-width: 0; }
.chat__ctx b { display: block; font-size: 14.5px; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.chat__ctx small { display: block; font-size: 12.5px; color: var(--c-muted); line-height: 1.35; }
.chat__cgo { flex: none; display: grid; place-items: center; color: var(--c-faint); }
.chat__cgo .icon { width: 16px; height: 16px; }
.chat__back { display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 0; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--c-muted); font: 600 12.5px var(--f-sans); cursor: pointer; }
.chat__back:hover { background: var(--c-cream); color: var(--c-ink); }
.chat__back .icon { width: 14px; height: 14px; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .chat__card { animation: none; } }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line); background: #fff; }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--c-line); font: 500 15px var(--f-sans); color: var(--c-ink); background: #fff; }
.chat__form input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.chat__send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }

@media (max-width: 760px) {
  .chat-launcher { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; padding: 6px; }
  .chat-launcher > span:last-child { display: none; }
  .chat-launcher__dot { left: auto; right: 2px; top: 2px; }
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; right: 0; bottom: 0; }
  .chat-open { overflow: hidden; }
}
@media print { .chat, .chat-launcher { display: none; } }

/* ============================================= ajustes compactos (v4) */

/* configurador */
.cfg__card { padding: clamp(18px, 3vw, 32px); border-radius: 20px; box-shadow: var(--shadow-2); }
.cfg__title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; }
.cfg__hint, .cfg__help { font-size: 14px; }
.cfg__count { font-size: 12px; letter-spacing: .06em; }
.cfg__dots li { font-size: 12.5px; }
.cfg__dots span { width: 22px; height: 22px; font-size: 11px; }
.cfg__cheer { font-size: 13px; }
.tile { padding: 14px; gap: 10px; border-radius: 14px; border-width: 1px; }
.tile__icon { width: 36px; height: 36px; border-radius: 10px; }
.tile__icon .icon { width: 19px; height: 19px; }
.tile__text b { font-size: 14.5px; font-weight: 550; }
.tile__text small { font-size: 12.5px; }
.tile__check { width: 20px; height: 20px; top: 10px; right: 10px; }
.tiles--kinds { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.chip { min-height: 44px; padding: 10px 14px; border-radius: 12px; border-width: 1px; font-size: 14px; font-weight: 500; }
.chip::before { width: 18px; height: 18px; }
.cfg__field legend, .cfg__field > label, .cfg__label { font-size: 14.5px; font-weight: 550; margin-bottom: 8px; }
.cfg__field input[type="text"], .cfg__field input[type="tel"], .cfg__field input[type="email"], .cfg__notes textarea { min-height: 46px; padding: 11px 14px; border-radius: 12px; border-width: 1px; font-size: 15px; }
.area__num input { font-size: 17px; padding: 9px 10px; width: 76px; }
.seg__opt { min-height: 38px; font-size: 13.5px; font-weight: 500; }
.consent { padding: 12px 14px; border-width: 1px; font-size: 13.5px; border-radius: 14px; }
.consent__box { width: 22px; height: 22px; border-radius: 7px; }
.estimate { padding: 18px 20px; border-radius: 16px; }
.estimate__value { font-size: clamp(26px, 3.6vw, 34px); font-weight: 500; }
.estimate__label { font-size: 12.5px; }
.live-est, .reco, .reco--empty { font-size: 14px; border-radius: 12px; }
.reco b { font-size: 16px; }
.cfg__back { height: 44px; font-size: 14px; border-width: 1px; }
.cfg__nav { margin-top: 20px; padding-top: 16px; }
.cfg__aside { padding: 20px; border-radius: 18px; box-shadow: none; border: 1px solid var(--c-line); }
.cfg__aside-title { font-size: 15px; }
.cfg__aside dl div { font-size: 13.5px; padding: 8px 0; }
.cfg__aside-price b { font-size: 20px; }
.cfg__perks { font-size: 13px; }
.done__check { width: 60px; height: 60px; }
.done__check .icon { width: 30px; height: 30px; }
.done__promise { font-size: 16px; }
.timeline li { padding: 12px 14px; font-size: 14px; }
@media (max-width: 640px) {
  .cfg__card { padding: 18px 14px 0; }
  .cfg__nav { margin: 18px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .cfg__back { width: 44px; }
  .tile { padding: 12px; }
}

/* páginas de servicio y zona */
.svc-hero { padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--c-line); }
.svc-hero__inner { display: grid; gap: 24px; align-items: center; }
.svc-hero h1 { font-size: clamp(28px, 3.6vw, 44px); max-width: 18ch; }
.svc-hero__lead { font-size: 16px; margin-bottom: 20px; max-width: 52ch; }
.svc-hero .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-hero__media { margin: 0; border-radius: 18px; overflow: hidden; background: var(--c-cream); }
.svc-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .svc-hero__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
@media (max-width: 899px) { .svc-hero__media img { aspect-ratio: 16 / 9; } }
.crumbs { font-size: 13px; margin-bottom: 14px; }
.svc { gap: 28px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.prose { font-size: 16px; line-height: 1.7; }
.prose--flush h2 { font-size: clamp(21px, 2.2vw, 26px); }
.svc-card { padding: 20px; gap: 12px; border-radius: 18px; box-shadow: none; }
.svc-card__title { font-size: 15px; }
.svc-card__price b { font-size: 22px; font-weight: 500; }
.svc-card .btn { height: 40px; }
.fit__col { padding: 18px; border-radius: 16px; }
.fit__col h2 { font-size: 16px !important; font-weight: 600; }
.fit__col li { font-size: 14.5px; }
.diagram { padding: clamp(12px, 2.4vw, 22px); border-radius: 18px; box-shadow: none; border: 1px solid var(--c-line); }
.diagram figcaption { font-size: 13px; }
.dg-tabs__list { box-shadow: none; border: 1px solid var(--c-line); }
.dg-tabs__list button { min-height: 34px; font-size: 13.5px; font-weight: 500; padding: 0 14px; }
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); }
.page-hero p { font-size: 16px; }
.services { gap: 10px; }
.service { padding: 20px; }
.service__icon { width: 36px; height: 36px; margin-bottom: 28px; }
.card__body { padding: 18px; }
.card__body h2 { font-size: 17px; }
.group-title { font-size: clamp(20px, 2vw, 24px); }

/* chat */
.chat-launcher { padding: 6px 14px 6px 6px; font-size: 13.5px; font-weight: 500; right: 16px; bottom: 16px; }
.chat-launcher .logo-mark { width: 28px; height: 28px; padding: 4px; }
.chat-launcher__dot { left: 28px; top: 6px; width: 9px; height: 9px; }
.chat__msg { font-size: 14px; }
.chat__who b { font-size: 15px; }

/* ================================================= calculadora (juego) */

.cfg__card { position: relative; max-width: 860px; margin: 0 auto; }
.cfg__top { margin-bottom: 22px; }
.rw { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rw__item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--c-cream); color: var(--c-faint); font-size: 12.5px; font-weight: 500; transition: background .3s, color .3s; }
.rw__ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(46, 16, 26, .05); }
.rw__ico .icon { width: 14px; height: 14px; }
.rw__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw__item.is-on { background: var(--c-accent-soft); color: var(--c-ink); }
.rw__item.is-on .rw__ico { background: var(--c-accent); color: var(--c-accent-ink); }
.rw__item.is-new { animation: rwpop .6s var(--ease); }
@keyframes rwpop { 0% { transform: scale(.9); } 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(142, 35, 64, .18); } 100% { transform: none; } }
@media (max-width: 640px) { .rw__txt { display: none; } .rw__item { justify-content: center; } }
.cfg__top .cfg__bar { height: 4px; }
.cfg-toast { position: absolute; left: 50%; top: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--c-ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 14px 40px rgba(46, 16, 26, .3); transform: translateX(-50%); animation: toastin .45s var(--ease); white-space: nowrap; }
.cfg-toast .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--c-accent); color: var(--c-accent-ink); }
.cfg-toast small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .06em; }
.cfg-toast.is-out { opacity: 0; transform: translate(-50%, -8px); transition: opacity .4s, transform .4s; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -12px) scale(.95); } }
.tiles--needs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile--need { align-items: flex-start; }
.meter { display: grid; gap: 2px; margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--c-ink); color: rgba(255, 255, 255, .7); }
.meter__label { font-size: 12.5px; }
.meter__value { font-size: 26px; font-weight: 500; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter__note { font-size: 12.5px; }
.meter.is-bump .meter__value { animation: bump .3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.04); color: #c98f1c; } }
.result { display: grid; gap: 10px; margin-bottom: 20px; }
.result__card { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 18px; background: var(--c-ink); color: rgba(255, 255, 255, .72); }
.result__card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(142, 35, 64, .45), transparent 65%); }
.result__label { position: relative; display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; }
.result__label .icon { width: 14px; height: 14px; color: #c98f1c; }
.result__price { position: relative; margin: 0 0 4px; font-size: clamp(30px, 4.4vw, 42px); font-weight: 500; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result__price small { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .6); margin-left: 6px; letter-spacing: 0; }
.result__note { position: relative; margin: 0; font-size: 13px; }
.result__reco { display: grid; gap: 3px; padding: 16px 18px; border-radius: 16px; background: #edf5ef; }
.result__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ok); }
.result__badge .icon { width: 14px; height: 14px; }
.result__reco b { font-size: 16px; color: var(--c-ink); font-weight: 550; }
.result__reco > span:last-child { font-size: 14px; color: var(--c-ink-2); }
@media (min-width: 760px) { .result { grid-template-columns: 1.2fr 1fr; } }
.cfg__card.is-done { max-width: 640px; }

/* ================================================================ contacto */

.contact__grid { display: grid; gap: 32px; align-items: start; }
.contact__intro h1 { font-size: clamp(30px, 4vw, 48px); }
.contact__intro > p { font-size: 16px; color: var(--c-muted); max-width: 42ch; }
.contact__ways { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.contact__ways a, .contact__static { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--c-cream); text-decoration: none; color: var(--c-ink); font-size: 14px; }
.contact__ways a:hover { background: var(--c-cream-2); }
.contact__ways b { display: block; font-size: 14px; font-weight: 550; }
.contact__ways span span { color: var(--c-muted); }
.contact__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--c-accent-deep); flex: none; }
.contact__ico .icon { width: 18px; height: 18px; }
.contact__form { display: grid; gap: 4px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: #fff; box-shadow: var(--shadow-2); }
.contact__form textarea { width: 100%; min-height: 130px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--c-line); font: 400 15px var(--f-sans); resize: vertical; }
.contact__form textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-cream-2); }
.contact__form .btn { margin-top: 12px; justify-self: start; }
.contact__form .done { padding: 24px 0; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

.flow--stack { grid-template-columns: 1fr !important; margin-top: 20px; gap: 8px; }
.flow--stack .flow__step { grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 16px; border-radius: 16px; }
.flow--stack .flow__n { grid-row: span 2; margin: 2px 0 0; }
.flow--stack .flow__step::after { display: none; }
.dg-tabs__list { background: var(--c-cream); border: 0 !important; }
.dg-tabs__list button[aria-selected="true"] { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-1); }


/* ================================================== blog: tarjeta de lectura */

:root { --f-display: var(--f-sans); }

/* entrada */
.story { padding: clamp(16px, 3vw, 32px) 0 0; background: linear-gradient(180deg, var(--c-accent-soft) 0, var(--c-bg) 420px); }
.story__wrap { max-width: 860px; }
.story__card { background: #fff; border-radius: 12px; padding: clamp(10px, 1.6vw, 16px); box-shadow: 0 1px 2px rgba(46, 16, 26, .04), 0 24px 60px rgba(46, 16, 26, .08); animation: story-in .6s var(--ease) both; }
@keyframes story-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.story__cover { position: relative; aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden; background: var(--c-cream); isolation: isolate; }
.story__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.story__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46, 16, 26, .25), transparent 35%, transparent 60%, rgba(46, 16, 26, .35)); }
.story__tag, .story__time { position: absolute; top: 14px; padding: 7px 13px; border-radius: 8px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); }
.story__tag { left: 14px; }
.story__time { right: 14px; }
.story__body { padding: clamp(18px, 3vw, 36px) clamp(8px, 3vw, 40px) clamp(12px, 2vw, 24px); }
.story__by { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
.story__title { font-family: var(--f-display); font-weight: 750; letter-spacing: -.025em; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 16px; }
.story__lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--c-muted); margin-bottom: 28px; }
.story__prose { padding: 0; max-width: none; font-size: 17px; line-height: 1.75; }
.story__prose h2, .story__prose h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; }
.story__prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
.story__prose a { color: var(--c-accent-deep); text-decoration-color: currentColor; }
.story__foot { display: grid; gap: 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.story .crumbs { margin-bottom: 14px; }

/* barra de acciones (cristal sobre la portada / sólida al final) */
.actions { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 8px; }
.actions--float { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: #fff; animation: actions-in .7s var(--ease) .25s both; }
@keyframes actions-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.actions--bar { justify-self: start; background: var(--c-cream); color: var(--c-ink); }
.actions__btn { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: inherit; font: 600 14px var(--f-sans); text-decoration: none; cursor: pointer; justify-content: center; transition: background .2s, transform .2s var(--ease); }
.actions__btn span:empty { display: none; }
.actions__btn .icon { width: 22px; height: 22px; transition: transform .3s var(--ease), fill .2s; }
.actions__btn:hover { background: rgba(255, 255, 255, .18); }
.actions--bar .actions__btn:hover { background: #fff; }
.actions__btn[aria-pressed="true"] .icon { fill: currentColor; }
.actions__btn[data-like][aria-pressed="true"] { color: #ff4d6d; }
.actions--float .actions__btn[data-like][aria-pressed="true"] { color: #ff8fa3; }
.actions__btn.is-pop .icon { animation: heart-pop .5s cubic-bezier(.34, 1.6, .5, 1); }
@keyframes heart-pop { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }
.actions__sep { width: 1px; height: 22px; background: currentColor; opacity: .3; margin: 0 4px; }

/* compartir */
.share__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--c-cream); color: var(--c-ink); font: 500 13.5px var(--f-sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.share__btn .icon { width: 16px; height: 16px; }
.share__btn:hover { transform: translateY(-2px); background: var(--c-ink); color: #fff; }
.share__btn--whatsapp:hover { background: var(--c-whatsapp); }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share.is-flash { animation: flash 1s var(--ease); border-radius: 12px; }
@keyframes flash { 30% { box-shadow: 0 0 0 8px var(--c-accent-soft); background: var(--c-accent-soft); } }
.blog-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 8px; background: var(--c-ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.blog-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* sigue leyendo */
.more { padding-top: clamp(40px, 5vw, 64px); }

/* ======================================================= mazo de tarjetas */

.deck { position: relative; }
.deck__stage { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 36px) / 4)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.deck__stage::-webkit-scrollbar { display: none; }
.deck__card { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: 170px 1fr; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--c-line); text-decoration: none; color: var(--c-text); transition: transform .3s var(--ease), box-shadow .3s, opacity .3s; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.deck__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.deck__media { position: relative; display: block; background: var(--c-cream); overflow: hidden; }
.deck__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); pointer-events: none; }
.deck__card:hover .deck__media img { transform: scale(1.05); }
.deck__icon { position: absolute; left: 14px; bottom: -18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--c-accent-deep); box-shadow: var(--shadow-2); }
.deck__icon .icon { width: 20px; height: 20px; }
.deck__body { display: flex; flex-direction: column; gap: 6px; padding: 26px 18px 18px; }
.deck__body small { font-size: 12px; font-weight: 600; color: var(--c-accent-deep); letter-spacing: .02em; }
.deck__body b { font-family: var(--f-display); font-weight: 750; letter-spacing: -.025em; font-size: 20px; line-height: 1.2; color: var(--c-ink); }
.deck__text { font-size: 14px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deck__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--c-ink); }
.deck__cta .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.deck__card:hover .deck__cta .icon { transform: translateX(3px); }
.deck__nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.deck__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--c-line); color: var(--c-ink); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.deck__btn:hover { background: var(--c-ink); color: #fff; }
.deck__btn:active { transform: scale(.92); }
.deck__btn .icon { width: 17px; height: 17px; }
.deck__count { font: 600 12.5px var(--f-mono); color: var(--c-muted); min-width: 46px; text-align: center; }
.deck__hint { display: none; }

/* móvil: pila de cartas que se lanzan con el dedo */
.deck.is-stack .deck__stage { display: block; position: relative; height: 430px; overflow: visible; padding: 0; margin: 0 6px 22px; }
.deck.is-stack .deck__card { position: absolute; inset: 0; transform: translateY(calc(var(--pos) * 12px)) scale(calc(1 - var(--pos) * .05)); z-index: calc(10 - var(--pos)); transition: transform .35s var(--ease), opacity .3s; box-shadow: 0 18px 40px rgba(46, 16, 26, .12), inset 0 0 0 1px var(--c-line); transform-origin: 50% 100%; }
.deck.is-stack .deck__card[data-pos="0"] { cursor: grab; }
.deck.is-stack .deck__card[data-pos="0"]:active { cursor: grabbing; }
.deck.is-stack .deck__card[data-pos="far"], .deck.is-stack .deck__card[data-pos="3"] { opacity: 0; }
.deck.is-stack .deck__card:hover { box-shadow: 0 18px 40px rgba(46, 16, 26, .12), inset 0 0 0 1px var(--c-line); }
.deck.is-stack .deck__card { grid-template-rows: 200px 1fr; }
.deck.is-stack .deck__card.is-yes { box-shadow: 0 18px 40px rgba(46, 16, 26, .12), inset 0 0 0 3px var(--c-accent); }
.deck.is-stack .deck__card.is-no { box-shadow: 0 18px 40px rgba(46, 16, 26, .12), inset 0 0 0 3px var(--c-line); }
.deck.is-stack .deck__nav { justify-content: center; }
.deck.is-stack .deck__hint { display: block; margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--c-faint); }
@media (max-width: 899px) { .deck:not(.is-stack) .deck__stage { grid-auto-columns: 78%; } }

/* ============================================================ comentarios */

.comments { padding: clamp(40px, 5vw, 72px) 0; background: var(--c-cream); }
.comments__wrap { max-width: 860px; }
.comments__head h2 { margin-bottom: 6px; }
.comments__head p { color: var(--c-muted); }
.comments__list, .comments__list .children { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.comments__list .children { margin: 10px 0 0 clamp(16px, 5vw, 48px); }
.comment__card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); }
.comment__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-deep); font-weight: 650; }
.comment--staff .comment__avatar { background: var(--c-accent); color: var(--c-accent-ink); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; color: var(--c-muted); }
.comment__meta b { color: var(--c-ink); font-size: 14.5px; font-weight: 600; }
.comment__badge { padding: 2px 8px; border-radius: 8px; background: var(--c-ink); color: #fff; font-size: 11px; font-weight: 600; }
.comment__pending { margin: 0 0 6px; font-size: 13px; color: var(--c-accent-deep); }
.comment__text p { margin: 0 0 .6em; font-size: 15px; }
.comment__reply { margin: 0; }
.comment__reply a { font-size: 13px; font-weight: 600; color: var(--c-ink); text-decoration: none; }
.comment-respond { margin-top: 24px; padding: clamp(18px, 3vw, 28px); border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.comments__form-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--c-ink); }
.comments__form-title small a { font-size: 13px; margin-left: 8px; }
.comments__note { margin: 0 0 16px; font-size: 13.5px; color: var(--c-muted); }
.comment-form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.comment-form > p { margin: 0; }
.comment-form-comment, .comments__note, .comment-form-cookies-consent, .form-submit, .comment-form .hp, .logged-in-as { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 550; color: var(--c-ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-bg); font: 400 15px var(--f-sans); color: var(--c-text); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--c-muted); font-size: 13px; margin: 0; }
.logged-in-as { font-size: 13px; color: var(--c-muted); }
@media (max-width: 600px) { .comment-form { grid-template-columns: 1fr; } }

/* ============================================================ blog: revista */

.page-hero--blog { padding-bottom: 20px; }
.topics { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.topics::-webkit-scrollbar { display: none; }
.topics__chip { flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13.5px; font-weight: 500; color: var(--c-ink); text-decoration: none; transition: background .2s, color .2s; }
.topics__chip:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.topics__chip.is-on { background: var(--c-ink); color: #fff; box-shadow: none; }
.mag { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(48px, 6vw, 88px); }
.lead-story { display: grid; border-radius: 14px; overflow: hidden; background: var(--c-accent-soft); text-decoration: none; margin-bottom: 18px; transition: box-shadow .3s; }
.lead-story:hover { box-shadow: var(--shadow-2); }
.lead-story__img { display: block; min-height: 240px; overflow: hidden; }
.lead-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.lead-story:hover .lead-story__img img { transform: scale(1.04); }
.lead-story__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 4vw, 44px); }
.lead-story__body small { font: 600 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.lead-story__body b { font-family: var(--f-display); font-weight: 750; letter-spacing: -.025em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; color: var(--c-ink); }
.lead-story__body > span:not([class]) { color: var(--c-muted); font-size: 16px; }
.lead-story__cta { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: auto; height: 40px; padding: 0 18px; border-radius: 8px; background: var(--c-ink); color: #fff; font-size: 14px; font-weight: 500; }
.lead-story__cta .icon { width: 15px; height: 15px; }
@media (min-width: 860px) { .lead-story { grid-template-columns: 1.15fr 1fr; min-height: 380px; } }
.mag__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.mag-card { display: grid; grid-template-rows: auto 1fr; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--c-line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.mag-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-cream); }
.mag-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mag-card:hover .mag-card__img img { transform: scale(1.05); }
.mag-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.mag-card__body small { font-size: 12px; font-weight: 600; color: var(--c-accent-deep); }
.mag-card__body b { font-family: var(--f-display); font-weight: 750; letter-spacing: -.025em; font-size: 21px; line-height: 1.2; color: var(--c-ink); }
.mag-card__text { font-size: 14px; color: var(--c-muted); }
.mag-card__meta { display: flex; gap: 12px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--c-faint); }
.mag-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mag-card__meta .icon { width: 14px; height: 14px; }
.mag__grid > .mag-card:nth-child(7n + 1) { grid-column: span 2; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
.mag__grid > .mag-card:nth-child(7n + 1) .mag-card__img { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) { .mag__grid > .mag-card:nth-child(7n + 1) { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; } .mag__grid > .mag-card:nth-child(7n + 1) .mag-card__img { aspect-ratio: 3 / 2; } }
.mag__empty { padding: 40px 0 80px; }
@media (max-width: 640px) { .story__cover { aspect-ratio: 4 / 3; } }



/* =========================================================================
   Capa Logroño: maquetación (va después de los componentes y manda).
   ========================================================================= */

/* ---------------------------------------------------------- tipografía */

body { background: var(--c-bg); }
h1, h2 { font-family: var(--f-serif); font-weight: 700; font-variation-settings: normal; letter-spacing: -.03em; }
h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.06; }
h1 em, h2 em { font-style: normal; font-weight: 700; color: var(--c-accent); background: linear-gradient(transparent 72%, rgba(242, 194, 101, .55) 72%, rgba(242, 194, 101, .55) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; border-radius: 0; background: none; font: 700 12px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--c-gold); box-shadow: none; }
.eyebrow--light { color: var(--c-gold); background: none; }
.link-arrow, .pill-link { height: 40px; padding: 0 8px 0 16px; border-radius: 10px; background: #fff; box-shadow: var(--ring); font-weight: 650; }
.link-arrow .icon, .pill-link .icon { border-radius: 7px; background: var(--c-accent); }
.link-arrow:hover .icon, .pill-link:hover .icon { background: var(--c-ink); }

/* -------------------------------------------------------------- botones */

.btn { border-radius: 10px; font-weight: 650; }
.btn > .icon:last-child:not(:first-child) { border-radius: 7px; }
.btn--primary, .btn--accent { --b-bg: var(--c-accent); --b-fg: #fff; --b-dot: rgba(255, 255, 255, .18); box-shadow: 0 8px 20px rgba(142, 35, 64, .24); }
.btn--primary:hover, .btn--accent:hover { --b-bg: var(--c-accent-deep); filter: none; box-shadow: 0 10px 26px rgba(142, 35, 64, .32); }
.btn--ink, .btn--dark { --b-bg: var(--c-ink); --b-dot: var(--c-gold); --b-dot-fg: var(--c-ink); }
.btn--ghost, .btn--light { --b-bg: #fff; --b-fg: var(--c-ink); --b-ring: var(--c-line); --b-dot: var(--c-accent); }
.btn--gold { --b-bg: var(--c-gold); --b-fg: var(--c-ink); --b-dot: var(--c-ink); --b-dot-fg: var(--c-gold); }
.btn--gold:hover { --b-bg: #f6cf80; }
.btn--line { --b-bg: transparent; --b-fg: #fff; --b-ring: rgba(255, 255, 255, .35); }
.btn--line:hover { --b-ring: #fff; }

/* Iconos: cuadrado suave con el color de su familia. */
.ico-tile, .mm-ico, .sol-list__ico, .quick__ico, .drawer__tile-ico, .drawer__ico, .service__icon, .place-card__ico, .deck__icon, .mm-help__ico, .tile__icon, .sign__ico, .climate__ico {
  display: inline-grid; place-items: center; flex: none;
  background: var(--t-bg, #f9ecef); color: var(--t-fg, #8e2340);
  box-shadow: inset 0 0 0 1px rgba(46, 16, 26, .05);
}
:is(.ico-tile, .mm-ico, .sol-list__ico, .quick__ico, .drawer__tile-ico, .drawer__ico, .service__icon, .place-card__ico, .deck__icon, .mm-help__ico, .tile__icon, .sign__ico, .climate__ico) .icon :is(path, rect, circle) { fill: currentColor; fill-opacity: .12; }

/* ------------------------------------------------------ barra superior */

.topbar { background: var(--c-ink); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar__inner > span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 14px; height: 14px; color: var(--c-gold); }
.topbar__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--c-gold); font-weight: 650; text-decoration: none; }
.topbar__cta .icon { transition: transform .2s var(--ease); }
.topbar__cta:hover .icon { transform: translateX(3px); }
@media (max-width: 760px) { .topbar__inner .topbar__hours { display: none; } .topbar__inner { gap: 12px; font-size: 12.5px; white-space: nowrap; } }
@media (max-width: 360px) { .topbar__inner .topbar__where { display: none; } .topbar__cta { margin: 0 auto; } }

/* -------------------------------------------------------------- cabecera */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .92); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(46, 16, 26, .07); }
.nav-open .site-header, .mega-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-bg); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand .logo-mark { width: 40px; height: 40px; }
.brand__name { display: grid; line-height: 1; font-family: var(--f-serif); white-space: nowrap; }
.brand__name span { font: 600 11px/1.1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.brand__name b { font-size: 21px; font-weight: 750; letter-spacing: -.03em; color: var(--c-accent); }
.brand--light .brand__name span { color: rgba(255, 255, 255, .6); }
.brand--light .brand__name b { color: #fff; }
.nav { flex: 1; display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu__link, .menu__trigger { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 600 14.5px var(--f-sans); color: var(--c-ink); text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.menu__link::after, .menu__trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu__link:hover, .menu__trigger:hover, .menu__trigger[aria-expanded="true"] { color: var(--c-accent); }
.menu__link:hover::after, .menu__trigger:hover::after, .menu__trigger[aria-expanded="true"]::after { transform: none; }
.menu__chev { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.menu__trigger[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 10px; box-shadow: var(--ring); background: #fff; font-size: 14px; font-weight: 650; color: var(--c-ink); text-decoration: none; }
.header-phone:hover { box-shadow: inset 0 0 0 1px var(--c-accent); }
.header-phone .icon { width: 14px; height: 14px; padding: 7px; box-sizing: content-box; border-radius: 7px; background: var(--c-accent-soft); color: var(--c-accent); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: var(--c-ink); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle__bars i:nth-child(2) { width: 12px; background: var(--c-gold); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__bar { gap: 10px; }
  .brand { margin-right: auto; }
  :root { --header-h: 64px; }
}
@media (max-width: 560px) {
  .header-phone { padding: 0 6px; }
  .header-phone span { display: none; }
  .header-phone .icon { width: 16px; height: 16px; padding: 7px; }
  .site-header__actions .btn--sm { display: none; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .brand__name b { font-size: 19px; }
}

/* Megamenú */
.menu__item--mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  max-width: 1136px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(46, 16, 26, .16), var(--ring);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .25s var(--ease), visibility 0s .25s;
}
.menu__trigger[aria-expanded="true"] + .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .3s var(--ease); }
.mega__main { padding: 18px 22px 16px; min-width: 0; display: flex; flex-direction: column; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px; }
.mega__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__col { min-width: 0; }
.mega__label { margin: 12px 0 6px 8px; font: 700 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.mm-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--c-ink); transition: background .15s; }
.mm-item:hover { background: var(--t-bg, var(--c-cream)); }
.mm-ico { width: 30px; height: 30px; border-radius: 8px; }
.mm-ico .icon { width: 16px; height: 16px; }
.mm-txt b { font-size: 14px; font-weight: 600; }
.mm-place { display: grid; padding: 7px 8px; border-radius: 10px; color: var(--c-ink); text-decoration: none; font-weight: 650; font-size: 14.5px; }
.mm-place small { font-weight: 500; font-size: 12px; color: var(--c-muted); }
.mm-place:hover { background: var(--c-cream); color: var(--c-accent); }
.mega__all { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 14px 8px 0; font-size: 13.5px; font-weight: 700; color: var(--c-accent); text-decoration: none; }
.mega__all .icon { width: 14px; height: 14px; }
.mega__side { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--c-ink); color: #fff; }
.mega__side .mega__label { margin: 4px 0 6px 4px; color: var(--c-gold); }
.mm-top { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: #fff; transition: background .15s; }
.mm-top:hover { background: rgba(255, 255, 255, .08); }
.mm-top img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.mm-top span { display: grid; min-width: 0; }
.mm-top b { font-size: 13.5px; font-weight: 650; }
.mm-top small { font-size: 12px; color: rgba(255, 255, 255, .62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-help { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px; border-radius: 12px; background: var(--c-gold); text-decoration: none; color: var(--c-ink); }
.mm-help__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--c-ink); color: var(--c-gold); }
.mm-help__ico .icon { width: 16px; height: 16px; }
.mm-help span:last-child { display: grid; }
.mm-help b { font-size: 13.5px; }
.mm-help small { font-size: 12px; color: var(--c-ink-2); }
.mega--places { grid-template-columns: 1fr; max-width: 900px; }

/* ------------------------------------------------------- menú del móvil */

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(46, 16, 26, .4); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--c-bg); transform: translateY(24px); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
@media (min-width: 560px) { .drawer__panel { left: auto; width: 440px; transform: translateX(40px); box-shadow: -30px 0 60px rgba(46, 16, 26, .15); } }
.drawer__head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--c-line); }
.drawer__head .brand { margin: 0; }
.drawer__head .brand .logo-mark { width: 32px; height: 32px; }
.drawer__head .brand__name b { font-size: 17px; }
.drawer__back { position: absolute; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 8px; border: 0; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); font: 650 14px var(--f-sans); cursor: pointer; }
.drawer__back .icon { width: 16px; height: 16px; }
.drawer__close { position: absolute; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--c-ink); color: #fff; cursor: pointer; }
.drawer__close .icon { width: 18px; height: 18px; }
.drawer__views { position: relative; flex: 1; overflow: hidden; }
.drawer__view { position: absolute; inset: 0; overflow-y: auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s .4s; }
.drawer__view.is-left { transform: translateX(-24%); }
.drawer__view.is-current { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.drawer__view.is-anim :is(.drawer__feature, .drawer__label, .drawer__tile, .drawer__hero, li, .drawer__cta, .drawer__more) { animation: drawer-in .45s var(--ease) both; animation-delay: calc(50ms + var(--i, 0) * 30ms); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(12px); } }
.drawer__feature { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--c-accent); color: #fff; text-decoration: none; box-shadow: 0 12px 26px rgba(142, 35, 64, .28); }
.drawer__feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-gold); color: var(--c-ink); flex: none; }
.drawer__feature-ico .icon { width: 20px; height: 20px; }
.drawer__feature > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.drawer__feature b { font-size: 16px; font-weight: 700; }
.drawer__feature em { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--c-gold); color: var(--c-ink); vertical-align: 2px; }
.drawer__feature small { font-size: 13px; opacity: .85; }
.drawer__feature > .icon { width: 18px; height: 18px; }
.drawer__label { margin: 22px 4px 10px; font: 700 11.5px var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.drawer__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__tile { display: grid; align-content: start; justify-items: start; gap: 2px; padding: 14px; min-height: 118px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--ring); border-top: 3px solid var(--t-fg); text-align: left; cursor: pointer; font-family: var(--f-sans); }
.drawer__tile:active { transform: scale(.98); }
.drawer__tile .drawer__tile-ico { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 10px; }
.drawer__tile-ico .icon { width: 20px; height: 20px; }
.drawer__tile b { font-size: 15.5px; font-weight: 700; color: var(--c-ink); }
.drawer__tile small { font-size: 12.5px; color: var(--c-muted); line-height: 1.35; }
.drawer__links { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: #fff; box-shadow: var(--ring); overflow: hidden; }
.drawer__links li + li { border-top: 1px solid var(--c-line); }
.drawer__links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--c-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.drawer__links .icon { width: 18px; height: 18px; color: var(--c-accent); }
.drawer__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.drawer__cta .btn { height: 48px; padding: 0 12px; }
.drawer__hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--t-bg); border-left: 4px solid var(--t-fg); }
.drawer__hero .drawer__tile-ico { width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.drawer__hero span:last-child { display: grid; }
.drawer__hero b { font-family: var(--f-serif); font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); }
.drawer__hero small { font-size: 13.5px; color: var(--c-muted); }
.drawer__list { list-style: none; margin: 12px 0 0; padding: 0; }
.drawer__list li + li { border-top: 1px solid var(--c-line); }
.drawer__list a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--c-ink); text-decoration: none; }
.drawer__ico { width: 34px; height: 34px; border-radius: 9px; }
.drawer__ico .icon { width: 17px; height: 17px; }
.drawer__txt { display: grid; flex: 1; min-width: 0; }
.drawer__txt b { font-size: 15px; font-weight: 650; }
.drawer__txt small { font-size: 12.5px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__chev { width: 16px; height: 16px; color: var(--c-faint); transform: rotate(-90deg); }
.drawer__more { display: inline-flex; align-items: center; gap: 6px; margin: 16px 4px 0; color: var(--c-accent); font-weight: 700; text-decoration: none; }
.drawer__more .icon { width: 15px; height: 15px; }
.nav-open { overflow: hidden; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; isolation: isolate; background: var(--c-bg); padding-bottom: clamp(28px, 4vw, 48px); }
.hero__grid { display: grid; gap: 28px; align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: 24px; }
.hero__grid > * { min-width: 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 650; color: var(--c-ink-2); }
.hero__kicker .logo-mark { width: 26px; height: 26px; }
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--c-muted); max-width: 48ch; margin-bottom: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--c-ink-2); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .icon { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 6px; background: var(--c-gold); color: var(--c-ink); stroke-width: 2.6; }
.hero__visual { position: relative; }
.hero__photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 30px 60px rgba(46, 16, 26, .16); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.climate { position: relative; margin: -56px 14px 0; padding: 14px 16px 16px; border-radius: 14px; background: var(--c-ink); color: #fff; box-shadow: 0 20px 44px rgba(46, 16, 26, .28); animation: rise-in .7s var(--ease) .15s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.climate__title { margin: 0 0 10px; font: 700 11.5px var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); }
.climate ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.climate li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.climate__ico { width: 34px; height: 34px; border-radius: 9px; }
.climate__ico .icon { width: 18px; height: 18px; }
.climate li span:last-child { display: grid; min-width: 0; }
.climate b { font-family: var(--f-serif); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.climate small { font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .66); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .climate { position: absolute; left: -36px; bottom: -30px; width: min(470px, 92%); margin: 0; }
  .hero__visual { margin-bottom: 30px; }
}
@media (max-width: 560px) {
  .hero .btn--lg { flex: 1 1 100%; }
  .climate ul { grid-template-columns: 1fr; gap: 8px; }
  .climate { margin: -40px 8px 0; }
}
.quick { margin-top: clamp(28px, 4vw, 44px); padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--ring), var(--shadow-1); }
.quick__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px 4px; font-family: var(--f-serif); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); }
.quick__title .icon { width: 18px; height: 18px; color: var(--c-accent); }
.quick__title span { font: 500 13px var(--f-sans); letter-spacing: 0; color: var(--c-muted); }
.quick__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick__opt { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 10px 12px; border-radius: 12px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease), background .2s; }
.quick__opt:hover { background: var(--t-bg); box-shadow: inset 0 0 0 1.5px var(--t-fg); transform: translateY(-2px); }
.quick__ico { width: 40px; height: 40px; border-radius: 10px; }
.quick__ico .icon { width: 20px; height: 20px; }
.quick__label { display: grid; min-width: 0; }
.quick__label b { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.quick__label small { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
@media (max-width: 900px) { .quick__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .quick__label small { display: none; } .quick__opt { min-height: 56px; } }

/* ------------------------------------------------------------- secciones */

.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft, .section--cream, .section--stone { background: var(--c-cream); }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--tight + .section--tight { padding-top: 0; }
.section__head { max-width: 660px; margin-bottom: clamp(26px, 3vw, 40px); }
.section__head p:not(.eyebrow) { font-size: 16px; color: var(--c-muted); margin: 0; }
.section__head h2 { margin-bottom: 10px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 660px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* soluciones en mosaico */
.bento { display: grid; gap: 12px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; } .bento__card--big { grid-row: span 2; } }
.bento__card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 250px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: var(--c-ink); }
.bento__card--big { min-height: 380px; }
.bento__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46, 16, 26, 0) 30%, rgba(46, 16, 26, .82) 100%); }
.bento__card:hover img { transform: scale(1.04); }
.bento__body { display: grid; gap: 4px; padding: 20px 72px 20px 22px; }
.bento__body small { justify-self: start; padding: 4px 9px; border-radius: 6px; background: var(--c-gold); color: var(--c-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bento__body b { font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.bento__body span { font-size: 14.5px; color: rgba(255, 255, 255, .82); max-width: 40ch; }
.bento__go { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--c-accent); transition: transform .25s var(--ease), background .2s, color .2s; }
.bento__card:hover .bento__go { background: var(--c-gold); color: var(--c-ink); transform: translateX(3px); }
.bento__go .icon { width: 18px; height: 18px; }

.sol-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sol-list a { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px 0 8px; border-radius: 12px; background: #fff; box-shadow: var(--ring); font-size: 14.5px; font-weight: 650; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.sol-list a:hover { box-shadow: inset 0 0 0 1.5px var(--t-fg); transform: translateY(-2px); }
.sol-list__ico { width: 40px; height: 40px; border-radius: 10px; }
.sol-list__ico .icon { width: 18px; height: 18px; }
.sol-list__arrow { width: 15px; height: 15px; margin-left: auto; color: var(--c-faint); transition: transform .2s var(--ease), color .2s; }
.sol-list a:hover .sol-list__arrow { transform: translateX(3px); color: var(--t-fg); }

/* síntomas */
.signs { display: grid; gap: 28px; }
.signs__head p:not(.eyebrow) { color: var(--c-muted); }
.signs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sign { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--ring); color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.sign:hover { box-shadow: inset 4px 0 0 var(--t-fg), var(--ring), 0 10px 24px rgba(46, 16, 26, .07); transform: translateX(4px); }
.sign__n { font: 800 13px var(--f-sans); color: var(--t-fg); width: 22px; flex: none; }
.sign__ico { width: 42px; height: 42px; border-radius: 10px; }
.sign__ico .icon { width: 20px; height: 20px; }
.sign__txt { display: grid; flex: 1; min-width: 0; }
.sign__txt b { font-family: var(--f-serif); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sign__txt span { font-size: 14px; color: var(--c-muted); }
.sign__go { width: 18px; height: 18px; color: var(--c-faint); flex: none; transition: color .2s; }
.sign:hover .sign__go { color: var(--t-fg); }
@media (min-width: 900px) { .signs { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .signs__head { position: sticky; top: calc(var(--header-h) + 24px); } }

/* así trabajamos: banda granate oscura */
.band { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 100px) 0; background: var(--c-ink); color: rgba(255, 255, 255, .78); overflow: hidden; }
.band::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(142, 35, 64, .55), transparent 70%); }
.band h2 { color: #fff; }
.band h2 em { color: var(--c-gold); background: none; }
.band__grid { display: grid; gap: 36px; align-items: center; }
.band__grid > * { min-width: 0; }
@media (min-width: 960px) { .band__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 14px 0 14px 58px; border-top: 1px solid rgba(255, 255, 255, .12); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--c-gold); color: var(--c-ink); font: 800 16px var(--f-serif); }
.steps b { color: #fff; font-size: 16px; font-weight: 700; }
.steps span { font-size: 14px; color: rgba(255, 255, 255, .66); }

/* esquemas */
.diagram { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(46, 16, 26, .08), var(--ring); }
.dg-pill--bad { fill: #be345a; }
.dg-pill--good { fill: #4f7a1f; }
.dg-label text { font-family: var(--f-sans); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.dg-small { fill: var(--c-muted); }
.dg-flow path { stroke-dasharray: 2 9; stroke-width: 3.5; }
.dg-waves path { stroke: #8e2340; }
.dg-tabs__list { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 0 !important; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
.dg-tabs__list button { flex: 1 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font: 650 14px var(--f-sans); color: rgba(255, 255, 255, .7); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dg-tabs__list button:hover { color: #fff; }
.dg-tabs__list button[aria-selected="true"] { background: var(--c-gold); color: var(--c-ink); box-shadow: none; }
.dg-tabs__panel .diagram { animation: wipe-in .5s var(--ease); }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
.band .diagram figcaption { color: var(--c-muted); }

/* municipios: el Ebro */
.rio { margin: 0; padding: clamp(10px, 2vw, 18px); border-radius: 16px; background: #fff; box-shadow: var(--ring); }
.rio__svg { display: block; width: 100%; height: auto; font-family: var(--f-sans); }
.rio__bands rect { fill: var(--c-bg); }
.rio__bands text { font-size: 12px; font-weight: 800; letter-spacing: .16em; fill: var(--c-faint); }
.rio__valleys path { fill: none; stroke: #b9d3e6; stroke-width: 3; stroke-linecap: round; }
.rio__ebro { fill: none; stroke: #9cc1dc; stroke-width: 12; stroke-linecap: round; }
.rio__flow { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; opacity: .85; animation: flow 2.4s linear infinite; }
.rio__name { font-size: 14px; font-style: italic; font-weight: 700; fill: #5d8fb5; }
.rio__dots circle { fill: var(--c-faint); }
.rio__dots text { font-size: 11.5px; fill: var(--c-faint); }
.rio__pin circle { fill: var(--c-accent); stroke: #fff; stroke-width: 3; transition: r .2s, fill .2s; }
.rio__pin text { font-size: 14px; font-weight: 750; fill: var(--c-ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.rio__pin--main text { font-size: 17px; }
.rio__pin--base circle { fill: var(--c-gold); stroke: var(--c-ink); }
.rio__pin:hover circle, .rio__pin:focus circle { fill: var(--c-ink); }
.rio__pin:hover text, .rio__pin:focus text { fill: var(--c-accent); text-decoration: underline; }
.rio figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; padding: 0 6px; font-size: 13px; color: var(--c-muted); }
.rio__legend { display: inline-flex; align-items: center; gap: 6px; }
.rio__legend-base { width: 12px; height: 12px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 2px var(--c-ink); }
@media (prefers-reduced-motion: reduce) { .rio__flow { animation: none; } }
/* En el móvil el esquema conserva su tamaño y se desliza de lado. */
@media (max-width: 760px) {
  .rio { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .rio__svg { min-width: 760px; }
  .rio figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter) - 24px); }
}
.places__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places__list a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 6px; border-radius: 10px; background: #fff; box-shadow: var(--ring); font-size: 14px; font-weight: 650; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.places__list a:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); transform: translateY(-2px); }
.places__list .icon { width: 14px; height: 14px; padding: 7px; box-sizing: content-box; border-radius: 7px; background: #eef4e4; color: #4f7a1f; }

/* materiales */
.mats { display: grid; gap: 28px; align-items: start; }
.mats__head p:not(.eyebrow) { color: var(--c-muted); }
.mats__photo { display: none; margin: 22px 0 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ring); }
.mats__photo img { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .mats { grid-template-columns: .75fr 1.25fr; gap: 56px; } .mats__photo { display: block; max-width: 300px; } }
.compare { overflow-x: auto; border-radius: 16px; background: #fff; box-shadow: var(--ring), var(--shadow-1); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--c-line); }
.compare thead th { font: 700 11px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); background: var(--c-bg); }
.compare tbody th { font-weight: 700; color: var(--c-ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover { background: #fdf9f5; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 16px; height: 16px; border-radius: 4px; background: var(--c-cream-2); }
.dots i.on { background: var(--c-accent); }
.dots i.on:nth-child(2) { background: #a8304f; }
.dots i.on:nth-child(3) { background: var(--c-gold); }
.compare__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--c-accent); text-decoration: none; white-space: nowrap; }
.compare__link .icon { width: 14px; height: 14px; }
.compare__note { margin: 0; padding: 12px 18px; font-size: 12.5px; color: var(--c-faint); border-top: 1px solid var(--c-line); }

/* guías en portada */
.posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ring); text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--shadow-2); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-cream); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; border-top: 3px solid var(--c-gold); }
.post-card__body small { font: 700 11px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.post-card__body b { font-family: var(--f-serif); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--c-ink); }

/* preguntas */
.faq { display: grid; gap: 28px; }
.faq__head p { font-size: 15px; color: var(--c-muted); }
.faq__head a { color: var(--c-accent); font-weight: 700; }
.faq__list { display: grid; gap: 0; border: 0; border-top: 1px solid var(--c-line); }
.faq__item { border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; background: none; box-shadow: none; }
.faq__item[open] { background: none; box-shadow: none; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-family: var(--f-serif); font-weight: 700; font-size: 18px; letter-spacing: -.015em; color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-accent-soft); color: var(--c-accent); flex: none; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq__icon .icon { width: 14px; height: 14px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-accent); color: #fff; }
.faq__item p { padding: 0 4px 20px; margin: 0; color: var(--c-muted); font-size: 15px; max-width: 70ch; }
@media (min-width: 900px) { .faq { grid-template-columns: .75fr 1.25fr; gap: 64px; } }
.faq-page { display: grid; gap: 44px; max-width: 860px; }
.faq-page__block h2 { font-size: clamp(22px, 2.4vw, 30px); }

/* ------------------------------------------------ páginas interiores */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); background: var(--c-cream); border-bottom: 0; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--c-accent), var(--c-gold)); }
.page-hero h1 { max-width: 20ch; }
.page-hero p:not(.eyebrow) { max-width: 62ch; font-size: 16.5px; color: var(--c-muted); margin: 0; }
.page-hero p a { color: var(--c-accent); font-weight: 700; }
.crumbs { font: 600 12px var(--f-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 16px; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); }

.svc-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0; background: var(--c-cream); border-bottom: 0; }
.svc-hero__inner { display: grid; gap: 28px; align-items: center; }
.svc-hero__inner > * { min-width: 0; }
.svc-hero h1 { font-size: clamp(30px, 4vw, 52px); max-width: 18ch; }
.svc-hero__lead { font-size: 16.5px; color: var(--c-muted); max-width: 54ch; }
.svc-hero .hero__cta { margin-top: 20px; }
.svc-hero__media, .svc-hero figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(46, 16, 26, .14); }
.svc-hero__media img, .svc-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 960px) { .svc-hero__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.svc-card { border-radius: 16px; background: #fff; box-shadow: var(--ring), var(--shadow-2); border-top: 4px solid var(--c-accent); }
.svc-card__price { background: var(--c-accent-soft); border-radius: 12px; }
.svc-card__price span { color: var(--c-accent); }
.svc-card__price b { color: var(--c-ink); font-family: var(--f-serif); font-weight: 700; }
.svc-card__links a:hover { background: var(--c-cream); }
.svc-card__links .icon, .card__img, .reco--empty .icon, .cfg__cheer .icon { color: var(--c-accent); }
.fit__col { border-radius: 14px; }
.fit__col--yes { background: #eef4e4; }
.fit__col--yes .icon { color: #4f7a1f; }
.fit__col--no { background: #f9ecef; }
.fit__col--no .icon { color: var(--c-accent); }
.prose { color: var(--c-ink-2); }
.prose h2, .prose h3 { font-family: var(--f-serif); font-weight: 700; letter-spacing: -.02em; }
.prose a { color: var(--c-accent); text-decoration-color: rgba(142, 35, 64, .35); text-decoration-thickness: 2px; }
.prose blockquote { border-left-color: var(--c-gold); font-family: var(--f-serif); font-style: normal; }
.prose th { background: var(--c-cream); }

.services { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: var(--ring); border-top: 3px solid var(--t-fg, var(--c-accent)); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--ring), 0 16px 32px rgba(46, 16, 26, .08); }
.service__icon { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 10px; }
.service__icon .icon { width: 20px; height: 20px; }
.service h3 { margin: 0; font-family: var(--f-serif); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.service p { margin: 0; font-size: 14px; color: var(--c-muted); }
.service__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--t-fg, var(--c-accent)); }
.service__cta .icon { width: 14px; height: 14px; }
.group-title { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 18px; }
.zones__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zones__list li { font-size: 14px; color: var(--c-muted); display: flex; align-items: center; }
.zones__list a { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border-radius: 10px; background: #fff; box-shadow: var(--ring); color: var(--c-ink); font-weight: 650; text-decoration: none; }
.zones__list a:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); }

.place-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.place-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: var(--ring); border-left: 4px solid #4f7a1f; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.place-card:hover { transform: translateY(-3px); box-shadow: var(--ring), 0 16px 32px rgba(46, 16, 26, .08); }
.place-card__ico { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 10px; --t-bg: #eef4e4; --t-fg: #4f7a1f; }
.place-card__ico .icon { width: 18px; height: 18px; }
.place-card b { font-family: var(--f-serif); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); }
.place-card small { font: 700 11px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: #4f7a1f; }
.place-card > span:last-child { margin-top: 6px; font-size: 14px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.place-grid__more { margin: 24px 0 0; color: var(--c-muted); }
.place-grid__more a { color: var(--c-accent); font-weight: 700; }

.about { display: grid; gap: 32px; align-items: start; }
.about > * { min-width: 0; }
.about__photo { margin: 0; border-radius: 18px; overflow: hidden; }
.about__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 64px; } .about__photo { position: sticky; top: calc(var(--header-h) + 24px); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stats > div { display: grid; gap: 4px; padding: 22px; border-radius: 14px; background: #fff; box-shadow: var(--ring); border-top: 3px solid var(--c-gold); }
.stats b { font-family: var(--f-serif); font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.04em; color: var(--c-accent); line-height: 1; }
.stats span { font-size: 14px; color: var(--c-muted); }

.contact__ways a, .contact__static { background: #fff; box-shadow: var(--ring); border-radius: 12px; }
.contact__ways a:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); background: #fff; }
.contact__ico { background: var(--c-accent-soft); color: var(--c-accent); border-radius: 9px; }

/* aparición en cascada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------- pie */

.site-footer { margin-top: 0; padding: clamp(40px, 5vw, 64px) 0 calc(24px + env(safe-area-inset-bottom)); background: var(--c-ink); color: rgba(255, 255, 255, .66); font-size: 14px; }
.footer-cta { display: grid; gap: 18px; align-items: center; padding: clamp(22px, 3vw, 32px); margin-bottom: clamp(36px, 4vw, 56px); border-radius: 16px; background: var(--c-accent); color: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.footer-cta__title { margin: 0 0 4px; font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em; color: #fff; line-height: 1.15; }
.footer-cta__title em { font-style: normal; color: var(--c-gold); }
.footer-cta__text { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .footer-cta { grid-template-columns: 1fr auto; } }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: start; }
.site-footer__brand p { margin: 14px 0 10px; max-width: 38ch; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__contact a, .site-footer__contact span { display: inline-flex; align-items: flex-start; gap: 9px; color: rgba(255, 255, 255, .85) !important; text-decoration: none; }
.site-footer__contact .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--c-gold); }
.site-footer__title { margin: 0 0 12px; font: 700 11.5px var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .btn { color: var(--b-fg); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }
.site-footer__bottom nav { display: flex; gap: 16px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }

/* firma del estudio */
.credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.credit__by { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6) !important; text-decoration: none !important; }
.credit__by .adsd-logo { height: 17px; width: auto; color: #fff; transition: color .2s, transform .3s var(--ease); }
.credit__by:hover .adsd-logo { color: var(--c-gold); transform: translateY(-1px); }
.credit__legal { margin: 0; }
@media (max-width: 620px) { .credit { flex-direction: column; align-items: flex-start; gap: 10px; } .credit__by { flex-wrap: wrap; gap: 6px 10px; } }

/* dock de contacto en móvil */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .dock { display: flex; align-items: center; gap: 6px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; padding: 6px; background: rgba(46, 16, 26, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; box-shadow: 0 14px 34px rgba(46, 16, 26, .3); transition: transform .4s var(--ease), opacity .25s; }
  .dock.is-hidden { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
  .dock__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--c-gold); background: rgba(255, 255, 255, .08); }
  .dock__btn .icon { width: 19px; height: 19px; }
  .dock__main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-radius: 10px; background: var(--c-gold); color: var(--c-ink); font-weight: 750; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
  .dock__main span { overflow: hidden; text-overflow: ellipsis; }
  .dock__main .icon { width: 14px; height: 14px; padding: 8px; box-sizing: content-box; border-radius: 8px; background: var(--c-ink); color: var(--c-gold); }
  .nav-open .dock, .chat-open .dock { display: none; }
  .chat-launcher { display: inline-flex !important; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 16px; }
  .chat-launcher > span:last-child { display: none !important; }
  .chat-launcher svg { width: 30px; height: 30px; }
  .dock [href="#chat"] { display: none; }
  html.calc-activa .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.6); }
  .chat-launcher { transition: opacity .25s, transform .3s; }
  .btn { max-width: 100%; }
}

/* ------------------------------------------ configurador en clave Logroño */

.cfg__card { border-radius: 18px; box-shadow: 0 24px 60px rgba(46, 16, 26, .08), var(--ring); }
.cfg__title { font-family: var(--f-serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }
.cfg__count { font-weight: 700; letter-spacing: .12em; color: var(--c-accent); }
.rw { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rw__item { height: 100%; min-height: 48px; padding: 8px 10px; border-radius: 10px; background: var(--c-cream); line-height: 1.2; }
.rw__txt { overflow: visible; text-overflow: clip; white-space: normal; }
.rw__ico { background: #fff; }
.rw__item.is-on { background: var(--c-accent-soft); }
.rw__item.is-on .rw__ico { background: var(--c-accent); color: #fff; }
@media (max-width: 640px) { .rw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfg__bar { background: var(--c-cream-2); border-radius: 4px; }
.cfg__bar span { background: linear-gradient(90deg, var(--c-accent), var(--c-gold)); border-radius: 4px; }
.tiles--needs, .tiles--kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
@media (max-width: 720px) { .tiles--needs, .tiles--kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { height: 100%; padding: 16px; gap: 12px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--ring); }
.tile:hover { box-shadow: inset 0 0 0 1.5px var(--t-fg, var(--c-accent)); transform: translateY(-2px); }
.tile__icon { width: 42px; height: 42px; border-radius: 10px; }
.tiles > .tile:nth-child(6n + 1) { --t-bg: #f9ecef; --t-bg2: #f1d3da; --t-fg: #8e2340; }
.tiles > .tile:nth-child(6n + 2) { --t-bg: #fbece6; --t-bg2: #f4d4c7; --t-fg: #b0482a; }
.tiles > .tile:nth-child(6n + 3) { --t-bg: #e9f1f7; --t-bg2: #d2e2ee; --t-fg: #2f6690; }
.tiles > .tile:nth-child(6n + 4) { --t-bg: #fbf2e2; --t-bg2: #f3e0bd; --t-fg: #a26a12; }
.tiles > .tile:nth-child(6n + 5) { --t-bg: #eef4e4; --t-bg2: #dce8c7; --t-fg: #4f7a1f; }
.tiles > .tile:nth-child(6n + 6) { --t-bg: #f1efeb; --t-bg2: #e2ddd4; --t-fg: #6b6256; }
.tile.is-selected { background: var(--t-bg); box-shadow: inset 0 0 0 2px var(--t-fg); }
.tile.is-selected .tile__icon { background: var(--t-fg); color: #fff; }
.tile__check { background: var(--t-fg, var(--c-accent)); color: #fff; }
.chip { border-radius: 10px; border: 0; box-shadow: var(--ring); }
.chip.is-selected { background: var(--c-accent-soft); box-shadow: inset 0 0 0 2px var(--c-accent); }
.chip.is-selected::before { background-color: var(--c-accent); border-color: var(--c-accent); }
.seg__opt { border-radius: 8px; }
.result__card { background: linear-gradient(150deg, #2e101a 0%, #5c1a2e 70%, #8e2340 100%); border-radius: 16px; }
.cfg__nav .btn { min-width: 150px; }

/* chat */
.chat { border-radius: 16px; background: var(--c-bg); }
.chat__head { background: var(--c-ink); color: #fff; }
.chat__msg--me { background: var(--c-accent); color: #fff; }
.chat-launcher { border-radius: 14px; background: var(--c-ink); }
.chat-launcher__dot { border-color: var(--c-ink); }
.chat__send { background: var(--c-accent); }
.chat__card { border-radius: 12px; }
.chat__cic { border-radius: 10px; }

/* ------------------------------------------------ blog en clave Logroño */

.story { background: linear-gradient(180deg, var(--c-cream) 0, var(--c-bg) 420px); }
.story__card { border-radius: 18px; box-shadow: 0 30px 70px rgba(46, 16, 26, .1), var(--ring); }
.story__cover { border-radius: 12px; }
.story__tag { background: var(--c-gold); color: var(--c-ink); border-color: transparent; font-family: var(--f-sans); }
.story__time { background: rgba(46, 16, 26, .55); font-family: var(--f-sans); }
.story__title, .lead-story__body b, .mag-card__body b, .deck__body b { font-family: var(--f-serif); font-weight: 700; letter-spacing: -.025em; }
.story__prose a { color: var(--c-accent); text-decoration-color: rgba(142, 35, 64, .4); text-decoration-thickness: 2px; }
.actions { border-radius: 12px; }
.actions__btn { border-radius: 9px; }
.actions--bar { background: var(--c-cream); color: var(--c-ink); }
.share__btn { border-radius: 9px; border: 0; background: #fff; box-shadow: var(--ring); }
.share__btn:hover { background: var(--c-ink); color: #fff; box-shadow: none; }
.blog-toast { border-radius: 10px; background: var(--c-ink); color: #fff; }
.deck__card { border-radius: 14px; border: 0; box-shadow: var(--ring); }
.deck__card:hover { box-shadow: var(--ring), var(--shadow-2); }
.deck__icon { border-radius: 10px; background: #fff; color: var(--c-accent); box-shadow: var(--shadow-2); }
.deck__body small { font: 700 11px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.deck__btn { border-radius: 10px; background: #fff; color: var(--c-ink); box-shadow: var(--ring); }
.deck__btn:hover { background: var(--c-ink); color: #fff; }
.deck.is-stack .deck__card, .deck.is-stack .deck__card:hover { box-shadow: 0 18px 40px rgba(46, 16, 26, .12), var(--ring); }
.deck.is-stack .deck__card.is-yes { box-shadow: 0 18px 40px rgba(46, 16, 26, .12), inset 0 0 0 3px var(--c-accent); }
.comments { background: var(--c-cream); }
.comment__card { border-radius: 14px; border: 0; box-shadow: var(--ring); }
.comment__avatar { border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); }
.comment--staff .comment__avatar { background: var(--c-accent); color: #fff; }
.comment-respond { border-radius: 16px; border: 0; box-shadow: var(--ring), var(--shadow-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { border-radius: 10px; }
.topics__chip { border-radius: 9px; box-shadow: var(--ring); font-weight: 650; }
.topics__chip.is-on { background: var(--c-accent); color: #fff; }
.lead-story { border-radius: 18px; background: #fff; box-shadow: var(--ring); }
.lead-story__body small { color: var(--c-accent); font-family: var(--f-sans); }
.lead-story__cta { border-radius: 10px; background: var(--c-accent); color: #fff; }
.mag-card { border-radius: 14px; border: 0; box-shadow: var(--ring); }
.mag-card:hover { box-shadow: var(--ring), var(--shadow-2); }
.mag-card__body small { font: 700 11px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.post-cta { max-width: none; margin: 0; padding: 0 var(--gutter); }
.post-cta__box { max-width: 860px; margin: clamp(32px, 5vw, 56px) auto 0; padding: clamp(22px, 4vw, 40px); border-radius: 16px; background: var(--c-ink); color: rgba(255, 255, 255, .8); }
.post-cta__box h2 { color: #fff; margin-bottom: 8px; }
.post-cta__box p { color: rgba(255, 255, 255, .75); }

/* ===================================================== calculadora · v3
   Fondo claro, color solo en los iconos y en el aislante, y la casa en corte
   a la izquierda (arriba en móvil). El precio no aparece hasta el final. */

:root {
  /* un color por familia en los iconos, como en las fichas de servicios */
  --calc-blue: #3f83e8; --calc-orange: #f97a3d; --calc-teal: #12a594;
  --calc-pink: #be345a; --calc-green: #1f9d5c; --calc-violet: #8e2340; --calc-grey: #6f6a8d; --calc-wa: #1fa855; --calc-indigo: #5b5bd6; --calc-amber: #d9962a;

  /* piezas de la casa: muro blanco, tejado de teja riojana, madera del garaje */
  --lg-wall: #e9e6df; --lg-wall-d: #dcd8cf; --lg-wall-l: #f4f2ec; --lg-wall-x: #fbfaf7;
  --lg-roof: #a8452b; --lg-roof-d: #933b24; --lg-roof-l: #b9533a; --lg-roof-x: #c9664b;
  --lg-tan: #d59a53; --lg-tan-d: #c88c46; --lg-tan-l: #dca55e; --lg-tan-x: #e6b573;
  --lg-vest: #a7d94a; --lg-blue: #2b7fd4; --lg-blue-d: #1f5fa8; --lg-blue-l: #4d9ae8;
  --lg-legs: #2b4c9b; --lg-red: #d8392b; --lg-red-d: #c22f22; --lg-red-l: #e9584a;

  --sc-hot: #f97a3d; --sc-ruido: #be345a; --sc-sun: #f5b524;
}

.calc { display: grid; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-2); }
@media (min-width: 980px) { .calc { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }

.calc__scene { position: relative; background: linear-gradient(180deg, #fbf8f4, #f1ebe3); height: clamp(220px, 34vh, 320px); }
@media (min-width: 980px) { .calc__scene { height: auto; min-height: 580px; } }
.calc__stage { width: 100%; height: 100%; display: block; }
/* El pie va sobre el césped del dibujo: necesita su propia bandeja. */
.calc__caption {
  position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; text-align: center;
  font-size: 12.5px; line-height: 1.4; color: var(--c-muted);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 7px 12px; box-shadow: var(--shadow-1);
}
.calc__caption b { color: var(--c-ink); font-weight: 600; }

.calc__panel { display: flex; flex-direction: column; min-width: 0; padding: 18px clamp(16px, 3vw, 30px) 20px; }
.calc__track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; }
.calc__track::-webkit-scrollbar { display: none; }
.calc__rw { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 11px 5px 6px; border-radius: 999px; background: var(--c-cream); font-size: 11.5px; font-weight: 600; color: var(--c-faint); white-space: nowrap; transition: .25s; }
.calc__rw i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--c-line); color: #fff; }
.calc__rw i .icon { width: 11px; height: 11px; stroke-width: 3; }
.calc__rw.is-on { background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.calc__rw.is-on i { background: var(--c-ok); }

.calc__steps { flex: 1 1 auto; min-width: 0; }
.calc__step { animation: step-in .32s var(--ease); }
.calc__eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-faint); font-weight: 700; margin: 0 0 8px; }
.calc__title { font-size: clamp(23px, 2.6vw, 31px); line-height: 1.1; margin: 0 0 6px; outline: none; }
.calc__hint { margin: 0 0 16px; color: var(--c-muted); font-size: 14px; }

.calc__tiles { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (max-width: 400px) { .calc__tiles { grid-template-columns: 1fr; } }
.calc__tile { display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; padding: 10px 12px 10px 10px; border-radius: 15px; border: 1.5px solid var(--c-line); background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.calc__tile:hover { border-color: #e4d6ca; box-shadow: var(--shadow-1); }
.calc__tile:active { transform: scale(.985); }
.calc__tile.is-on { border-color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-ink); }
.calc__ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.calc__ic .icon { width: 20px; height: 20px; }
.calc__tx b { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink); line-height: 1.25; }
.calc__tx small { display: block; font-size: 11.5px; color: var(--c-muted); line-height: 1.35; }

.calc__field { margin: 16px 0 0; }
.calc__field label, .calc__lab { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-ink); margin: 0 0 7px; }
.calc__field input[type="text"], .calc__field input[type="tel"], .calc__field input[type="email"] {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font: 400 16px var(--f-sans);
}
.calc__field input:focus { outline: none; border-color: var(--c-ink); }
.calc__field input.is-invalid { border-color: var(--c-error); }
.calc__help { font-size: 12px; color: var(--c-muted); margin: 8px 0 0; }
.calc__area { display: flex; align-items: center; gap: 14px; }
.calc__area input[type="range"] { flex: 1; accent-color: var(--c-ink); }
.calc__m2 { font-size: 13px; color: var(--c-muted); white-space: nowrap; }
.calc__m2 b { font-size: 17px; color: var(--c-ink); font-variant-numeric: tabular-nums; }

.calc__seg { display: flex; gap: 4px; padding: 4px; background: var(--c-cream); border-radius: 999px; }
.calc__opt { flex: 1; min-height: 40px; padding: 8px 6px; border: 0; border-radius: 999px; background: transparent; font: 600 13px var(--f-sans); color: var(--c-muted); cursor: pointer; transition: .16s; }
.calc__opt.is-on { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-1); }

.calc__price { border-radius: 18px; padding: 18px; background: var(--c-cream); margin: 0 0 10px; }
.calc__price em { font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-faint); font-weight: 700; }
.calc__price b { display: block; font-family: var(--f-serif); font-weight: 420; font-size: clamp(32px, 6vw, 44px); color: var(--c-ink); line-height: 1.05; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.calc__price small { color: var(--c-muted); font-size: 12.5px; }
.calc__note { display: flex; gap: 11px; align-items: flex-start; border-radius: 15px; padding: 12px 14px; border: 1.5px solid var(--c-line); margin: 0 0 10px; }
.calc__note b { display: block; color: var(--c-ink); font-size: 13.5px; }
.calc__note span span { font-size: 12.5px; color: var(--c-muted); }
.calc__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.calc__consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 12.5px; color: var(--c-muted); cursor: pointer; line-height: 1.45; }
.calc__consent input { margin: 1px 0 0; accent-color: var(--c-ink); width: 18px; height: 18px; flex: none; }
.calc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.calc__error:not(:empty) { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: #fdecea; color: var(--c-error); font-weight: 600; font-size: 13.5px; }

.calc__nav { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.calc__back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--c-muted); font: 600 13px var(--f-sans); cursor: pointer; padding: 10px 4px; }
.calc__back .icon { width: 16px; height: 16px; }
.calc__cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 15px 18px; border-radius: 999px; color: #fff; background: var(--c-ink); font: 700 15px var(--f-sans); transition: background .16s, transform .16s; }
.calc__cta:hover { background: var(--c-ink-2); }
.calc__cta:active { transform: translateY(1px); }
.calc__cta:disabled { opacity: .5; }
.calc__cta .icon { width: 17px; height: 17px; }

.calc__fallback { border-radius: 16px; background: var(--c-cream); padding: 20px; }
.calc__fallback .btn { margin: 6px 8px 0 0; }

/* el dibujo, en movimiento */
#aa-crew, #aa-bubble-at { transition: transform .6s cubic-bezier(.3,.9,.3,1); }
#aa-roofs > g, #aa-hoses > path, #aa-fills > g { display: none; }
.calc__stage[data-home="piso"] #aa-roof-piso,
.calc__stage[data-home="casa"] #aa-roof-casa,
.calc__stage[data-home="chalet"] #aa-roof-chalet { display: block; }
.calc__stage[data-zone="fachada"] #aa-hose-fachada, .calc__stage[data-zone="fachada"] #aa-fill-fachada,
.calc__stage[data-zone="ruido"] #aa-hose-ruido, .calc__stage[data-zone="ruido"] #aa-fill-ruido,
.calc__stage[data-zone="tejado"] #aa-hose-tejado, .calc__stage[data-zone="tejado"] #aa-fill-tejado,
.calc__stage[data-zone="suelo"] #aa-hose-suelo, .calc__stage[data-zone="suelo"] #aa-fill-suelo { display: block; }
/* Si elige varias zonas, se abren todas. */
.calc__stage[data-zones~="fachada"] #aa-hose-fachada, .calc__stage[data-zones~="fachada"] #aa-fill-fachada,
.calc__stage[data-zones~="ruido"] #aa-hose-ruido, .calc__stage[data-zones~="ruido"] #aa-fill-ruido,
.calc__stage[data-zones~="tejado"] #aa-hose-tejado, .calc__stage[data-zones~="tejado"] #aa-fill-tejado,
.calc__stage[data-zones~="suelo"] #aa-hose-suelo, .calc__stage[data-zones~="suelo"] #aa-fill-suelo { display: block; }
.calc-band { transform-box: fill-box; transition: transform 1s cubic-bezier(.3,.9,.3,1); }
.calc-band--up { transform-origin: bottom; transform: scaleY(var(--fill, 0)); }
.calc-band--right { transform-origin: left; transform: scaleX(var(--fill, 0)); }
.calc-flow { opacity: 0; transition: opacity .5s; }
.calc__stage[data-frio="1"] .calc-flow--frio, .calc__stage[data-calor="1"] .calc-flow--calor,
.calc__stage[data-humedad="1"] .calc-flow--humedad, .calc__stage[data-ruido="1"] .calc-flow--ruido { opacity: calc(1 - var(--fill, 0) * .85); }
#aa-sun { opacity: 0; transition: opacity .6s; }
.calc__stage[data-calor="1"] #aa-sun { opacity: 1; }
.calc-dash { stroke-dasharray: 6 8; animation: calc-dash 1.6s linear infinite; }
@keyframes calc-dash { to { stroke-dashoffset: -28; } }
.calc-drop { animation: calc-drop 3s ease-in infinite; }
.calc-drop:nth-of-type(2) { animation-delay: 1s; }
.calc-drop:nth-of-type(3) { animation-delay: 2s; }
@keyframes calc-drop { 0%,60% { transform: translateY(0); opacity: 0 } 65% { opacity: .95 } 100% { transform: translateY(30px); opacity: 0 } }
.calc-ring { transform-box: fill-box; transform-origin: center; animation: calc-ring 2.4s ease-out infinite; }
.calc-ring:nth-of-type(2) { animation-delay: .8s; }
.calc-ring:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes calc-ring { 0% { opacity: .75; transform: scale(.3) } 100% { opacity: 0; transform: scale(1.6) } }
#aa-arm { transform-origin: -14px -74px; animation: calc-arm 1.4s ease-in-out infinite alternate; }
@keyframes calc-arm { to { transform: rotate(-6deg) } }
.calc-bubble { opacity: 0; transform: translateY(8px); transition: .45s; }
.calc-bubble.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .calc-band, #aa-crew, #aa-bubble-at, .calc-bubble, .calc__step { transition: none !important; animation: none !important; }
  .calc-dash, .calc-drop, .calc-ring, #aa-arm { animation: none !important; }
}

/* /contacto/ ya no tiene formulario: invita a la calculadora. */
.contact__calc { background: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-2); align-self: start; }
.contact__calc h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.contact__calc p { color: var(--c-muted); }
.contact__calc .btn { margin-top: 8px; }
.contact__note { font-size: 13px; margin: 14px 0 0; }

/* el asistente, con la misma piel que las fichas de la calculadora */
.chat { background: #fbf8f4; }
.chat__avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.chat__msgs { gap: 12px; padding: 18px 14px 20px; }
.chat__msg--bot { box-shadow: 0 1px 2px rgba(46, 16, 26, .05); border-radius: 18px 18px 18px 6px; }
.chat__msg--me { border-radius: 18px 18px 6px 18px; }
.chat__form { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
.chat__send { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(46, 16, 26, .18); }
.chat__send:hover { filter: brightness(1.06); }

/* «El siguiente paso» y la firma del estudio al pie de cada entrada. */
.next { margin: clamp(28px, 4vw, 44px) 0 0; padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: var(--c-cream); }
.next h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 10px; }
.next p { margin: 0; color: var(--c-text); }
.next a { color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.story__wm { display: flex; justify-content: center; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--c-line); }
.story__wm a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-faint); text-decoration: none; }
.story__wm .adsd-logo { height: 15px; width: auto; color: var(--c-ink); opacity: .38; transition: opacity .2s; }
.story__wm a:hover .adsd-logo { opacity: .75; }

/* ===================================================== calculadora · móvil
   En el móvil la casa se queda fija arriba (bajo la cabecera) en cuanto se
   llega a ella, y «Atrás / Continuar» fijo abajo, a un pulgar: la pregunta
   queda entre las dos y no hay que subir y bajar. Mientras tanto, el dock de
   contacto se aparta (el presupuesto ya es el contacto). */
@media (max-width: 979px) {
  .calc { overflow: clip; }                       /* «clip» no rompe el sticky; «hidden» sí */
  .calc__scene {
    position: sticky; top: var(--header-h); z-index: 6;
    height: min(31vh, 250px); min-height: 180px;
    border-bottom: 1px solid var(--c-line); transition: box-shadow .3s;
  }
  .calc.is-fija .calc__scene { box-shadow: 0 14px 26px -18px rgba(46, 16, 26, .45); }
  .calc__caption { font-size: 12.5px; }
  .calc__panel { padding: 14px 16px 0; }
  .calc__track { margin: 0 0 12px; }
  .calc__eyebrow { margin: 0 0 4px; }
  .calc__title { font-size: 22px; margin: 0 0 4px; }
  .calc__hint { font-size: 13px; margin: 0 0 12px; }
  /* Fichas como iconos de app: tres por fila, solo el título. Lo que explica
     cada opción lo cuenta la franja bajo la casa. */
  .calc__tiles { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .calc__tile { position: relative; flex-direction: column; justify-content: flex-start; text-align: center; gap: 6px; padding: 10px 4px 9px; border-radius: 16px; min-height: 86px; }
  .calc__ic { width: 38px; height: 38px; border-radius: 12px; }
  .calc__ic .icon { width: 19px; height: 19px; }
  .calc__tx b { font-size: 12px; line-height: 1.2; }
  .calc__tx small { display: none; }
  .calc__tile.is-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
  /* El texto va en una franja bajo la casa, no encima. */
  .calc__scene { display: flex; flex-direction: column; height: min(34vh, 270px); }
  .calc__stage { flex: 1 1 auto; min-height: 0; height: auto; }
  .calc__caption { position: static; flex: none; margin: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; border-top: 1px solid var(--c-line); padding: 6px 12px; font-size: 12px; line-height: 1.35; min-height: 2.7em; display: block; text-align: center; }
  .calc__field { margin: 12px 0 0; }
  .calc__nav {
    position: sticky; bottom: 0; z-index: 6;
    margin: 14px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--c-line);
    -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  }
  .calc__cta { padding: 13px 16px; font-size: 14.5px; }
  html.calc-activa .dock { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
}
@media (max-width: 330px) { .calc__tiles { grid-template-columns: 1fr 1fr; } }
