/* ==========================================================================
   COTA — plantilla de reformas · tema claro
   ========================================================================== */
:root {
  --paper: #f5f5f7;
  --paper-2: #e8e8ed;
  --white: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #424245;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --line-2: rgba(0, 0, 0, .2);
  --dark: #0b0b0c;
  --accent: #f2b51d; /* solo para el flexómetro */
  --wa: #25d366;

  /* tipografía del sistema de Apple (SF Pro) y, fuera de Apple, Inter, que es casi idéntica */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --hand: "Architects Daughter", "Comic Sans MS", cursive;
  --mono: "SF Mono", ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.25, .8, .25, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; font-weight: 400; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.sr-defs { position: absolute; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { display: flex; justify-content: center; }
::selection { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 15px 26px; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #333; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; font-size: 17px; transition: background .25s, color .25s;
}
.arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   LIQUID GLASS (solo reseñas y letras del inicio)
   -------------------------------------------------------------------------- */
.lg {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.66) 45%, rgba(255,255,255,.76));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.35), 0 24px 60px -24px rgba(0,0,0,.35);
}
.lg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.2) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
html.refract .lg {
  -webkit-backdrop-filter: url(#lg-distort) blur(18px) saturate(160%);
  backdrop-filter: url(#lg-distort) blur(18px) saturate(160%);
}

/* --------------------------------------------------------------------------
   CABECERA + MENÚ + ÍNDICE
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: 68px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgba(246,246,244,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--line); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; }
.topbar-section { position: absolute; left: 50%; transform: translateX(-50%); color: var(--ink-3); text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.topbar.solid .topbar-section { opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper); font-size: 13.5px; font-weight: 500;
}
.menu-btn i { position: relative; width: 16px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 6.5px; }
body.menu-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg); }
body.menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--paper); padding: 110px var(--pad) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1); visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-list a {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: clamp(30px, 4.4vw, 60px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05; opacity: 0; transform: translateY(14px);
  transition: opacity .5s, transform .5s var(--ease), color .2s;
}
body.menu-open .menu-list a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 200ms); }
.menu-list a small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; }
.menu-list a span:last-child { font-size: 18px; color: var(--ink-3); transition: transform .3s var(--ease); }
.menu-list a:hover span:last-child { transform: translateX(6px); color: var(--ink); }
.menu-list a:hover { color: var(--ink-2); }
.menu-side { display: flex; flex-direction: column; gap: 22px; }
.menu-photo { flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1s var(--ease); }
.menu-photo:hover img { filter: none; transform: scale(1.03); }
.menu-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; color: var(--ink-2); }
.menu-contact b { display: block; color: var(--ink-3); font-weight: 400; text-transform: uppercase; margin-bottom: 4px; }

.index {
  position: fixed; right: 18px; top: 50%; z-index: 50; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; opacity: 0; transition: opacity .4s;
}
body.past-hero .index { opacity: 1; }
.index a { display: flex; align-items: center; gap: 10px; padding: 5px 0; font: 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.index a span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), opacity .3s; }
.index a i { width: 14px; height: 1px; background: var(--ink-3); transition: width .3s var(--ease), background .3s; }
.index a.on { color: var(--ink); }
.index:hover a span { max-width: 160px; opacity: 1; }
.index:hover { background: rgba(246,246,244,.94); padding: 8px 0 8px 14px; border-radius: 8px 0 0 8px; }
.index a.on i { width: 28px; background: var(--ink); }

/* --------------------------------------------------------------------------
   INICIO: del boceto a la realidad
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 260vh; height: 260svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
/* la lámina: en móvil ocupa toda la pantalla; en escritorio, la derecha */
.hero-stage { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform, filter; }
.hero-stage::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.25)); opacity: var(--shade, 0);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-legend { margin: 6px 0 0; color: var(--ink-2); text-transform: uppercase; display: none; }
/* velo de papel detrás del rótulo: se borra junto con el dibujo */
.sketch-veil { position: absolute; pointer-events: none; background: radial-gradient(closest-side, rgba(252,252,250,.96), rgba(252,252,250,.82) 55%, rgba(252,252,250,0)); }
@media (min-width: 901px) {
  /* el nombre en el centro del dibujo */
  .hero .hero-center { justify-content: center; padding: 68px var(--pad) 40px; gap: 12px; }
  .hero .hero-eyebrow, .hero .hero-tag { background: none; padding: 0; }
  .hero .hero-tag { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
  .hero-legend { display: block; }
}
/* capa del dibujo: papel cuadriculado + alzado en SVG. Se borra con la aguada al hacer scroll */
.sketch-layer {
  position: absolute; inset: 0; z-index: 2; will-change: mask-image;
  background: #fcfcfa; /* papel blanco, líneas negras */
}
.sketch-notes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .5s ease; }
.sketch-layer.ready .sketch-notes { opacity: 1; }
.sketch-notes path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sketch-notes .main { stroke: #111; stroke-width: 1.2; }
.sketch-notes .vec { stroke: #111; stroke-width: 1.6; }
.sketch-notes .guide { stroke: rgba(0,0,0,.28); stroke-width: .8; }
.sketch-notes .hl { stroke: rgba(0,0,0,.5); stroke-width: .8; }
.sketch-notes .hatch { stroke: rgba(0,0,0,.45); stroke-width: .7; }
.sketch-notes text { font-family: var(--hand); fill: #1f1f22; paint-order: stroke; stroke: #fcfcfa; stroke-width: 4px; stroke-linejoin: round; }
.sketch-notes text.note { fill: #111; text-transform: uppercase; letter-spacing: .03em; }
.sketch-notes text.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; stroke-width: 0; }
.sketch-notes text.sm { font-size: 9.5px; }
.sketch-notes text.big { font-size: 22px; font-weight: 500; }
.sketch-notes rect.tb { fill: rgba(252,252,250,.94); stroke: #1f1f22; stroke-width: 1; }

.hero-center {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; padding: calc(68px + 4.5vh) var(--pad) 0; text-align: center; pointer-events: none;
}
.hero-eyebrow { text-transform: uppercase; color: var(--ink); background: rgba(246,246,244,.85); padding: 6px 12px; border-radius: 4px; animation: fadeUp 1s var(--ease) both .3s; }
.hero-tag { margin: 0; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; color: var(--ink); background: rgba(246,246,244,.85); padding: 6px 14px; border-radius: 4px; animation: fadeUp 1s var(--ease) both .6s; }

/* letras de cristal */
.glass-word { position: relative; margin: 0; width: 100%; height: var(--gw-h, 30vh); animation: fadeUp 1.2s var(--ease) both .1s; }
.glass-word svg, .gw-glass { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glass-word text { font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em; text-transform: uppercase; }
.gw-glass {
  clip-path: url(#gwClip); -webkit-clip-path: url(#gwClip);
  /* cristal ahumado negro */
  background: linear-gradient(180deg, rgba(40,40,38,.55), rgba(8,8,8,.72) 55%, rgba(24,24,22,.62));
  -webkit-backdrop-filter: blur(7px) saturate(130%) brightness(.62) contrast(1.1);
  backdrop-filter: blur(7px) saturate(130%) brightness(.62) contrast(1.1);
}
html.refract .gw-glass {
  -webkit-backdrop-filter: url(#gw-distort) blur(6px) saturate(130%) brightness(.62) contrast(1.1);
  backdrop-filter: url(#gw-distort) blur(6px) saturate(130%) brightness(.62) contrast(1.1);
}
.gw-shadow text { fill: rgba(0,0,0,.3); filter: blur(16px); transform: translateY(16px); }
.gw-spec { fill: #fff; }
.gw-edge { fill: none; stroke: rgba(0,0,0,.55); stroke-width: 1.4; }
.gw-rim { fill: none; stroke: url(#gwRim); stroke-width: 1.6; transform: translate(.8px, 1.4px); }


.hero-phases {
  position: absolute; z-index: 6; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 999px;
  background: rgba(246,246,244,.9); text-transform: uppercase; color: var(--ink-3);
}
.ph { transition: color .3s; } .ph.on { color: var(--ink); }
.ph-bar { position: relative; width: clamp(90px, 18vw, 200px); height: 2px; background: var(--line-2); overflow: hidden; }
.ph-bar b { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   SECCIONES
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) var(--pad); }
.sec-head { max-width: var(--max); margin: 0 auto clamp(44px, 6vw, 72px); position: relative; z-index: 2; }
.kicker { display: inline-block; text-transform: uppercase; color: var(--ink-3); }
.sec-head h2, .contact-lead h2 {
  margin: 14px 0 0; font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(38px, 6vw, 88px); max-width: 15ch;
}
.sec-sub { margin: 20px 0 0; max-width: 48ch; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   RESEÑAS
   -------------------------------------------------------------------------- */
.reviews { overflow: hidden; padding-bottom: clamp(80px, 9vw, 120px); }
.reviews-bg { position: absolute; inset: clamp(300px, 32vw, 420px) 0 0 0; z-index: 0; }
.reviews-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.reviews-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--paper) 0%, rgba(246,246,244,.35) 22%, rgba(246,246,244,.25) 70%, var(--paper) 100%); }
/* fundido suave de las imágenes al cargar */
.fade-img { opacity: 0; transition: opacity .8s var(--ease); }
.fade-img.loaded { opacity: 1; }
.reviews .sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.reviews .sec-head > div:first-child { flex: 1; }
.reviews .sec-head .kicker { width: 100%; }
.reviews .sec-head h2 { flex: 1 1 520px; }
.rating { display: flex; align-items: center; gap: 14px; }
.rating b { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: center; gap: 10px; }
.rating b svg { width: .62em; height: .62em; }
.rating small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }

.rv-stage { position: relative; z-index: 2; height: 440px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; margin: 0 calc(var(--pad) * -1); }
.rv-stage.dragging { cursor: grabbing; }
.rv-track { position: absolute; inset: 0; }
.rv-slot { position: absolute; left: 50%; top: 50%; width: min(360px, 82vw); height: 400px; will-change: transform; }
.rv-in { width: 100%; height: 100%; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.rv-stage.in .rv-in { opacity: 1; transform: none; }
.rv-card { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; }
.rv-face { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; padding: 26px; }
.rv-back { display: none; padding: 0; }
.rv-card.flipped .rv-front { display: none; }
.rv-card.flipped .rv-back { display: flex; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rv-head b { display: block; font-weight: 600; font-size: 15.5px; }
.rv-head small { display: block; color: var(--ink-2); font-size: 13px; }
.rv-star { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; }
.rv-star svg { width: 13px; height: 13px; }
.rv-text { margin: 22px 0 auto; font-size: 17.5px; line-height: 1.55; font-weight: 450; color: #111; }
.rv-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; margin-top: 18px; border-top: 1px solid rgba(17,17,17,.1); font-size: 12.5px; color: var(--ink-2); }
.rv-foot button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rv-back img { width: 100%; height: 55%; object-fit: cover; }
.rv-back-body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.rv-back-body h4 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rv-back-body > small { color: var(--ink-2); }
.rv-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; border-top: 1px solid rgba(17,17,17,.1); }
.rv-specs div { padding: 12px 0 0; }
.rv-specs small { display: block; font: 10.5px var(--mono); text-transform: uppercase; color: var(--ink-3); }
.rv-specs b { font-weight: 600; font-size: 15px; }
.rv-slot:not(.active) .rv-card { pointer-events: none; }

.rv-bar { position: relative; z-index: 2; max-width: var(--max); margin: 18px auto 44px; display: flex; justify-content: space-between; align-items: center; }
.rv-count { color: var(--ink-2); }
.rv-arrows { display: flex; gap: 8px; }
.rv-arrows .arrow { background: rgba(246,246,244,.7); }
.btn-glass { color: var(--ink); padding: 16px 28px; }
.btn-glass:hover { background: rgba(255,255,255,.75); }

/* --------------------------------------------------------------------------
   FRASE QUE SE ESCRIBE CON EL SCROLL
   -------------------------------------------------------------------------- */
.manifesto { position: relative; height: 220vh; background: var(--white); border-top: 1px solid var(--line); }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.manifesto-text { margin: 0; font-size: clamp(34px, 5.4vw, 84px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; max-width: 20ch; }
.manifesto-text span { color: #d2d2d7; transition: color .35s ease; }
.manifesto-text span.on { color: var(--ink); }

/* --------------------------------------------------------------------------
   OBRAS (plano)
   -------------------------------------------------------------------------- */
.works { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.works::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); mask: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}
.plan { position: relative; max-width: var(--max); margin: 0 auto; z-index: 2; }
.plan-lines { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); overflow: visible; pointer-events: none; z-index: 3; }
.plan-lines path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-lines .wall { stroke-opacity: .45; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.plan-lines .tick { stroke-opacity: .6; opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i) * 70ms + 700ms); }
.plan-lines .dim { opacity: 0; transition: opacity .6s 1s; }
.plan-lines text { fill: var(--ink-2); font: 11px var(--mono); letter-spacing: .06em; opacity: 0; transition: opacity .6s 1.1s; }
.plan.in .wall { stroke-dashoffset: 0; }
.plan.in .tick, .plan.in .dim, .plan.in text { opacity: 1; }

.plan-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(56px, 7vw, 90px); gap: 18px; }
.room { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; background: var(--paper-2); outline: none; border-radius: 3px; }
.room:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 5; }
.room:nth-child(2) { grid-column: 8 / span 5; grid-row: 1 / span 3; }
.room:nth-child(3) { grid-column: 8 / span 3; grid-row: 4 / span 2; }
.room:nth-child(4) { grid-column: 11 / span 2; grid-row: 4 / span 2; }
.room:nth-child(5) { grid-column: 1 / span 4; grid-row: 6 / span 4; }
.room:nth-child(6) { grid-column: 5 / span 4; grid-row: 6 / span 4; }
.room:nth-child(7) { grid-column: 9 / span 4; grid-row: 6 / span 4; }
.room:nth-child(n+8) { grid-column: span 4; grid-row: span 3; }
.room img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--i) * 90ms + 500ms); }
.plan.in .room img { opacity: 1; transform: none; }
.room:hover img { transform: scale(1.04); transition-delay: 0s; }
.room-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 10.5px var(--mono); padding: 4px 8px; background: var(--paper); color: var(--ink); border-radius: 2px; }
.room-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; display: flex; justify-content: space-between; align-items: end; gap: 10px;
  background: var(--paper); transform: translateY(101%); transition: transform .45s var(--ease);
}
.room-cap b { display: block; font-weight: 600; font-size: 15px; }
.room-cap small { font: 11px var(--mono); color: var(--ink-2); }
.room:hover .room-cap, .room:focus-visible .room-cap { transform: none; }
html.touch .room-cap { transform: none; }

/* --------------------------------------------------------------------------
   REFORMA INTEGRAL — flexómetro
   -------------------------------------------------------------------------- */
.integral { background: var(--paper); }
.tape-wrap { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 170px 1fr; gap: clamp(16px, 4vw, 64px); }
.tape-col { position: relative; }
.tape-case { position: relative; z-index: 3; display: block; width: 150px; height: 141px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.22)); }
.tape-brand { font: 800 13px var(--sans); letter-spacing: .12em; fill: #1a1a1a; text-transform: uppercase; }
.tape-spec { font: 600 6.5px var(--sans); letter-spacing: .04em; fill: #3d3f41; }
/* cinta: amarillo con curvatura, marcas en los dos bordes (½ cm, cm, 5 cm, 10 cm) */
.tape-strip {
  --t: #151515;
  position: absolute; top: 128px; left: 20px; width: 54px; height: 0; overflow: hidden; z-index: 2;
  background-color: #f2b51d;
  background-image:
    repeating-linear-gradient(to bottom, var(--t) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(to bottom, var(--t) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(to bottom, var(--t) 0 1.4px, transparent 1.4px 50px),
    repeating-linear-gradient(to bottom, var(--t) 0 1.4px, transparent 1.4px 100px),
    repeating-linear-gradient(to bottom, var(--t) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(to bottom, var(--t) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(to bottom, var(--t) 0 1.4px, transparent 1.4px 50px),
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,0) 8%, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 60%, rgba(0,0,0,.08) 85%, rgba(0,0,0,.3) 100%);
  background-size: 5px 100%, 8px 100%, 13px 100%, 20px 100%, 5px 100%, 8px 100%, 13px 100%, 100% 100%;
  background-position: left 2px top, left 2px top, left 2px top, left 2px top, right 2px top, right 2px top, right 2px top, 0 0;
  background-repeat: no-repeat;
  box-shadow: inset 1px 0 0 rgba(120,80,0,.6), inset -1px 0 0 rgba(120,80,0,.6), 3px 2px 8px rgba(0,0,0,.18);
}
.tape-strip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; z-index: 2; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.tape-nums { position: absolute; inset: 0; }
.tape-nums span { position: absolute; left: 50%; transform: translate(-50%, -50%); font: 700 13px var(--sans); letter-spacing: -0.02em; color: #151515; }
.tape-nums span.d { color: #c4241a; font-size: 15px; font-weight: 800; }
.tape-nums span.h { font-size: 10px; font-weight: 600; }
.tape-nums span.m { background: #c4241a; color: #fff; padding: 0 3px; border-radius: 1px; font-weight: 800; }
.tape-tip { position: absolute; left: 12px; top: 128px; width: 70px; z-index: 3; will-change: transform; }
.tape-hook { display: block; width: 70px; height: 24px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.tape-read { position: absolute; left: 82px; top: 2px; white-space: nowrap; color: var(--ink); font-weight: 600; }

.inc-list { list-style: none; margin: 0; padding: 224px 0 20px; }
.inc-item {
  position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 6px 24px; padding: 26px 0;
  border-top: 1px solid var(--line); color: var(--ink-3); transition: color .5s;
}
.inc-item::before { content: ""; position: absolute; top: -1px; left: calc(-1 * clamp(16px, 4vw, 64px) - 92px); width: calc(clamp(16px, 4vw, 64px) + 92px); height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.inc-item.on { color: var(--ink); }
.inc-item.on::before { transform: scaleX(1); }
.inc-m { font: 12px var(--mono); padding-top: 7px; }
.inc-item h3 { margin: 0; font-weight: 600; font-size: clamp(21px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.inc-item p { grid-column: 2; margin: 0; max-width: 54ch; color: inherit; opacity: .8; }

.cta-block {
  max-width: var(--max); margin: clamp(60px, 8vw, 100px) auto 0; padding: clamp(32px, 5vw, 64px);
  background: var(--dark); color: var(--paper); border-radius: 6px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
  position: relative; overflow: hidden; isolation: isolate; min-height: clamp(300px, 34vw, 420px);
}
.cta-bg, .footer-bg, .stats-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cta-bg { filter: grayscale(.15); transform: scale(1.04); transition: transform 6s ease-out; }
.cta-block.in .cta-bg { transform: none; }
.cta-block::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,10,10,.88) 20%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.3)); }
.cta-block h3 { margin: 0; font-weight: 600; font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 1; }
.cta-block h3 em { color: rgba(255,255,255,.62); }
.cta-block p { margin: 14px 0 0; color: rgba(255,255,255,.85); max-width: 42ch; }

/* --------------------------------------------------------------------------
   PROCESO
   -------------------------------------------------------------------------- */
.steps { background: var(--white); border-top: 1px solid var(--line); }
/* planning de obra (Gantt) */
.gantt { --lab: minmax(260px, 34%); --p: 0; max-width: var(--max); margin: 0 auto; border: 1px solid var(--ink); background: var(--white); }
.g-top { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; background: var(--ink); color: #fff; text-transform: uppercase; }
.g-body { position: relative; }
.g-scale, .g-row { display: grid; grid-template-columns: var(--lab) 1fr; }
.g-scale { border-bottom: 1px solid var(--ink); color: var(--ink-3); }
.g-scale > span { border-right: 1px solid var(--line); }
.g-weeks { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); }
.g-weeks span { padding: 9px 0; text-align: center; border-left: 1px solid var(--line); font-size: 11px; }
.g-rows { list-style: none; margin: 0; padding: 0; }
.g-row { border-bottom: 1px solid var(--line); transition: background .3s; }
.g-row:last-child { border-bottom: 0; }
.g-row[data-state="doing"] { background: var(--paper); }
.g-label { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 20px 18px; border-right: 1px solid var(--line); }
.g-n { color: var(--ink-3); }
.g-label h3 { margin: 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.g-label p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.g-state { font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.g-row[data-state="doing"] .g-state { color: var(--ink); }
.g-row[data-state="done"] .g-state { color: var(--ink); }
.g-track {
  position: relative; min-height: 72px;
  background: linear-gradient(90deg, var(--line) 0 1px, transparent 1px) 0 0 / calc(100% / var(--weeks)) 100% repeat-x;
}
.g-bar { position: absolute; top: 50%; height: 26px; margin-top: -13px; min-width: 10px; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--white); }
.g-fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); will-change: transform;
  background: repeating-linear-gradient(135deg, var(--ink) 0 6px, #2c2c2e 6px 12px);
}
.g-time { position: absolute; top: 50%; margin-top: -30px; font-size: 10.5px; white-space: nowrap; color: var(--ink-2); text-transform: uppercase; }
.g-mile { position: absolute; top: 50%; transform: translate(-50%, -50%); padding-top: 44px; font-size: 10px; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.g-mile::before { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: 9px 0 0 -7px; background: var(--white); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.g-row[data-state="done"] .g-mile::before { background: var(--ink); }
/* línea "Hoy" que avanza con el scroll */
.g-now { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; left: calc(var(--lab-px, 34%) + (100% - var(--lab-px, 34%)) * var(--p)); border-left: 2px solid #c4241a; opacity: 0; transition: opacity .3s; }
.g-now.on { opacity: 1; }
.g-now span { position: absolute; top: -1px; left: -1px; transform: translateX(-50%); padding: 3px 7px; background: #c4241a; color: #fff; font-size: 10px; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   CONTACTO
   -------------------------------------------------------------------------- */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.big-links { margin-top: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.big-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.8vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  transition: padding .35s var(--ease); word-break: break-word;
}
.big-links a small { font: 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.big-links a:hover { padding-left: 12px; }
.spec-sheet { margin: 0; border: 1px solid var(--ink); font-size: 14.5px; }
.spec-sheet div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.spec-sheet div:last-child { border-bottom: 0; }
.spec-sheet dt { padding: 14px 16px; font: 11px var(--mono); text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--line); }
.spec-sheet dd { margin: 0; padding: 12px 16px; }
.spec-head { background: var(--ink); color: var(--paper); }
.spec-head dt, .spec-head dd { color: var(--paper); border-color: rgba(255,255,255,.2) !important; }

.map { position: relative; max-width: var(--max); margin: clamp(40px, 5vw, 64px) auto 0; height: clamp(320px, 42vw, 500px); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(1.02); }
.map-card {
  position: absolute; left: 20px; top: 20px; width: min(340px, calc(100% - 80px)); padding: 20px 22px;
  background: var(--white); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.map-card small { font: 11px var(--mono); text-transform: uppercase; color: var(--ink-3); }
.map-card b { display: block; margin: 6px 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.map-card span { color: var(--ink-2); font-size: 14px; }
.map-card a { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   PIE
   -------------------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--paper); padding: clamp(60px, 8vw, 110px) var(--pad) 24px; overflow: hidden; }
.footer-cta {
  position: relative; isolation: isolate; overflow: hidden; max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px); border-radius: 6px; min-height: clamp(280px, 30vw, 400px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.footer-bg { filter: grayscale(.2) brightness(.9); }
.footer-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,17,.35), rgba(17,17,17,.85)); }
.footer-kicker { margin: 0 0 18px; color: #d8d8d4; text-transform: uppercase; }
.footer-cta-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0; border: 0; background: none; color: var(--paper); text-align: left;
  font-size: clamp(40px, 8vw, 128px); font-weight: 600; letter-spacing: -0.045em; line-height: .95;
}
.footer-cta-btn i { font-style: normal; flex: none; width: clamp(56px, 8vw, 120px); height: clamp(56px, 8vw, 120px); border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: .4em; transition: background .3s, color .3s, transform .4s var(--ease); }
.footer-cta-btn:hover i { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
.footer-cols { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h4 { margin: 0 0 16px; font: 11px var(--mono); text-transform: uppercase; color: #8f8f8a; font-weight: 400; letter-spacing: .06em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a, .footer-cols li { color: #d8d8d4; font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-word {
  max-width: var(--max); margin: 0 auto; font-weight: 800; text-transform: uppercase;
  font-size: clamp(80px, 19vw, 300px); line-height: .78; letter-spacing: -0.05em; color: #1f1f1e; user-select: none; white-space: nowrap; overflow: hidden;
}
.footer-legal { max-width: var(--max); margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: #8f8f8a; }
.footer-legal button { border: 0; background: none; padding: 0; color: #d8d8d4; font: inherit; }
.footer-legal button:hover { color: #fff; }

/* --------------------------------------------------------------------------
   MODALES
   -------------------------------------------------------------------------- */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: 0; border: 0; border-radius: 8px; background: var(--white); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.modal[open] { animation: fadeUp .45s var(--ease); }
.modal::backdrop { background: rgba(17,17,17,.45); }
.modal-form { position: relative; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.modal-form h3 { margin: 0 0 4px; font-weight: 600; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; }
.modal-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); }
.modal-form input:not([type=range]), .modal-form textarea, .modal-form select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; outline: none; resize: vertical;
}
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: var(--ink); background: var(--white); }
.modal-form input[type=range] { accent-color: var(--ink); }
.modal-form output { color: var(--ink); }
.modal-form .btn { align-self: flex-start; margin-top: 6px; }
.modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 20px; line-height: 1; }
.modal-alt, .modal-note { color: var(--ink-3); margin: 0; }
.modal-alt:hover { color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stars-input { display: flex; gap: 2px; }
.stars-input button { border: 0; background: none; font-size: 28px; color: #d0d0cc; padding: 0 2px; transition: color .15s; }
.stars-input button.on { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line-2); background: var(--white); border-radius: 99px; padding: 8px 14px; font-size: 13px; transition: all .2s; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(246,246,244,.97); color: var(--ink); }
.lightbox[open] { display: grid; place-items: center; animation: fadeUp .4s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(1200px, 90vw); max-height: 76svh; object-fit: contain; }
.lb-cap { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap; color: var(--ink-2); }
.lb-prev, .lb-next, .lb-x { position: absolute; background: var(--white); }
.lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; } .lb-x { right: 20px; top: 20px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 160%); padding: 13px 20px; border-radius: 6px; font-size: 14px; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease); }
.toast.on { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   CIFRAS
   -------------------------------------------------------------------------- */
.stats { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 150px) var(--pad); color: #fff; }
.stats-bg { filter: grayscale(.25); transform: scale(1.08); will-change: transform; }
.stats::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.78)); }
.stats-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-list li { padding: 8px 24px 8px 0; border-left: 1px solid rgba(255,255,255,.25); padding-left: 24px; }
.stats-list b {
  display: block; font-size: clamp(44px, 6vw, 88px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-list b small { font-size: .38em; letter-spacing: -0.01em; font-weight: 600; margin-left: 4px; }
.stats-list li > span { display: block; margin-top: 12px; color: rgba(255,255,255,.82); font-size: 15px; max-width: 20ch; }

/* --------------------------------------------------------------------------
   WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.wa[hidden] { display: none; }
.wa-btn {
  pointer-events: auto; position: relative; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px;
  border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.55), 0 4px 10px rgba(0,0,0,.12);
  transform: translateY(140%) scale(.6); opacity: 0;
  transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .4s, box-shadow .3s;
}
.wa.show .wa-btn { transform: none; opacity: 1; }
.wa-btn:hover { box-shadow: 0 18px 36px -8px rgba(37,211,102,.7), 0 4px 10px rgba(0,0,0,.14); }
.wa-btn::before, .wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); opacity: 0; pointer-events: none; }
.wa.show .wa-btn::before { animation: waRing 3.2s ease-out 1.2s infinite; }
.wa.show .wa-btn::after { animation: waRing 3.2s ease-out 1.6s infinite; }
@keyframes waRing { 0% { opacity: .7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.35, 1.6); } }
.wa.show .wa-btn svg { animation: waWiggle 3.2s ease-in-out 1s infinite; }
@keyframes waWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(4deg); } }

.wa-bubble {
  pointer-events: auto; position: relative; width: min(290px, calc(100vw - 40px)); padding: 14px 16px 16px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--ink); box-shadow: 0 20px 50px -12px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.05);
  transform-origin: bottom right; transform: translateY(10px) scale(.85); opacity: 0; visibility: hidden;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s, visibility 0s .5s;
}
.wa.bubble .wa-bubble { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.wa-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 16px; line-height: 1; color: var(--ink-2); }
.wa-who { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.wa-who small { color: var(--ink-3); font-size: 12px; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37,211,102,.2); }
.wa-typing { display: inline-flex; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: waType 1s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waType { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-msg { display: none; margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; }
.wa.typed .wa-typing { display: none; }
.wa.typed .wa-msg { display: block; animation: fadeUp .4s var(--ease); }
body.menu-open .wa { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .index, .topbar-section { display: none; }
  .menu { grid-template-columns: 1fr; padding-top: 96px; }
  .menu-photo { display: none; }
  .contact-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .stats-list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  /* planning en móvil: la descripción encima de su barra */
  .gantt { --lab: 1fr; }
  .g-scale { grid-template-columns: 1fr; } .g-scale > span { display: none; }
  .g-row { grid-template-columns: 1fr; }
  .g-label { border-right: 0; padding: 16px 14px 4px; position: relative; z-index: 2; background: var(--white); }
  .g-row[data-state="doing"] .g-label { background: var(--paper); }
  .g-track { min-height: 54px; }
  .g-weeks span { font-size: 9px; padding: 7px 0; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; }
  .topbar .btn-sm { display: none; }
  .hero-center { padding-top: calc(60px + 4vh); }
  .hero-phases { bottom: 24px; }
  .rv-stage { height: 410px; }
  .rv-slot { height: 380px; }
  .rv-text { font-size: 16px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 10px; }
  .room:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .room:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
  .room-cap { padding: 10px 12px; }
  .room-cap b { font-size: 13.5px; }
  .room-cap > small, .room:not(:nth-child(3n+1)) .room-cap small { display: none; }
  .tape-wrap { grid-template-columns: 74px 1fr; gap: 14px; }
  .tape-case { width: 80px; height: 75px; }
  .tape-strip { top: 68px; left: 10px; width: 32px; background-size: 3px 100%, 5px 100%, 8px 100%, 12px 100%, 3px 100%, 5px 100%, 8px 100%, 100% 100%; background-position: left 1px top, left 1px top, left 1px top, left 1px top, right 1px top, right 1px top, right 1px top, 0 0; }
  .tape-nums span { font-size: 10px; } .tape-nums span.d { font-size: 11px; } .tape-nums span.h { display: none; }
  .tape-tip { top: 68px; left: 5px; width: 42px; }
  .tape-hook { width: 42px; height: 14px; }
  .tape-read { left: 0; top: 14px; font-size: 10.5px; }
  .inc-list { padding-top: 163px; }
  .inc-item { grid-template-columns: 1fr; gap: 6px; }
  .inc-item p { grid-column: 1; }
  .inc-item::before { display: none; }
  .contact-top { gap: 40px; }
  .spec-sheet div { grid-template-columns: 96px 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-cta-btn i { width: 52px; height: 52px; font-size: 20px; }
  .footer-cta { padding: 32px 22px; min-height: 260px; }
  .stats-list li { padding-left: 16px; padding-right: 8px; }
  .stats-list li > span { font-size: 13.5px; }
  .stats-list b { font-size: 44px; }
  .wa { right: 14px; bottom: 14px; }
  .wa-btn { height: 54px; padding: 0 14px; }
  .wa-label { display: none; }
  .cta-block { min-height: 0; }
  .row2 { grid-template-columns: 1fr; }
  .modal-form { padding: 28px 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 70px; }
  .lb-cap { white-space: normal; width: calc(100% - 32px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
