/* Reformas Alba · web de ejemplo (Bright Analytic)
   Mundo: cal y azulete. Cal blanca fría, zócalos de azulete, almagra en detalles.
   Esquinas rectas en todo el sistema. Profundidad solo por capas planas. */

@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans XC";
  src: url("../fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cal: #f4f6f5;
  --cal-sombra: #e6ebe9;
  --piedra: #d5dbd8;
  --azulete: #1e3fa8;
  --azulete-hondo: #172f80;
  --azulete-claro: #c7d2f4;
  --noche: #0e1a3a;
  --tinta-2: #3b4664;
  --almagra: #b5482c;
  --almagra-hondo: #9a3a21;
  --luz: #fffaf0;
  --error: #a1341b;
  --wa: #1f7a4d;
  --campo: #fbfcfc;
  --campo-borde: #6b7590;
  --campo-ph: #5d6782;
  --pie-2: #aab3cc;

  --f-display: "Sofia Sans XC", "Arial Narrow", sans-serif;
  --f-text: "Sofia Sans", system-ui, sans-serif;

  --u: 8px;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 7vw, 112px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --cal-tex: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27640%27 height=%27640%27%3E%3Cfilter id=%27m%27 x=%270%27 y=%270%27 width=%27100%25%27 height=%27100%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.0125%27 numOctaves=%274%27 seed=%277%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.06 0 0 0 0 0.1 0 0 0 0 0.16 0.08 0 0 0 -0.025%27/%3E%3C/filter%3E%3Cfilter id=%27g%27 x=%270%27 y=%270%27 width=%27100%25%27 height=%27100%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.75%27 numOctaves=%272%27 seed=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.06 0 0 0 0 0.1 0 0 0 0 0.16 0.07 0 0 0 -0.02%27/%3E%3C/filter%3E%3Crect width=%27100%%27 height=%27100%%27 filter=%27url(%23m)%27/%3E%3Crect width=%27100%%27 height=%27100%%27 filter=%27url(%23g)%27/%3E%3C/svg%3E");
  --azul-tex: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27640%27 height=%27640%27%3E%3Cfilter id=%27m%27 x=%270%27 y=%270%27 width=%27100%25%27 height=%27100%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.0125%27 numOctaves=%274%27 seed=%277%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.12 0 0 0 -0.04%27/%3E%3C/filter%3E%3Cfilter id=%27g%27 x=%270%27 y=%270%27 width=%27100%25%27 height=%27100%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.75%27 numOctaves=%272%27 seed=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.08 0 0 0 -0.025%27/%3E%3C/filter%3E%3Crect width=%27100%%27 height=%27100%%27 filter=%27url(%23m)%27/%3E%3Crect width=%27100%%27 height=%27100%%27 filter=%27url(%23g)%27/%3E%3C/svg%3E");

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--noche);
  background-color: var(--cal);
  background-image: var(--cal-tex);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--azulete); color: var(--cal); }

html { scrollbar-color: var(--azulete) var(--cal-sombra); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--almagra); }

:focus-visible {
  outline: 2px solid var(--almagra);
  outline-offset: 3px;
}
.on-azul :focus-visible,
.on-noche :focus-visible { outline-color: var(--luz); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--noche); color: var(--cal);
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */

.display {
  font-family: var(--f-display);
  font-weight: 820;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(3.25rem, 8.6vw, 8.25rem); }
.h-l { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 0.9; }
.h-m { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.92; }
.h-s {
  font-family: var(--f-display);
  font-weight: 760;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  max-width: 44ch;
  text-wrap: pretty;
}
.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--tinta-2); }

.num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 760;
}

/* ---------- Iconos ---------- */

.ico {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: currentColor;
}

/* ---------- Botones: placas rectas ---------- */

.btn {
  --btn-bg: var(--azulete);
  --btn-fg: var(--cal);
  --btn-under: var(--noche);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  /* capa plana inferior: al pasar por encima, la placa se levanta y deja ver la de abajo */
  box-shadow: 0 0 0 0 var(--btn-under);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 180ms var(--ease-out);
}
.btn .ico { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover, var(--azulete-hondo)); }
  .btn:hover .ico--go { transform: translateX(3px); }
}
.btn:active { transform: scale(0.98); transition-duration: 80ms; }

.btn--cal { --btn-bg: var(--cal); --btn-fg: var(--noche); --btn-hover: #ffffff; }
.btn--line {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .btn--line:hover { transform: none; box-shadow: inset 0 0 0 1.5px currentColor; background: rgba(255, 255, 255, 0.1); }
}

.link-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-go .ico { transition: transform 220ms var(--ease-out); }
@media (hover: hover) { .link-go:hover .ico { transform: translateX(4px); } }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--cal) 94%, transparent);
  transition: box-shadow 240ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--piedra); }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 820;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand__mark { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-family: var(--f-text);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--tinta-2);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav__list { display: flex; gap: clamp(16px, 2vw, 32px); list-style: none; }
.nav__list a {
  position: relative;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 0;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--almagra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .nav__list a:hover::after { transform: scaleX(1); } }
.nav .btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }

.menu-btn {
  display: none;
  align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px;
  background: transparent; border: 1.5px solid var(--noche); border-radius: 0;
  font: 700 1rem var(--f-text); color: var(--noche);
  cursor: pointer;
}

.menu-panel {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background-color: var(--azulete);
  background-image: var(--azul-tex);
  color: var(--cal);
  padding: 16px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 240ms var(--ease-out), visibility 0s linear 240ms;
}
.menu-panel.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 380ms var(--ease-drawer), visibility 0s;
}
.menu-panel__top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.menu-panel__top .brand small { color: var(--azulete-claro); }
.menu-panel__close {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px;
  background: transparent; color: var(--cal);
  border: 1.5px solid var(--cal); border-radius: 0;
  font: 700 1rem var(--f-text); cursor: pointer;
}
.menu-panel ul { list-style: none; margin-top: 40px; display: grid; gap: 4px; }
.menu-panel ul a {
  display: block;
  font-family: var(--f-display); font-weight: 820;
  font-size: clamp(2.75rem, 13vw, 4rem); line-height: 1;
  text-transform: uppercase; text-decoration: none;
  padding: 6px 0;
}
.menu-panel ul a[aria-current="page"] { color: var(--azulete-claro); }
.menu-panel__foot { margin-top: auto; display: grid; gap: 16px; }
.menu-panel__foot .btn { justify-content: space-between; }
.menu-panel__foot p { color: var(--azulete-claro); }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 961px) {
  .menu-panel { display: none; }
}

/* ---------- Zócalo: el campo de azulete ---------- */

.on-azul {
  background-color: var(--azulete);
  background-image: var(--azul-tex);
  color: var(--cal);
}
.on-azul .muted { color: var(--azulete-claro); }
.on-azul a:hover { text-decoration-color: var(--luz); }

.zocalo { position: relative; }
/* cenefa de almagra sobre el azulete, como en los zócalos encalados */
.zocalo::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -14px;
  height: 5px;
  background: var(--almagra);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero__wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  padding-top: clamp(32px, 6vh, 72px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.hero__title {
  position: relative; z-index: 2;
  grid-column: 1 / span 8;
  grid-row: 1;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: block; }

.hero__window {
  position: relative; z-index: 1;
  grid-column: 10 / span 3;
  grid-row: 1;
  align-self: stretch;
  min-height: 300px;
  max-height: 520px;
}

/* La luz del alba: entra por la ventana y cae en diagonal sobre la cal.
   Dos paños de luz separados por la sombra del travesaño. */
.hero__shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(14, 26, 58, 0.075), rgba(14, 26, 58, 0.035) 60%, rgba(14, 26, 58, 0.015));
}
.hero__light {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(225deg, rgba(255, 228, 182, 0.9) 0%, rgba(255, 236, 204, 0.72) 45%, rgba(255, 244, 226, 0.12) 100%);
  filter: blur(2px);
}
.hero__light--a { clip-path: polygon(73% 6%, 73% 37%, 22% 78%, 22% 47%); }
.hero__light--b { clip-path: polygon(73% 40%, 73% 72%, 22% 113%, 22% 81%); }
@media (max-width: 960px) {
  .hero__light--a { clip-path: polygon(62% 4%, 62% 13%, -4% 58%, -4% 49%); }
  .hero__light--b { clip-path: polygon(62% 14.5%, 62% 23.5%, -4% 68.5%, -4% 59.5%); }
}

.hero__zocalo { padding-block: clamp(32px, 5vh, 56px); }
.hero__zocalo .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 24px;
  align-items: center;
}
.hero__zocalo .lead { grid-column: 1 / span 6; color: var(--cal); }
.hero__actions {
  grid-column: 8 / span 5;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end;
}

@media (max-width: 960px) {
  .hero__title { grid-column: 1 / -1; }
  .hero__window {
    grid-column: 8 / -1;
    grid-row: 1;
    align-self: start;
    min-height: 0; height: 132px;
    margin-bottom: 0;
  }
  .hero__wall { row-gap: 24px; grid-template-rows: auto auto; }
  .hero__title { grid-row: 2; }
  .hero__zocalo .lead,
  .hero__actions { grid-column: 1 / -1; }
  .hero__actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}

/* Entrada del hero: amanece. Solo CSS: el estado final es el visible,
   así que sin animación (o sin JavaScript) el contenido se ve igual. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: alba-sube 620ms var(--ease-out) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 70ms; }
  .hero__light { animation: alba-luz 900ms var(--ease-out) 120ms both; }
  .hero__zocalo > .wrap { animation: alba-entra 520ms var(--ease-out) 200ms both; }
}
@keyframes alba-sube { from { transform: translateY(105%); } }
@keyframes alba-luz { from { opacity: 0; } }
@keyframes alba-entra { from { opacity: 0; transform: translateY(12px); } }

/* La luz avanza con el scroll, como la mañana */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__light-track {
      animation: alba-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
  }
}
.hero__light-track { position: absolute; inset: 0; pointer-events: none; }
@keyframes alba-drift {
  to { transform: translate(-7%, 5%); opacity: 0.5; }
}

/* ---------- Marcadores de foto (sustituir por fotos reales) ---------- */

.ph {
  --wall: #e9edeb;
  --floor: #cfc6b4;
  --obj: var(--azulete);
  --tile: #dfe5f3;
  --tile-line: rgba(14, 26, 58, 0.12);
  --dim: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--wall);
}
.ph > i { position: absolute; display: block; }
.ph::after {
  /* velo de “antes”: penumbra */
  content: "";
  position: absolute; inset: 0; z-index: 5;
  background: rgba(14, 26, 58, var(--dim));
  pointer-events: none;
}
.ph__tag {
  position: absolute; z-index: 6;
  left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  font-size: 0.75rem; font-weight: 650; line-height: 1.3;
  color: var(--noche);
  background: rgba(244, 246, 245, 0.92);
}
.ph__tag .ico { width: 14px; height: 14px; }

/* Ventana del hero: hueco en la pared con derrame de luz */
.ph--ventana {
  --ar: auto;
  height: 100%;
  background: var(--cal-sombra);
  box-shadow: inset 14px 0 0 var(--piedra), inset 0 -16px 0 var(--piedra);
}
.ph--ventana .v-sky { inset: 0 0 16px 14px; background: linear-gradient(180deg, #f9e7c6 0%, #f6d7a8 38%, #a9c0e8 100%); }
.ph--ventana .v-sun { width: 46%; aspect-ratio: 1; left: 34%; bottom: 18%; border-radius: 50%; background: #fff3dc; filter: blur(2px); }
.ph--ventana .v-sea { left: 14px; right: 0; bottom: 16px; height: 22%; background: linear-gradient(180deg, #6f8fd6, var(--azulete)); }
.ph--ventana .v-bar { background: var(--cal); }
.ph--ventana .v-bar--v { top: 0; bottom: 16px; left: calc(50% + 7px); width: 8px; transform: translateX(-50%); }
.ph--ventana .v-bar--h { left: 14px; right: 0; top: 38%; height: 8px; }
.ph--ventana .v-sill { left: -10px; right: -10px; bottom: 0; height: 16px; background: var(--cal); box-shadow: 0 6px 0 rgba(14,26,58,0.08); }

/* Salón (reforma integral) */
.ph--salon .s-floor {
  left: 0; right: 0; bottom: 0; height: 30%;
  background:
    repeating-linear-gradient(90deg, transparent 0 11%, rgba(14,26,58,0.08) 11% 11.4%),
    var(--floor);
}
.ph--salon .s-win { right: 9%; top: 12%; width: 24%; height: 50%; background: linear-gradient(180deg, #fbefd9, #c9d6f1); box-shadow: inset 0 0 0 6px var(--wall), 0 0 0 1px rgba(14,26,58,0.06); }
.ph--salon .s-light {
  right: 4%; bottom: 0; width: 46%; height: 30%;
  background: rgba(255, 250, 240, 0.75);
  clip-path: polygon(48% 0, 90% 0, 72% 100%, 0 100%);
}
.ph--salon .s-sofa { left: 8%; bottom: 22%; width: 40%; height: 16%; background: var(--obj); }
.ph--salon .s-sofa2 { left: 8%; bottom: 31%; width: 40%; height: 9%; background: var(--azulete-hondo); opacity: 0.9; }
.ph--salon .s-art { left: 16%; top: 16%; width: 18%; height: 22%; background: var(--almagra); opacity: 0.85; }
.ph--salon .s-lamp { left: 56%; bottom: 22%; width: 1.2%; height: 36%; background: var(--noche); }
.ph--salon .s-lamp2 { left: 52.5%; top: 34%; width: 8%; height: 7%; background: var(--luz); border-radius: 50% 50% 0 0; }

/* Cocina */
.ph--cocina .k-tiles {
  left: 0; right: 0; top: 36%; height: 20%;
  background:
    repeating-linear-gradient(90deg, var(--tile-line) 0 2px, transparent 2px 7%),
    repeating-linear-gradient(0deg, var(--tile-line) 0 2px, transparent 2px 33.3%),
    var(--tile);
}
.ph--cocina .k-upper { left: 6%; right: 38%; top: 10%; height: 24%; background: var(--wall); box-shadow: inset 0 0 0 2px rgba(14,26,58,0.1); }
.ph--cocina .k-counter { left: 0; right: 0; top: 56%; height: 4%; background: var(--noche); }
.ph--cocina .k-base { left: 0; right: 0; top: 60%; bottom: 0; background: var(--obj); }
.ph--cocina .k-base-lines { left: 0; right: 0; top: 60%; bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 19.6%, rgba(244,246,245,0.25) 19.6% 20%); }
.ph--cocina .k-hood { right: 14%; top: 8%; width: 16%; height: 26%; background: var(--piedra); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.ph--cocina .k-plant { left: 66%; top: 44%; width: 5%; height: 12%; background: #3d7a52; border-radius: 40% 40% 0 0; }

/* Baño */
.ph--bano .b-tiles {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--tile-line) 0 2px, transparent 2px 10%),
    repeating-linear-gradient(0deg, var(--tile-line) 0 2px, transparent 2px 10%),
    var(--tile);
}
.ph--bano .b-wall { left: 0; right: 0; top: 0; height: 38%; background: var(--wall); }
.ph--bano .b-mirror { left: 18%; top: 10%; width: 26%; height: 34%; background: linear-gradient(160deg, #ffffff, #d9e2f2); box-shadow: 0 0 0 5px var(--piedra); }
.ph--bano .b-vanity { left: 12%; top: 54%; width: 38%; height: 14%; background: var(--obj); }
.ph--bano .b-basin { left: 20%; top: 50%; width: 22%; height: 5%; background: var(--cal); }
.ph--bano .b-glass { right: 8%; top: 14%; width: 30%; bottom: 0; background: rgba(255,255,255,0.32); box-shadow: inset 2px 0 0 rgba(14,26,58,0.15); }
.ph--bano .b-shower { right: 20%; top: 14%; width: 3%; height: 6%; background: var(--noche); }

/* Fachada encalada */
.ph--fachada { --wall: #f1f3f2; }
.ph--fachada .f-zocalo { left: 0; right: 0; bottom: 0; height: 22%; background: var(--azulete); }
.ph--fachada .f-cenefa { left: 0; right: 0; bottom: 24%; height: 1.4%; background: var(--almagra); }
.ph--fachada .f-door { left: 14%; bottom: 0; width: 22%; height: 62%; background: var(--noche); box-shadow: inset 0 0 0 10px #2b3b66; }
.ph--fachada .f-win { left: 52%; top: 18%; width: 18%; height: 30%; background: #2b3b66; box-shadow: inset 0 0 0 6px var(--piedra); }
.ph--fachada .f-win2 { left: 76%; top: 18%; width: 18%; height: 30%; background: #2b3b66; box-shadow: inset 0 0 0 6px var(--piedra); }
.ph--fachada .f-shadow { right: 0; top: 0; width: 46%; height: 100%; background: rgba(14,26,58,0.08); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.ph--fachada .f-pot { left: 42%; bottom: 22%; width: 6%; height: 9%; background: var(--almagra); }
.ph--fachada .f-leaf { left: 40%; bottom: 31%; width: 10%; height: 9%; background: #3d7a52; border-radius: 50% 50% 0 0; }

/* Retrato: hueco con iniciales (nunca silueta) */
.ph--retrato { --ar: 4 / 5; background: var(--cal-sombra); }
.ph--retrato .r-frame { inset: 10%; background: var(--piedra); }
.ph--retrato .r-light { right: 0; top: 0; width: 60%; height: 100%; background: rgba(255,250,240,0.55); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); }
.ph--retrato .r-ini {
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 820;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--azulete);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* Variante “antes”: misma estancia, envejecida y en sombra */
.ph.is-antes {
  --wall: #c9c6b9;
  --floor: #a59a82;
  --obj: #7d7a6d;
  --tile: #d2c7a2;
  --tile-line: rgba(70, 60, 30, 0.35);
  --dim: 0.32;
  filter: saturate(0.55);
}
.ph.is-antes .s-art,
.ph.is-antes .k-plant,
.ph.is-antes .s-lamp,
.ph.is-antes .s-lamp2,
.ph.is-antes .b-glass { display: none; }
.ph.is-antes .s-light { background: rgba(255, 250, 240, 0.18); }
.ph.is-antes .stain {
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 70, 40, 0.35), transparent);
}

/* ---------- Secciones ---------- */

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.7); }

/* Inicio: método */
.metodo { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.metodo__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.metodo__head .lead { margin-top: 24px; }
.metodo__list { grid-column: 7 / span 6; list-style: none; display: grid; }
.paso {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  column-gap: 24px;
  padding-block: 32px;
  border-top: 1.5px solid var(--noche);
}
.paso:last-child { border-bottom: 1.5px solid var(--noche); }
.paso__when {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--azulete);
}
.paso h3 { font-size: 1.25rem; font-weight: 780; line-height: 1.25; margin-bottom: 8px; }
.paso p { color: var(--tinta-2); }
@media (max-width: 860px) {
  .metodo__head { grid-column: 1 / -1; position: static; }
  .metodo__list { grid-column: 1 / -1; }
  .paso { grid-template-columns: 1fr; row-gap: 12px; }
}

/* Inicio: galería antes/después */
.obras { background: var(--cal-sombra); }
.obras__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 48px; padding: 0 18px;
  font: 700 1rem var(--f-text);
  color: var(--noche);
  background: transparent;
  border: 1.5px solid var(--noche); border-radius: 0;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.tab[aria-selected="true"] { background: var(--noche); color: var(--cal); }
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { background: var(--cal); } }

.obra { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: start; }
.js .obra[hidden] { display: none; }
.obra + .obra { margin-top: 64px; }
.js .obra + .obra { margin-top: 0; }
.obra__fig { grid-column: 1 / span 8; margin: 0; }
.obra__info { grid-column: 9 / span 4; display: grid; gap: 18px; align-content: start; }
.obra__info h3 { font-family: var(--f-display); font-weight: 820; text-transform: uppercase; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 0.92; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.ficha dt { color: var(--tinta-2); font-size: 0.9375rem; }
.ficha dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.obra__note { font-size: 0.875rem; color: var(--tinta-2); }
@media (max-width: 960px) {
  .obra__fig, .obra__info { grid-column: 1 / -1; }
}

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  background: var(--noche);
}
.ba .ph { position: absolute; inset: 0; aspect-ratio: auto; }
.ba__after { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 0 0 var(--pos)); }
.ba__edge {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 0; z-index: 8;
  pointer-events: none;
}
/* el borde de la luz: un filo claro con resplandor hacia el “después” */
.ba__edge::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: var(--luz);
}
.ba__edge::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 1px; width: 56px;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.45), transparent);
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 9;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--luz); color: var(--noche);
  border: 0; border-radius: 0;
  cursor: grab;
  box-shadow: 0 0 0 1.5px var(--noche);
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.ba__handle .ico { width: 26px; height: 26px; }
.ba.is-dragging .ba__handle { cursor: grabbing; transform: translate(-50%, -50%) scale(0.94); background: #fff; }
.ba__label {
  position: absolute; top: 14px; z-index: 7;
  padding: 4px 10px;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.125rem; letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}
.ba__label--antes { left: 14px; background: var(--noche); color: var(--cal); }
.ba__label--despues { right: 14px; background: var(--luz); color: var(--noche); }
.ba__hint { margin-top: 12px; font-size: 0.875rem; color: var(--tinta-2); display: flex; align-items: center; gap: 8px; }

/* Inicio: servicios en breve (mosaico asimétrico) */
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 24px; }
.mosaico__intro { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 16px; }
.pieza { position: relative; text-decoration: none; display: grid; }
.pieza--grande {
  grid-column: 1 / span 7; grid-row: 2 / span 2;
  padding: clamp(24px, 3vw, 40px);
  align-content: space-between;
  gap: 32px;
}
.pieza--grande .ph { --ar: 16 / 10; }
.pieza--grande h3 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.pieza--chica {
  grid-column: 8 / span 5;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 20px;
  border-top: 1.5px solid var(--noche);
}
.pieza--chica + .pieza--chica { border-bottom: 1.5px solid var(--noche); }
.pieza--chica .ph { --ar: 1 / 1; }
.pieza--chica h3 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: 8px; }
.pieza p { max-width: 40ch; }
.pieza .link-go { margin-top: 16px; }
.pieza__arrow { transition: transform 260ms var(--ease-out); }
@media (hover: hover) {
  .pieza:hover .link-go .ico { transform: translateX(4px); }
  .pieza--chica:hover h3 { color: var(--azulete); }
}
.pieza--chica .ph { transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
@media (max-width: 960px) {
  .pieza--grande, .pieza--chica { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 520px) {
  .pieza--chica { grid-template-columns: 1fr; }
  .pieza--chica .ph { --ar: 16 / 9; }
}

/* Cierre: zócalo final con llamada */
.cierre { padding-block: clamp(56px, 6.5vw, 96px); margin-top: 14px; }
.cierre .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: end; }
.cierre h2 { grid-column: 1 / span 8; }
.cierre__body { grid-column: 9 / span 4; display: grid; gap: 24px; }
.cierre__alt { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cierre__alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.cierre__alt a span { border-bottom: 1px solid currentColor; }
@media (max-width: 960px) {
  .cierre h2, .cierre__body { grid-column: 1 / -1; }
}

/* ---------- Cabecera de página interior ---------- */

.page-head { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5.5vw, 80px); }
.page-head .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: end; }
.page-head h1 { grid-column: 1 / span 8; }
.page-head .lead { grid-column: 9 / span 4; }
.page-head__light {
  position: absolute; z-index: 0; pointer-events: none;
  inset: 0;
  background: linear-gradient(225deg, rgba(255, 228, 182, 0.75) 0%, rgba(255, 238, 208, 0.5) 40%, rgba(255, 244, 226, 0) 85%);
  clip-path: polygon(100% 0, 100% 34%, 46% 100%, 18% 100%, 76% 0);
  filter: blur(2px);
}
.page-head__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; }
@media (max-width: 960px) {
  .page-head h1, .page-head .lead { grid-column: 1 / -1; }
}

/* ---------- Servicios ---------- */

.integral { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.integral__fig { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 32px); }
.integral__fig .ph { --ar: 4 / 5; }
.integral__body { grid-column: 8 / span 5; display: grid; gap: 32px; }
.plazo {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1.5px solid var(--noche); border-bottom: 1.5px solid var(--noche);
}
.plazo .num { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--azulete); }
.plazo span:last-child { color: var(--tinta-2); }
.partidas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.partidas h3 { font-size: 1.0625rem; font-weight: 780; margin-bottom: 6px; }
.partidas p { color: var(--tinta-2); font-size: 0.9875rem; }
@media (max-width: 960px) {
  .integral__fig, .integral__body { grid-column: 1 / -1; position: static; }
  .integral__fig .ph { --ar: 16 / 10; }
}
@media (max-width: 520px) { .partidas { grid-template-columns: 1fr; } }

.pareja { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.pareja article { display: grid; gap: 20px; align-content: start; }
.pareja article:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.pareja .ph { --ar: 5 / 4; }
.pareja .plazo { padding: 12px 0; }
.pareja .plazo .num { font-size: 2.25rem; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks .ico { margin-top: 3px; color: var(--azulete); width: 20px; height: 20px; }
.on-azul .checks .ico { color: var(--luz); }
@media (max-width: 860px) {
  .pareja { grid-template-columns: 1fr; }
  .pareja article:nth-child(2) { margin-top: 0; }
}

.claro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.claro h2 { grid-column: 1 / span 7; }
.claro__col { grid-column: span 6; display: grid; gap: 20px; align-content: start; padding-top: 28px; border-top: 1.5px solid var(--cal); }
.claro__col h3 { font-size: 1.375rem; font-weight: 780; }
.claro__col .checks { gap: 14px; }
@media (max-width: 860px) {
  .claro h2, .claro__col { grid-column: 1 / -1; }
}

/* ---------- Sobre nosotros ---------- */

.historia { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.historia__fig { grid-column: 1 / span 5; margin: 0; }
.historia__fig .ph { --ar: 4 / 5; }
.historia__body { grid-column: 7 / span 6; display: grid; gap: 32px; }
.datos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 48px; margin: 0; }
.datos div { display: grid; gap: 2px; }
.datos dt { font-size: 0.875rem; color: var(--tinta-2); order: 2; }
.datos dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--azulete); text-transform: uppercase; order: 1; }
@media (max-width: 960px) {
  .historia__fig, .historia__body { grid-column: 1 / -1; }
  .historia__fig .ph { --ar: 16 / 10; }
}
@media (max-width: 520px) { .datos { grid-template-columns: 1fr 1fr; } }

.equipo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
.persona { display: grid; gap: 14px; }
.persona h3 { font-size: 1.25rem; font-weight: 780; line-height: 1.2; }
.persona .rol { color: var(--almagra-hondo); font-weight: 700; font-size: 0.9375rem; }
.persona p:last-child { color: var(--tinta-2); font-size: 0.9875rem; }
@media (max-width: 960px) {
  .equipo__grid { grid-template-columns: 1fr 1fr; }
}

.promesas { list-style: none; display: grid; margin-top: 48px; }
.promesa {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px; row-gap: 8px;
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 1.5px solid rgba(244, 246, 245, 0.5);
  align-items: baseline;
}
.promesa:last-child { border-bottom: 1.5px solid rgba(244, 246, 245, 0.5); }
.promesa h3 { grid-column: 1 / span 7; font-family: var(--f-display); font-weight: 820; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 0.92; }
.promesa p { grid-column: 8 / span 5; color: var(--azulete-claro); }
@media (max-width: 860px) {
  .promesa h3, .promesa p { grid-column: 1 / -1; }
}

/* ---------- Contacto ---------- */

.contacto { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start; }
.contacto__form { grid-column: 1 / span 7; }
.contacto__aside { grid-column: 9 / span 4; display: grid; gap: 32px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) {
  .contacto__form, .contacto__aside { grid-column: 1 / -1; position: static; }
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 720; font-size: 0.9875rem; }
.field .opt { font-weight: 500; color: var(--tinta-2); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 500 1.0625rem/1.4 var(--f-text);
  color: var(--noche);
  background: var(--campo);
  border: 1.5px solid var(--campo-borde);
  border-radius: 0;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  caret-color: var(--almagra);
}
.input::placeholder, .textarea::placeholder { color: var(--campo-ph); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--noche); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--azulete); box-shadow: 0 0 0 3px rgba(30, 63, 168, 0.22); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230e1a3a' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.textarea { min-height: 148px; resize: vertical; }
.field .help { font-size: 0.875rem; color: var(--tinta-2); }
.field .error {
  display: none;
  align-items: center; gap: 6px;
  font-size: 0.9375rem; font-weight: 650;
  color: var(--error);
}
.field .error .ico { width: 18px; height: 18px; }
.field.is-invalid .error { display: flex; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--error); }

.check {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  font-size: 0.9875rem;
}
.check input {
  appearance: none;
  width: 24px; height: 24px; margin: 1px 0 0;
  border: 1.5px solid var(--noche); border-radius: 0;
  background: var(--campo);
  display: grid; place-items: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--cal); border-bottom: 2.5px solid var(--cal);
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 160ms var(--ease-out);
}
.check input:checked { background: var(--azulete); border-color: var(--azulete); }
.check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check label { font-weight: 500; }
.field.is-invalid .check input { border-color: var(--error); }

.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { font-size: 0.875rem; color: var(--tinta-2); max-width: 46ch; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }

.form-ok {
  padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 16px;
}
.form-ok[hidden] { display: none; }
.form-ok h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }

@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.canal { display: grid; gap: 6px; padding-top: 18px; border-top: 1.5px solid var(--noche); }
.canal .label { font-size: 0.875rem; color: var(--tinta-2); }
.canal a, .canal p.v { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.05; text-transform: uppercase; text-decoration: none; font-variant-numeric: tabular-nums; }
.canal .small { font-size: 0.9375rem; color: var(--tinta-2); }

.zona { display: grid; gap: 32px; }
.zona__lista { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.zona__lista li {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1;
}
.zona__lista li:not(:last-child)::after { content: "/"; color: var(--almagra); margin-inline: 0.3em; font-weight: 500; }

.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; }
.faq h2 { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; }
.faq details { border-top: 1.5px solid var(--noche); }
.faq details:last-child { border-bottom: 1.5px solid var(--noche); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-weight: 750; font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 260ms var(--ease-out); width: 22px; height: 22px; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--tinta-2); max-width: 60ch; }
@media (max-width: 860px) {
  .faq h2, .faq__list { grid-column: 1 / -1; }
}

/* ---------- Legal ---------- */

.legal { max-width: 72ch; }
.legal h2 { font-family: var(--f-display); text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 48px 0 16px; }
.legal p, .legal li { color: var(--tinta-2); }
.legal p + p { margin-top: 1em; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 12px; }
.pendiente { background: #f6e4dd; color: var(--almagra-hondo); font-weight: 700; padding: 0 4px; }
.aviso-demo {
  display: flex; gap: 12px; align-items: start;
  padding: 16px 18px;
  background: var(--cal-sombra);
  border: 1.5px solid var(--piedra);
  margin-bottom: 40px;
  font-size: 0.9875rem;
}
.aviso-demo .ico { color: var(--almagra); margin-top: 2px; }

/* ---------- Pie ---------- */

.on-noche { background: var(--noche); color: var(--cal); }
.site-footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.foot__brand { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.foot__brand .brand small { color: var(--pie-2); }
.foot__brand p { color: var(--pie-2); max-width: 34ch; }
.foot__col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot__col--wide { grid-column: span 4; }
.foot__col h2 { font-family: var(--f-text); font-size: 0.875rem; font-weight: 700; color: var(--pie-2); margin-bottom: 4px; }
.foot__col ul { list-style: none; display: grid; gap: 8px; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--almagra); }
.foot__col address { font-style: normal; color: var(--cal); }
.foot__bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 246, 245, 0.18);
  font-size: 0.875rem; color: var(--pie-2);
}
@media (max-width: 960px) {
  .foot__brand { grid-column: 1 / -1; }
  .foot__col, .foot__col--wide { grid-column: span 6; }
}
@media (max-width: 520px) {
  .foot__col, .foot__col--wide { grid-column: 1 / -1; }
}

/* ---------- WhatsApp flotante ---------- */

.wa {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px);
  z-index: 50;
  display: grid; justify-items: end; gap: 12px;
}
.wa__btn {
  position: relative;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border: 0; border-radius: 0;
  background: var(--wa);
  color: #fff;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.wa__btn .ico { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) {
  .wa__btn:hover { background: #18663f; }
}
.wa__btn:active { transform: scale(0.96); }

.wa__panel {
  width: min(320px, calc(100vw - 32px));
  padding: 20px;
  background: var(--cal);
  color: var(--noche);
  box-shadow: 0 0 0 1.5px var(--noche), inset 0 6px 0 var(--azulete);
  padding-top: 26px;
  display: grid; gap: 14px;
  transform-origin: bottom right;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.wa__panel[hidden] { display: grid; visibility: hidden; opacity: 0; transform: translateY(8px) scale(0.96); pointer-events: none; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s linear 140ms; }
.wa__panel p.t { font-family: var(--f-display); font-weight: 820; text-transform: uppercase; font-size: 1.875rem; line-height: 0.95; }
.wa__panel p.s { font-size: 0.9375rem; color: var(--tinta-2); }
.wa__panel .btn { justify-content: space-between; --btn-bg: var(--wa); }
.wa__close {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 0; color: var(--noche); cursor: pointer;
}
.wa__panel { position: relative; }

/* ---------- Revelados al hacer scroll ----------
   Animaciones ligadas a la vista (CSS scroll-driven), cortas y sin JavaScript.
   El estado por defecto es visible: en navegadores sin soporte, con movimiento
   reducido o sin JS, el contenido aparece exactamente igual. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: revela linear both;
      animation-timeline: view();
      animation-range: entry 0% entry min(100%, 120px);
    }
    .reveal-wipe {
      animation: revela-cal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry min(100%, 160px);
    }
  }
}
@keyframes revela { from { opacity: 0; transform: translateY(14px); } }
@keyframes revela-cal { from { clip-path: inset(22% 0 0 0); opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .btn, .btn:hover, .btn:active, .wa__btn, .wa__btn:hover, .wa__btn:active,
  .pieza--chica .ph, .ba__handle { transform: none !important; transition-property: background-color, color, box-shadow, opacity !important; }
  .ba.is-dragging .ba__handle { transform: translate(-50%, -50%) !important; }
  .ba__handle { transform: translate(-50%, -50%) !important; }
  .menu-panel, .menu-panel.is-open { clip-path: none; transition: opacity 160ms linear, visibility 0s linear 160ms; opacity: 0; }
  .menu-panel.is-open { opacity: 1; transition: opacity 160ms linear, visibility 0s; }
  .wa__panel, .wa__panel[hidden] { transform: none; }
}

/* Pared en sombra: bloque intermedio sin competir con el zócalo de cierre */
.sombra { background-color: var(--cal-sombra); }
.sombra .claro__col { border-top-color: var(--noche); }
.sombra .promesa { border-top-color: rgba(14, 26, 58, 0.35); }
.sombra .promesa:last-child { border-bottom-color: rgba(14, 26, 58, 0.35); }
.sombra .promesa h3 { color: var(--azulete); }
.sombra .promesa p { color: var(--tinta-2); }

@media (max-width: 640px) {
  .ph__tag { font-size: 0.6875rem; padding: 4px 7px; left: 8px; bottom: 8px; }
}
.on-azul .brand__mark rect:first-child { fill: var(--azulete-hondo); }

/* Áreas táctiles de al menos 44 px en móvil */
@media (pointer: coarse), (max-width: 640px) {
  .foot__col a, .cierre__alt a, .page-head__nav .link-go { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__col ul { gap: 0; }
  .nav__list a { padding: 12px 0; }
}
.ba__after .ph__tag { left: auto; right: 12px; }
@media (max-width: 640px) { .ba__after .ph__tag { right: 8px; } .ba .ph__tag { max-width: calc(50% - 16px); } }

/* WhatsApp: aparece cuando la portada ya no ocupa la pantalla */
.wa { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.wa.is-tucked { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa.is-tucked { transform: none; } }

/* Canales de contacto: el canal es el titular */
.canal .v-link { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.05; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.canal .v-link .ico { width: 0.8em; height: 0.8em; }
.ba .ph__tag { display: none; }
.hero__window .ph__tag { left: 8px; right: 8px; bottom: 24px; max-width: none; }
@media (max-width: 960px) {
  .hero__window .ph__tag { left: 6px; right: 6px; bottom: 22px; padding: 3px 5px; font-size: 0.625rem; gap: 4px; line-height: 1.2; }
  .hero__window .ph__tag .t-long { display: none; }
  .hero__window .ph__tag .ico { width: 16px; height: 16px; }
}

/* ---------- Fotografías ---------- */
.media {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--piedra);
}
.media .foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.persona .media { --ar: 4 / 5; }
.pieza--chica .media { transition: transform 260ms var(--ease-out); }
.pieza--grande .media { --ar: 16 / 10; }
@media (hover: hover) and (pointer: fine) {
  .pieza .media .foto { transition: transform 900ms var(--ease-out); }
  .pieza:hover .media .foto { transform: scale(1.03); }
}

/* Servicios: galería de oficios */
.oficios {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3vw, 40px) 24px;
  margin-top: clamp(32px, 4vw, 48px);
}
.oficio { grid-column: span 4; display: grid; gap: 16px; align-content: start; }
.oficio--cocina { grid-column: span 7; }
.oficio--bano { grid-column: span 5; align-self: end; }
.oficio--terraza { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.oficio--terraza .media { grid-column: 1 / span 8; }
.oficio--terraza .oficio__txt { grid-column: 9 / span 4; padding-bottom: 8px; }
.oficio__txt { display: grid; gap: 6px; }
.oficio__txt p { color: var(--tinta-2); max-width: 46ch; }
.oficio__txt .h-s { color: var(--noche); }
.oficio__plazo { font-size: 0.9375rem; }
.oficio__plazo .num { color: var(--azulete); font-size: 1.375rem; margin-right: 4px; }
@media (max-width: 960px) {
  .oficio, .oficio--cocina, .oficio--bano { grid-column: span 6; }
  .oficio--cocina, .oficio--terraza { grid-column: 1 / -1; }
  .oficio--terraza .media, .oficio--terraza .oficio__txt { grid-column: 1 / -1; }
  .oficio--terraza .media { --ar: 16 / 9 !important; }
}
@media (max-width: 600px) {
  .oficio, .oficio--bano { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .integral__fig .media, .historia__fig .media { --ar: 16 / 10 !important; }
}
@media (max-width: 520px) {
  .pieza--chica .media { --ar: 16 / 9 !important; }
}

/* Móvil: la ventana de la portada, centrada y protagonista */
@media (max-width: 960px) {
  .hero__wall { grid-template-rows: auto auto; row-gap: clamp(20px, 4vh, 36px); padding-top: clamp(20px, 3.5vh, 40px); }
  .hero__window {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    width: min(64vw, 300px);
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: 40vh;
  }
  .hero__window .ph--ventana { height: 100%; }
  /* la luz sale del borde izquierdo de la ventana centrada y cae hacia el titular */
  .hero__light--a { clip-path: polygon(19% 4%, 19% 20%, -12% 46%, -12% 30%); }
  .hero__light--b { clip-path: polygon(19% 22%, 19% 38%, -12% 64%, -12% 48%); }
}
@media (max-width: 960px) and (min-width: 600px) {
  .hero__window { width: min(40vw, 320px); }
  .hero__light--a { clip-path: polygon(30% 4%, 30% 20%, -5% 50%, -5% 34%); }
  .hero__light--b { clip-path: polygon(30% 22%, 30% 38%, -5% 68%, -5% 52%); }
}

/* Columnas sin huecos */
.metodo__foto { margin-top: 32px; }
.obra__info .checks { gap: 8px; font-size: 0.9875rem; }
.obra__info .link-go { justify-self: start; }
.atiende { margin: 0; display: grid; gap: 10px; }
.atiende .media .foto { object-position: 50% 22%; }
.atiende figcaption { font-size: 0.9375rem; color: var(--tinta-2); }
@media (max-width: 960px) {
  .hero__window { max-height: 32vh; }
  .metodo__foto { display: none; }
}
