/* ════════════════════════════════════════════════════════════
   JM Reformas Integrales · negro, blanco y amarillo obra
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fuentes/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fuentes/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --negro: #0c0c0d;
  --carbon: #151517;
  --carbon2: #1d1d20;
  --texto: #1a1a1c;
  --suave: #626268;
  --tenue: #8e8e95;
  --linea: #e7e7ea;
  --gris: #f4f4f5;
  --blanco: #fff;
  --acento: #ffc61a;
  --acento2: #ffd447;
  --amarillo: #fbbc04;
  --wa: #25d366;
  --wa2: #1ebe5b;
  --rojo: #e5484d;
  --e: cubic-bezier(.2, .8, .2, 1);
  --e2: cubic-bezier(.65, 0, .35, 1);
  --cab: 68px;
  --env: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --disp: Archivo, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab) + 8px); }
body {
  margin: 0; background: var(--blanco); color: var(--texto);
  font: 400 17px/1.6 Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2 {
  font-family: var(--disp); font-stretch: 112%; font-weight: 700;
  letter-spacing: -.035em; line-height: 1; color: var(--negro); text-wrap: balance;
}
h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--negro); }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--negro); }
::selection { background: var(--acento); color: var(--negro); }
:focus-visible { outline: 2px solid var(--negro); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oculto { position: absolute; left: -9999px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-g { width: 16px; height: 16px; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--negro); color: #fff; padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.saltar:focus { top: 12px; }
.envol { max-width: var(--env); margin: 0 auto; padding: 0 var(--gut); }
.tenue { color: var(--tenue); }
.nar { background: linear-gradient(var(--acento), var(--acento)) no-repeat 0 86% / 100% .3em; }
.oscura :focus-visible { outline-color: var(--acento); }

/* estrellas */
.estrellas { display: inline-flex; gap: 2px; color: var(--amarillo); }
.estrellas svg { width: 15px; height: 15px; }
.estrellas .media { -webkit-mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.25) 60%); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.25) 60%); }

/* ─── Botones ─── */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 15.5px/1 Geist, sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--e), color .3s var(--e), border-color .3s var(--e), transform .2s var(--e), box-shadow .3s var(--e);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-s { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-l { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn .flecha { transition: transform .35s var(--e); }
.btn:hover .flecha { transform: translateX(4px); }
.btn-negro { background: var(--negro); color: #fff; }
.btn-negro:hover { background: var(--acento); color: var(--negro); }
.btn-negro .ic-wa { color: var(--wa); transition: color .3s; }
.btn-negro:hover .ic-wa { color: var(--negro); }
.btn-linea { box-shadow: inset 0 0 0 1px #d6d6db; color: var(--negro); background: #fff; }
.btn-linea:hover { box-shadow: inset 0 0 0 1.5px var(--negro); }
.btn-wa { background: var(--wa); color: #052e14; }
.btn-wa:hover { background: var(--wa2); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn-acento { background: var(--acento); color: var(--negro); }
.btn-acento:hover { background: var(--acento2); box-shadow: 0 12px 28px -12px rgba(230, 170, 0, .8); }
.btn-txt { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: var(--suave); padding: 8px; }
.btn-txt:hover { color: var(--negro); }

/* ─── Cabecera ─── */
.cab {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab);
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow .3s var(--e);
}
.cab.solida { box-shadow: 0 1px 0 var(--linea); }
.cab-in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.sello { width: 40px; height: 40px; transition: transform .6s var(--e); }
.marca:hover .sello { transform: rotate(-12deg); }
.sello-jm { font-family: var(--disp); font-stretch: 118%; font-weight: 800; font-size: 14px; letter-spacing: -.04em; fill: #fff; }
.sello-jm.grande { font-size: 30px; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.1; }
.marca-txt b { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 17px; letter-spacing: -.03em; color: var(--negro); }
.marca-txt span { font-size: 12.5px; color: var(--suave); letter-spacing: 0; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: #4b4b52; text-decoration: none; border-radius: 99px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--negro); transform: scale(0); transition: transform .3s var(--e); }
.nav a:hover { color: var(--negro); }
.nav a.activo { color: var(--negro); }
.nav a.activo::after { transform: scale(1); }
.cab-acc { display: flex; align-items: center; gap: 8px; flex: none; }
.hamb { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gris); }
.hamb .ic { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: var(--cab) 0 0; z-index: 49; background: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 16px var(--gut) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .3s var(--e); overflow-y: auto; pointer-events: none;
}
.menu.abierto { opacity: 1; pointer-events: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 30px; letter-spacing: -.035em;
  color: var(--negro); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--linea);
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--e), transform .4s var(--e);
}
.menu.abierto nav a { opacity: 1; transform: none; }
.menu.abierto nav a:nth-child(2) { transition-delay: .03s; } .menu.abierto nav a:nth-child(3) { transition-delay: .06s; }
.menu.abierto nav a:nth-child(4) { transition-delay: .09s; } .menu.abierto nav a:nth-child(5) { transition-delay: .12s; }
.menu.abierto nav a:nth-child(6) { transition-delay: .15s; } .menu.abierto nav a:nth-child(7) { transition-delay: .18s; }
.menu-pie { display: grid; gap: 10px; }
.menu-pie .btn { width: 100%; --h: 54px; }

/* ─── Inicio ─── */
.hero {
  position: relative; min-height: max(100svh, 760px); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--cab) + 40px) var(--gut) 104px;
}
.escena { --s: min(calc(100vw / 1376 * .9), 1.1px); --off: 20px; position: absolute; inset: var(--cab) 0 0; pointer-events: none; }
.pz { position: absolute; width: calc(var(--w) * var(--s)); will-change: transform; }
.pz { top: calc(50% + (var(--y) - 384) * var(--s)); }
.pz.arr { top: calc(var(--y) * var(--s)); }
.pz.abj { top: auto; bottom: calc(var(--yb) * var(--s)); }
.escena::after { content: ""; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.pz.izq { left: calc(var(--x) * var(--s) - var(--off)); --ex: -90px; }
.pz.der { right: calc(var(--xr) * var(--s) - var(--off)); --ex: 90px; }
.pz img { width: 100%; height: auto; }
.pz-in { display: block; }
.js .pz-in { opacity: 0; transform: translate(var(--ex), var(--ey)) rotate(var(--r)) scale(.9); }
.listo .pz-in { opacity: 1; transform: none; transition: opacity .9s var(--e) calc(var(--d) + .1s), transform 1.5s cubic-bezier(.16, 1, .3, 1) calc(var(--d) + .1s); }
.pz-movil img { animation: flota 7s ease-in-out 2s infinite; }
@keyframes flota { 50% { transform: translateY(-12px) rotate(-1.6deg); } }
.hero.fuera .pz-movil img, .hero.fuera .sello-giro, .hero.fuera .bajar span { animation-play-state: paused; }

.hero-cen { position: relative; z-index: 2; max-width: 660px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-cen::before { content: ""; position: absolute; inset: -40px -70px; z-index: -1; background: radial-gradient(closest-side, rgba(255,255,255,.95) 55%, rgba(255,255,255,0)); }
.hero-sello { width: 86px; height: 86px; margin-bottom: 22px; filter: drop-shadow(0 14px 22px rgba(12,12,13,.18)); }
.sello-giro { transform-origin: 60px 60px; animation: giro 36s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.nota-g {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border-radius: 99px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--linea), 0 6px 18px -10px rgba(0,0,0,.18);
  font-size: 14px; color: var(--suave); text-decoration: none; transition: box-shadow .3s, transform .3s var(--e);
}
.nota-g:hover { box-shadow: inset 0 0 0 1px #cfcfd4, 0 10px 24px -12px rgba(0,0,0,.25); }
.nota-g b { color: var(--negro); font-weight: 650; }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 2.5vw + 24px, 64px); line-height: 1; }
.marca-n {
  background: linear-gradient(var(--acento), var(--acento)) no-repeat 0 86% / 0% .32em;
  transition: background-size 1.1s var(--e2) .9s;
}
.listo .marca-n { background-size: 100% .32em; }
.hero-p { margin-top: 22px; max-width: 30em; font-size: clamp(17px, .4vw + 15px, 19.5px); color: var(--suave); line-height: 1.55; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.hero-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; color: var(--suave); }
.hero-datos li { display: flex; align-items: center; gap: 8px; }
.hero-datos .ic { width: 17px; height: 17px; color: var(--negro); }
.hero-datos a { color: var(--negro); font-weight: 600; text-decoration: none; background: linear-gradient(var(--acento), var(--acento)) no-repeat 0 100% / 0% 2px; transition: background-size .35s var(--e); }
.hero-datos a:hover { background-size: 100% 2px; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; box-shadow: 0 0 0 4px rgba(199,199,204,.25); flex: none; }
.punto.abierto { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
[data-estado-txt] b { color: var(--negro); font-weight: 600; }
.bajar {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--linea), 0 8px 20px -10px rgba(0,0,0,.25);
  transition: background .3s, box-shadow .3s;
}
.bajar:hover { background: var(--acento); box-shadow: none; }
.bajar span { width: 9px; height: 9px; margin-top: -4px; border: solid var(--negro); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); animation: baja 2.2s var(--e) infinite; }
@keyframes baja { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } }

/* entrada */
.js .ent { opacity: 0; transform: translateY(18px); }
.listo .ent { opacity: 1; transform: none; transition: opacity .9s var(--e), transform .9s var(--e); transition-delay: calc(var(--d) * .08s + .25s); }
.js .hero-sello.ent { transform: scale(.6) rotate(-40deg); }
.listo .hero-sello.ent { transform: none; transition: opacity .8s var(--e) .2s, transform 1.2s cubic-bezier(.16, 1, .3, 1) .2s; }

/* banda de oficios */
.oficios-banda { padding: clamp(56px, 6vw, 88px) 0 clamp(64px, 7vw, 104px); background: #fff; }
.ob-tit { text-align: center; font-size: 15px; font-weight: 500; color: var(--suave); margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.ob-tit::before, .ob-tit::after { content: ""; width: 40px; height: 1px; background: #d4d4d8; }
.ob-lista { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ob-lista a {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 14px 22px; border-radius: 24px; background: var(--gris); text-decoration: none;
  transition: background .35s var(--e), transform .35s var(--e), box-shadow .35s var(--e);
}
.ob-lista a:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(12,12,13,.35), inset 0 0 0 1px var(--linea); }
.ob-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--negro); margin-bottom: 12px; transition: background .35s var(--e), transform .5s var(--e); }
.ob-ic .ic { width: 25px; height: 25px; }
.ob-lista a:hover .ob-ic { background: var(--acento); transform: rotate(-8deg) scale(1.05); }
.ob-lista b { font-size: 16px; font-weight: 600; color: var(--negro); letter-spacing: -.015em; }
.ob-lista small { font-size: 13.5px; color: var(--suave); }

/* inicio: tablet y móvil */
@media (max-width: 1180px) {
  .escena { --s: calc(100vw / 1376); --off: 8vw; }
  .hero-cen { max-width: 540px; }
}
@media (max-width: 820px) {
  .hero { min-height: 0; padding: calc(var(--cab) + 104px) var(--gut) 150px; }
  .escena { --s: calc(100vw / 760); }
  .pz-planos, .pz-movil, .pz-azulejos, .pz-tornillos { display: none; }
  .pz.izq { left: calc(var(--x) * var(--s) - 14px); }
  .pz.der { right: calc(var(--xr) * var(--s) - 18px); }
  .pz.arr { top: calc(var(--y) * var(--s) - 6px); }
  .hero-cen::before { inset: -20px -20px; }
  .hero-sello { width: 72px; height: 72px; margin-bottom: 18px; }
  .bajar { display: none; }
  .ob-lista { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ob-lista li:first-child { grid-column: 1 / -1; }
  .ob-lista a { padding: 20px 12px 18px; border-radius: 20px; }
  .ob-ic { width: 48px; height: 48px; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-btns { width: 100%; }
  .hero-datos { gap: 8px 16px; font-size: 14px; }
  .ob-lista b { font-size: 15px; }
  .ob-lista small { font-size: 12.5px; }
}

/* ─── Secciones ─── */
.sec { padding: clamp(80px, 9vw, 136px) 0; position: relative; }
.gris { background: var(--gris); }
.oscura { background: var(--negro); color: #c9c9ce; }
.oscura h2, .oscura h3, .oscura h4 { color: #fff; }
.oscura .tenue { color: #77777e; }
.cabeza { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.cabeza h2, .porque-cab h2, .opi-cab h2, .zonas-txt h2, .faq-cab h2, .cont-info h2 { font-size: clamp(32px, 2.6vw + 18px, 58px); }
.cabeza p { margin-top: 18px; font-size: 18px; color: var(--suave); max-width: 36em; }
.oscura .cabeza p { color: #9a9aa1; }
.cabeza-fila { max-width: none; display: flex; flex-direction: column; gap: 28px; }

/* aparición al hacer scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--e), transform .9s var(--e); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ─── Servicios ─── */
.pestanas {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--carbon);
  margin-bottom: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 550; color: #a3a3aa; transition: background .35s var(--e), color .35s var(--e);
}
.pestanas button i { font-style: normal; font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #26262a; color: #bdbdc3; transition: inherit; }
.pestanas button:hover { color: #fff; }
.pestanas button.activa { background: #fff; color: var(--negro); }
.pestanas button.activa i { background: var(--acento); color: var(--negro); }
.panel.entra { animation: entra .55s var(--e); }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }

.servs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.servs-2 { grid-template-columns: repeat(2, 1fr); }
.serv {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 290px;
  padding: 28px 28px 24px; border-radius: 26px; background: var(--carbon);
  transition: background .4s var(--e), transform .4s var(--e);
}
.serv:hover { background: var(--carbon2); transform: translateY(-3px); }
.serv-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #232327; color: var(--acento); margin-bottom: 14px; transition: background .4s var(--e), color .4s var(--e), transform .5s var(--e); }
.serv-ic .ic { width: 24px; height: 24px; }
.serv:hover .serv-ic { background: var(--acento); color: var(--negro); transform: rotate(-6deg); }
.serv h4 { font-size: 20px; }
.serv p { font-size: 15.5px; color: #96969d; line-height: 1.55; }
.serv-wa {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-size: 15px; font-weight: 600; color: #fff; text-decoration: none;
}
.serv-wa .ic:first-child { color: var(--wa); width: 19px; height: 19px; }
.serv-wa .flecha { width: 17px; height: 17px; transition: transform .35s var(--e); }
.serv-wa:hover .flecha { transform: translateX(4px); }
.serv-wa:hover span, .serv-wa:hover { color: var(--wa); }
.serv-dobles { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.serv-dobles .serv-wa { margin-top: 0; }
.serv-tel { padding-top: 12px; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.serv-tel .ic { width: 18px; height: 18px; color: var(--acento); }
.serv-tel:hover { color: var(--acento); }
.serv.destacado { background: var(--acento); color: var(--negro); }
.serv-otro { background: transparent; box-shadow: inset 0 0 0 1px #2a2a2f; justify-content: flex-end; }
.serv-otro:hover { background: var(--carbon); }
.serv-otro h4 { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 26px; letter-spacing: -.035em; line-height: 1.05; }
.serv-otro .serv-wa { margin-top: 8px; }
.serv.destacado:hover { background: var(--acento2); }
.serv.destacado h4 { color: var(--negro); font-size: 23px; }
.serv.destacado p { color: rgba(12,12,13,.75); }
.serv.destacado .serv-ic { background: var(--negro); color: var(--acento); }
.serv.destacado:hover .serv-ic { background: var(--negro); color: #fff; }
.serv.destacado .serv-wa { color: var(--negro); }
.serv.destacado .serv-wa .ic:first-child { color: var(--negro); }
.serv.urgente .serv-ic { background: rgba(255,198,26,.12); }

/* ─── Por qué ─── */
.porque { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.porque-cab { position: sticky; top: calc(var(--cab) + 40px); }
.porque-cab p { margin-top: 18px; font-size: 18px; color: var(--suave); max-width: 22em; }
.razones { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.razon { padding: 34px 0 38px; border-top: 1px solid var(--linea); }
.razon:nth-child(-n+2) { border-top-color: var(--negro); }
.razon-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gris); color: var(--negro); margin-bottom: 22px; transition: background .4s var(--e), transform .5s var(--e); }
.razon-ic .ic { width: 24px; height: 24px; }
.razon:hover .razon-ic { background: var(--acento); transform: rotate(-8deg) scale(1.04); }
.razon h3 { font-size: 21px; margin-bottom: 10px; }
.razon p { color: var(--suave); font-size: 16px; }
.razon a { color: var(--negro); font-weight: 600; text-underline-offset: 3px; }
.razon a:hover { background: var(--acento); }
.nota-grande { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; height: 52px; }
.nota-grande b { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 54px; letter-spacing: -.04em; color: var(--negro); line-height: 1; }
.nota-grande .estrellas svg { width: 18px; height: 18px; }

/* ─── Trabajos ─── */
.cabeza-fila h2 { font-size: clamp(32px, 2.6vw + 18px, 58px); }
.cabeza-fila p { margin-top: 16px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtros button {
  padding: 10px 17px; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 550; color: #45454b;
  box-shadow: inset 0 0 0 1px var(--linea); transition: background .3s var(--e), color .3s var(--e), box-shadow .3s;
}
.filtros button:hover { box-shadow: inset 0 0 0 1px #b9b9bf; color: var(--negro); }
.filtros button.activo { background: var(--negro); color: #fff; box-shadow: none; }
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 214px; grid-auto-flow: dense; gap: 14px; }
.obra { position: relative; border-radius: 22px; overflow: hidden; background: #e4e4e7; isolation: isolate; }
.obra.alta, .obra.muy-alta, .galeria.filtrada .obra { grid-row: span 2; }
.obra.sale { display: none; }
.obra.aparece { animation: aparece .6s var(--e) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.obra-btn { display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.obra-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e); }
.obra:hover .obra-btn img { transform: scale(1.05); }
.obra-btn::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230c0c0d%27 stroke-width=%271.8%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M12 6v12M6 12h12%27/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: scale(.7); transition: opacity .35s var(--e), transform .35s var(--e);
}
.obra:hover .obra-btn::after { opacity: 1; transform: none; }
.obra figcaption {
  position: absolute; inset: auto 0 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(8,8,9,.72)); color: #fff;
}
.obra figcaption b { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.obra figcaption span { font-size: 13px; color: rgba(255,255,255,.75); }
.obra.hueco figcaption { background: none; color: var(--negro); }
.obra.hueco figcaption span { color: var(--suave); }
.ad { position: relative; height: 100%; }
.ad-hueco, .hueco-in {
  height: 100%; padding-bottom: 40px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(-45deg, #ececee 0 12px, #e6e6e9 12px 24px); color: var(--suave); font-size: 15px; font-weight: 500;
}
.ad-hueco .ic, .hueco-in .ic { width: 30px; height: 30px; color: #9a9aa0; }
.ad-hueco small, .hueco-in small { font-size: 12.5px; color: var(--tenue); font-weight: 400; }
.ad-sel { position: absolute; top: 12px; left: 12px; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(12,12,13,.72); z-index: 2; }
.ad-sel button { padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #d4d4d8; transition: background .3s, color .3s; }
.ad-sel button.activo { background: #fff; color: var(--negro); }

/* ─── Opiniones ─── */
.opi-cab { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tit tit" "nota btns"; gap: 28px 24px; align-items: center; margin-bottom: clamp(36px, 4vw, 52px); }
.opi-cab h2 { grid-area: tit; max-width: 17em; }
.opi-nota { grid-area: nota; display: flex; align-items: center; gap: 16px; }
.opi-nota > b { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 64px; line-height: .9; letter-spacing: -.045em; color: var(--negro); }
.opi-nota .estrellas svg { width: 20px; height: 20px; }
.opi-nota p { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14.5px; color: var(--suave); }
.opi-btns { grid-area: btns; display: flex; gap: 10px; flex-wrap: wrap; }
.opi-btns .btn-negro .ic { color: var(--amarillo); transition: color .3s; }
.opi-btns .btn-negro:hover .ic { color: var(--negro); }
.resenas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resena { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 26px; background: var(--gris); transition: transform .45s var(--e), background .4s; }
.resena:hover { transform: translateY(-4px); background: #efeff1; }
.resena blockquote { font-size: 16.5px; line-height: 1.6; color: var(--texto); }
.resena blockquote::before { content: "“"; display: block; font-family: var(--disp); font-weight: 800; font-size: 56px; line-height: .5; height: 22px; color: var(--negro); }
.resena footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.resena footer > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.resena footer b { font-size: 15px; font-weight: 600; color: var(--negro); }
.resena footer small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--suave); }
.resena footer small .ic { width: 13px; height: 13px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 16px; background: hsl(var(--h) 70% 90%); color: hsl(var(--h) 55% 28%); flex: none; }
.citas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.citas li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 22px 24px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--linea); }
.citas .ic-g { grid-row: span 2; margin-top: 4px; }
.citas q { font-size: 16px; font-weight: 500; color: var(--negro); quotes: "«" "»"; }
.citas small { font-size: 13px; color: var(--suave); }

/* ─── Preguntas ─── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-cab { position: sticky; top: calc(var(--cab) + 40px); }
.faq-cab p { margin: 18px 0 28px; font-size: 18px; color: var(--suave); }
.acordeon { display: grid; gap: 10px; }
details { background: #fff; border-radius: 22px; transition: box-shadow .3s; }
details:hover { box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 22px 22px 26px; font-size: 17.5px; font-weight: 600; letter-spacing: -.02em; color: var(--negro);
}
summary::-webkit-details-marker { display: none; }
.mas { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gris); transition: transform .45s var(--e), background .3s; }
.mas .ic { width: 18px; height: 18px; }
details[open] .mas { transform: rotate(45deg); background: var(--acento); }
.resp { overflow: hidden; }
.resp p { padding: 0 26px 24px; color: var(--suave); font-size: 16px; max-width: 40em; }
.resp a { color: var(--negro); font-weight: 600; }

/* ─── Contacto ─── */
.cont { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.cont-p { margin-top: 18px; font-size: 18px; color: #9a9aa1; }
.datos { margin-top: 34px; display: grid; gap: 4px; }
.datos li { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1f1f23; }
.d-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--carbon2); color: var(--acento); flex: none; }
.d-ic.wa { color: var(--wa); }
.datos small { display: block; font-size: 13px; color: #7c7c83; margin-bottom: 2px; }
.datos a, .datos span { font-size: 16.5px; color: #fff; text-decoration: none; font-weight: 500; line-height: 1.45; }
.datos a:hover { color: var(--acento); }
.datos div { display: flex; flex-direction: column; }
.estado-mini { font-size: 13.5px !important; color: #8c8c93 !important; display: flex; align-items: center; gap: 7px; margin-top: 3px; font-weight: 400 !important; }
.estado-mini:empty { display: none; }
.mapa { margin-top: 28px; border-radius: 22px; overflow: hidden; height: 260px; background: var(--carbon); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--e); }
.mapa:hover iframe { filter: none; }

.form-caja { background: #fff; color: var(--texto); border-radius: 30px; padding: clamp(24px, 3vw, 40px); position: relative; }
.form h3 { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 28px; letter-spacing: -.035em; margin-bottom: 24px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo label, .lbl { font-size: 14px; font-weight: 600; color: var(--negro); }
.lbl em { font-style: normal; font-weight: 400; color: var(--tenue); }
.campo input:not([type=checkbox]):not([type=file]), .campo select, .campo textarea {
  width: 100%; font: 400 16px/1.4 Geist, sans-serif; color: var(--negro);
  background: var(--gris); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px;
  transition: border-color .25s, background .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.campo textarea { resize: vertical; min-height: 116px; }
.campo input::placeholder, .campo textarea::placeholder { color: #a0a0a6; }
.campo input:hover, .campo select:hover, .campo textarea:hover { background: #eeeef0; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; background: #fff; border-color: var(--negro); box-shadow: 0 0 0 4px rgba(255,198,26,.4); }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--negro); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.sel select { padding-right: 40px; cursor: pointer; }
.sel select:invalid { color: #8e8e95; }
.campo.mal input, .campo.mal select, .campo.mal textarea { border-color: var(--rojo); background: #fff6f6; }
.error { font-size: 13px; color: var(--rojo); min-height: 0; }
.error:empty { display: none; }
.subir {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: var(--gris); transition: background .25s;
}
.subir:hover, .subir.sobre { background: #ebebed; }
.subir > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: #fff; color: var(--negro); }
.subir-txt { display: flex; flex-direction: column; }
.subir-txt b { font-size: 15px; font-weight: 600; color: var(--negro); }
.subir-txt small { font-size: 13px; color: var(--suave); }
.subir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.miniaturas { display: flex; flex-wrap: wrap; gap: 8px; }
.miniaturas:empty { display: none; }
.miniaturas li { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--gris); animation: aparece .4s var(--e); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(12,12,13,.75); color: #fff; display: grid; place-items: center; }
.miniaturas button .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.check { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: 14.5px !important; color: var(--suave) !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .caja { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--gris); box-shadow: inset 0 0 0 1.5px #c9c9ce; color: transparent; transition: background .2s, box-shadow .2s, color .2s; margin-top: 1px; }
.check .caja .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.check input:checked + .caja { background: var(--negro); box-shadow: none; color: #fff; }
.check input:focus-visible + .caja { outline: 2px solid var(--negro); outline-offset: 2px; }
.campo.mal .caja { box-shadow: inset 0 0 0 1.5px var(--rojo); }
.check a { color: var(--negro); font-weight: 600; }
.enviar { width: 100%; margin-top: 26px; }
.enviar.cargando { pointer-events: none; }
.enviar.cargando span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.form-nota { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--tenue); }

.ok { text-align: center; padding: 28px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; }
.ok h3 { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 30px; letter-spacing: -.035em; }
.ok p { color: var(--suave); max-width: 26em; }
.ok-p2 { margin-top: 10px; font-size: 15px; }
.ok .btn-wa { margin-top: 4px; }
.ok-check { width: 76px; height: 76px; margin-bottom: 8px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ok-check circle { fill: var(--acento); stroke: none; transform-origin: 32px 32px; animation: pop .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.ok-check path { stroke: var(--negro); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: traza .5s var(--e) .55s forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }

/* ─── Pie ─── */
.pie { background: var(--negro); color: #8f8f96; padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid #1d1d21; font-size: 15px; }
.pie-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.sello-grande { width: 108px; height: 108px; margin-bottom: 20px; }
.sello-grande:hover { animation: girito 1.2s var(--e); }
@keyframes girito { 50% { transform: rotate(-14deg); } }
.arco { font: 600 8.6px Geist, sans-serif; letter-spacing: .26em; fill: #c9c9ce; }
.arco-b { font-size: 7.4px; letter-spacing: .2em; }
.pie-marca p { max-width: 24em; }
.pie-col { display: flex; flex-direction: column; gap: 9px; }
.pie-col h3 { font-size: 13.5px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.pie a { text-decoration: none; transition: color .25s; }
.pie a:hover { color: #fff; }
.pie-bajo { margin-top: 56px; padding-top: 24px; border-top: 1px solid #1d1d21; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.arriba { display: inline-flex; align-items: center; gap: 8px; }
.arriba .ic { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .35s var(--e); }
.arriba:hover .ic { transform: rotate(-90deg) translateX(3px); }

/* ─── WhatsApp flotante ─── */
.wa-flot {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  height: 60px; min-width: 60px; padding: 0 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 40, .55), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .4s var(--e), background .3s, gap .4s var(--e);
  animation: flota-in .7s var(--e) 1.2s both;
}
.wa-flot .ic { width: 28px; height: 28px; }
.wa-flot-txt { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--e); color: #052e14; }
.wa-flot:hover { background: var(--wa2); transform: translateY(-2px); gap: 10px; }
.wa-flot:hover .wa-flot-txt { max-width: 120px; }
.wa-flot .ic { color: #fff; }
@keyframes flota-in { from { opacity: 0; transform: translateY(20px) scale(.8); } }

/* ─── Visor ─── */
.visor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,9,.96); color: #fff; overscroll-behavior: contain; }
.visor[open] { display: grid; place-items: center; animation: fundido .35s var(--e); }
.visor::backdrop { background: transparent; }
@keyframes fundido { from { opacity: 0; } }
.visor figure { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 72px 32px; max-height: 100dvh; }
.visor img { max-width: min(1200px, 100%); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 14px; animation: zoomin .45s var(--e); }
@keyframes zoomin { from { opacity: 0; transform: scale(.97); } }
.visor figcaption { font-size: 15px; color: #bdbdc3; text-align: center; }
.v-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background .25s; }
.v-btn:hover { background: rgba(255,255,255,.22); }
.v-btn .ic { width: 22px; height: 22px; }
.v-cerrar { top: 16px; right: 16px; }
.v-ant { left: 16px; top: 50%; margin-top: -25px; }
.v-sig { right: 16px; top: 50%; margin-top: -25px; }

/* ════════════ Responsive ════════════ */
@media (max-width: 1140px) {
  .nav { display: none; }
  .hamb { display: inline-flex; }
  .cab-acc { margin-left: auto; }
  .servs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .porque, .faq, .zonas, .cont { grid-template-columns: 1fr; }
  .porque-cab, .faq-cab { position: static; }
  .resenas { grid-template-columns: 1fr 1fr; }
  .resena:last-child { grid-column: span 2; }
  .citas { grid-template-columns: 1fr; }
  .pie-top { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
}
@media (max-width: 860px) {
  .cab { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
@media (max-width: 640px) {
  :root { --cab: 62px; }
  body { font-size: 16.5px; }
  .cab-acc .btn span { display: none; }
  .cab-acc .btn { width: 42px; padding: 0; }
  .marca-txt span { display: none; }
  .marca-txt b { font-size: 16px; }
  .sello { width: 36px; height: 36px; }
  .hero-btns .btn { width: 100%; }
  .pestanas { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); max-width: none; width: calc(100% + var(--gut) * 2); border-radius: 0; background: transparent; padding: 0 var(--gut); gap: 6px; }
  .pestanas button { background: var(--carbon); }
  .servs, .servs-2 { grid-template-columns: 1fr; gap: 12px; }
  .serv { min-height: 0; padding: 20px 20px 18px; display: grid; grid-template-columns: 48px 1fr; gap: 10px 16px; align-items: center; }
  .serv-ic { width: 48px; height: 48px; border-radius: 14px; margin: 0; }
  .serv h4, .serv.destacado h4 { font-size: 18px; }
  .serv p, .serv-wa, .serv-dobles, .serv-tel { grid-column: 1 / -1; }
  .serv-wa { padding-top: 4px; }
  .serv-otro { display: flex; }
  .serv-otro h4 { font-size: 22px; }
  .razones { grid-template-columns: 1fr; }
  .razon:nth-child(2) { border-top-color: var(--linea); }
  .razon { padding: 28px 0 30px; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; }
  .galeria { grid-auto-rows: 158px; gap: 10px; }
  .obra { border-radius: 16px; }
  .obra figcaption { padding: 36px 12px 11px; }
  .obra figcaption b { font-size: 13.5px; }
  .obra figcaption span { font-size: 12px; }
  .obra-btn::after { display: none; }
  .ad-hueco p, .hueco-in p { font-size: 13px; }
  .ad-sel { top: 8px; left: 8px; }
  .ad-sel button { padding: 6px 10px; font-size: 12px; }
  .opi-cab { grid-template-columns: 1fr; grid-template-areas: "nota" "tit" "btns"; gap: 22px; }
  .opi-btns .btn { flex: 1; }
  .resenas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .resenas::-webkit-scrollbar { display: none; }
  .resena { flex: 0 0 86%; scroll-snap-align: center; padding: 24px; }
  .dist { padding: 10px 14px; font-size: 14.5px; }
  .campos { grid-template-columns: 1fr; }
  .form-caja { border-radius: 24px; }
  .mapa { height: 220px; }
  .pie-top { grid-template-columns: 1fr; gap: 32px; }
  .wa-flot { height: 58px; min-width: 58px; padding: 0 15px; }
  .visor figure { padding: 70px 12px 24px; }
  .v-ant, .v-sig { top: auto; bottom: 18px; margin: 0; }
  .v-ant { left: calc(50% - 60px); } .v-sig { right: calc(50% - 60px); }
  .visor img { max-height: calc(100dvh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ─── ajustes finos ─── */
.oscura .form-caja h3, .oscura .ok h3 { color: var(--negro); }
@media (hover: none) { .mapa iframe { filter: grayscale(.35); } }
@media (max-width: 640px) {
  .hueco-in p, .ad-hueco p { display: none; }
  .hueco-in, .ad-hueco { padding-bottom: 56px; }
  .pie-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .pie-marca, .pie-col:nth-child(2) { grid-column: 1 / -1; }
}
.razon a, .check a, .resp a { white-space: nowrap; }
@media (max-width: 640px) {
  .pie { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* cabeceras de sección a dos columnas en escritorio */
@media (min-width: 961px) {
  .cabeza:not(.cabeza-fila) { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
  .cabeza:not(.cabeza-fila) p { margin: 0 0 6px; justify-self: end; max-width: 26em; }
}

/* ════════════ Mejoras v3 ════════════ */

/* cabecera: se esconde al bajar y muestra el progreso de lectura */
.cab { transition: transform .45s var(--e), box-shadow .3s var(--e); }
.cab.oculta { transform: translateY(-100%); }
.cab-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acento); transform-origin: left; transform: scaleX(var(--pr, 0)); pointer-events: none; }

/* servicios: mosaico con fotos */
.servs { grid-auto-rows: minmax(260px, auto); }
#p-ref .servs { grid-template-columns: 1.25fr 1fr 1fr; grid-template-areas: "int coc ban" "int cam pla" "otro otro otro"; }
#p-ref .s-int { grid-area: int; } #p-ref .s-coc { grid-area: coc; } #p-ref .s-ban { grid-area: ban; }
#p-ref .serv:nth-child(4) { grid-area: cam; } #p-ref .serv:nth-child(5) { grid-area: pla; } #p-ref .banda { grid-area: otro; }
.serv.ancho { grid-column: span 2; }
.serv-foto { justify-content: flex-end; overflow: hidden; isolation: isolate; background: #111; }
.serv-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,13,.1) 0%, rgba(12,12,13,.2) 40%, rgba(12,12,13,.9) 100%); }
.serv-img { position: absolute; inset: 0; z-index: -2; }
.serv-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.serv-foto:hover .serv-img img { transform: scale(1.08); }
.serv-foto:hover { background: #111; }
.serv-foto .serv-ic { position: absolute; top: 24px; left: 24px; margin: 0; background: rgba(12,12,13,.6); color: var(--acento); }
.serv-foto:hover .serv-ic { background: var(--acento); color: var(--negro); }
.serv-foto p { color: rgba(255,255,255,.78); max-width: 30em; }
.serv-foto h4 { font-size: 21px; }
.s-int h4 { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: clamp(26px, 1.4vw + 12px, 34px); letter-spacing: -.035em; line-height: 1.02; }
.serv-otro.banda { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 0; padding: 26px 30px; background: var(--acento); box-shadow: none; }
.serv-otro.banda:hover { background: var(--acento2); }
.banda h4 { color: var(--negro); font-size: 26px; }
.banda p { color: rgba(12,12,13,.72); margin-top: 4px; }
.banda .serv-wa { margin: 0; padding: 0 22px; height: 50px; border-radius: 99px; background: var(--negro); color: #fff; align-self: center; flex: none; }
.banda .serv-wa:hover { color: var(--acento); }

/* cifras */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--negro); margin-bottom: clamp(64px, 7vw, 112px); }
.cifras li { padding: 26px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.cifras li + li { padding-left: 24px; border-left: 1px solid var(--linea); }
.cifras b { display: flex; align-items: flex-start; gap: 6px; font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: clamp(52px, 4.4vw + 10px, 92px); letter-spacing: -.05em; line-height: .95; color: var(--negro); font-variant-numeric: tabular-nums; }
.c-est { width: .34em; height: .34em; margin-top: .12em; color: var(--acento); }
.cifras li > span { font-size: 15px; color: var(--suave); }

/* proceso guiado por scroll */
.proceso { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.proc-izq { position: sticky; top: calc(var(--cab) + 56px); }
.proc-izq h2 { font-size: clamp(32px, 2.6vw + 18px, 58px); }
.proc-izq > p { margin-top: 18px; font-size: 18px; color: #9a9aa1; }
.proc-ind { position: relative; display: flex; align-items: center; gap: 20px; margin: 40px 0 34px; }
.proc-ind svg { width: 84px; height: 84px; flex: none; transform: rotate(-90deg); }
.pi-fondo { fill: none; stroke: #26262a; stroke-width: 4; }
.pi-barra { fill: none; stroke: var(--acento); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: calc(220 - 220 * var(--prog, 0)); }
.pi-num { position: absolute; left: 0; top: 0; width: 84px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pi-num b { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: 30px; color: #fff; letter-spacing: -.04em; }
.pi-num small { font-size: 11px; color: #85858c; margin-top: 3px; }
.pi-txt { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.015em; transition: opacity .3s; }
.pi-txt.cambia { opacity: 0; }
.pasos { position: relative; }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 31px; top: 34px; bottom: 60px; width: 2px; border-radius: 2px; background: #26262a; }
.pasos::after { background: var(--acento); transform-origin: top; transform: scaleY(var(--prog, 0)); }
.paso { position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding-bottom: clamp(56px, 11vh, 120px); opacity: .32; transition: opacity .5s var(--e); }
.paso:last-child { padding-bottom: 0; }
.paso.activo { opacity: 1; }
.paso-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--carbon2); color: #fff; box-shadow: 0 0 0 8px var(--negro); transition: background .5s var(--e), color .5s var(--e), transform .6s var(--e); }
.paso-ic .ic { width: 26px; height: 26px; }
.paso.activo .paso-ic { background: var(--acento); color: var(--negro); transform: scale(1.06); }
.paso small { display: block; font-size: 13px; font-weight: 600; color: var(--acento); margin: 8px 0; }
.paso h3 { font-family: var(--disp); font-stretch: 112%; font-weight: 700; font-size: clamp(24px, 1vw + 16px, 32px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 12px; }
.paso p { font-size: 17px; color: #9a9aa1; max-width: 28em; }

/* zonas con mapa */
.zonas { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.zonas-txt > p { margin-top: 18px; font-size: 18px; color: var(--suave); }
.base { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 22px 16px 16px; border-radius: 22px; background: var(--negro); color: #fff; }
.base-pin { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--negro); flex: none; }
.base b { display: block; font-size: 16.5px; }
.base span { font-size: 14.5px; color: #a8a8ae; }
.distritos { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.dist { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--gris); font-size: 14px; font-weight: 500; color: var(--texto); text-decoration: none; transition: background .3s var(--e), color .3s var(--e); }
.dist:hover, .dist.activo { background: var(--negro); color: #fff; }
.dist.casa { background: var(--acento); color: var(--negro); font-weight: 650; }
.dist.casa .ic { width: 16px; height: 16px; }
.dist.casa:hover, .dist.casa.activo { background: var(--negro); color: var(--acento); }
.nota-conf { margin-top: 16px; font-size: 14px; color: var(--tenue); }
.mapa-madrid { position: relative; margin: 0; padding: clamp(18px, 3vw, 40px); border-radius: 32px; background: var(--gris); }
.mapa-madrid svg { display: block; width: 100%; height: auto; overflow: visible; }
.md { cursor: pointer; outline: none; }
.md path { fill: #dcdce0; stroke: var(--gris); stroke-width: 1.6; stroke-linejoin: round; transition: fill .35s var(--e); }
.md:hover path, .md.activo path, .md:focus-visible path { fill: var(--negro); }
.md.casa path { fill: var(--acento); }
.md.casa:hover path, .md.casa.activo path { fill: #f0b400; }
.js .mapa-madrid .md { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.82); }
.js .mapa-madrid.in .md { opacity: 1; transform: none; transition: opacity .7s var(--e), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--o) * .55s + .15s); }
.md-base { pointer-events: none; }
.md-halo { fill: rgba(255, 198, 26, .22); }
.md-halo2 { fill: rgba(255, 198, 26, .38); }
.md-pin { fill: var(--negro); }
.js .md-pin-g { opacity: 0; transform: translateY(-26px); }
.js .md-halo, .js .md-halo2 { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.js .mapa-madrid.in .md-pin-g { opacity: 1; transform: none; transition: opacity .4s var(--e) .1s, transform .8s cubic-bezier(.34, 1.56, .64, 1) .1s; }
.js .mapa-madrid.in .md-halo, .js .mapa-madrid.in .md-halo2 { transform: none; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) .35s; }
.md-etq {
  position: absolute; left: 0; top: 0; z-index: 3; margin: 0; pointer-events: none; white-space: nowrap;
  display: flex; flex-direction: column; padding: 9px 14px; border-radius: 14px; background: var(--negro); color: #fff;
  transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 100% - 16px)); transition: transform .35s var(--e), opacity .3s;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.5);
}
.md-etq::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--negro); transform: rotate(45deg); border-radius: 2px; }
.md-etq b { font-size: 14.5px; font-weight: 600; }
.md-etq span { font-size: 12.5px; color: #a8a8ae; }
.js .md-etq { opacity: 0; }
.js .mapa-madrid.in .md-etq { opacity: 1; }
.md-leyenda { position: absolute; left: clamp(18px, 3vw, 40px); bottom: clamp(16px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--suave); }
.md-leyenda span { display: flex; align-items: center; gap: 8px; }
.md-leyenda i { width: 12px; height: 12px; border-radius: 4px; background: #dcdce0; }
.md-leyenda i.ly-casa { background: var(--acento); }

/* trabajos: las fotos se descubren al aparecer */
.js .obra { clip-path: inset(8% 8% 8% 8% round 22px); transition: clip-path 1.2s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s); }
.js .obra.in { clip-path: inset(0 round 22px); }
.js .obra .obra-btn img { transform: scale(1.16); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s); }
.js .obra.in .obra-btn img { transform: none; }
.js .obra.in:hover .obra-btn img { transform: scale(1.05); transition-delay: 0s; }

@media (max-width: 1140px) {
  #p-ref .servs { grid-template-columns: 1fr 1fr; grid-template-areas: "int int" "coc ban" "cam pla" "otro otro"; }
  .s-int { min-height: 360px; }
}
@media (max-width: 960px) {
  .proceso, .zonas { grid-template-columns: 1fr; }
  .proc-izq { position: static; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .cifras li:nth-child(3) { border-left: 0; padding-left: 0; }
  .cifras li:nth-child(n+3) { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  #p-ref .servs { grid-template-columns: 1fr; grid-template-areas: none; }
  #p-ref .servs > .serv { grid-area: auto; }
  .serv.ancho { grid-column: auto; }
  .serv-foto { display: flex; min-height: 280px; padding: 22px; }
  .s-int { min-height: 340px; }
  .serv-foto .serv-ic { top: 18px; left: 18px; }
  .serv-otro.banda { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .banda .serv-wa { width: 100%; justify-content: center; }
  .cifras b { font-size: 50px; }
  .cifras li { padding-right: 12px; }
  .cifras li + li { padding-left: 16px; }
  .proc-ind { margin: 28px 0 24px; }
  .paso { grid-template-columns: 54px 1fr; gap: 18px; padding-bottom: 44px; }
  .paso-ic { width: 54px; height: 54px; }
  .pasos::before, .pasos::after { left: 26px; top: 28px; }
  .paso p { font-size: 16px; }
  .proc-izq .btn { width: 100%; }
  .mapa-madrid { border-radius: 24px; }
  .md-leyenda { position: static; flex-direction: row; gap: 16px; margin-top: 12px; }
  .js .obra { clip-path: inset(8% round 16px); }
  .js .obra.in { clip-path: inset(0 round 16px); }
}

/* ajustes v3 */
.servs { grid-auto-rows: auto; }
.serv-foto { min-height: 290px; }
#p-ref .s-int { min-height: 600px; }
.serv-otro.banda { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 4px; align-items: center; }
.banda .serv-wa { grid-column: 2; grid-row: 1 / span 2; }
.base .base-pin { color: var(--negro); }
@media (max-width: 1140px) { #p-ref .s-int { min-height: 380px; } }
@media (max-width: 640px) { #p-ref .s-int { min-height: 340px; } .serv-otro.banda { grid-template-columns: 1fr; } .banda .serv-wa { grid-column: 1; grid-row: auto; margin-top: 14px; } }
.serv-foto h4 { margin-top: auto; }
.serv-foto .serv-wa { margin-top: 2px; }
#p-ref .s-int { min-height: 0; }
@media (max-width: 1140px) { #p-ref .s-int { min-height: 380px; } }
@media (max-width: 640px) { #p-ref .s-int { min-height: 340px; } }
.serv-foto::before { background: linear-gradient(180deg, rgba(12,12,13,.05) 0%, rgba(12,12,13,.45) 35%, rgba(12,12,13,.93) 78%); }
.s-int::before { background: linear-gradient(180deg, rgba(12,12,13,0) 30%, rgba(12,12,13,.5) 55%, rgba(12,12,13,.94) 100%); }
.serv-foto h4, .serv-foto p { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.serv-foto { align-items: stretch; }
