:root {
  --ink: #14213d;
  --ink-2: #3d4a66;
  --sun: #ffd84d;
  --sun-2: #fff1b8;
  --sky: #e8f3f7;
  --sky-2: #c9e3ec;
  --paper: #ffffff;
  --wa: #0f7a3d;
  --r: 18px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

/* Plaqueta de muestra */
.demo { background: var(--ink); color: #fff; font-size: 1rem; }
.demo__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.demo p { margin: 0; }
.demo b { color: var(--sun); font-weight: 600; }
.demo__btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--sun); border-radius: 999px; color: var(--sun); text-decoration: none; font-weight: 600; }
.demo__btn:hover { background: var(--sun); color: var(--ink); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sky-2); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa svg { width: 24px; height: 24px; }
.btn--wa[aria-disabled="true"] { background: #b8c2cc; color: var(--ink); cursor: not-allowed; }
.link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: 44px; }

/* Portada */
.hero { background: var(--sky); padding: 56px 0 64px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; background: var(--paper); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #8a94a6; }
.status.is-open::before { background: #18a957; }

/* Ventana: un pasada de escobilla sobre el vidrio empañado */
.ventana { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; background: #9fd6ea; box-shadow: 0 0 0 10px var(--paper), 0 0 0 12px var(--ink), 14px 18px 0 12px var(--sun); }
.ventana__vista { position: absolute; inset: 0; width: 100%; height: 100%; }
.ventana__polvo {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(150, 128, 98, .35) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 64%, rgba(150, 128, 98, .3) 0 5%, transparent 6%),
    radial-gradient(circle at 46% 82%, rgba(150, 128, 98, .28) 0 4%, transparent 5%),
    radial-gradient(circle at 84% 22%, rgba(150, 128, 98, .25) 0 3%, transparent 4%),
    rgba(214, 214, 204, .72);
  backdrop-filter: blur(6px) saturate(.4);
  -webkit-backdrop-filter: blur(6px) saturate(.4);
  clip-path: inset(0 0 0 0);
  animation: limpiar 1.6s cubic-bezier(.6, .05, .3, 1) .7s forwards;
}
.ventana__escobilla {
  position: absolute; top: -6%; bottom: -6%; left: 0; width: 22px; margin-left: -11px;
  background: var(--ink); border-radius: 6px;
  box-shadow: inset -6px 0 0 #2c3e66;
  transform: translateX(-30px);
  animation: escobilla 1.6s cubic-bezier(.6, .05, .3, 1) .7s forwards;
}
.ventana__escobilla::after { content: ""; position: absolute; top: 50%; left: 100%; width: 70px; height: 14px; margin-top: -7px; background: var(--sun); border: 2px solid var(--ink); border-radius: 0 8px 8px 0; }
.ventana__marco { position: absolute; inset: 0; pointer-events: none; }
.ventana__marco::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.js .ventana:not(.go) .ventana__polvo, .js .ventana:not(.go) .ventana__escobilla { animation-play-state: paused; }
@keyframes limpiar { to { clip-path: inset(0 0 0 100%); } }
@keyframes escobilla { 0% { transform: translateX(-30px); } 92% { opacity: 1; } 100% { transform: translateX(calc(var(--ancho, 520px) + 90px)); opacity: 0; } }

/* Secciones */
.sec { padding: 72px 0; }
.sec--sky { background: var(--sky); }
.sec--ink { background: var(--ink); color: #fff; }
.sub { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin-bottom: 32px; }

.serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.serv article { padding: 24px 28px 8px 0; }
.serv article + article { padding-left: 28px; border-left: 1px solid var(--sky-2); }
.serv h3::before { content: ""; display: block; width: 44px; height: 10px; border-radius: 5px; background: var(--sun); margin-bottom: 16px; }
.serv p { color: var(--ink-2); }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.calc__opts { display: grid; gap: 26px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label, .extras label { position: relative; cursor: pointer; }
.chips input, .extras input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 2px solid var(--sky-2); font-weight: 600; transition: background .15s, border-color .15s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span, .extras input:focus-visible ~ span { outline: 3px solid var(--ink); outline-offset: 3px; }

.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step { background: var(--paper); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step__l { font-weight: 800; font-size: 1.1rem; }
.step__c { display: flex; align-items: center; gap: 4px; }
.step__c button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 800 1.4rem/1 inherit; cursor: pointer; }
.step__c button:hover { background: var(--sun); }
.step__c button:disabled { opacity: .35; cursor: not-allowed; background: var(--paper); }
.step__c output { min-width: 2ch; text-align: center; font-size: 1.5rem; font-weight: 800; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extras legend { grid-column: 1 / -1; }
.extras label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; background: var(--paper); border-radius: 12px; border: 2px solid transparent; }
.extras span { flex: 1; font-weight: 600; }
.extras span::before { content: ""; display: inline-block; vertical-align: -4px; width: 20px; height: 20px; margin-right: 10px; border: 2px solid var(--ink); border-radius: 5px; background: var(--paper); }
.extras input:checked ~ span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-9' fill='none' stroke='%23ffd84d' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.extras label:has(input:checked) { border-color: var(--ink); }
.extras b { font-weight: 600; color: var(--ink-2); }

.recibo { position: sticky; top: 84px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 24px; }
.recibo__l { margin: 0; font-weight: 600; color: var(--ink-2); }
.recibo__total { margin: 0; font-size: 3.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.recibo__total.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.06); } }
.recibo__det { color: var(--ink-2); margin: 4px 0 14px; }
.recibo__lista { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 2px dashed var(--sky-2); font-size: 1rem; }
.recibo__lista li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.recibo__lista li span:last-child { font-weight: 600; white-space: nowrap; }
.recibo__when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.recibo__when label { display: grid; gap: 4px; font-weight: 600; font-size: 1rem; }
.recibo__barrio { grid-column: 1 / -1; }
select, input[type="text"] { font: inherit; font-size: 1rem; min-height: 48px; padding: 0 12px; border: 2px solid var(--sky-2); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
select:focus, input[type="text"]:focus { border-color: var(--ink); }
.recibo__note { margin: 12px 0 0; font-size: 1rem; color: var(--ink-2); }

/* Pasos (sí es una secuencia) */
.pasos { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pasos li { counter-increment: p; color: var(--ink-2); }
.pasos li::before { content: counter(p); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 1.5rem; margin-bottom: 14px; border: 2px solid var(--ink); }
.pasos b { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 4px; }

/* Antes y después */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ba { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); border: 2px solid var(--ink); }
.ba svg { width: 100%; height: auto; aspect-ratio: 300 / 220; }
.ba__sucio {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 300 / 220;
  background:
    radial-gradient(circle at 18% 70%, rgba(110, 84, 50, .45) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 30%, rgba(110, 84, 50, .35) 0 5%, transparent 6%),
    radial-gradient(circle at 66% 76%, rgba(110, 84, 50, .4) 0 6%, transparent 7%),
    radial-gradient(circle at 82% 40%, rgba(110, 84, 50, .3) 0 4%, transparent 5%),
    rgba(150, 132, 100, .38);
  backdrop-filter: saturate(.3) brightness(.85);
  -webkit-backdrop-filter: saturate(.3) brightness(.85);
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
  pointer-events: none;
}
.ba::after { content: ""; position: absolute; top: 0; left: var(--x); width: 4px; margin-left: -2px; aspect-ratio: auto; height: calc((100%) - 52px); background: var(--sun); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.ba::before { content: "‹ ›"; position: absolute; z-index: 1; left: var(--x); top: calc((100% - 52px) / 2); width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-weight: 800; font-size: 1.1rem; line-height: 1; pointer-events: none; }
.ba input { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: calc(100% - 52px); margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.ba figcaption { white-space: nowrap; overflow: hidden; display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 14px; border-top: 2px solid var(--ink); font-size: 1rem; color: var(--ink-2); }
.ba figcaption span:nth-child(2) { font-weight: 800; color: var(--ink); }
.hint { margin-top: 16px; color: var(--ink-2); font-size: 1rem; }

/* Opiniones */
.sample { border: 2px dashed rgba(255, 255, 255, .5); border-radius: 12px; padding: 12px 16px; max-width: 70ch; color: #dfe6f2; }
.rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.rev__item { margin: 0; padding: 22px; border-radius: var(--r); background: #1f2e50; }
.rev__item p { margin: 12px 0 0; font-size: 1.1rem; }
.badge { display: inline-block; font-size: 1rem; font-weight: 600; background: var(--sun); color: var(--ink); padding: 3px 10px; border-radius: 999px; }

/* Preguntas */
details { border-bottom: 2px solid var(--sky-2); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 800; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); font-size: 1.4rem; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); }

/* Zona */
.loc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.barrios { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.barrios li { background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 24px; }
.hours th, .hours td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sky-2); font-weight: 400; }
.hours th { font-weight: 600; }
.hours tr.is-today { background: var(--sun-2); }
.map { border-radius: var(--r); overflow: hidden; border: 2px solid var(--ink); aspect-ratio: 4 / 3.4; background: var(--sky-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.foot { background: var(--ink); color: #dfe6f2; padding: 32px 0 96px; font-size: 1rem; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: #fff; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(20, 33, 61, .3); }
.wa-float svg { width: 32px; height: 32px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero { padding: 32px 0 48px; }
  .hero__in, .calc, .loc { grid-template-columns: 1fr; }
  .hero__in { gap: 36px; }
  .ventana { width: calc(100% - 26px); }
  .recibo { position: static; }
  .serv, .pasos, .rev, .gal { grid-template-columns: 1fr; }
  .serv article, .serv article + article { padding: 20px 0 4px; border-left: 0; }
  .serv article + article { border-top: 1px solid var(--sky-2); }
}
@media (max-width: 560px) {
  .demo__q { display: none; }
  .demo__btn { padding: 0 12px; font-size: 1rem; }
  .sec { padding: 56px 0; }
  .steppers, .extras { grid-template-columns: 1fr; }
  .recibo { padding: 18px; }
  .recibo__total { font-size: 3rem; }
  .logo span { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ventana__polvo, .ventana__escobilla { animation: none; }
  .ventana__polvo { clip-path: inset(0 0 0 100%); }
  .ventana__escobilla { display: none; }
  .recibo__total.bump { animation: none; }
  .btn { transition: none; }
}
