/* =========================================================================
   Aislamientos Asturias · 4.0
   Compacto y ordenado: texto 15–16 px, titulares finos, botones de 40 px,
   tarjetas planas, fotografía cálida y el naranja del logo como acento.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-bg: #fdfcfb;
  --c-ink: #0f0d0b;
  --c-ink-2: #2b2621;
  --c-text: #1f1b17;
  --c-muted: #6b645d;
  --c-faint: #9a938b;
  --c-line: #ece7e1;
  --c-cream: #f5f2ee;
  --c-cream-2: #ede8e2;
  --c-accent: #f39a1e;
  --c-accent-deep: #a8540a;
  --c-accent-ink: #1d1406;
  --c-accent-soft: #fdf1e1;
  --c-hot: #e4572e;
  --c-cold: #4f86b5;
  --c-moss: #3d6a52;
  --c-ok: #1f8a57;
  --c-error: #b3261e;
  --c-whatsapp: #1fa855;

  --f-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: var(--f-sans);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(15, 13, 11, .05);
  --shadow-2: 0 1px 2px rgba(15, 13, 11, .04), 0 10px 30px rgba(15, 13, 11, .07);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 3.5vw, 32px);
  --header-h: 60px;
}

/* ---------------------------------------------------------------- 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.6 var(--f-sans); color: var(--c-text); background: var(--c-bg);
  font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@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 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -.034em; }
h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -.026em; }
h3 { font-size: 16px; font-weight: 550; line-height: 1.35; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--c-muted); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
/* Lo oculto se oculta siempre, aunque una regla de maquetación diga display: grid o flex. */
[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; font-size: 13px; font-weight: 500; color: var(--c-muted); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.eyebrow--light { color: var(--c-muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

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

.btn {
  --b-bg: var(--c-ink); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font: 500 14px/1 var(--f-sans); text-decoration: none;
  cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--primary, .btn--accent, .btn--ink { --b-bg: var(--c-ink); --b-fg: #fff; }
.btn--primary:hover, .btn--accent:hover, .btn--ink:hover { --b-bg: #2e2924; }
.btn--ghost { --b-bg: #fff; --b-fg: var(--c-ink); --b-bd: var(--c-line); }
.btn--ghost:hover { --b-bd: #cfc7bd; }
.btn--light { --b-bg: #fff; --b-fg: var(--c-ink); }
.btn--light:hover { --b-bg: #f3efea; }
.btn--glass { --b-bg: rgba(255, 255, 255, .14); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --b-bg: rgba(255, 255, 255, .22); }
.btn--whatsapp { --b-bg: var(--c-whatsapp); }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }

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

.announce { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 6px var(--gutter); background: var(--c-ink); color: rgba(255, 255, 255, .78); font-size: 13px; text-decoration: none; text-align: center; }
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(243, 154, 30, .25); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(243, 154, 30, 0); } }
.announce__cta { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 500; }
.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 > span:nth-child(2) { display: none; } }

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

/* Cabecera flotante: una «isla» redondeada separada del borde. */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 10px; pointer-events: none; }
.site-header__inner {
  position: relative; display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 10px 0 18px; pointer-events: auto;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 13, 11, .05), 0 8px 28px rgba(15, 13, 11, .07), inset 0 0 0 1px rgba(15, 13, 11, .05);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand__name { font-size: 15.5px; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.brand__name b { font-weight: 600; margin-left: 3px; }
.logo-mark { width: 26px; height: 26px; }
.nav { flex: 1; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 13.5px; font-weight: 500; color: var(--c-ink-2); text-decoration: none; }
.header-phone .icon { width: 14px; height: 14px; color: var(--c-accent-deep); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--c-cream); color: var(--c-ink); cursor: pointer; }
.nav-toggle .icon { width: 19px; height: 19px; }
.nav-toggle__close { display: none; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 13, 11, .22); backdrop-filter: blur(2px); animation: fadein .2s ease; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu__trigger, .menu__link {
  display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 12px; border: 0; border-radius: 11px; background: none;
  font: 450 14px var(--f-sans); color: var(--c-ink-2); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.menu__trigger:hover, .menu__link:hover, .menu__trigger[aria-expanded="true"] { background: var(--c-cream); color: var(--c-ink); }
.menu__chev { width: 14px; height: 14px; color: var(--c-faint); transition: transform .2s var(--ease); }
.menu__trigger[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
.menu__mobile-foot { display: none; }

/* Megamenú */
.mega a { text-decoration: none; color: var(--c-ink); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega__main { padding: 22px 24px; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px dashed var(--c-line); }
.mega__head p { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.mega__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.mega__rich { display: grid; gap: 2px; }
.mega__rich a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; transition: background .15s; }
.mega__rich a:hover { background: var(--c-cream); }
.mega__rich b { display: block; font-size: 14px; font-weight: 550; line-height: 1.3; }
.mega__rich small { display: block; font-size: 12.5px; color: var(--c-muted); line-height: 1.4; margin-top: 1px; }
.mega__rich--two { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.mega__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-accent-soft); color: var(--c-accent-deep); transition: background .15s, color .15s; }
.mega__ico .icon { width: 17px; height: 17px; }
.mega__rich a:hover .mega__ico { background: var(--c-accent); color: var(--c-accent-ink); }
.mega__label { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--c-faint); letter-spacing: .02em; }
.mega__label:not(:first-child) { margin-top: 14px; }
.mega__simple { display: grid; gap: 1px; }
.mega__simple a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; font-size: 13.5px; color: var(--c-ink-2); }
.mega__simple a:hover { background: var(--c-cream); color: var(--c-ink); }
.mega__simple .icon { width: 15px; height: 15px; color: var(--c-faint); }
.mega__side { display: grid; gap: 12px; align-content: start; padding: 22px 20px; background: linear-gradient(180deg, var(--c-accent-soft), var(--c-cream)); }
.mega__side-title { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--c-ink); }
.mega__popular { display: grid; gap: 8px; }
.mega__popular a { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; transition: background .15s; }
.mega__popular a:hover { background: rgba(255, 255, 255, .7); }
.mega__popular img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.mega__popular b { display: block; font-size: 13.5px; font-weight: 550; }
.mega__popular small { display: block; font-size: 12px; color: var(--c-accent-deep); }
.mega__help { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.mega__help .icon { width: 18px; height: 18px; color: var(--c-accent-deep); flex: none; }
.mega__help b { display: block; font-size: 13px; font-weight: 600; }
.mega__help span { font-size: 12px; color: var(--c-muted); line-height: 1.4; }
.mega__feature { display: grid; gap: 3px; padding: 8px 8px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.mega__feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; margin-bottom: 8px; }
.mega__feature b { font-size: 13.5px; font-weight: 600; padding: 0 6px; }
.mega__feature span { font-size: 12px; color: var(--c-muted); padding: 0 6px; }

@media (min-width: 1081px) {
  .mega {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; grid-template-columns: 1fr 290px; overflow: hidden;
    background: #fff; border-radius: 20px; box-shadow: 0 28px 70px rgba(15, 13, 11, .18), inset 0 0 0 1px rgba(15, 13, 11, .05);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease), visibility .18s;
  }
  .menu__trigger[aria-expanded="true"] + .mega { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 1080px) {
  .nav { display: none !important; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-phone, .site-header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; padding: calc(var(--header-h) + 28px) var(--gutter) 24px; background: var(--c-bg);
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter atraparía el panel fijo dentro de la isla */
  .nav-open .site-header__inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__item { border-bottom: 1px solid var(--c-line); }
  .menu__trigger, .menu__link { width: 100%; height: 54px; justify-content: space-between; padding: 0 2px; border-radius: 0; font-size: 16px; font-weight: 500; color: var(--c-ink); }
  .menu__trigger:hover, .menu__link:hover, .menu__trigger[aria-expanded="true"] { background: none; }
  .mega { display: none; padding-bottom: 12px; }
  .menu__trigger[aria-expanded="true"] + .mega { display: block; animation: fadein .25s var(--ease); }
  .mega__main { padding: 0; }
  .mega__head { display: none; }
  .mega__cols { grid-template-columns: 1fr; gap: 14px; }
  .mega__rich small { display: none; }
  .mega__rich a { align-items: center; padding: 8px 10px; }
  .mega__rich--two { grid-template-columns: 1fr 1fr; }
  .mega__side { display: none; }
  .menu__mobile-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }
  .menu__mobile-foot .btn { width: 100%; height: 46px; }
}
@media (max-width: 640px) { .site-header { padding-top: 8px; } .site-header__inner { height: 54px; padding: 0 8px 0 14px; border-radius: 16px; } }

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

.hero { padding: clamp(28px, 4vw, 56px) 0 0; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent-deep); font-size: 13px; font-weight: 500; }
.hero__kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(243, 154, 30, .22); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 15ch; margin-bottom: 16px; }
.hero__lead { font-size: 17px; color: var(--c-muted); max-width: 44ch; margin: 0 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--c-muted); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .icon { width: 15px; height: 15px; color: var(--c-ok); stroke-width: 2.4; }
.hero__photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--c-cream); aspect-ratio: 16 / 10; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.hero__badge { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); }
.hero__badge .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #e6f4ec; color: var(--c-ok); }
.hero__badge b { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink); }
.hero__badge span { font-size: 12.5px; color: var(--c-muted); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1.08fr; gap: 56px; } .hero__photo { aspect-ratio: 5 / 4; } }
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 15.5px; }
  .hero__cta .btn--primary { flex: 1; }
  .hero__proof li:nth-child(3) { display: none; }
}

/* buscador de necesidad */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; padding: 16px 18px; border-radius: 20px; background: var(--c-cream); }
.finder__q { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.finder__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.finder__chips a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; 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: box-shadow .15s, transform .15s var(--ease); }
.finder__chips a .icon { width: 15px; height: 15px; color: var(--c-accent-deep); }
.finder__chips a:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); transform: translateY(-1px); }
@media (max-width: 640px) {
  .finder { padding: 14px; gap: 10px; }
  .finder__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
  .finder__chips::-webkit-scrollbar { display: none; }
  .finder__chips a { white-space: nowrap; }
}

/* franja de confianza */
.trust { border-bottom: 1px solid var(--c-line); }
.trust__row { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item { display: flex; align-items: baseline; gap: 8px; padding: 18px 0; }
.trust__item b { font-size: 26px; font-weight: 400; letter-spacing: -.03em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.trust__item span { font-size: 13.5px; color: var(--c-muted); }
@media (min-width: 760px) { .trust__row { grid-template-columns: repeat(4, 1fr); } .trust__item { justify-content: center; padding: 22px 0; } .trust__item + .trust__item { border-left: 1px solid var(--c-line); } }

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

.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--soft, .section--cream { background: var(--c-cream); }
.section--ink { background: var(--c-bg); }
.section__head { max-width: 600px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__head p { font-size: 15.5px; color: var(--c-muted); margin: 0; }
.section__head h2 { margin-bottom: 8px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__head--row h2 { margin: 0; }
.section__head--light h2 { color: var(--c-ink); }

/* cómo funciona */
.how { display: grid; gap: 32px; align-items: start; }
.how > * { min-width: 0; }
.how__copy > p { font-size: 15.5px; color: var(--c-muted); max-width: 44ch; }
.steps { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.steps b { font-size: 15px; font-weight: 550; color: var(--c-ink); }
.steps span { font-size: 14px; color: var(--c-muted); }
@media (min-width: 960px) { .how { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }

/* preguntas: dos columnas en escritorio */
.faq { display: grid; gap: 28px; }
.faq__head p { font-size: 15px; color: var(--c-muted); }
.faq__head a { color: var(--c-ink); }
.faq__list { display: grid; border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 500; 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: 24px; height: 24px; border-radius: 50%; background: #fff; flex: none; transition: transform .25s var(--ease); }
.faq__icon .icon { width: 13px; height: 13px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 0 36px 16px 0; margin: 0; color: var(--c-muted); font-size: 14.5px; }
@media (min-width: 900px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* cierre con foto */
.closing { padding: 0 0 clamp(52px, 7vw, 96px); }
.closing__card { display: grid; overflow: hidden; border-radius: 22px; background: var(--c-ink); color: rgba(255, 255, 255, .72); }
.closing__img { width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: cover; }
.closing__body { padding: clamp(24px, 4vw, 48px); align-self: center; }
.closing h2 { color: #fff; max-width: 16ch; }
.closing h2 em { color: rgba(255, 255, 255, .55); }
.closing p { font-size: 15px; margin-bottom: 20px; }
.closing__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.closing .btn--primary { --b-bg: #fff; --b-fg: var(--c-ink); }
.closing .btn--ghost { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .25); }
@media (min-width: 900px) { .closing__card { grid-template-columns: 1fr 1fr; } .closing__img { max-height: none; } }

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

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

.site-footer { margin-top: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 48px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--c-muted); background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-cream) 22%, var(--c-accent-soft) 100%); }
.footer-cta { display: grid; gap: 16px; align-items: center; padding: clamp(20px, 3vw, 32px); margin-bottom: clamp(32px, 4vw, 52px); border-radius: 22px; background: rgba(255, 255, 255, .75); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(15, 13, 11, .04); }
.footer-cta__title { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; letter-spacing: -.02em; color: var(--c-ink); }
.footer-cta p { margin: 0; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 860px) { .footer-cta { grid-template-columns: 1fr auto; } }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: start; }
.site-footer__brand p { margin: 10px 0 8px; max-width: 30ch; }
.site-footer__phone { font-size: 18px; font-weight: 500; color: var(--c-ink) !important; letter-spacing: -.01em; }
.site-footer__title { color: var(--c-ink); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--c-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(15, 13, 11, .08); font-size: 12.5px; }
.site-footer__bottom nav { display: flex; gap: 16px; }
.site-footer__credit { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(15, 13, 11, .06); font-size: 12px; color: var(--c-faint); }
.site-footer__credit b { color: var(--c-ink-2); font-weight: 600; letter-spacing: .02em; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } .site-footer { padding-bottom: 80px; } }

/* 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(104px + env(safe-area-inset-bottom)); }
  .dock {
    display: flex; align-items: center; gap: 5px; position: fixed; z-index: 45;
    left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: min(360px, calc(100vw - 24px)); padding: 5px;
    background: rgba(15, 13, 11, .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-radius: 999px; box-shadow: 0 12px 32px rgba(15, 13, 11, .28);
    transition: transform .35s var(--ease), opacity .25s;
  }
  .dock.is-hidden { transform: translate(-50%, calc(100% + 30px)); opacity: 0; pointer-events: none; }
  .dock__btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); }
  .dock__btn .icon { width: 18px; height: 18px; }
  .dock__main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--c-ink); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
  .dock__main .icon { width: 15px; height: 15px; }
  .nav-open .dock, .chat-open .dock { display: none; }
  .chat-launcher { display: none !important; }
  .btn { max-width: 100%; }
}

/* =========================================================== 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), #ffc46b); 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: #cfc6b5; 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: #fffaf2; 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 #c9c0af; background: #fff center/14px no-repeat; transition: .15s; }
.chip[role="radio"]::before { border-radius: 50%; }
.chip:hover { border-color: #cfc6b5; }
.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(243, 154, 30, .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: #ffc46b; }
.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(31, 26, 23, .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 #c9c0af; 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: #9a5700; }
.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: #b8543a; }
.dg-pill--good { fill: #1f8a57; }
.dg-small { font-size: 11px; font-weight: 600; fill: #6b635c; letter-spacing: .04em; }
.dg-flow path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 8; }
.dg-flow--hot path { stroke: #e4572e; }
.dg-flow--cold path { stroke: #4f86b5; }
.dg-hose { fill: none; stroke: #1f1a17; stroke-width: 6; stroke-linecap: round; }
.dg-hose--thin { stroke-width: 5; }
.dg-vapor path { fill: none; stroke: #a9bfd1; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.dg-waves path { fill: none; stroke: #f39a1e; stroke-width: 3; stroke-linecap: round; }
.dg-waves .dg-wave--weak { stroke: #c9b58c; 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(31, 26, 23, .28);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31, 26, 23, .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: #faf9f7; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(31, 26, 23, .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: #b9b0a6; 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); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chat__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid #ecd9c3; background: #fff; color: var(--c-accent-deep); font: 600 14px/1.25 var(--f-sans);
  text-decoration: none; cursor: pointer; text-align: left; transition: background .15s, border-color .15s;
}
.chat__chip .icon { width: 18px; height: 18px; }
.chat__chip:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.chat__chip--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.chat__chip--primary:hover { background: #f7a936; }
.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__chip { min-height: 36px; font-size: 13px; padding: 6px 12px; border-width: 1px; }
.chat__who b { font-size: 15px; }

/* ================================================== explorador de servicios */

.explorer { border-radius: 24px; background: var(--c-cream); padding: 8px; }
.explorer__tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.explorer__tabs::-webkit-scrollbar { display: none; }
.explorer__tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font: 500 14px var(--f-sans); color: var(--c-muted); cursor: pointer; transition: background .2s, color .2s; }
.explorer__tabs button span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(15, 13, 11, .06); font-size: 11.5px; font-weight: 600; }
.explorer__tabs button[aria-selected="true"] { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-1); }
.explorer__tabs button[aria-selected="true"] span { background: var(--c-accent); color: var(--c-accent-ink); }
.explorer__body { display: grid; gap: 8px; margin-top: 6px; }
.explorer__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: #fff; border-radius: 18px; }
.explorer__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--c-ink); transition: background .15s; }
.explorer__item:hover, .explorer__item.is-active { background: var(--c-cream); }
.explorer__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent-deep); transition: background .15s, color .15s; }
.explorer__ico .icon { width: 18px; height: 18px; }
.explorer__item.is-active .explorer__ico { background: var(--c-accent); color: var(--c-accent-ink); }
.explorer__txt { flex: 1; min-width: 0; }
.explorer__txt b { display: block; font-size: 14.5px; font-weight: 550; }
.explorer__txt small { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.4; }
.explorer__arrow { width: 16px; height: 16px; color: var(--c-faint); transition: transform .2s var(--ease), color .2s; }
.explorer__item:hover .explorer__arrow, .explorer__item.is-active .explorer__arrow { color: var(--c-ink); transform: translateX(3px); }
.explorer__preview { display: none; }
.explorer__stage .diagram { margin: 0; border: 0; padding: 12px 8px 0; background: none; }
.explorer__stage .diagram figcaption { display: none; }
.explorer__info { padding: 4px 22px 22px; }
.explorer__info h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.explorer__info p { font-size: 14.5px; color: var(--c-muted); margin-bottom: 16px; }
.explorer__cta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) {
  .explorer__body { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
  .explorer__preview { display: block; position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: 18px; overflow: hidden; }
}

/* ======================================================== materiales (carrusel) */

.rail-nav { display: flex; gap: 6px; }
.rail-nav__btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); cursor: pointer; }
.rail-nav__btn .icon { width: 16px; height: 16px; }
.rail-nav__btn:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 36px) / 4); } }
.mat { scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; text-decoration: none; color: var(--c-ink); transition: transform .3s var(--ease), box-shadow .3s; }
.mat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mat__swatch { display: block; height: 130px; }
.mat__swatch--rock { background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 14px 14px, repeating-linear-gradient(35deg, #b9a58a 0 3px, #cdbba1 3px 7px, #a8937a 7px 9px), #c4b095; }
.mat__swatch--cellulose { background: radial-gradient(ellipse at 20% 30%, #e9e1d3 0 6px, transparent 7px) 0 0 / 22px 18px, radial-gradient(ellipse at 70% 70%, #d8cdb9 0 5px, transparent 6px) 0 0 / 18px 22px, #cfc2ab; }
.mat__swatch--mineral { background: repeating-linear-gradient(115deg, #fbf8f1 0 2px, #efe7d6 2px 5px, #f7f1e4 5px 8px), #f4ecdc; }
.mat__swatch--eps { background: radial-gradient(circle at 35% 35%, #9aa0a6 0 3px, #5b6167 5px, transparent 6px) 0 0 / 13px 13px, radial-gradient(circle at 35% 35%, #8b9197 0 3px, #4d5358 5px, transparent 6px) 6px 6px / 13px 13px, #3d4247; }
.mat__swatch--foam { background: radial-gradient(circle, rgba(255,255,255,.7) 0 3px, transparent 4px) 0 0 / 16px 16px, radial-gradient(circle, rgba(255,255,255,.45) 0 5px, transparent 6px) 8px 8px / 16px 16px, #f1d9a0; }
.mat__swatch--cork { background: radial-gradient(circle at 30% 30%, #8a5a33 0 2px, transparent 3px) 0 0 / 9px 9px, radial-gradient(circle at 60% 60%, #c08a58 0 2px, transparent 3px) 4px 4px / 11px 11px, #a8703f; }
.mat__body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.mat__body b { font-size: 15.5px; font-weight: 550; }
.mat__body > span:not(.mat__tags) { font-size: 13.5px; color: var(--c-muted); line-height: 1.45; }
.mat__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mat__tags i { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--c-cream); color: var(--c-ink-2); }

/* ============================================================ cómo trabajamos */

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.flow__step { position: relative; display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: var(--c-cream); }
.flow__n { font-size: 13px; font-weight: 600; color: var(--c-accent-deep); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.flow__step b { font-size: 16px; font-weight: 550; color: var(--c-ink); }
.flow__step > span:last-child { font-size: 14px; color: var(--c-muted); }
@media (min-width: 760px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__step:not(:last-child)::after { content: ""; position: absolute; top: 30px; right: -8px; width: 16px; height: 2px; background: var(--c-accent); border-radius: 2px; }
}

/* ================================================= 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(15, 13, 11, .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(243, 154, 30, .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(15, 13, 11, .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: #ffc46b; } }
.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(243, 154, 30, .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: #ffc46b; }
.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); }

/* ======================================================= menú móvil (hoja) */

.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet__bg {
  position: absolute; inset: 0; background: linear-gradient(135deg, #f7a33b, #e2621b 35%, #b8401c 65%, #2b2621); background-size: 300% 300%;
  animation: gradientFlow 14s ease infinite; opacity: 0; transition: opacity .35s ease;
}
@keyframes gradientFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sheet__mark { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: breathe 3.2s ease-in-out infinite; }
.sheet__mark .logo-mark { width: 38px; height: 38px; }
@keyframes breathe { 50% { transform: translate(-50%, -6px); } }
.sheet__panel {
  position: absolute; left: 8px; right: 8px; bottom: 0; top: 112px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-cream); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  transform: translateY(104%); transition: transform .55s cubic-bezier(.2, 1.15, .3, 1);
}
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet-open { overflow: hidden; }
.sheet-open .dock, .sheet-open .chat-launcher { display: none !important; }

.sheet__top { display: flex; align-items: center; gap: 8px; padding: 18px 18px 8px 22px; }
.sheet__label { margin-right: auto; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.sheet__round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); cursor: pointer; }
.sheet__round .icon { width: 18px; height: 18px; }
.sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px calc(28px + env(safe-area-inset-bottom)); }

.sheet__brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; min-width: 0; }
.sheet__brand .brand__name { font-size: 14.5px; }
.sheet__pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); text-decoration: none; font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sheet__pill span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f7a33b, #e2621b); color: #fff; }
.sheet__pill .icon { width: 14px; height: 14px; }
.sheet__title { margin: 0 0 6px; font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; color: var(--c-ink); }
.sheet__desc { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); font-size: 14.5px; color: var(--c-muted); line-height: 1.5; }

.sheet__filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px 2px; scrollbar-width: none; }
.sheet__filters::-webkit-scrollbar { display: none; }
.sheet__filters button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); cursor: pointer; transition: background .2s, color .2s; }
.sheet__filters button.is-on { background: var(--c-ink); color: #fff; box-shadow: none; }

.sheet__shortcuts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sheet__shortcuts a { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); text-decoration: none; color: var(--c-ink); font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.sheet__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.sheet__dot .icon { width: 14px; height: 14px; }
.sheet__dot--c1 { background: linear-gradient(135deg, #f7a33b, #e2621b); }
.sheet__dot--c2 { background: linear-gradient(135deg, #ffcf70, #f39a1e); }
.sheet__dot--c3 { background: linear-gradient(135deg, #e9785a, #b8401c); }
.sheet__dot--c4 { background: linear-gradient(135deg, #7fb08e, #3d6a52); }
.sheet__dot--c5 { background: linear-gradient(135deg, #c9a27a, #8a5a33); }
.sheet__dot--c6 { background: linear-gradient(135deg, #4a423b, #1f1a17); }

.sheet__sec { margin-bottom: 22px; }
.sheet__sec h2 { margin: 0 0 4px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.sheet__sec > p { margin: 0 0 12px; font-size: 14px; color: var(--c-muted); }
.sheet__sec.is-pop { animation: secpop .45s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes secpop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet__rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sheet__rows--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 13, 11, .04), inset 0 0 0 1px rgba(15, 13, 11, .04); text-decoration: none; color: var(--c-ink); transition: transform .15s var(--ease); }
.sheet__row:active { transform: scale(.98); }
.sheet__app { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(15, 13, 11, .16); }
.sheet__app .icon { width: 22px; height: 22px; stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.sheet__app--zona { background: linear-gradient(145deg, #ffb24a, #e2621b); }
.sheet__app--problema { background: linear-gradient(145deg, #f08a6a, #b8401c); }
.sheet__app--material { background: linear-gradient(145deg, #86bb96, #3d6a52); }
.sheet__app--vivienda { background: linear-gradient(145deg, #d6b48c, #8a5a33); }
.sheet__app--guia { background: linear-gradient(145deg, #5a5149, #1f1a17); }
.sheet__app--zonas { background: linear-gradient(145deg, #ffd27a, #f39a1e); width: 38px; height: 38px; border-radius: 11px; }
.sheet__app--zonas .icon { width: 18px; height: 18px; }
.sheet__txt { flex: 1; min-width: 0; }
.sheet__txt b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.sheet__txt small { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__rows--two .sheet__txt small { font-size: 11.5px; }
.sheet__badge { flex: none; padding: 5px 9px; border-radius: 8px; background: var(--c-accent-soft); color: var(--c-accent-deep); font: 600 10.5px/1 ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.sheet__foot { display: grid; gap: 8px; padding-top: 6px; }
.sheet__foot .btn { width: 100%; height: 46px; }

/* entrada en cascada */
.sheet__in { opacity: 0; transform: translateY(12px); }
.sheet.is-open .sheet__in { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .5s cubic-bezier(.2, 1.2, .3, 1); transition-delay: calc(var(--i, 0) * 30ms + 180ms); }
@media (prefers-reduced-motion: reduce) {
  .sheet__panel { transition-duration: .01ms; }
  .sheet__in { opacity: 1; transform: none; }
  .sheet__bg, .sheet__mark { animation: none; }
}
@media (min-width: 1081px) { .sheet { display: none !important; } }

/* ajustes móviles de la portada */
@media (max-width: 640px) {
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust__item { padding: 12px 0; }
  .trust__item b { font-size: 22px; }
  .explorer { margin: 0 calc(var(--gutter) * -1 + 6px); padding: 6px; border-radius: 20px; }
  .explorer__txt small { display: none; }
  .explorer__item { padding: 11px 10px; }
  .flow__step { padding: 18px; }
  .flow__n { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .announce__dot { animation: none; }
}

@media print {
  .site-header, .announce, .dock, .site-footer, .closing, .chat, .chat-launcher { display: none; }
}

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

:root { --f-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif; }

/* tarjetas de servicio (índice de servicios) */
.services { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--c-line); text-decoration: none; transition: box-shadow .2s, transform .25s var(--ease); }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-deep); }
.service__icon .icon { width: 19px; height: 19px; }
.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: 5px; margin-top: 8px; font-size: 13.5px; font-weight: 550; color: var(--c-ink); }
.service__cta .icon { width: 14px; height: 14px; }

/* 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: 28px; padding: clamp(10px, 1.6vw, 16px); box-shadow: 0 1px 2px rgba(15, 13, 11, .04), 0 24px 60px rgba(15, 13, 11, .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: 20px; 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(15, 13, 11, .25), transparent 35%, transparent 60%, rgba(15, 13, 11, .35)); }
.story__tag, .story__time { position: absolute; top: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; 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: 500; 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: 999px; }
.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: 999px; 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: 999px; 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: 16px; }
@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: 999px; 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: 22px; 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: 500; 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 ui-monospace, "SF Mono", Menlo, monospace; 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(15, 13, 11, .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(15, 13, 11, .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(15, 13, 11, .12), inset 0 0 0 3px var(--c-accent); }
.deck.is-stack .deck__card.is-no { box-shadow: 0 18px 40px rgba(15, 13, 11, .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: 18px; 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: 999px; 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: 22px; 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: 999px; 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: 26px; 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 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.lead-story__body b { font-family: var(--f-display); font-weight: 500; 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: 999px; 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: 22px; 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: 500; 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; } }

/* ===================================================== pie: pulido + firma */
.site-footer { background: linear-gradient(180deg, var(--c-bg) 0%, #fbf6ef 30%, #f8ecdc 100%); border-radius: 32px 32px 0 0; }
.site-footer .btn { color: var(--b-fg); text-decoration: none; }
.footer-cta { position: relative; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(15, 13, 11, .06), inset 0 0 0 1px rgba(15, 13, 11, .05); }
.footer-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 154, 30, .22), transparent 70%); pointer-events: none; }
.footer-cta__title { font-size: clamp(22px, 2.4vw, 30px); }
.site-footer__title { font-size: 13.5px; }
.site-footer__list a { transition: color .15s, padding .2s var(--ease); }
.site-footer__list a:hover { color: var(--c-accent-deep); padding-left: 3px; }
.site-footer__phone { display: inline-flex; align-items: center; gap: 8px; }
.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(15, 13, 11, .07); 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(--ease); }
.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; }
}
