/* =========================================================================
   Aislamientos Térmicos AT · 2.0
   Blanco y lila con acentos violeta, colores pastel por familia de servicio,
   titulares Fraunces, texto Plus Jakarta Sans y etiquetas en Geist Mono.
   Botones en píldora con la flecha dentro de un círculo.
   ========================================================================= */

@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --c-bg: #ffffff;
  --c-ink: #17133a;
  --c-ink-2: #2c2566;
  --c-text: #25213f;
  --c-muted: #625d7d;
  --c-faint: #9a96b0;
  --c-line: #ebe8f3;
  --c-cream: #f7f5ff;
  --c-cream-2: #efebfd;
  --c-accent: #7c5cff;
  --c-accent-deep: #5b3fe0;
  --c-accent-ink: #ffffff;
  --c-accent-soft: #efeaff;
  --c-pink: #e0559f;
  --c-grad: linear-gradient(120deg, #7c5cff 0%, #a95cf0 55%, #e0559f 100%);
  --c-hot: #ff7a45;
  --c-cold: #3a8fb7;
  --c-moss: #5b3fe0;
  --c-ok: #1f9d5c;
  --c-error: #c62f4a;
  --c-whatsapp: #1fa855;

  --f-sans: "Jakarta", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(23, 19, 58, .05);
  --shadow-2: 0 1px 2px rgba(23, 19, 58, .04), 0 16px 40px rgba(23, 19, 58, .08);
  --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: 68px;
}

/* Familias de color: cada tipo de servicio tiene el suyo. */
.tone-violet { --t-bg: #f2edff; --t-bg2: #e4daff; --t-fg: #6a4bf0; }
.tone-peach  { --t-bg: #fff2e8; --t-bg2: #ffe0c7; --t-fg: #dd6a26; }
.tone-mint   { --t-bg: #e9f8f0; --t-bg2: #cfefde; --t-fg: #1f9258; }
.tone-sky    { --t-bg: #eaf2ff; --t-bg2: #d5e4ff; --t-fg: #2d6be0; }
.tone-pink   { --t-bg: #fdecf5; --t-bg2: #f9d4e7; --t-fg: #cf3a83; }
.tone-lemon  { --t-bg: #fff8dd; --t-bg2: #fcecae; --t-fg: #a87a06; }

/* ---------------------------------------------------------------- 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; }
@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(124, 92, 255, .28); }
.btn--primary:hover, .btn--accent:hover { filter: saturate(1.15) brightness(1.04); box-shadow: 0 10px 28px rgba(124, 92, 255, .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: #262058; }
.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, #f2edff), var(--t-bg2, #e4daff));
  color: var(--t-fg, #6a4bf0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(23, 19, 58, .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), #a95cf0); 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: #cfc8e8; 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: #f7f5ff; 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 #cfc8e8; background: #fff center/14px no-repeat; transition: .15s; }
.chip[role="radio"]::before { border-radius: 50%; }
.chip:hover { border-color: #cfc8e8; }
.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(124, 92, 255, .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: #a95cf0; }
.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(23, 19, 58, .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 #cfc8e8; 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: #5b3fe0; }
.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: #625d7d; 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: #17133a; 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: #a95cf0; 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(23, 19, 58, .28);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(23, 19, 58, .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: #f8f7fc; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(23, 19, 58, .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: #aaa4c4; 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(23, 19, 58, .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(23, 19, 58, .1); border-color: #ddd7f0; }
.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(23, 19, 58, .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(124, 92, 255, .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(23, 19, 58, .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: #a95cf0; } }
.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(124, 92, 255, .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: #a95cf0; }
.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(23, 19, 58, .04), 0 24px 60px rgba(23, 19, 58, .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(23, 19, 58, .25), transparent 35%, transparent 60%, rgba(23, 19, 58, .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(23, 19, 58, .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(23, 19, 58, .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(23, 19, 58, .12), inset 0 0 0 3px var(--c-accent); }
.deck.is-stack .deck__card.is-no { box-shadow: 0 18px 40px rgba(23, 19, 58, .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 AT 2.0: maquetación (va después de los componentes y manda).
   ========================================================================= */

/* -------------------------------------------------------- barra de aviso */

.announce { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; padding: 6px var(--gutter); background: var(--c-cream-2); color: var(--c-ink); font-size: 13px; font-weight: 500; text-decoration: none; text-align: center; }
.announce > span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--c-grad); vertical-align: 1px; }
.announce__cta { display: inline-flex; align-items: center; gap: 5px; color: var(--c-accent-deep); font-weight: 650; }
.announce__cta .icon { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.announce:hover .announce__cta .icon { transform: translateX(3px); }
@media (max-width: 640px) { .announce__cta { display: none; } }

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

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); } }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(23, 19, 58, .06); }
.nav-open .site-header, .mega-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand .logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(124, 92, 255, .3)); }
.brand__name { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand__name b { font-weight: 800; color: var(--c-accent-deep); }
.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 { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border: 0; border-radius: 999px; background: none; font: 550 14px var(--f-sans); color: var(--c-ink); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.menu__link:hover, .menu__trigger:hover, .menu__trigger[aria-expanded="true"] { background: var(--c-accent-soft); color: var(--c-accent-deep); }
.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: 38px; padding: 0 14px 0 5px; border-radius: 999px; box-shadow: var(--ring); font-size: 14px; font-weight: 600; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s; }
.header-phone:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.header-phone .icon { width: 14px; height: 14px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-deep); }
.nav-toggle { display: none; gap: 8px; align-items: center; height: 42px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--ring); cursor: pointer; font: 600 14px var(--f-sans); color: var(--c-ink); }
.nav-toggle::after { content: "Menú"; }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--c-ink); border-radius: 2px; }
.nav-toggle__bars i:last-child { width: 10px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; order: -1; }
  .site-header__bar { gap: 10px; }
  .brand { margin-right: auto; }
  :root { --header-h: 62px; }
}
@media (max-width: 560px) {
  .header-phone { padding: 0 5px; }
  .header-phone span { display: none; }
  .header-phone .icon { width: 16px; height: 16px; padding: 8px; }
  .site-header__actions .btn--sm { display: none; }
  .brand__name { font-size: 14.5px; }
}
@media (max-width: 380px) { .brand__name { display: none; } }

/* Megamenú (escritorio) */
.menu__item--mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  max-width: 1136px; margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 19, 58, .05), 0 30px 70px rgba(23, 19, 58, .16), var(--ring);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.99); transform-origin: top center;
  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(--spring); }
.mega__main { padding: 22px 24px 20px; min-width: 0; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.mega__head p { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--c-ink); }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.mega__col { min-width: 0; }
.mega__label { margin: 12px 0 4px 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.mm-item { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 12px; text-decoration: none; color: var(--c-ink); transition: background .15s; }
.mm-item:hover { background: var(--t-bg, var(--c-cream)); }
.mm-ico { width: 32px; height: 32px; border-radius: 10px; transition: transform .3s var(--spring); }
.mm-ico .icon { width: 17px; height: 17px; }
.mm-item:hover .mm-ico { transform: scale(1.08) rotate(-4deg); }
.mm-txt { display: grid; min-width: 0; }
.mm-txt b { font-size: 14px; font-weight: 550; line-height: 1.3; }
.mm-txt small { font-size: 12px; color: var(--c-muted); line-height: 1.35; }
.mega__side { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; background: linear-gradient(180deg, #f5f1ff, #efe9ff); }
.mega__side .mega__label { margin: 0 0 6px 4px; }
.mm-top { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--c-ink); transition: background .15s; }
.mm-top:hover { background: rgba(255, 255, 255, .7); }
.mm-top img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff; }
.mm-top span { display: grid; min-width: 0; }
.mm-top b { font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.mm-top small { font-size: 12px; color: var(--c-muted); line-height: 1.35; 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: 14px; border-radius: 16px; background: #fff; box-shadow: var(--ring); text-decoration: none; color: var(--c-ink); }
.mm-help__ico { width: 36px; height: 36px; border-radius: 50%; }
.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-muted); }
.mega--places { grid-template-columns: 1fr; max-width: 900px; }
.mega__places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; }
.mega__pane, .mega__tabs { display: none; }

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

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(23, 19, 58, .35); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; 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(23, 19, 58, .15); } }
.drawer__head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 10px 16px; border-bottom: 1px solid var(--c-line); }
.drawer__head .brand .logo-mark { width: 30px; height: 30px; }
.drawer__head .brand__name { font-size: 14.5px; }
.drawer__back { position: absolute; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-deep); 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: 12px; background: #fff; box-shadow: var(--ring); color: var(--c-ink); cursor: pointer; transition: transform .3s var(--spring); }
.drawer__close:hover { transform: rotate(90deg); }
.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 .5s var(--spring) both; animation-delay: calc(60ms + var(--i, 0) * 35ms); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.drawer__feature { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--c-grad); color: #fff; text-decoration: none; box-shadow: 0 12px 28px rgba(124, 92, 255, .3); }
.drawer__feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .2); 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: 650; }
.drawer__feature em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--c-accent-deep); 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-size: 13px; font-weight: 600; color: var(--c-muted); }
.drawer__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer__tile { display: grid; align-content: start; justify-items: start; gap: 2px; padding: 14px; min-height: 124px; border: 0; border-radius: 18px; background: linear-gradient(160deg, var(--t-bg), var(--t-bg2)); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .04); text-align: left; cursor: pointer; font-family: var(--f-sans); transition: transform .25s var(--spring); }
.drawer__tile:active { transform: scale(.97); }
.drawer__tile .drawer__tile-ico { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(23, 19, 58, .06); }
.drawer__tile-ico .icon { width: 20px; height: 20px; }
.drawer__tile b { font-size: 16px; font-weight: 650; 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: 18px; 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: 550; }
.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: 18px; border-radius: 20px; background: linear-gradient(160deg, var(--t-bg), var(--t-bg2)); }
.drawer__hero .drawer__tile-ico { width: 46px; height: 46px; border-radius: 14px; background: #fff; }
.drawer__hero span:last-child { display: grid; }
.drawer__hero b { font-family: var(--f-serif); font-size: 24px; font-weight: 450; 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: 10px; }
.drawer__ico .icon { width: 17px; height: 17px; }
.drawer__txt { display: grid; flex: 1; min-width: 0; }
.drawer__txt b { font-size: 15px; font-weight: 600; }
.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-deep); font-weight: 650; text-decoration: none; }
.drawer__more .icon { width: 15px; height: 15px; }
.nav-open { overflow: hidden; }

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

.hero { position: relative; isolation: isolate; overflow: hidden; background: #fff; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -30%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(124, 92, 255, .16), transparent 70%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -20%; width: 55%; height: 90%; background: radial-gradient(closest-side, rgba(224, 85, 159, .1), transparent 70%); }
.hero__grid { display: grid; gap: 32px; align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero__grid > * { min-width: 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff; box-shadow: var(--ring), var(--shadow-1); font-size: 13px; font-weight: 550; color: var(--c-muted); }
.hero__kicker span { padding: 4px 10px; border-radius: 999px; background: var(--c-grad); color: #fff; font-size: 12px; font-weight: 650; }
.hero h1 { max-width: 13.5ch; }
.hero__lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--c-muted); max-width: 46ch; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: var(--ring); font-size: 13.5px; font-weight: 600; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .25s var(--spring); }
.chip-link:hover { box-shadow: inset 0 0 0 1px var(--t-fg); transform: translateY(-2px); }
.chip-link__ico { width: 30px; height: 30px; border-radius: 50%; }
.chip-link__ico .icon { width: 15px; height: 15px; }
.hero__visual { position: relative; }
.hero__photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: 0 30px 60px rgba(23, 19, 58, .14); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 650; color: var(--c-ink); }
.hero__badge .icon { width: 16px; height: 16px; color: var(--c-ok); }
.quick { position: relative; margin: -70px 14px 0; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(23, 19, 58, .18), var(--ring); animation: quick-in .7s var(--spring) .15s both; }
@keyframes quick-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.quick__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-deep); }
.quick__kicker .icon { width: 13px; height: 13px; }
.quick__title { margin: 0 0 12px; font-family: var(--f-serif); font-size: 22px; font-weight: 450; color: var(--c-ink); }
.quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick__opt { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, var(--t-bg), #fff 90%); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .05); font-size: 13.5px; font-weight: 600; color: var(--c-ink); text-decoration: none; line-height: 1.25; transition: box-shadow .2s, transform .25s var(--spring); }
.quick__opt:hover { box-shadow: inset 0 0 0 1.5px var(--t-fg); transform: translateY(-2px); }
.quick__ico { width: 36px; height: 36px; border-radius: 11px; background: #fff; }
.quick__ico .icon { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; }
  .quick { position: absolute; right: -24px; bottom: -44px; width: 372px; margin: 0; }
  .hero__visual { margin-bottom: 44px; }
}
@media (max-width: 560px) { .hero .btn--lg { flex: 1 1 100%; } .hero__photo { border-radius: 22px; } .quick { margin: -48px 8px 0; } }

.ticker { overflow: hidden; padding: 12px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-cream); }
.ticker__track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; font-size: 14px; font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-grad); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 160s; } }

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

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--soft, .section--cream { background: var(--c-cream); }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--tight + .section--tight { padding-top: 0; }
.section__head { max-width: 640px; 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 20px; flex-wrap: wrap; }
.section__head--row h2 { margin: 0; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* problemas: tarjetas pastel, cada una de un color */
.pains { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pain { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 220px; border-radius: 22px; text-decoration: none; background: linear-gradient(165deg, var(--t-bg) 0%, #fff 75%); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .06); transition: transform .3s var(--spring), box-shadow .25s; }
.pain:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--t-fg), 0 18px 36px rgba(23, 19, 58, .08); }
.pain__n { position: absolute; top: 20px; right: 20px; font: 500 11px var(--f-mono); color: var(--t-fg); opacity: .7; }
.pain__ico { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; background: #fff; transition: transform .35s var(--spring); }
.pain:hover .pain__ico { transform: rotate(-8deg) scale(1.06); }
.pain__ico .icon { width: 22px; height: 22px; }
.pain b { font-size: 18px; font-weight: 650; color: var(--c-ink); letter-spacing: -.015em; }
.pain > span:not([class]) { font-size: 14px; color: var(--c-muted); }
.pain__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 650; color: var(--c-ink); }
.pain__go .icon { width: 12px; height: 12px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--t-fg); color: #fff; transition: transform .25s var(--ease); }
.pain:hover .pain__go .icon { transform: translateX(3px); }

/* soluciones con foto, en marco pastel (como las categorías de una tienda cuidada) */
.feature { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature__card { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 24px; background: linear-gradient(165deg, var(--t-bg), var(--t-bg2)); text-decoration: none; color: var(--c-ink); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .05); transition: transform .3s var(--spring), box-shadow .25s; }
.feature__card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(23, 19, 58, .1); }
.feature__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; transition: transform .8s var(--ease); }
.feature__body { display: grid; gap: 4px; padding: 14px 56px 8px 8px; }
.feature__body b { font-family: var(--f-serif); font-size: 22px; font-weight: 450; letter-spacing: -.015em; }
.feature__body span { font-size: 14px; color: var(--c-muted); }
.feature__arrow { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--t-fg); box-shadow: var(--shadow-1); transition: transform .3s var(--spring), background .2s, color .2s; }
.feature__card:hover .feature__arrow { background: var(--t-fg); color: #fff; transform: rotate(-45deg); }
.feature__arrow .icon { width: 17px; height: 17px; }

.sol-list { list-style: none; margin: 16px 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: 16px; background: #fff; box-shadow: var(--ring); font-size: 14.5px; font-weight: 600; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .25s var(--spring); }
.sol-list a:hover { box-shadow: inset 0 0 0 1px var(--t-fg); transform: translateY(-2px); }
.sol-list__ico { width: 40px; height: 40px; border-radius: 12px; }
.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); }

/* así funciona: bloque lila con esquinas redondas */
.band { padding: clamp(56px, 7vw, 104px) 0; }
.band > .wrap { position: relative; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.band > .wrap::before { content: ""; position: absolute; inset: 0 var(--gutter); z-index: -1; border-radius: 32px; background: linear-gradient(160deg, #f4f0ff 0%, #fbf3fb 60%, #fff4ec 100%); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .08); }
.band { position: relative; isolation: isolate; }
.band__grid { display: grid; gap: 32px; align-items: center; }
.band__grid > * { min-width: 0; padding: 0 clamp(4px, 3vw, 40px); }
@media (min-width: 960px) { .band__grid { grid-template-columns: .9fr 1.1fr; gap: 24px; } }
.timeline-at { list-style: none; counter-reset: t; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline-at li { counter-increment: t; position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 60px; border-radius: 16px; background: rgba(255, 255, 255, .8); box-shadow: var(--ring); }
.timeline-at li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c-grad); color: #fff; font: 600 11.5px var(--f-mono); }
.timeline-at b { color: var(--c-ink); font-size: 15.5px; font-weight: 650; }
.timeline-at span { font-size: 14px; color: var(--c-muted); }

/* esquemas */
.diagram { background: #fff; border: 0; border-radius: 22px; box-shadow: 0 20px 50px rgba(23, 19, 58, .08), var(--ring); }
.dg-pill--bad { fill: #e0559f; }
.dg-pill--good { fill: #5b3fe0; }
.dg-label text { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
.dg-small { fill: var(--c-muted); }
.dg-flow path { stroke-dasharray: 2 9; stroke-width: 3.5; }
.dg-tabs__list { display: flex; gap: 4px; padding: 5px; margin-bottom: 14px; border-radius: 999px; background: #fff; border: 0 !important; box-shadow: var(--ring); overflow-x: auto; scrollbar-width: none; }
.dg-tabs__list button { flex: 1 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 600 14px var(--f-sans); color: var(--c-muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dg-tabs__list button:hover { color: var(--c-ink); }
.dg-tabs__list button[aria-selected="true"] { background: var(--c-ink); color: #fff; 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 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }

/* comparativa de materiales */
.compare { overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: var(--ring), var(--shadow-1); }
.compare table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--c-line); }
.compare thead th { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); background: var(--c-cream); }
.compare tbody th { font-weight: 650; color: var(--c-ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr { transition: background .15s; }
.compare tbody tr:hover { background: #fcfbff; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 18px; height: 8px; border-radius: 999px; background: var(--c-cream-2); }
.dots i.on { background: var(--c-grad); }
.compare__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--c-accent-deep); text-decoration: none; white-space: nowrap; }
.compare__link .icon { width: 14px; height: 14px; }
.compare__note { margin: 12px 0 0; font-size: 13px; color: var(--c-faint); }

/* 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; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--ring); text-decoration: none; transition: box-shadow .25s, transform .3s var(--spring); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--shadow-2); }
.post-card__img { display: block; aspect-ratio: 16 / 10; border-radius: 16px; 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: 14px 10px 12px; }
.post-card__body small { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.post-card__body b { font-family: var(--f-serif); font-size: 19px; font-weight: 450; line-height: 1.25; color: var(--c-ink); }

/* localidades en portada */
.places { display: grid; gap: 32px; align-items: center; }
.places > * { min-width: 0; }
.places__photo { margin: 0; border-radius: 28px; overflow: hidden; position: relative; box-shadow: 0 24px 50px rgba(23, 19, 58, .12); }
.places__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.places__photo::after { content: "Base en Gijón"; position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--c-ink); font-size: 13px; font-weight: 650; }
.places__list { list-style: none; margin: 20px 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 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: var(--ring); font-size: 14px; font-weight: 600; color: var(--c-ink); text-decoration: none; transition: box-shadow .2s, transform .25s var(--spring); }
.places__list a:hover { box-shadow: inset 0 0 0 1px var(--c-accent); transform: translateY(-2px); }
.places__list .icon { width: 14px; height: 14px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: #fff8dd; color: #a87a06; }
@media (min-width: 900px) { .places { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* preguntas */
.faq { display: grid; gap: 28px; }
.faq__head p { font-size: 15px; color: var(--c-muted); }
.faq__head a { color: var(--c-accent-deep); font-weight: 650; }
.faq__list { display: grid; gap: 8px; border: 0; }
.faq__item { border: 0; border-radius: 18px; background: #fff; box-shadow: var(--ring); transition: box-shadow .2s, background .2s; }
.faq__item[open] { background: #fcfbff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .35); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; font-weight: 600; font-size: 15.5px; color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-deep); flex: none; transition: transform .3s var(--spring), 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 20px 18px; margin: 0; color: var(--c-muted); font-size: 14.5px; }
@media (min-width: 900px) { .faq { grid-template-columns: .75fr 1.25fr; gap: 64px; } }
.faq-page { display: grid; gap: 40px; max-width: 860px; }
.faq-page__block h2 { font-size: clamp(22px, 2.4vw, 28px); }

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

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--c-line); }
.page-hero::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -60%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(124, 92, 255, .13), transparent 70%); }
.page-hero h1 { max-width: 20ch; }
.page-hero p:not(.eyebrow) { max-width: 60ch; font-size: 16.5px; color: var(--c-muted); margin: 0; }
.crumbs { font: 500 11px var(--f-mono); letter-spacing: .08em; 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-deep); }

.svc-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0; background: #fff; border-bottom: 1px solid var(--c-line); }
.svc-hero::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -40%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(124, 92, 255, .13), transparent 70%); }
.svc-hero__inner { display: grid; gap: 28px; align-items: center; }
.svc-hero__inner > * { min-width: 0; }
.svc-hero h1 { font-size: clamp(30px, 4vw, 50px); }
.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: 26px; overflow: hidden; box-shadow: 0 24px 50px rgba(23, 19, 58, .12); }
.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: 24px; background: #fff; box-shadow: var(--ring), var(--shadow-2); }
.svc-card__price b { color: var(--c-ink); font-family: var(--f-serif); font-weight: 450; }
.svc-card__links .icon, .card__img, .reco--empty .icon, .cfg__cheer .icon { color: var(--c-accent); }
.fit__col { border-radius: 20px; }
.fit__col--yes { background: #effaf4; }
.fit__col--no { background: #fdf0f6; }
.prose h2, .prose h3 { font-family: var(--f-serif); font-weight: 450; }
.prose a { color: var(--c-accent-deep); text-decoration-color: rgba(124, 92, 255, .4); text-decoration-thickness: 2px; }
.prose blockquote { border-left-color: var(--c-accent); font-family: var(--f-serif); font-style: italic; }

.services { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: linear-gradient(170deg, var(--t-bg, #f2edff) 0%, #fff 60%); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .06); text-decoration: none; transition: transform .3s var(--spring), box-shadow .25s; }
.service:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--t-fg, var(--c-accent)), 0 16px 32px rgba(23, 19, 58, .07); }
.service__icon { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 13px; background: #fff; }
.service__icon .icon { width: 20px; height: 20px; }
.service h3 { margin: 0; font-size: 16px; }
.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: 650; color: var(--c-ink); }
.service__cta .icon { width: 11px; height: 11px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: var(--t-fg, var(--c-accent)); color: #fff; }
.group-title { font-size: clamp(22px, 2.4vw, 28px); 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: 999px; background: #fff; box-shadow: var(--ring); color: var(--c-ink); font-weight: 600; text-decoration: none; }
.zones__list a:hover { box-shadow: inset 0 0 0 1px var(--c-accent); }

.place-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.place-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 22px; background: linear-gradient(170deg, #fff8dd, #fff 60%); box-shadow: inset 0 0 0 1px rgba(23, 19, 58, .06); text-decoration: none; transition: transform .3s var(--spring), box-shadow .25s; }
.place-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #a87a06, 0 16px 32px rgba(23, 19, 58, .07); }
.place-card__ico { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: #fff; --t-fg: #a87a06; }
.place-card__ico .icon { width: 18px; height: 18px; }
.place-card b { font-family: var(--f-serif); font-size: 22px; font-weight: 450; color: var(--c-ink); }
.place-card small { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #a87a06; }
.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-deep); font-weight: 650; }

.about { display: grid; gap: 32px; align-items: start; }
.about > * { min-width: 0; }
.about__photo { margin: 0; border-radius: 26px; 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: 12px; }
.stats > div { display: grid; gap: 4px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--ring); }
.stats > div:nth-child(4n + 1) { background: linear-gradient(165deg, #f2edff, #fff); }
.stats > div:nth-child(4n + 2) { background: linear-gradient(165deg, #eaf2ff, #fff); }
.stats > div:nth-child(4n + 3) { background: linear-gradient(165deg, #fff2e8, #fff); }
.stats > div:nth-child(4n + 4) { background: linear-gradient(165deg, #e9f8f0, #fff); }
.stats b { font-family: var(--f-serif); font-size: clamp(34px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; color: var(--c-ink); line-height: 1; }
.stats span { font-size: 14px; color: var(--c-muted); }

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

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

.site-footer { margin-top: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 56px) 0 calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #fff 0%, #f6f2ff 18%, #efe9ff 100%); color: var(--c-muted); font-size: 14px; border-radius: 36px 36px 0 0; }
.footer-cta { display: grid; gap: 18px; align-items: center; padding: clamp(20px, 3vw, 30px); margin-bottom: clamp(36px, 4vw, 56px); border-radius: 24px; background: #fff; box-shadow: 0 20px 50px rgba(23, 19, 58, .07), var(--ring); }
.footer-cta__ico { width: 52px; height: 52px; border-radius: 16px; }
.footer-cta__ico .icon { width: 24px; height: 24px; }
.footer-cta__title { margin: 0 0 2px; font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 450; letter-spacing: -.02em; color: var(--c-ink); line-height: 1.15; }
.footer-cta__title em { font-style: italic; color: var(--c-accent-deep); }
.footer-cta__text { margin: 0; font-size: 14.5px; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .footer-cta { grid-template-columns: auto 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: 12px 0 10px; max-width: 34ch; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: var(--ring); color: var(--c-ink) !important; font-weight: 600; text-decoration: none !important; }
.contact-pill .icon { width: 14px; height: 14px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: var(--t-bg); color: var(--t-fg); }
.site-footer__title { margin: 0 0 12px; font-size: 13.5px; font-weight: 650; color: var(--c-ink); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--c-muted); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--c-accent-deep); }
.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(23, 19, 58, .08); 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(23, 19, 58, .08); font-size: 12.5px; color: var(--c-muted); }
.credit__by { display: inline-flex; align-items: center; gap: 10px; color: var(--c-muted) !important; text-decoration: none !important; }
.credit__by .adsd-logo { height: 17px; width: auto; color: var(--c-ink); transition: color .2s, transform .3s var(--spring); }
.credit__by:hover .adsd-logo { color: var(--c-accent-deep); transform: translateY(-1px); }
.credit__legal { margin: 0; }
/* En pantallas estrechas la firma se apila: si no, «por» queda solo en una
   línea y el logotipo se va al otro extremo. */
@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) {
  /* El hueco del dock lo deja el pie, no el body: el fondo del pie llega
     hasta abajo y no queda una banda blanca al final de la página. */
  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(255, 255, 255, .92); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-radius: 999px; box-shadow: 0 14px 34px rgba(23, 19, 58, .18), var(--ring); transition: transform .4s var(--spring), 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: 50%; color: var(--c-accent-deep); background: var(--c-accent-soft); }
  .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: 999px; background: var(--c-grad); color: #fff; font-weight: 650; 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: 50%; background: rgba(255, 255, 255, .22); }
  .nav-open .dock, .chat-open .dock { display: none; }
  .chat-launcher { display: none !important; }
  .btn { max-width: 100%; }
}

/* ------------------------------------------- configurador en clave AT 2.0 */

.cfg__card { border-radius: 26px; box-shadow: 0 24px 60px rgba(23, 19, 58, .08), var(--ring); }
.cfg__title { font-family: var(--f-serif); font-weight: 450; font-size: clamp(24px, 2.6vw, 30px); }
.cfg__count { font-family: var(--f-mono); font-weight: 500; letter-spacing: .12em; color: var(--c-accent-deep); }
/* Recompensas: el texto cabe entero (puede ocupar dos líneas) y todas miden igual. */
.rw { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rw__item { height: 100%; min-height: 48px; padding: 8px 10px; border-radius: 14px; 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: linear-gradient(160deg, #f2edff, #fbeef8); }
.rw__item.is-on .rw__ico { background: var(--c-grad); color: #fff; }
@media (max-width: 640px) { .rw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfg__bar { background: var(--c-cream-2); border-radius: 999px; }
.cfg__bar span { background: var(--c-grad); border-radius: 999px; }
/* Fichas: rejilla regular, todas de la misma altura y sin huérfanas. */
.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: 18px; border: 0; background: #fff; box-shadow: var(--ring); justify-content: flex-start; transition: box-shadow .2s, transform .25s var(--spring), background .2s; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--t-fg, var(--c-accent)); transform: translateY(-2px); }
.tile__icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, var(--t-bg), var(--t-bg2)); color: var(--t-fg); }
.tile__icon .icon { width: 20px; height: 20px; }
.tile__text b { font-size: 15px; font-weight: 600; }
.tiles > .tile:nth-child(6n + 1) { --t-bg: #f2edff; --t-bg2: #e4daff; --t-fg: #6a4bf0; }
.tiles > .tile:nth-child(6n + 2) { --t-bg: #fff2e8; --t-bg2: #ffe0c7; --t-fg: #dd6a26; }
.tiles > .tile:nth-child(6n + 3) { --t-bg: #eaf2ff; --t-bg2: #d5e4ff; --t-fg: #2d6be0; }
.tiles > .tile:nth-child(6n + 4) { --t-bg: #fdecf5; --t-bg2: #f9d4e7; --t-fg: #cf3a83; }
.tiles > .tile:nth-child(6n + 5) { --t-bg: #e9f8f0; --t-bg2: #cfefde; --t-fg: #1f9258; }
.tiles > .tile:nth-child(6n + 6) { --t-bg: #fff8dd; --t-bg2: #fcecae; --t-fg: #a87a06; }
.tile.is-selected { background: linear-gradient(165deg, var(--t-bg), #fff 80%); 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: 14px; 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: 999px; }
.result__card { background: linear-gradient(150deg, #17133a 0%, #2c2566 60%, #4a2f86 100%); border-radius: 22px; }
.cfg__nav .btn { min-width: 150px; }

/* chat */
.chat { border-radius: 24px; }
.chat__head { background: var(--c-grad); color: #fff; }
.chat__msg--me { background: var(--c-ink); color: #fff; }
.chat-launcher { border-radius: 999px; background: var(--c-ink); }

/* ------------------------------------------------ blog en clave AT 2.0 */
.story { background: radial-gradient(60% 420px at 20% 0, rgba(124, 92, 255, .12), transparent 70%), #fff; }
.story__card { border-radius: 28px; box-shadow: 0 30px 70px rgba(23, 19, 58, .1), var(--ring); }
.story__cover { border-radius: 20px; }
.story__tag { background: rgba(255, 255, 255, .92); color: var(--c-accent-deep); border-color: transparent; }
.story__time { background: rgba(23, 19, 58, .45); }
.story__title, .lead-story__body b, .mag-card__body b, .deck__body b { font-family: var(--f-serif); font-weight: 420; letter-spacing: -.02em; }
.story__prose a { color: var(--c-accent-deep); text-decoration-color: rgba(124, 92, 255, .45); text-decoration-thickness: 2px; }
.actions { border-radius: 999px; }
.actions--float { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); }
.actions__btn { border-radius: 999px; }
.actions__btn[data-like][aria-pressed="true"] { color: #ff5c93; }
.actions--float .actions__btn[data-like][aria-pressed="true"] { color: #ffb3cd; }
.actions--bar { background: var(--c-cream); color: var(--c-ink); }
.share__btn { border-radius: 999px; border: 0; background: #fff; box-shadow: var(--ring); }
.share__btn:hover { background: var(--c-ink); color: #fff; box-shadow: none; }
.blog-toast { border-radius: 999px; background: var(--c-ink); color: #fff; }
.deck__card { border-radius: 22px; border: 0; box-shadow: var(--ring); }
.deck__card:hover { box-shadow: var(--ring), var(--shadow-2); }
.deck__icon { border-radius: 13px; background: #fff; box-shadow: var(--shadow-2); }
.deck__body small { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.deck__btn { border-radius: 50%; 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(23, 19, 58, .12), var(--ring); }
.deck.is-stack .deck__card.is-yes { box-shadow: 0 18px 40px rgba(23, 19, 58, .12), inset 0 0 0 3px var(--c-accent); }
.comments { background: var(--c-cream); }
.comment__card { border-radius: 20px; border: 0; box-shadow: var(--ring); }
.comment__avatar { border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-deep); }
.comment--staff .comment__avatar { background: var(--c-grad); color: #fff; }
.comment-respond { border-radius: 24px; border: 0; box-shadow: var(--ring), var(--shadow-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { border-radius: 14px; }
.topics__chip { border-radius: 999px; box-shadow: var(--ring); font-weight: 600; }
.topics__chip.is-on { background: var(--c-ink); color: #fff; }
.lead-story { border-radius: 28px; background: linear-gradient(150deg, #f2edff, #fdeef6); }
.lead-story__body small { color: var(--c-accent-deep); font-family: var(--f-mono); }
.lead-story__body b { color: var(--c-ink); }
.lead-story__body > span:not([class]) { color: var(--c-muted); }
.lead-story__cta { border-radius: 999px; background: var(--c-ink); color: #fff; }
.mag-card { border-radius: 22px; border: 0; box-shadow: var(--ring); }
.mag-card:hover { box-shadow: var(--ring), var(--shadow-2); }
.mag-card__body small { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.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: 26px; background: linear-gradient(150deg, #f2edff, #fdeef6); color: var(--c-ink); }
.post-cta__box h2 { color: var(--c-ink); margin-bottom: 8px; }
.post-cta__box p { color: var(--c-muted); }
.drawer__head .brand { margin: 0; }

/* ===================================================== 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: #e0559f; --calc-green: #1f9d5c; --calc-violet: #7c5cff; --calc-grey: #6f6a8d; --calc-wa: #1fa855; --calc-indigo: #5b5bd6; --calc-amber: #d9962a;

  /* piezas de la casa: muro blanco, tejado azul noche, madera del garaje */
  --lg-wall: #e9e6df; --lg-wall-d: #dcd8cf; --lg-wall-l: #f4f2ec; --lg-wall-x: #fbfaf7;
  --lg-roof: #1b2a49; --lg-roof-d: #16223b; --lg-roof-l: #22345a; --lg-roof-x: #2c4470;
  --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: #e0559f; --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, #fbfbfd, #eef0f6); 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: #d6d3e4; 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; }
.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: #f6f6f9; }
.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(23, 19, 58, .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(23, 19, 58, .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; }
