/* Decoramica · estilos principales
   Paleta tomada del logo: carbón, naranja y gris. Fondo mineral en lugar de crema.
   Tipografía: Archivo variable. El eje de anchura (font-stretch) da el carácter ancho del logo. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a2321;
  --ink-deep: #1c1816;
  --orange: #d58500;
  --orange-hover: #e39a1c;
  --orange-text: #8a5600;
  --mineral: #eae8e4;
  --mineral-2: #dcd9d3;
  --paper: #f5f4f1;
  --grey: #625e5a;
  --on-dark: #ece8e2;
  --on-dark-soft: #bdb8b0;
  --rule: rgba(42, 35, 33, 0.22);
  --rule-dark: rgba(236, 232, 226, 0.18);
  --header-h: 84px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mineral);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: -0.012em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.3vw, 3.6rem); font-stretch: 116%; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--orange); color: var(--ink-deep); padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--orange { background: var(--orange); color: var(--ink-deep); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head p { margin: 0; color: var(--grey); max-width: 38ch; }
.section--dark .section-head p { color: var(--on-dark-soft); }

/* Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.6rem; border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 0.97rem; font-weight: 600; font-stretch: 108%; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--orange); color: var(--ink-deep); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--dark { background: var(--ink-deep); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.link:hover { text-decoration-color: currentColor; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-deep); color: var(--on-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 54px; width: auto; }
.nav-list { display: flex; gap: clamp(1rem, 1.8vw, 2.1rem); list-style: none; }
.nav-list a {
  display: block; padding: 0.4rem 0; font-size: 0.92rem; font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: #fff; border-bottom-color: var(--rule-dark); }
.nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.nav-toggle {
  display: none; align-items: center; gap: 0.7rem; min-height: 2.75rem; padding: 0 0.25rem;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.4rem; height: 2px; background: currentColor; content: ""; transition: transform 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.hero { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
  min-height: min(calc(100svh - var(--header-h)), 46rem);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero__lead { margin: 1.5rem 0 2rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #d6d1c9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__phone { margin: 1.75rem 0 0; color: var(--on-dark-soft); font-size: 0.97rem; }
.hero__phone a { color: #fff; font-weight: 600; text-underline-offset: 0.25em; }

.plan-figure { margin: 0; }
.plan { width: 100%; height: auto; overflow: visible; }
.plan-figure figcaption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--on-dark-soft); }
.plan .wall { fill: none; stroke: var(--mineral); stroke-width: 3.5; }
.plan .wall--outer { stroke-width: 6; stroke-linejoin: miter; }
.plan .win { fill: var(--ink); stroke: var(--mineral); stroke-width: 1.5; }
.plan .door { fill: none; stroke: var(--on-dark-soft); stroke-width: 1.2; }
.plan .zone { fill: rgba(213, 133, 0, 0.18); }
.plan .zone-edge { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 5 5; }
.plan .fur { fill: none; stroke: var(--on-dark-soft); stroke-width: 1.2; }
.plan .dim { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.plan .lbl { fill: var(--on-dark); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.plan .lbl--accent { fill: var(--orange); font-weight: 600; }
.plan .dim-txt { fill: var(--orange); font-size: 13px; font-weight: 600; }

/* La única animación de la página: el plano se dibuja al cargar */
@media (prefers-reduced-motion: no-preference) {
  .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.7s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards; }
  .plan .draw--late { animation-delay: 0.9s; }
  .plan .fade { opacity: 0; animation: show 0.9s ease 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* Espacio reservado para fotografías reales (sombreado de corte, como en un plano) */
.slot {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(42, 35, 33, 0.13) 9px 10px),
    var(--mineral-2);
  border: 1px solid var(--rule);
}
.slot__label {
  position: absolute; left: 0.9rem; bottom: 0.8rem; padding: 0.2rem 0.55rem;
  background: var(--paper); color: var(--grey); font-size: 0.8rem; font-weight: 500;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }

/* Servicios */
.service {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service h3 { margin-bottom: 1rem; }
.service p { max-width: 36rem; color: #413b37; }
.service__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin-top: 1.5rem; }

/* Proceso (una secuencia real, por eso va numerado) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 0.9rem;
  color: var(--orange-text); font-size: 2.25rem; font-weight: 700; font-stretch: 125%; line-height: 1;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.steps p { margin: 0; color: #413b37; font-size: 0.99rem; }

/* Por qué */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.why h2 { max-width: 14ch; }
.why dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); margin: 0; }
.why dt { font-weight: 600; font-stretch: 112%; font-size: 1.12rem; padding-top: 0.9rem; border-top: 2px solid var(--orange); }
.why dd { margin: 0.5rem 0 0; color: #413b37; }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.project { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; }
.project--lead { grid-column: span 7; grid-row: span 2; }
.project--side { grid-column: span 5; }
.project .slot { flex: 1; aspect-ratio: auto; min-height: 13rem; }
.project figcaption { font-weight: 600; font-stretch: 108%; }
.project figcaption span { display: block; font-weight: 400; font-stretch: 100%; font-size: 0.93rem; color: var(--grey); }
.projects-foot { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: 2rem 0 0; }

/* Zona de trabajo y contacto */
.area { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.area p { color: var(--on-dark-soft); max-width: 40rem; }
.areas-list { columns: 2; column-gap: 2rem; margin: 1.75rem 0 0; list-style: none; max-width: 28rem; }
.areas-list li { position: relative; padding: 0.3rem 0 0.3rem 1.4rem; break-inside: avoid; color: var(--on-dark); }
.areas-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.85em; width: 0.5rem; height: 0.5rem;
  background: var(--orange); transform: rotate(45deg);
}
.office { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--rule-dark); }
.office h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.office address { font-style: normal; color: var(--on-dark); }
.office dl { margin: 1.25rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; }
.office dt { color: var(--on-dark-soft); }
.office dd { margin: 0; }
.office a { color: #fff; text-underline-offset: 0.25em; }
.office .link { display: inline-block; margin-top: 1.5rem; }

/* Preguntas frecuentes */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; display: block; padding: 1.35rem 3rem 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-stretch: 108%; font-size: 1.12rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1rem; height: 2px; background: var(--ink);
}
.faq summary::after { transform: rotate(90deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 1.5rem; max-width: 42rem; color: #413b37; }

/* Llamada a la acción */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cta h2 { max-width: 18ch; }
.cta p { margin: 1rem 0 0; max-width: 32rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: flex-end; }
.cta__actions .link { text-decoration-color: var(--ink-deep); }

/* Pie */
.site-footer { background: var(--ink-deep); color: var(--on-dark-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1.25rem; }
.footer-brand address { font-style: normal; }
.site-footer h2 { margin-bottom: 1rem; color: #fff; font-size: 1rem; font-stretch: 108%; letter-spacing: 0; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-link-btn { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-dark); font-size: 0.88rem; }

/* Aviso de cookies: Aceptar y Rechazar con el mismo peso visual */
.consent {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90; width: min(26rem, calc(100% - 2rem));
  padding: 1.25rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 1rem; font-size: 0.93rem; line-height: 1.5; }
.consent__actions { display: flex; gap: 0.75rem; }
.consent .btn { flex: 1; min-height: 2.75rem; padding: 0.6rem 1rem; border-color: var(--ink); font-size: 0.92rem; }
.consent .btn--accept { background: var(--ink); color: #fff; }
.consent .btn--reject { background: transparent; color: var(--ink); }

/* Páginas interiores */
.page-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.9vw, 3.2rem); max-width: 20ch; }
.page-hero__lead { margin: 0; color: #d6d1c9; font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 34rem; }
.breadcrumb { margin-bottom: 1.75rem; font-size: 0.88rem; color: var(--on-dark-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--on-dark-soft); }
.breadcrumb a { text-underline-offset: 0.2em; }
.breadcrumb [aria-current] { color: #fff; }

.text-block { max-width: 44rem; }
.text-block h2 { margin-bottom: 1.5rem; }
.text-block p { color: #413b37; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { max-width: 16ch; }
.notes { display: grid; gap: 1.5rem; margin: 0; }
.notes dt { font-weight: 600; font-stretch: 112%; font-size: 1.12rem; }
.notes dd { margin: 0.35rem 0 0; color: #413b37; max-width: 40rem; }
.notes > div { padding-top: 1rem; border-top: 1px solid var(--rule); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.gallery figcaption { font-weight: 600; font-stretch: 108%; font-size: 0.97rem; }
.gallery figcaption span { display: block; font-weight: 400; font-stretch: 100%; font-size: 0.9rem; color: var(--grey); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.person { margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.person .slot { aspect-ratio: 4 / 5; }
.person figcaption { font-weight: 600; font-stretch: 108%; }
.person figcaption span { display: block; font-weight: 400; font-stretch: 100%; font-size: 0.93rem; color: var(--grey); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.office--light { border-color: var(--ink); background: var(--paper); }
.office--light address, .office--light dd { color: var(--ink); }
.office--light dt { color: var(--grey); }
.office--light a { color: var(--ink); }
.office--light .slot { margin-top: 1.5rem; aspect-ratio: 16 / 9; }

.form { display: grid; gap: 1.35rem; }
.form h2 { margin-bottom: 0.25rem; }
.field label, .field legend { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.97rem; }
.field small { display: block; margin-top: 0.35rem; color: var(--grey); font-size: 0.88rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.8rem 1rem; background: #fff; color: var(--ink);
  border: 1px solid #8d8883; border-radius: var(--radius); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.93rem; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--ink); }
.form-note { margin: 0; color: var(--grey); font-size: 0.86rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--ink); background: var(--paper); font-weight: 500; }
.notice[hidden] { display: none; }
.field-error { margin: 0.4rem 0 0; color: #a1260f; font-size: 0.9rem; font-weight: 600; }
.check .field-error { flex-basis: 100%; margin: 0; }
.check { flex-wrap: wrap; }
.field [aria-invalid="true"] { border-color: #a1260f; border-width: 2px; }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.btn.is-loading::before {
  content: ""; width: 1rem; height: 1rem; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  border-radius: 50%; animation: dc-spin 0.8s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation-duration: 2.4s; } }
.thanks { max-width: 40rem; }
.thanks p { margin: 1.25rem 0 2rem; }

.section--dark .text-block p { color: var(--on-dark-soft); }
.section--dark .text-block h2 { color: #fff; }
.section--dark .slot { border-color: var(--rule-dark); }

/* Fotografías */
picture { display: block; }
.hero-photo { margin: 0; }
.hero-photo picture { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--on-dark-soft); }
.page-hero--photo .page-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.page-hero--photo h1 { max-width: 19ch; font-size: clamp(2rem, 3.5vw, 3rem); }
.page-hero--photo .page-hero__lead { margin: 1.25rem 0 0; max-width: 32rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mineral-2); }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.project .photo { position: relative; flex: 1; min-height: 13rem; overflow: hidden; background: var(--mineral-2); }
.project .photo picture { position: absolute; inset: 0; }
.project .photo img { width: 100%; height: 100%; object-fit: cover; }

.shot { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.shot__btn { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--mineral-2); cursor: zoom-in; }
.shot__btn picture, .shot__btn img { width: 100%; height: 100%; }
.shot__btn img { object-fit: cover; }
.shot figcaption { font-weight: 600; font-stretch: 108%; font-size: 0.97rem; }
.shot figcaption span { display: block; font-weight: 400; font-stretch: 100%; font-size: 0.9rem; color: var(--grey); }
.project .photo.is-button { padding: 0; border: 0; width: 100%; cursor: zoom-in; display: block; }

/* Ampliación de fotos */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(20, 17, 15, 0.94); }
.lightbox__inner { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; height: 100%; padding: clamp(3.5rem, 6vw, 4.5rem) clamp(1rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__cap { margin: 0; text-align: center; font-size: 0.95rem; color: var(--on-dark-soft); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  background: rgba(28, 24, 22, 0.85); color: #fff; border: 1px solid var(--rule-dark); border-radius: var(--radius); cursor: pointer;
}
.lightbox__btn:hover { background: var(--orange); color: var(--ink-deep); border-color: var(--orange); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* Adaptación a pantallas más pequeñas */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    padding: 0.5rem var(--gutter) 1.5rem; background: var(--ink-deep); border-top: 1px solid var(--rule-dark);
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 0.95rem 0; border-bottom: 1px solid var(--rule-dark); font-size: 1rem; }
  .nav-list a[aria-current="page"] { color: var(--orange); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .hero__grid, .section-head, .service, .why, .area, .cta, .page-hero__grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { min-height: 0; }
  .hero h1 { max-width: 16ch; }
  .plan-figure { max-width: 34rem; }
  .section-head { align-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero--photo .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .project--lead, .project--side { grid-column: 1 / -1; grid-row: auto; }
  .cta__actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps, .why dl, .gallery, .team, .field-row { grid-template-columns: minmax(0, 1fr); }
  .page-hero__actions .btn { width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__inner { padding-bottom: 4.5rem; }
  .areas-list { columns: 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .consent__actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* foto de la fachada */
.media--43 { aspect-ratio: 4 / 3; }
.office-photo { margin-top: 1.75rem; }
.office--light .media { margin-top: 1.5rem; }

/* páginas legales */
.legal { max-width: 46rem; }
.legal__date { color: var(--grey); font-size: 0.93rem; margin: 0 0 2rem; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 2.75rem 0 1rem; }
.legal p, .legal li { color: #413b37; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0.75rem 0 1.25rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { text-underline-offset: 0.2em; }
.legal__data { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem; margin: 0 0 1.25rem; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--rule); }
.legal__data dt { font-weight: 600; }
.legal__data dd { margin: 0; color: #413b37; }
.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.95rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); color: #413b37; }
.legal__table thead th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.legal__table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
mark.pendiente { background: #ffe9a6; color: var(--ink); padding: 0.05em 0.3em; }

@media (max-width: 560px) {
  .legal__data { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .legal__data dd { margin-bottom: 0.75rem; }
  .legal__table { display: block; overflow-x: auto; }
}

/* botón flotante de WhatsApp */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #128c7e; color: #fff; box-shadow: 0 4px 14px rgba(28, 24, 22, 0.28); transition: transform 0.15s ease, background-color 0.15s ease; }
.wa-float:hover { background: #0e7569; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wa-float svg { width: 1.8rem; height: 1.8rem; }
@media (max-width: 560px) { .wa-float { right: 1rem; bottom: 1rem; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
