/* =========================================================
   ONDOZÁBAL · «El Muestrario» (V2)
   Sistema de diseño: piedra caliza, nogal ahumado, bronce y
   un único carmesí reservado a la acción.
   ========================================================= */

/* Fuente de reserva con las métricas de Playfair Display: mientras carga la fuente web, los titulares
   ocupan lo mismo y no empujan el contenido (evita CLS en móvil). */
@font-face {
  font-family: "Playfair Fallback";
  src: local("Times New Roman"), local("Times New Roman MT"), local("Times");
  ascent-override: 97.25%; descent-override: 22.56%; line-gap-override: 0%; size-adjust: 111.03%;
}


/* Fuentes alojadas en la propia web (assets/fonts/): ninguna petición a Google, así no sale la IP
   del visitante antes del consentimiento (RGPD) y la CSP queda en font-src 'self'.
   Solo subconjuntos latin y latin-ext; el navegador baja cada archivo solo si la página usa esos caracteres. */
/* Jost · latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost · latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/jost-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;
}
/* Jost · latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost · latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-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;
}
/* Plus Jakarta Sans · latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans · latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-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;
}
/* Plus Jakarta Sans · latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans · latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-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;
}
/* Plus Jakarta Sans · latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans · latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-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;
}
/* Work Sans · latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/work-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Work Sans · latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/work-sans-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;
}
/* Work Sans · latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/work-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Work Sans · latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/work-sans-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;
}
/* Work Sans · latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/work-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Work Sans · latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/work-sans-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 {
  /* Superficies */
  --stone: #faf7f7;
  --paper: #ffffff;
  --ebony: #141212;
  --walnut: #1c1a1a;
  --walnut-2: #242121;

  /* Texto */
  --ink: #1b1b1c;
  --ink-2: #59524f;
  --cream: #f3eeed;
  --cream-2: #b9b1ae;

  /* Acentos */
  --crimson: #94191a;
  --crimson-hover: #751213;
  --crimson-lit: #c8352f;      /* cursivas grandes sobre oscuro */
  /* Reseñas con aspecto de Google */
  --g-star: #fbbc04;
  --g-bg: #f4f5f7;
  --g-line: #e3e5e8;
  --g-title: #202124;
  --g-text: #3c4043;
  --g-muted: #70757a;
  --rose: #e6aaa2;             /* acento pequeño sobre oscuro */
  --bronze: #b89d7a;           /* etiquetas técnicas sobre oscuro */
  --bronze-ink: #7a6346;       /* etiquetas técnicas sobre claro */

  /* Líneas */
  --hair-l: rgba(28, 26, 26, .12);
  --hair-d: rgba(250, 247, 247, .14);

  /* Tipografía */
  --f-display: "Playfair Display", "Playfair Fallback", Georgia, serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tech: "Work Sans", system-ui, sans-serif;
  --f-brand: "Jost", "Work Sans", system-ui, sans-serif;

  /* Ritmo */
  --gutter: clamp(1rem, 2.4vw, 2.5rem);
  --margin: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --maxw: 1440px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ebony);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--crimson); }

[hidden] { display: none !important; }
.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-link {
  position: fixed; top: 10px; left: 10px; z-index: 999; padding: .8rem 1.1rem;
  background: var(--crimson); color: #fff; transform: translateY(-160%); transition: transform .3s;
}
.skip-link:focus { transform: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.section { position: relative; padding-block: var(--section); }
.on-light { background: var(--stone); color: var(--ink); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-walnut { background: var(--walnut); }
.on-ebony { background: var(--ebony); }

/* ---------- Tipografía ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-tech); font-size: .6875rem; line-height: 1rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bronze);
}
.on-light .tag, .on-paper .tag { color: var(--bronze-ink); }
.tag--dot::before { content: ""; width: 7px; height: 7px; background: var(--crimson); flex: none; }
.tag--red { color: var(--rose); }
.on-light .tag--red, .on-paper .tag--red { color: var(--crimson); }

.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.06; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: 0; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--crimson-lit); }
.on-light :is(.h1, .h2, .h3) em, .on-paper :is(.h1, .h2, .h3) em { color: var(--crimson); }

.lead { font-size: clamp(1.02rem, 1.3vw, 1.125rem); line-height: 1.75; color: var(--cream-2); max-width: 46ch; }
.on-light .lead, .on-paper .lead { color: var(--ink-2); }
.answer { /* frase de respuesta directa (AEO) */
  font-size: 1rem; line-height: 1.7; color: var(--cream-2); max-width: 62ch;
  border-left: 1px solid var(--crimson); padding-left: 1rem; margin-top: 1.4rem;
}
.on-light .answer, .on-paper .answer { color: var(--ink-2); }

.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.3fr .7fr; gap: var(--gutter); } }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .95rem 1.5rem; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--f-tech); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), background-color .45s var(--ease-out);
}
.btn::after { /* barrido al pasar */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep, var(--cream));
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out);
}
.btn:hover::after { transform: scaleY(1); }
.btn--primary { --bg: var(--crimson); --fg: #faf7f7; --bd: var(--crimson); --sweep: var(--crimson-hover); }
.btn--primary:hover { box-shadow: inset 0 0 0 1px var(--bronze); }
.btn--outline { --fg: var(--cream); --bd: rgba(250,247,247,.5); --sweep: var(--cream); }
.btn--outline:hover { color: var(--ebony); border-color: var(--cream); }
.on-light .btn--outline, .on-paper .btn--outline { --fg: var(--ink); --bd: var(--ink); --sweep: var(--ink); }
.on-light .btn--outline:hover, .on-paper .btn--outline:hover { color: var(--stone); }
.btn--block { width: 100%; }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn-label { display: inline-block; position: relative; }

.link-ghost {
  display: inline-flex; align-items: center; gap: .5rem; position: relative; padding-block: .35rem;
  font-family: var(--f-tech); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--crimson);
}
.on-ebony .link-ghost, .on-walnut .link-ghost { color: var(--rose); }
.link-ghost::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.link-ghost:hover::after { transform: scaleX(1); }
.link-ghost .icon { transition: transform .4s var(--ease-out); }
.link-ghost:hover .icon { transform: translate(3px, -3px); }

/* ---------- Marca ---------- */
/* Logotipo: siempre la imagen original del cliente (assets/img/logo-ondozabal*.webp), nunca recreado con texto. */
.brand { display: inline-flex; flex: none; line-height: 1; }
.brand__logo { display: block; height: 40px; width: auto; }
/* En móviles estrechos el logotipo encoge con la pantalla (32 px de alto a 320 px) para dejar sitio a «Llamar» y al menú. */
.header .brand__logo { height: clamp(30px, calc((100vw - 152px) / 5.3), 40px); }
@media (min-width: 1280px) { .header .brand__logo { height: 46px; } }
.brand--full .brand__logo { height: auto; width: min(260px, 72vw); }
.curtain__mark img { width: 96px; height: auto; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  transition: transform .6s var(--ease-out), background-color .5s, border-color .5s, color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(20, 18, 18, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--hair-d); }
.header.is-hidden { transform: translateY(-100%); }
/* Si el foco del teclado entra en la cabecera oculta, vuelve a aparecer (WCAG 2.4.11). */
.header.is-hidden:focus-within { transform: none; }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav { display: none; gap: clamp(1.1rem, 1.7vw, 2rem); }
.nav a { position: relative; font-family: var(--f-tech); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); padding-block: .4rem; transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--crimson-lit); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 1.1rem; }
.header__phone { display: none; flex-direction: column; text-align: right; line-height: 1.15; }
.header__phone small { font-family: var(--f-tech); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.header__phone strong { font-family: var(--f-tech); font-weight: 500; font-size: .95rem; letter-spacing: .06em; }
.header .btn { min-height: 44px; padding: .7rem 1.1rem; font-size: .72rem; }
.header__cta-text--long { display: none; }
@media (min-width: 560px) { .header__cta-text--long { display: inline; } .header__cta-text--short { display: none; } }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--hair-d); }
.burger span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* El menú de escritorio necesita 1280 px: por debajo, los 7 enlaces, el logotipo y «Pide presupuesto» no caben. */
@media (min-width: 1280px) {
  .nav { display: flex; gap: clamp(1rem, 1.3vw, 1.6rem); }
  .burger { display: none; }
}
@media (min-width: 1440px) { .header__phone { display: flex; } }
/* Móviles (hasta 559 px): «Llamar» queda solo con el icono para que quepan el logotipo y el
   botón del menú sin salirse de la pantalla (WCAG 1.4.10). Por debajo de 360 px el logotipo encoge. */
@media (max-width: 559px) {
  .header__bar { gap: .75rem; }
  .header__right { gap: .6rem; }
  .header .btn { width: 44px; padding: 0; gap: 0; }
  .header .btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Menú móvil a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ebony); padding: calc(var(--header-h) + 2rem) var(--margin) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--hair-d); font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.15; }
.menu__links small { font-family: var(--f-tech); font-size: .7rem; letter-spacing: .2em; color: var(--rose); }
.menu__links a > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.menu-open .menu__links a > span { transform: none; }
.menu__links li { overflow: hidden; }
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ---------- Barra de progreso y cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; transform-origin: left; transform: scaleX(0); background: var(--crimson-lit); pointer-events: none; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--cream); mix-blend-mode: difference; opacity: 0;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s, background-color .3s;
  display: grid; place-items: center;
}
.cursor span { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ebony); opacity: 0; transition: opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; background: var(--crimson); }
.cursor.is-label span { opacity: 1; color: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Cortina de transición (persiana) ----------
   Sin clase: escondida abajo · .is-closed: tapa la página · .is-out: sale por arriba en la página nueva. */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; }
.curtain__leaf { background: var(--walnut); border-top: 3px solid var(--crimson); transform: translateY(100%); transition: transform .5s var(--ease-io); }
.curtain__mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); opacity: 0; transition: opacity .2s; }
.curtain.is-closed { pointer-events: auto; }
/* Al pulsar un enlace la persiana cierra en 0,3 s (antes 0,7 s): cada clic se nota menos lento. */
.curtain.is-closed .curtain__leaf { transform: none; transition-duration: .3s; }
.curtain.is-closed .curtain__mark { opacity: 1; transition-delay: .15s; }
.curtain.is-out .curtain__leaf { transform: translateY(-100%); }
.curtain.is-instant .curtain__leaf, .curtain.is-instant .curtain__mark { transition: none; }

/* ---------- Revelados ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(48px); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.js [data-reveal="clip"] img { transform: scale(1.18); }
.js [data-reveal="fade"] { transform: none; }
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split-line > span { display: inline-block; will-change: transform; }
.lit-word { opacity: .16; transition: opacity .2s linear; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ebony); padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero__grid { grid-template-columns: 1fr 1.08fr; }
}
.hero__copy { display: grid; gap: 1.6rem; position: relative; z-index: 2; }
.hero__copy .lead { max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--hair-d); }
.proof { display: flex; gap: .8rem; align-items: center; }
.proof__stars { display: flex; gap: 2px; color: var(--g-star); }
.proof__stars .icon { width: 14px; height: 14px; }
.proof strong { display: block; font-family: var(--f-tech); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.proof small { display: block; font-size: .78rem; color: var(--cream-2); }
.proof__seal { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bronze); display: grid; place-items: center; color: var(--bronze); }

/* Hero con vídeo de fondo */
.hero--video { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(1rem, 4vw, 2.5rem); isolation: isolate; }
@media (min-width: 1000px) { .hero--video { justify-content: center; } }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ebony); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
/* Degradado: el lado del texto queda casi opaco para asegurar contraste AA */
.hero__shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,18,18,.94) 0%, rgba(20,18,18,.86) 34%, rgba(20,18,18,.5) 62%, rgba(20,18,18,.2) 100%),
    linear-gradient(0deg, rgba(20,18,18,1) 0%, rgba(20,18,18,0) 28%),
    linear-gradient(180deg, rgba(20,18,18,.7) 0%, rgba(20,18,18,0) 22%); }
@media (max-width: 999px) {
  .hero__shade { background: linear-gradient(0deg, rgba(20,18,18,.97) 0%, rgba(20,18,18,.9) 48%, rgba(20,18,18,.45) 78%, rgba(20,18,18,.6) 100%); }
}
.hero--video .hero__grid { grid-template-columns: 1fr; }
.hero--video .hero__copy { max-width: 640px; }
.hero--video .lead { color: var(--cream); }
.hero--video .proof small { color: #d8d1ce; }
.hero__toggle { position: absolute; right: var(--margin); bottom: clamp(1rem, 4vw, 2.5rem); width: 44px; height: 44px; border: 1px solid rgba(250,247,247,.4); background: rgba(20,18,18,.5); display: grid; place-items: center; z-index: 2; transition: border-color .3s; }
.hero__toggle:hover { border-color: var(--cream); }
.hero__toggle span { width: 10px; height: 12px; border-left: 3px solid var(--cream); border-right: 3px solid var(--cream); }
.hero__toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 11px solid var(--cream); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 899px) { .hero__toggle { bottom: auto; top: calc(var(--header-h) + .8rem); } }

/* Panel del objeto 3D */
.stage {
  position: relative; aspect-ratio: 1 / 1.02; border: 1px solid var(--hair-d);
  background:
    radial-gradient(120% 90% at 50% 40%, #2a2626 0%, #1a1717 55%, #121010 100%);
  overflow: hidden;
}
@media (min-width: 1000px) { .stage { aspect-ratio: 1.02 / 1; } }
.stage__grid { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--hair-d) 1px, transparent 1px), linear-gradient(90deg, var(--hair-d) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 55%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 55%, #000 30%, transparent 80%); }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity 1.2s var(--ease-out); }
.stage.is-ready .stage__poster { opacity: 0; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease-out); touch-action: pan-y; }
.stage.is-ready canvas { opacity: 1; }
.stage__hud { position: absolute; inset: 0; pointer-events: none; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; }
.stage__top, .stage__bottom { display: flex; justify-content: space-between; gap: 1rem; }
.stage__bottom { border-top: 1px solid var(--hair-d); padding-top: .8rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.stage__bottom dt { font-family: var(--f-tech); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.stage__bottom dd { margin: .2rem 0 0; font-family: var(--f-tech); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.stage__corner { position: absolute; width: 14px; height: 14px; border-color: var(--bronze); border-style: solid; opacity: .8; }
.stage__corner--tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.stage__corner--tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.stage__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.stage__corner--br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.stage__hint { font-family: var(--f-tech); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-2); display: flex; align-items: center; gap: .5rem; }
.stage__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson-lit); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Etiquetas de la vista explosionada (posicionadas por JS) */
.parts { position: absolute; inset: 0; pointer-events: none; }
.part-label {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: .55rem; white-space: nowrap;
  font-family: var(--f-tech); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream);
  opacity: 0; will-change: transform, opacity;
}
.part-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson-lit); box-shadow: 0 0 0 4px rgba(200, 53, 47, .2); flex: none; }
.part-label span { background: rgba(20, 18, 18, .78); border: 1px solid var(--hair-d); padding: .35rem .55rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.part-label b { color: var(--rose); font-weight: 500; margin-right: .35rem; }

/* Regla de cotas */
.ruler { display: flex; align-items: center; gap: .8rem; font-family: var(--f-tech); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.ruler::before, .ruler::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bronze) 0 1px, transparent 1px) 0 0 / 10px 1px, linear-gradient(var(--hair-d), var(--hair-d)); min-width: 20px; }

/* ---------- Franja de credenciales ---------- */
.creds { background: var(--walnut); border-block: 1px solid var(--hair-d); }
.creds__grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .creds__grid { grid-template-columns: repeat(4, 1fr); } }
.cred { padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--hair-d); display: grid; gap: .5rem; align-content: start; }
.cred:nth-child(odd) { border-left: 0; }
@media (min-width: 900px) { .cred:nth-child(odd) { border-left: 1px solid var(--hair-d); } .cred:first-child { border-left: 0; } }
@media (max-width: 899px) { .cred:nth-child(n+3) { border-top: 1px solid var(--hair-d); } }
.cred__value { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1; }
.cred__value em { color: var(--crimson-lit); font-style: normal; }
.cred p { font-size: .88rem; color: var(--cream-2); line-height: 1.55; }

/* ---------- Cinta infinita ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--hair-d); background: var(--ebony); padding-block: 1.1rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--cream-2); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 7px; height: 7px; background: var(--crimson-lit); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto (texto que se ilumina) ---------- */
.manifesto__text { font-family: var(--f-display); font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.18; letter-spacing: -.01em; max-width: 22ch; }
.manifesto__text em { color: var(--crimson-lit); }
.manifesto__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .manifesto__grid { grid-template-columns: .35fr 1fr; } }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 860px) { .bento { grid-template-columns: repeat(12, 1fr); } .bento > :nth-child(1) { grid-column: span 8; } .bento > :nth-child(2) { grid-column: span 4; } .bento > :nth-child(3) { grid-column: span 5; } .bento > :nth-child(4) { grid-column: span 7; } }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--hair-l); padding: clamp(1rem, 1.6vw, 1.25rem);
  display: flex; flex-direction: column; gap: 1rem; transition: border-color .4s, transform .6s var(--ease-out);
}
.card:hover { border-color: var(--bronze); }
.card__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--hair-l); }
.card__badge { font-family: var(--f-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: .3rem .55rem; background: var(--crimson); color: #fff; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e4e2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: grid; gap: .7rem; }
.card__body p { color: var(--ink-2); font-size: .95rem; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--hair-l); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-family: var(--f-tech); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; padding: .35rem .55rem; background: rgba(28, 26, 26, .05); color: var(--ink-2); }
.on-ebony .chip, .on-walnut .chip { background: rgba(250, 247, 247, .06); color: var(--cream-2); }
@media (min-width: 860px) {
  .card--wide { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 1.4rem; }
  .card--wide .card__head, .card--wide .card__foot { grid-column: 1 / -1; }
  .card--wide .card__media { aspect-ratio: auto; min-height: 280px; }
  .card--wide .card__body { align-content: center; }
}

/* ---------- Proyectos (scroll horizontal) ---------- */
.projects { overflow: hidden; }
.projects__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
.projects__viewport::-webkit-scrollbar { display: none; }
.projects__track { display: flex; gap: var(--gutter); width: max-content; }
.project { width: min(78vw, 420px); scroll-snap-align: start; background: var(--walnut); border: 1px solid var(--hair-d); display: flex; flex-direction: column; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.project:hover .project__media img { transform: scale(1.12); }
.project__place { position: absolute; left: .9rem; bottom: .9rem; background: rgba(20, 18, 18, .85); padding: .35rem .6rem; font-family: var(--f-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.project__body { padding: 1.2rem; display: grid; gap: .6rem; }
.project__body p { font-size: .9rem; color: var(--cream-2); }
.project--cta { justify-content: center; align-items: flex-start; padding: 2rem; gap: 1.2rem; background: var(--crimson); border-color: var(--crimson); }
.project--cta .h3 em { color: #fff; }
.projects__count { font-family: var(--f-tech); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-2); }
@media (min-width: 1000px) {
  .projects.is-pinned .projects__viewport { overflow: visible; scroll-snap-type: none; }
  .project { width: clamp(340px, 30vw, 460px); }
}

/* ---------- Proceso (retícula CAD) ---------- */
.process { background: var(--walnut); }
.process::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--hair-d) 1px, transparent 1px), linear-gradient(90deg, var(--hair-d) 1px, transparent 1px); background-size: 56px 56px; }
.process .wrap { position: relative; }
.blueprint { position: relative; margin-bottom: 2rem; }
.blueprint svg { width: 100%; height: auto; overflow: visible; }
.blueprint path, .blueprint line, .blueprint rect, .blueprint circle { fill: none; stroke: var(--crimson-lit); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.blueprint .bp-soft { stroke: var(--bronze); stroke-width: 1; opacity: .7; }
.blueprint text { font-family: var(--f-tech); font-size: 11px; letter-spacing: .2em; fill: var(--bronze); }
.steps { display: grid; gap: var(--gutter); }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: rgba(20, 18, 18, .82); border: 1px solid var(--hair-d); padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; min-height: 290px; transition: border-color .4s, transform .6s var(--ease-out); }
.step:hover { border-color: var(--bronze); transform: translateY(-4px); }
.step__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--hair-d); }
.step__num { font-family: var(--f-tech); font-size: .68rem; letter-spacing: .22em; color: var(--rose); font-weight: 600; }
.step__head .icon { width: 22px; height: 22px; color: var(--cream-2); }
.step p { font-size: .92rem; color: var(--cream-2); }
.step__foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--hair-d); }

/* ---------- Tienda ---------- */
.store__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 1000px) { .store__grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.store__facts { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; padding-block: 1.6rem; border-block: 1px solid var(--hair-l); margin-block: 1.8rem; }
.store__facts dt { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-ink); margin-bottom: .4rem; }
.store__facts dd { margin: 0; font-size: .95rem; }
.store__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.store__visual { position: relative; display: grid; gap: var(--gutter); }
.store__photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.store__photo img { width: 100%; height: 118%; object-fit: cover; }
.map3d { position: relative; perspective: 1200px; }
.map3d__plane { position: relative; transform: rotateX(38deg) rotateZ(-6deg) scale(.92); transform-origin: 50% 60%; transition: transform 1.4s var(--ease-out); box-shadow: 0 50px 60px -30px rgba(28, 26, 26, .45); border: 1px solid var(--hair-l); }
.map3d:hover .map3d__plane { transform: rotateX(22deg) rotateZ(-2deg) scale(.96); }
.map3d__plane img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(.85) contrast(1.05) brightness(1.04) sepia(.15); }
.map3d__pin { position: absolute; left: 52%; top: 47%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 0 rgba(148, 25, 26, .6); animation: ping 2s infinite; }
.map3d__pin::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 1px; height: 46px; background: var(--crimson); transform: translateX(-50%); transform-origin: bottom; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(148, 25, 26, .55); } 80%, 100% { box-shadow: 0 0 0 26px rgba(148, 25, 26, 0); } }
.map3d__caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.map3d__caption .tag { color: var(--bronze-ink); }

/* ---------- Reseñas ---------- */
.reviews__head { display: grid; gap: 1.6rem; margin-bottom: 2.5rem; }
@media (min-width: 960px) { .reviews__head { grid-template-columns: 1fr auto; align-items: end; } }
.score { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.score__num { font-family: var(--f-body); font-weight: 700; letter-spacing: -.03em; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; }
.score .proof__stars .icon { width: 18px; height: 18px; }
.reviews__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 1rem; cursor: grab; }
.reviews__viewport::-webkit-scrollbar { display: none; }
.reviews__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews__track { display: flex; gap: var(--gutter); width: max-content; }
.reviews__nav { display: flex; gap: .5rem; align-items: center; }
.on-ebony .icon-btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- Reseñas con estilo Google (carrusel, citas cortas y citas dentro del texto) ---------- */
.reviews.section { background: var(--g-bg); }
.review, .mini-quote { background: #fff; border: 1px solid var(--g-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 64, 67, .1), 0 6px 18px rgba(60, 64, 67, .08); transition: transform .4s var(--ease-out), box-shadow .4s; }
.review:hover, .mini-quote:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(60, 64, 67, .1), 0 16px 32px rgba(60, 64, 67, .14); }
.review { width: min(84vw, 380px); scroll-snap-align: start; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; user-select: none; }
.review footer { order: -1; display: flex; align-items: center; gap: .8rem; }
.review__top { display: flex; align-items: center; gap: .7rem; }
.review__top small, .mini-quote__rate small { font-size: .75rem; color: var(--g-muted); }
.review blockquote, .mini-quote blockquote { font-family: var(--f-body); font-style: normal; font-size: .95rem; line-height: 1.65; color: var(--g-text); }
.review footer strong, .mini-quote figcaption strong { display: block; font-size: .9rem; font-weight: 600; color: var(--g-title); }
.review footer span:not(.review__avatar), .mini-quote figcaption small { display: block; font-size: .78rem; color: var(--g-muted); }
.review__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1a73e8; color: #fff; font-family: var(--f-body); font-weight: 600; font-size: 1rem; }
:is(.review, .mini-quote):nth-child(5n + 2) .review__avatar { background: #e8710a; }
:is(.review, .mini-quote):nth-child(5n + 3) .review__avatar { background: #188038; }
:is(.review, .mini-quote):nth-child(5n + 4) .review__avatar { background: #d93025; }
:is(.review, .mini-quote):nth-child(5n + 5) .review__avatar { background: #9334e6; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid currentColor; transition: background-color .3s, color .3s; }
.on-paper .icon-btn:hover, .on-light .icon-btn:hover { background: var(--ink); color: var(--stone); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: .8fr 1.2fr; } .faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq-list { border-top: 1px solid var(--hair-l); }
.faq-item { border-bottom: 1px solid var(--hair-l); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline; padding: 1.35rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary small { font-family: var(--f-tech); font-size: .64rem; letter-spacing: .2em; color: var(--crimson); }
.faq-item summary h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.3; }
.faq-item summary .plus { position: relative; width: 16px; height: 16px; align-self: center; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq-item summary .plus::after { transform: rotate(90deg); }
.faq-item[open] summary .plus::after { transform: rotate(0deg); }
.faq-item__body { overflow: hidden; }
.faq-item__body p { padding: 0 2rem 1.5rem 2.6rem; color: var(--ink-2); max-width: 64ch; }
.faq-item__body p strong { color: var(--ink); font-weight: 600; }

/* ---------- Contacto (por teléfono) ---------- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.1fr; } }
.callcard { margin-top: 2rem; border: 1px solid var(--hair-d); background: var(--walnut); padding: 1.6rem; display: grid; gap: 1rem; }
.callcard__num { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: .01em; display: inline-flex; align-items: center; gap: .8rem; transition: color .3s; }
.callcard__num:hover { color: var(--rose); }
.callcard ul { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--hair-d); }
.callcard li { display: flex; gap: .7rem; align-items: center; font-size: .92rem; color: var(--cream-2); }
.callcard li .icon { color: var(--rose); }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.socials a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--hair-d); font-size: .85rem; transition: border-color .3s, color .3s; }
.socials a:hover { border-color: var(--rose); color: var(--rose); }

.planner { border: 1px solid var(--hair-d); background: rgba(28, 26, 26, .7); padding: clamp(1.3rem, 3vw, 2.4rem); display: grid; gap: 1.6rem; }
.planner fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; }
.planner legend, .field label { font-family: var(--f-tech); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: .8rem; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 620px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--hair-d); font-size: .86rem; transition: border-color .3s, background-color .3s; }
.check span::before { content: ""; width: 14px; height: 14px; flex: none; border: 1px solid var(--cream-2); transition: background-color .3s, box-shadow .3s, border-color .3s; }
.check input:checked + span { border-color: var(--crimson-lit); background: rgba(148, 25, 26, .14); }
.check input:checked + span::before { background: var(--crimson-lit); border-color: var(--crimson-lit); box-shadow: inset 0 0 0 2px var(--walnut); }
.check input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.fields { display: grid; gap: 1rem; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; }
.field label { margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(250, 247, 247, .5); color: var(--cream);
  font: inherit; font-size: 1rem; padding: .7rem 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--crimson-lit); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(185, 177, 174, .6); }
.planner__actions { display: grid; gap: .7rem; }
@media (min-width: 620px) { .planner__actions { grid-template-columns: 1.2fr 1fr; } }
.planner__note { font-size: .82rem; color: var(--cream-2); display: flex; gap: .6rem; align-items: flex-start; }
.planner__note .icon { margin-top: .2rem; color: var(--rose); }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; min-height: 86svh; display: grid; place-items: center; text-align: center; background: var(--walnut); }
.final__bg { position: absolute; inset: -12% 0; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; }
.final__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(20, 18, 18, .62), rgba(20, 18, 18, .92)); }
.final__inner { position: relative; display: grid; justify-items: center; gap: 1.6rem; padding-block: var(--section); }
.final .h1 { max-width: 15ch; }
.final .lead { margin-inline: auto; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ebony); border-top: 1px solid var(--hair-d); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }
.footer h2 { font-family: var(--f-tech); font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1.1rem; }
.footer li + li { margin-top: .55rem; }
.footer li a, .footer address { font-style: normal; font-size: .92rem; color: var(--cream-2); transition: color .3s; }
.footer li a:hover { color: var(--cream); }
.footer__about p { margin-top: 1.2rem; font-size: .92rem; color: var(--cream-2); max-width: 36ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--hair-d); font-size: .8rem; color: var(--cream-2); }
@media (max-width: 899px) { .footer__bottom { padding-bottom: calc(2rem + 64px); } }

/* ---------- Flotantes ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: none; align-items: center; gap: .6rem;
  padding: .9rem 1.2rem; background: var(--crimson); color: #fff; font-family: var(--f-tech); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .6); transform: translateY(140%); transition: transform .6s var(--ease-out), background-color .3s;
}
.fab.is-in { transform: none; }
.fab:hover { background: var(--crimson-hover); }
@media (min-width: 900px) { .fab { display: inline-flex; } }
.dock { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--ebony); border-top: 1px solid var(--hair-d); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .6s var(--ease-out); }
.dock.is-in { transform: none; }
/* Mientras se escribe en un campo, la barra y el botón flotante se apartan para no tapar el campo ni el teclado. */
.is-typing .dock.is-in, .is-typing .fab.is-in { transform: translateY(140%); }
/* Al moverse con el teclado, lo enfocado no queda debajo de la barra inferior (WCAG 2.4.11). */
@media (max-width: 899px) { html { scroll-padding-bottom: 76px; } }
.dock a { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 60px; font-family: var(--f-tech); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.dock a:first-child { background: var(--crimson); }
.dock a + a { border-left: 1px solid var(--hair-d); letter-spacing: .1em; }
@media (min-width: 900px) { .dock { display: none; } }

/* =========================================================
   PÁGINA: COCINAS A MEDIDA
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; padding-block: 1rem; border-bottom: 1px solid var(--hair-l); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs li { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: var(--bronze-ink); }
.crumbs a:hover { color: var(--crimson); }
.crumbs [aria-current] { color: var(--ink); }
.k-hero { padding-top: var(--header-h); }
.k-hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
@media (min-width: 1000px) { .k-hero__grid { grid-template-columns: .95fr 1.05fr; align-items: center; } }
.k-hero .h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); }
.k-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-l); padding-top: 1.2rem; gap: 1rem; }
.k-stats strong { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; line-height: 1.1; }
.k-stats > div > span { font-family: var(--f-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-ink); }
.hotspot-fig { position: relative; border: 1px solid var(--hair-l); background: var(--paper); padding: .8rem; }
.hotspot-fig__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; }
.hotspot-fig__img img { width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--crimson); color: #fff; font-family: var(--f-tech); font-size: .62rem; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(148, 25, 26, .25); animation: ping 2.4s infinite; }
.hotspot__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); width: 220px; transform: translate(-50%, 8px); background: var(--ebony); color: var(--cream); padding: .8rem .9rem; font-family: var(--f-body); font-size: .8rem; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease-out); }
.hotspot__tip strong { display: block; font-family: var(--f-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); font-weight: 500; margin-bottom: .3rem; }
.hotspot__tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* puente: el globo no se cierra al pasar el ratón hacia él */
.hotspot:hover .hotspot__tip, .hotspot:focus-visible .hotspot__tip, .hotspot.is-open .hotspot__tip { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hotspot.is-dismissed .hotspot__tip { opacity: 0; pointer-events: none; } /* cerrado con Esc (WCAG 1.4.13) */
.hotspot-fig__cap { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding-top: .8rem; }
@media (min-width: 620px) { .hotspot-fig__cap { grid-template-columns: repeat(4, 1fr); } }
.hotspot-fig__cap span { font-family: var(--f-tech); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

.summary { border: 1px solid var(--hair-l); background: var(--paper); padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .summary { grid-template-columns: .5fr 1.5fr; align-items: start; } }
.summary ul { display: grid; gap: .8rem; }
.summary li { display: flex; gap: .8rem; font-size: 1rem; }
.summary li::before { content: ""; width: 8px; height: 8px; margin-top: .55rem; background: var(--crimson); flex: none; }

.styles { display: grid; gap: var(--gutter); }
@media (min-width: 720px) { .styles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1150px) { .styles { grid-template-columns: repeat(4, 1fr); } }
.style-card { background: var(--paper); border: 1px solid var(--hair-l); padding: 1rem; display: flex; flex-direction: column; gap: .9rem; transition: border-color .4s, transform .6s var(--ease-out); }
.style-card:hover { border-color: var(--bronze); transform: translateY(-4px); }
.style-card__media { overflow: hidden; aspect-ratio: 4 / 3.6; }
.style-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.style-card:hover .style-card__media img { transform: scale(1.06); }
.style-card p { font-size: .92rem; color: var(--ink-2); }
.style-card ul { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--hair-l); display: grid; gap: .4rem; }
.style-card li { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: .5rem; }
.style-card li::before { content: ""; width: 5px; height: 5px; background: var(--crimson); margin-top: .35rem; flex: none; }

.timeline { display: grid; gap: 0; border-top: 1px solid var(--hair-d); }
@media (min-width: 1000px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.timeline--3 { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .timeline--3 { grid-template-columns: repeat(3, 1fr); } }
.t-step { padding: 1.6rem 1.2rem 1.8rem 0; border-bottom: 1px solid var(--hair-d); display: grid; gap: .7rem; align-content: start; position: relative; }
@media (min-width: 1000px) { .t-step { border-bottom: 0; border-right: 1px solid var(--hair-d); padding: 1.8rem 1.4rem 2rem; } .t-step:first-child { padding-left: 0; } .t-step:last-child { border-right: 0; } }
.t-step__n { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--cream); }
.t-step p { font-size: .9rem; color: var(--cream-2); }
.t-step .bar { position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--crimson-lit); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="clip"] img { transform: none; }
  .lit-word { opacity: 1; }
  .marquee__track { animation: none; }
}

@media (max-width: 520px) {
  .stage__bottom { display: none; }
  .stage__top .tag { font-size: .58rem; letter-spacing: .16em; }
}

/* =========================================================
   Páginas internas (servicios, municipios, proyectos, legales)
   ========================================================= */
.card__media, .project__media { display: block; }

/* Dato pendiente de confirmar: se ve a propósito hasta que se rellene */
.pending { font-family: var(--f-tech); font-size: .8em; letter-spacing: .02em; background: #fff1bf; color: #5c4400; border: 1px dashed #a77f00; padding: .08em .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-ebony .pending, .on-walnut .pending, .cta-band .pending, .keyfacts .pending { background: rgba(255, 209, 92, .12); color: #ffd35c; border-color: rgba(255, 209, 92, .5); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; padding: 1.2rem; text-align: center; border: 1px dashed rgba(28, 26, 26, .25);
  background: repeating-linear-gradient(135deg, rgba(28, 26, 26, .045) 0 12px, transparent 12px 24px), #f1ecea; }

.page-head { display: grid; gap: 1.4rem; max-width: 62rem; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.note { font-size: .92rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--f-tech); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.byline a { color: var(--crimson); }
.more { margin-top: 2rem; }

.doc__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .doc__grid { grid-template-columns: .85fr 1.15fr; } .doc__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.doc__aside { display: grid; gap: 1.2rem; align-content: start; }
.doc__aside .answer { margin-top: 0; }

.prose { display: grid; gap: 1rem; max-width: 68ch; font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--ink); margin-top: 1.2rem; }
.prose h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; color: var(--ink); margin-top: .8rem; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.link-ghost):not(.btn) { color: var(--crimson); text-decoration: underline; text-underline-offset: .2em; }
.prose ul, .prose ol { display: grid; gap: .6rem; }
.prose ol { counter-reset: paso; }
.prose li { position: relative; padding-left: 1.7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; background: var(--crimson); }
.prose ol li { counter-increment: paso; }
.prose ol li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: .3em; font-family: var(--f-tech); font-size: .68rem; letter-spacing: .08em; color: var(--crimson); }
.quote { margin-block: 1.4rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--g-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(60, 64, 67, .1), 0 6px 18px rgba(60, 64, 67, .06); }
.quote::before { content: "★★★★★"; display: block; margin-bottom: .45rem; font-size: .8rem; letter-spacing: .12em; color: var(--g-star); }
.quote p { font-family: var(--f-body); font-size: .98rem; line-height: 1.6; color: var(--g-text); }
.quote footer { margin-top: .55rem; font-size: .8rem; font-weight: 600; color: var(--g-title); }
.quote footer::after { content: " · Reseña de Google"; font-weight: 400; color: var(--g-muted); }

/* Banda de llamada a la acción (a mitad de página) */
.cta-band { background: var(--walnut); border-block: 1px solid var(--hair-d); color: var(--cream); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-block: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band__text { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.25; max-width: 34ch; }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Tarjetas de enlace (servicios y municipios) */
.link-grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .link-grid { grid-template-columns: repeat(3, 1fr); } .link-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .link-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.link-card { position: relative; display: grid; gap: .6rem; align-content: start; height: 100%; padding: 1.4rem 3rem 1.4rem 1.4rem; background: var(--paper); border: 1px solid var(--hair-l); color: var(--ink); transition: border-color .4s, transform .6s var(--ease-out); }
.on-paper .link-card { background: var(--stone); }
.link-card strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; }
.link-card > span:not(.tag) { font-size: .92rem; color: var(--ink-2); }
.link-card > .icon { position: absolute; top: 1.4rem; right: 1.2rem; color: var(--crimson); transition: transform .4s var(--ease-out); }
a.link-card:hover { border-color: var(--bronze); transform: translateY(-3px); }
a.link-card:hover > .icon { transform: translate(3px, -3px); }
.link-card--muted { background: transparent !important; border-style: dashed; padding-right: 1.4rem; }

/* Galería de obras */
.gallery { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery__item--wide { grid-column: span 2; } }
.gallery__item { margin: 0; display: grid; gap: .8rem; align-content: start; }
.gallery__item > img, .gallery__item > .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair-l); }
.gallery__item > img { cursor: zoom-in; transition: filter .5s var(--ease-out), transform .8s var(--ease-out); }
.gallery__item > img:hover { filter: brightness(1.05) saturate(1.05); transform: translateY(-3px); }
.gallery__item--wide > img { aspect-ratio: 16 / 9; }
.gallery__item figcaption { display: grid; gap: .2rem; font-size: .9rem; color: var(--ink-2); }
.gallery__item figcaption strong { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

/* Equipo y garantías */
.team { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.team__card { margin: 0; display: grid; gap: .8rem; align-content: start; }
.team__card figcaption { display: grid; gap: .2rem; }
.team__card strong { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; }
.team__card figcaption > span { font-family: var(--f-tech); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-ink); }
.trust { display: grid; gap: var(--gutter); margin: 0; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; background: var(--paper); border: 1px solid var(--hair-l); }
.trust dt { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-ink); }
.trust dd { margin: 0; display: grid; gap: .3rem; font-size: .95rem; color: var(--ink-2); }
.trust dd strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.trust--inline { grid-template-columns: repeat(2, 1fr) !important; }

/* Contacto: ficha NAP y mapa con consentimiento */
.nap-card { display: grid; gap: 1.2rem; align-content: start; padding: clamp(1.3rem, 3vw, 2.2rem); background: var(--paper); border: 1px solid var(--hair-l); color: var(--ink); }
.nap-card dl { margin: 0; display: grid; gap: 1rem; }
.nap-card dt { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-ink); }
.nap-card dd { margin: .3rem 0 0; font-size: 1.05rem; }
.nap-card dd a { color: var(--crimson); }
.nap-card address { font-style: normal; }
.nap-card small { color: var(--ink-2); }
.nap-card .socials { margin-top: 0; }
.nap-card .socials a { border-color: var(--hair-l); }
.nap-card .socials a:hover { border-color: var(--crimson); color: var(--crimson); }

/* Textos legales */
.legal { max-width: 75ch; }
.legal h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--hair-l); }
.legal th { font-family: var(--f-tech); font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-ink); }

/* Pie: NAP y enlaces legales */
.footer .nap strong { font-weight: 500; color: var(--cream); font-size: .92rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer__legal a, .footer__legal button { font-size: .8rem; color: var(--cream-2); transition: color .3s; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--cream); }

/* Banner de cookies */
.cookies { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); max-width: 31rem; display: grid; gap: 1rem; padding: 1.3rem; background: var(--walnut); color: var(--cream); border: 1px solid var(--hair-d); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); font-size: .9rem; line-height: 1.55; }
.cookies h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.cookies p { color: var(--cream-2); }
.cookies a { color: var(--cream); text-decoration: underline; text-underline-offset: .2em; }
.cookies__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cookies__ctas .btn { min-height: 46px; padding-inline: 1rem; }

/* =========================================================
   Bloques visuales de las páginas de servicio y municipio
   ========================================================= */
a.chip { transition: background-color .3s, color .3s; }
a.chip:hover { background: var(--crimson); color: #fff; }

/* Pasos numerados */
.nsteps { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .nsteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nsteps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.nstep { display: grid; gap: .8rem; align-content: start; padding: 1.5rem 1.4rem 1.6rem; background: var(--paper); border: 1px solid var(--hair-l); transition: border-color .4s, transform .6s var(--ease-out); }
.on-paper .nstep { background: var(--stone); }
.nstep:hover { border-color: var(--bronze); transform: translateY(-4px); }
.nstep__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--hair-l); }
.nstep__n { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; color: var(--crimson); }
.nstep__top .icon { width: 26px; height: 26px; color: var(--ink-2); }
.nstep h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.nstep p { font-size: .93rem; line-height: 1.6; color: var(--ink-2); }

/* Tarjetas con icono */
.icards { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .icards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .icards { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.icard { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-content: start; padding: 1.4rem; background: var(--paper); border: 1px solid var(--hair-l); transition: border-color .4s; }
.on-paper .icard { background: var(--stone); }
.icard:hover { border-color: var(--bronze); }
.icard__icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(148, 25, 26, .08); color: var(--crimson); }
.icard__icon .icon { width: 22px; height: 22px; }
.icard h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; line-height: 1.25; color: var(--ink); align-self: center; }
.icard p { font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.icard p a { color: var(--crimson); text-decoration: underline; text-underline-offset: .2em; }
.icards--compact .icard { padding: 1.1rem 1.2rem; }
.icards--compact .icard__icon { width: 40px; height: 40px; }

/* Datos clave (precio, plazo, garantía) */
.keyfacts { display: grid; gap: var(--gutter); margin: clamp(2rem, 4vw, 3rem) 0 0; }
@media (min-width: 700px) { .keyfacts { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.keyfacts > div { display: grid; gap: .7rem; align-content: start; padding: 1.4rem; background: var(--walnut); color: var(--cream); border: 1px solid var(--hair-d); }
.keyfacts dt { display: flex; align-items: center; gap: .6rem; font-family: var(--f-tech); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.keyfacts dt .icon { width: 20px; height: 20px; color: var(--rose); }
.keyfacts dd { margin: 0; font-size: .95rem; color: var(--cream-2); }
.keyfacts dd strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--cream); line-height: 1.15; margin-bottom: .2rem; }

/* Foto + texto */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order: 2; } }
.split__media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--hair-l); background: var(--paper); }
.split__media img, .split__media .ph { width: 100%; height: 100%; object-fit: cover; }
.split__media figcaption { position: absolute; left: .9rem; bottom: .9rem; background: rgba(20, 18, 18, .85); color: var(--cream); padding: .35rem .6rem; font-family: var(--f-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.split__body { display: grid; gap: 1rem; align-content: center; }
.split__body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--ink); }
.split__body p { color: var(--ink-2); line-height: 1.7; }
.split__body .chips { margin-top: .4rem; }
.ticks { display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.ticks li .icon { width: 18px; height: 18px; margin-top: .2rem; color: var(--crimson); }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Mini reseñas */
.mini-quotes { display: grid; gap: var(--gutter); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .mini-quotes { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.mini-quote { display: grid; gap: .8rem; align-content: start; padding: 1.4rem 1.5rem; margin: 0; }
.mini-quote figcaption { display: flex; align-items: center; gap: .8rem; }
.mini-quote__rate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.mini-quote__rate .chip-g { padding: .2rem .65rem; border-radius: 99px; background: #e8f0fe; color: #1967d2; font-size: .72rem; font-weight: 600; }

.note-line { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-2); }

/* Visor de fotos */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 9, 9, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; padding: 4rem 1rem 2rem; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--cream); text-align: center; font-size: .92rem; max-width: 60ch; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 247, 247, .14); color: #fff; }
.lightbox__close:hover { background: rgba(250, 247, 247, .26); }
.lightbox__close .icon { width: 22px; height: 22px; }
.split__body h3 em { font-style: italic; color: var(--crimson); }
.split__media .ph { min-height: 0; }
@media (max-width: 699px) {
  .nstep { grid-template-columns: auto 1fr; gap: .3rem 1rem; padding: 1.1rem 1.1rem 1.2rem; }
  .nstep__top { grid-row: span 2; align-self: start; padding: 0; border: 0; }
  .nstep__top .icon { display: none; }
  .nstep__n { font-size: 1.9rem; }
}

/* =========================================================
   Tamaños mínimos de letra (revisión de accesibilidad, 30-11-2026)
   Las etiquetas en mayúsculas espaciadas bajaban a 9-11 px. Ahora:
   13 px en lo que hay que leer y 12 px en las etiquetas decorativas.
   Se reduce un poco el espaciado para que ocupen casi lo mismo.
   ========================================================= */
.header__phone small { font-size: .8125rem; letter-spacing: .1em; }
.nav a { font-size: .8125rem; letter-spacing: .1em; }

.tag, .planner legend, .field label, .crumbs li, .footer h2, .legal th,
.store__facts dt, .trust dt, .nap-card dt, .keyfacts dt, .faq-item summary small,
.byline, .k-stats > div > span, .step__num, .menu__links small, .projects__count,
.team__card figcaption > span { font-size: .8125rem; letter-spacing: .14em; }
.review__top small, .mini-quote__rate small, .mini-quote__rate .chip-g { font-size: .8125rem; }

.chip, .card__badge, .project__place, .hotspot-fig__cap span, .split__media figcaption,
.style-card li, .hotspot__tip strong { font-size: .75rem; letter-spacing: .12em; }
.hotspot { font-size: .75rem; }
.hotspot__tip { font-size: .875rem; }
