/* ==========================================================================
   GESTIUR · Proyectos y Obras
   Dirección visual: "plano de arquitecto". Fondo piedra cálida, tinta casi
   negra, gris y un acento naranja tostado tomados del logo (la "grieta"). Titulares en Instrument Serif,
   texto en Inter Tight. Detalle recurrente: líneas de cota con trazos
   oblicuos en los extremos, como en un plano acotado.
   Mobile-first: estilos base para móvil, media queries hacia arriba.
   ========================================================================== */

/* Tipografías alojadas en /fonts (licencia SIL Open Font License) */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --stone: #f2eee7;
  --stone-2: #e8e2d7;
  --paper: #faf8f4;
  --ink: #1b1e1d;
  --ink-soft: #4a524f;
  --line: #cbc2b2;
  --accent: #a84a16;        /* naranja del logo, oscurecido para contraste AA */
  --accent-dark: #8a3c10;
  --accent-light: #f08a3c;  /* naranja del logo, para fondos oscuros */
  --logo-grey: #6b6b6b;
  --on-dark: #ece6db;
  --on-dark-soft: #a9aea9;

  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1rem;
  --maxw: 76rem;
  --section-y: clamp(4.5rem, 12vw, 9rem);
  --header-h: 4rem;
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
/* Movimiento: se puede pausar con el botón del pie ("Pausar animaciones"),
   que pone la clase .no-motion en <html> y se recuerda en el navegador. */
html.no-motion { scroll-behavior: auto; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { transition: none !important; animation: none !important; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section-dark :focus-visible { outline-color: var(--accent-light); }

em { font-style: italic; }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { min-height: 2.75rem; padding: .6rem 1rem; font-size: .95rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 238, 231, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(242, 238, 231, .82); backdrop-filter: blur(10px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  line-height: 1.1;
}
.brand-text small {
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: 0 .9rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 500 .95rem var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil: sin JS el menú se muestra siempre (progresivo) */
.site-nav { width: 100%; }
.site-nav ul { padding: .5rem 0 1rem; }
.site-nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.1rem;
}
.site-nav .nav-cta a { color: var(--accent); font-weight: 600; border-bottom: 0; }
.site-nav a.is-active { color: var(--accent); }

.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 64em) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; align-items: center; gap: 2rem; padding: 0; }
  .site-nav a {
    padding: .4rem 0;
    border: 0;
    font-size: .95rem;
    position: relative;
  }
  .site-nav li:not(.nav-cta) a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
  }
  .site-nav li:not(.nav-cta) a:hover::after,
  .site-nav li:not(.nav-cta) a.is-active::after { transform: scaleX(1); }
  .site-nav a.is-active { color: var(--accent); }
  .site-nav .nav-cta a {
    padding: .55rem 1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
  }
  .site-nav .nav-cta a:hover { background: var(--accent); color: #fff; }
}

/* ---------- Elementos comunes ---------- */
.eyebrow,
.section-num,
.contact-label,
.footer-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Cabecera de sección con línea de cota: "01 —/———————/" */
.section-num {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}
.section-num span { color: var(--accent); }
.section-num::after {
  content: "";
  flex: 1;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(150deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%) left center / 8px 12px no-repeat,
    linear-gradient(150deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%) right center / 8px 12px no-repeat;
  opacity: .55;
}

.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.section-head h2 {
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section-head h2 em { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 6rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}
/* Retícula de plano muy sutil */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(27, 30, 29, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 30, 29, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

.hero-grid { display: grid; gap: 2.5rem; }

.hero .eyebrow { color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 11vw, 6rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--accent); }
.lead {
  max-width: 34rem;
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-direction: column; gap: .75rem; }

.hero-figure { position: relative; }
.hero-photo { position: relative; }
.photo-tag {
  position: absolute;
  left: 0; bottom: 0;
  margin: 0;
  padding: .55rem .9rem;
  background: var(--ink);
  color: var(--on-dark);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.photo-tag::before {
  content: "";
  display: inline-block;
  width: .55rem; height: .55rem;
  margin-right: .55rem;
  background: var(--accent-light);
  clip-path: polygon(0 30%, 100% 0, 85% 100%);
}
.hero-figure img {
  object-position: 22% center;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--stone-2);
}

/* Línea de cota: 1998 —/———————/— 2026 */
.cota {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-soft);
}
.cota-line {
  flex: 1;
  height: 14px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 100% 1px no-repeat,
    linear-gradient(150deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%) left center / 10px 14px no-repeat,
    linear-gradient(150deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%) right center / 10px 14px no-repeat;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(3rem, 8vw, 5rem) 0 0;
  border-top: 1px solid var(--ink);
}
.hero-facts div {
  padding: 1.1rem 0 .5rem;
  border-bottom: 1px solid var(--line);
}
.hero-facts div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.hero-facts div:nth-child(even) { padding-left: 1rem; }
.hero-facts dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-facts dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.2;
}

@media (min-width: 30em) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
  /* Tablet: texto arriba y foto apaisada debajo, a todo el ancho */
  .hero-grid { gap: 3rem; }
  .hero h1 { max-width: 14ch; }
  .hero-figure img { aspect-ratio: 16 / 10; object-position: center 40%; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .hero-facts div,
  .hero-facts div:nth-child(odd),
  .hero-facts div:nth-child(even) {
    padding: 1.25rem 1.25rem .5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .hero-facts div:first-child { padding-left: 0; }
  .hero-facts div:last-child { border-right: 0; }
}

@media (min-width: 64em) {
  :root { --gutter: 3rem; --header-h: 5rem; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 5rem; }
  .hero h1 { max-width: none; font-size: clamp(3.5rem, 6.2vw, 6rem); }
  .hero-figure img { aspect-ratio: 5 / 6; object-position: 22% center; }
  .hero-copy { padding-bottom: 2rem; }

  /* En escritorio la cota pasa a ser vertical, a la izquierda de la foto */
  .hero-figure { padding-left: 2.75rem; }
  .cota-vertical {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    flex-direction: column;
    margin: 0;
    width: 1.5rem;
  }
  .cota-vertical span:not(.cota-line) { writing-mode: vertical-rl; transform: rotate(180deg); }
  .cota-vertical .cota-line {
    width: 14px;
    height: auto;
    background:
      linear-gradient(var(--ink-soft), var(--ink-soft)) center / 1px 100% no-repeat,
      linear-gradient(135deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%) center top / 14px 10px no-repeat,
      linear-gradient(135deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%) center bottom / 14px 10px no-repeat;
  }
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 3rem; }

.service {
  position: relative;
  padding-top: 1.5rem;
}
/* línea superior (se dibuja al aparecer) */
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}
/* trazo de cota al inicio de cada bloque */
.service::before {
  content: "";
  position: absolute;
  left: -.5rem; top: -.5rem;
  width: 1rem; height: 1rem;
  background: linear-gradient(135deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%);
}
.service-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: .25rem;
}
.service h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5.5vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.service li {
  position: relative;
  padding: .8rem 0 .8rem 1.75rem;
  border-top: 1px solid var(--line);
}
.service li:first-child { border-top: 0; padding-top: 0; }
.service li:first-child::before { top: .65rem; }
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.45rem;
  width: .9rem; height: 1px;
  background: var(--accent);
}

@media (min-width: 48em) and (max-width: 63.99em) {
  .service-body { display: grid; grid-template-columns: 1fr 1.4fr; grid-template-rows: auto 1fr; column-gap: 2.5rem; align-items: start; }
  .service-body ul { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 64em) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ---------- Por qué nosotros (sección oscura) ---------- */
.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section-dark .section-num { color: var(--on-dark-soft); }
.section-dark .section-num span,
.section-dark .section-head h2 em { color: var(--accent-light); }
.section-dark a:hover { color: var(--accent-light); }

.why-grid { display: grid; gap: 2rem; }
.why-year {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 30vw, 15rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-light);
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .why-year { color: var(--accent-light); opacity: .35; }
}

.why-list { display: grid; gap: 0; }
.why-list li {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(236, 230, 219, .18);
}
.why-list h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.why-list p { margin: 0; color: var(--on-dark-soft); max-width: 32rem; }

@media (min-width: 48em) {
  .why-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 64em) {
  .why-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .why-year { position: sticky; top: calc(var(--header-h) + 2rem); writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start; }
}

/* ---------- Proceso: cotas encadenadas ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 0 0 2.5rem 2.75rem;
}
/* línea vertical en móvil */
.step::before {
  content: "";
  position: absolute;
  left: .45rem; top: .4rem; bottom: 0;
  width: 1px;
  background: var(--ink-soft);
}
.step:last-child::before { bottom: auto; height: 2rem; }
/* trazo oblicuo de cota en cada paso */
.step::after {
  content: "";
  position: absolute;
  left: 0; top: .4rem;
  width: 1rem; height: 1rem;
  background: linear-gradient(135deg, transparent 44%, var(--accent) 44%, var(--accent) 58%, transparent 58%);
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .75rem;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.step p { color: var(--ink-soft); margin: 0; max-width: 30rem; }

@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; row-gap: 3.5rem; }
  .step { padding: 2rem 0 0; }
  .step::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { height: 1px; }
  .step::after { left: -.5rem; top: -.5rem; }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .step { padding: 2.5rem 2rem 0 0; }
  .step::before { right: 0; }
  /* cierre de la cota en el último tramo */
  .step:last-child { padding-right: 0; }
  .step:last-child .step-num::after {
    content: "";
    position: absolute;
    right: -.5rem; top: -.5rem;
    width: 1rem; height: 1rem;
    background: linear-gradient(135deg, transparent 44%, var(--accent) 44%, var(--accent) 58%, transparent 58%);
  }
}

/* ---------- Obras ---------- */
.section-works { padding-top: 0; }
.works { display: grid; gap: 2.5rem; }
.work img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--stone-2);
}
.work figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  padding-top: .9rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.work-num {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}
.work figcaption strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.work:nth-child(2) img { object-position: 75% center; }
@media (min-width: 48em) {
  .works { grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
  .work img { aspect-ratio: 4 / 5; }
}
@media (min-width: 64em) {
  .works { column-gap: 3rem; }
  /* ligero desfase vertical, como fichas sobre una mesa de dibujo */
  .work:nth-child(2) { margin-top: 5rem; }
}

/* ---------- Comparador antes / después ---------- */
.ba-feature { display: grid; gap: 2rem; margin-bottom: clamp(4rem, 10vw, 7rem); }
/* las fotos actuales son pequeñas: se limita el tamaño para que no se vean borrosas */
.ba-figure { width: 100%; max-width: 26rem; }
.ba {
  position: relative;
  aspect-ratio: 229 / 309;
  user-select: none;
  -webkit-user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5);
  transition: transform .3s;
}
.ba:hover .ba-handle::after { transform: translate(-50%, -50%) scale(1.1); }
.ba:has(.ba-range:focus-visible) .ba-handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba-tag {
  position: absolute;
  top: 1rem;
  padding: .4rem .65rem;
  background: rgba(27, 30, 29, .82);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }

.ba-kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.ba-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.ba-text p { color: var(--ink-soft); max-width: 32rem; }
.ba-hint {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1.5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent) !important;
}
.ba-hint span {
  width: 2.5rem; height: 1px; background: currentColor; position: relative;
  animation: nudge 1.8s var(--ease-io, ease) infinite;
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

@media (min-width: 48em) {
  .ba-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: center; }
}
@media (min-width: 64em) {
  .ba-feature { grid-template-columns: minmax(0, 4.5fr) minmax(0, 5.5fr); gap: 6rem; }
}

/* ---------- Contacto ---------- */
.section-contact { background: var(--paper); border-top: 1px solid var(--line); }

.contact-grid { display: grid; gap: 3rem; }
.contact-label { color: var(--ink-soft); margin-bottom: .5rem; }
.contact-big {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 9vw, 4rem);
  line-height: 1.12;
  margin-bottom: 2rem;
}
.contact-big a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.contact-big a:hover { background-size: 100% 1px; }
.contact-email { font-size: clamp(1.45rem, 7.2vw, 3rem); overflow-wrap: anywhere; }

.contact-card {
  padding: 1.75rem;
  border: 1px solid var(--ink);
  background: var(--stone);
  align-self: start;
}
.contact-address { font-size: 1.15rem; line-height: 1.55; margin-bottom: 1.5rem; }

@media (min-width: 64em) {
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
  .contact-card { padding: 2.25rem; margin-top: 1.6rem; }
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  font-size: .95rem;
  padding-top: 4rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--accent-light); }
.site-footer :focus-visible { outline-color: var(--accent-light); }

.footer-grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--on-dark);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand small {
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.footer-title { color: var(--on-dark); margin-bottom: .75rem; }
.footer-links li + li { margin-top: .4rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(236, 230, 219, .15);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr; gap: 3rem; }
}

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(3rem, 9vw, 6rem); }
.legal-inner { max-width: 46rem; }
.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.legal .updated { color: var(--ink-soft); font-size: .95rem; margin-bottom: 3rem; }
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 2.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--accent); }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; margin: 0 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .75rem; }
@media (min-width: 40em) {
  .legal dl { grid-template-columns: max-content 1fr; }
  .legal dd { margin: 0; }
}
.back-link { display: inline-block; margin-bottom: 2rem; font-size: .95rem; }
.site-footer-slim { padding-top: 0; }
.site-footer-slim .footer-bottom { border-top: 0; }

/* ==========================================================================
   MOVIMIENTO
   Los estados iniciales (ocultos) solo se aplican con la clase .anim, que pone
   el script del <head> y quita si el usuario prefiere reducir movimiento o si
   main.js no carga. Así el contenido nunca se queda invisible.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

/* ---------- Cabecera: se esconde al bajar, vuelve al subir ---------- */
.site-header { transition: transform .45s var(--ease-out), box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(27, 30, 29, .35); }
.site-header.is-hidden { transform: translateY(-100%); }
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Logo: la grieta se dibuja al cargar ---------- */
.logo-crack { stroke-dasharray: 340; stroke-dashoffset: 0; }
.anim .logo-crack { animation: crack 1.3s var(--ease-io) .2s both; }
.logo-tri { transform-box: fill-box; transform-origin: center; }
.anim .logo-tri { animation: tri .6s var(--ease-out) 1.2s both; }
.brand:hover .logo-tri { animation: tri .6s var(--ease-out) both; }
@keyframes crack { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
@keyframes tri { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }

/* ---------- Botones: relleno que barre de abajo arriba ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn-primary::before { background: var(--accent); }
.btn-ghost::before { background: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-primary:hover { background: var(--ink); border-color: var(--accent); }
.btn-ghost:hover { background: transparent; color: var(--paper); }
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px) rotate(-8deg); }

/* ---------- Fotos con parallax ---------- */
.hero-photo, .work-media { position: relative; overflow: hidden; background: var(--stone-2); }
.hero-photo img,
.work-media img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
  transition: scale 1.6s var(--ease-out);
  will-change: transform;
}
.why-year { transform: translate3d(0, var(--py, 0px), 0); }
@media (min-width: 64em) {
  .why-year { transform: translate3d(0, var(--py, 0px), 0) rotate(180deg); }
}
.photo-tag { z-index: 1; }

/* hover en obras */
.work:hover .work-media img { scale: 1.06; }
.work-num { transition: transform .5s var(--ease-out); }
.work:hover .work-num { transform: translateX(4px); }

/* ---------- Cinta en movimiento ---------- */
.ticker {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 1.1rem;
  border-block: 1px solid var(--ink);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker-track > span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
  white-space: nowrap;
  padding-right: 1.5rem;
}
.ticker em { color: var(--accent); }
/* separador: el triángulo del logo */
.ticker-track > span::after {
  content: "";
  width: .4em; height: .4em;
  margin-left: 1.5rem;
  background: var(--accent);
  clip-path: polygon(0 30%, 100% 0, 85% 100%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===================== Estados de aparición ===================== */
/* fade / up */
.anim [data-reveal="fade"],
.anim [data-reveal="up"] {
  opacity: 0;
  transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms);
}
.anim [data-reveal="up"] { transform: translateY(40px); }
.anim [data-reveal="fade"].is-in,
.anim [data-reveal="up"].is-in { opacity: 1; transform: none; }

/* titulares palabra a palabra */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .w > span { display: inline-block; }
.anim [data-split] .w > span {
  transform: translateY(115%) rotate(5deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
}
.anim [data-split].is-in .w > span { transform: none; }

/* fotos: cortina que se abre y la imagen se asienta */
.anim [data-reveal="clip"] .hero-photo {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.4s var(--ease-io) var(--d, 0ms);
}
.anim .work[data-reveal="clip"] .work-media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io) var(--d, 0ms);
}
.anim [data-reveal="clip"].is-in .hero-photo,
.anim .work[data-reveal="clip"].is-in .work-media { clip-path: inset(0 0 0 0); }
.anim [data-reveal="clip"] img { scale: 1.35; transition: scale 2s var(--ease-out) var(--d, 0ms); }
.anim [data-reveal="clip"].is-in img { scale: 1; transition-delay: 0s; }
.anim .work[data-reveal="clip"].is-in:hover img { scale: .95; }
.anim .photo-tag { transform: translateY(101%); transition: transform .8s var(--ease-out) calc(var(--d, 0ms) + 1.1s); }
.anim .is-in .photo-tag { transform: none; }
.anim .work figcaption {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease-out) calc(var(--d, 0ms) + .6s), transform .8s var(--ease-out) calc(var(--d, 0ms) + .6s);
}
.anim .work.is-in figcaption { opacity: 1; transform: none; }

/* línea de cota de las cabeceras */
.anim [data-reveal="line"] { opacity: 0; transition: opacity .6s; }
.anim [data-reveal="line"]::after { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io) .1s; }
.anim [data-reveal="line"].is-in { opacity: 1; }
.anim [data-reveal="line"].is-in::after { transform: none; }

/* cota de la portada */
.anim [data-reveal="draw"] .cota-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io) var(--d, 0ms); }
.anim [data-reveal="draw"] span:not(.cota-line) { opacity: 0; transition: opacity .6s var(--ease-out) calc(var(--d, 0ms) + 1s); }
.anim [data-reveal="draw"].is-in .cota-line { transform: none; }
.anim [data-reveal="draw"].is-in span { opacity: 1; }
@media (min-width: 64em) {
  .anim [data-reveal="draw"] .cota-line { transform: scaleY(0); transform-origin: top; }
  .anim [data-reveal="draw"].is-in .cota-line { transform: none; }
}

/* datos de la portada, en cascada */
.anim [data-reveal="facts"] { border-top-color: transparent; position: relative; }
.anim [data-reveal="facts"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-io);
}
.anim [data-reveal="facts"].is-in::before { transform: none; }
.anim [data-reveal="facts"] > div { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.anim [data-reveal="facts"].is-in > div { opacity: 1; transform: none; }
.anim [data-reveal="facts"] > div:nth-child(2) { transition-delay: .12s; }
.anim [data-reveal="facts"] > div:nth-child(3) { transition-delay: .24s; }
.anim [data-reveal="facts"] > div:nth-child(4) { transition-delay: .36s; }
.hero-facts dd { font-variant-numeric: tabular-nums; }

/* servicios: la línea se dibuja y los puntos entran en cascada */
.anim .service[data-reveal]::after { transform: scaleX(0); transition: transform 1.2s var(--ease-io) var(--d, 0ms); }
.anim .service[data-reveal].is-in::after { transform: none; }
.anim .service[data-reveal]::before { transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease-out) calc(var(--d, 0ms) + .5s); }
.anim .service[data-reveal].is-in::before { transform: none; }
.anim .service li { opacity: 0; transform: translateX(-16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), padding-left .3s var(--ease-out); }
.anim .service.is-in li { opacity: 1; transform: none; }
.anim .service.is-in li:nth-child(1) { transition-delay: calc(var(--d, 0ms) + .35s), calc(var(--d, 0ms) + .35s), 0s; }
.anim .service.is-in li:nth-child(2) { transition-delay: calc(var(--d, 0ms) + .45s), calc(var(--d, 0ms) + .45s), 0s; }
.anim .service.is-in li:nth-child(3) { transition-delay: calc(var(--d, 0ms) + .55s), calc(var(--d, 0ms) + .55s), 0s; }
.anim .service.is-in li:nth-child(4) { transition-delay: calc(var(--d, 0ms) + .65s), calc(var(--d, 0ms) + .65s), 0s; }
.anim .service.is-in li:nth-child(5) { transition-delay: calc(var(--d, 0ms) + .75s), calc(var(--d, 0ms) + .75s), 0s; }
.service li { transition: padding-left .3s var(--ease-out); }
.service li:hover { padding-left: 2.1rem; }
.service li::before { transition: width .3s var(--ease-out); }
.service li:hover::before { width: 1.3rem; }

/* 1998 gigante: aparece como si se trazara */
.why-year span { display: inline-block; }
.anim [data-reveal="year"] span { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-io); }
.anim [data-reveal="year"].is-in span { clip-path: inset(0 0 0 0); }
@media (min-width: 64em) {
  .anim [data-reveal="year"] span { clip-path: inset(0 0 100% 0); }
  .anim [data-reveal="year"].is-in span { clip-path: inset(0 0 0 0); }
}

/* proceso: cotas encadenadas que se dibujan una tras otra */
.anim [data-reveal="steps"] .step::before { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-io); }
.anim [data-reveal="steps"] .step::after,
.anim [data-reveal="steps"] .step-num::after { transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-out); }
.anim [data-reveal="steps"] .step > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.anim [data-reveal="steps"].is-in .step::before { transform: none; }
.anim [data-reveal="steps"].is-in .step::after,
.anim [data-reveal="steps"].is-in .step-num::after { transform: none; }
.anim [data-reveal="steps"].is-in .step > * { opacity: 1; transform: none; }
@media (min-width: 48em) {
  .anim [data-reveal="steps"] .step::before { transform: scaleX(0); transform-origin: left; }
}
.anim [data-reveal="steps"].is-in .step:nth-child(2)::before { transition-delay: .35s; }
.anim [data-reveal="steps"].is-in .step:nth-child(3)::before { transition-delay: .7s; }
.anim [data-reveal="steps"].is-in .step:nth-child(4)::before { transition-delay: 1.05s; }
.anim [data-reveal="steps"].is-in .step:nth-child(1)::after { transition-delay: .1s; }
.anim [data-reveal="steps"].is-in .step:nth-child(2)::after { transition-delay: .45s; }
.anim [data-reveal="steps"].is-in .step:nth-child(3)::after { transition-delay: .8s; }
.anim [data-reveal="steps"].is-in .step:nth-child(4)::after { transition-delay: 1.15s; }
.anim [data-reveal="steps"].is-in .step:nth-child(4) .step-num::after { transition-delay: 1.5s; }
.anim [data-reveal="steps"].is-in .step:nth-child(1) > * { transition-delay: .25s; }
.anim [data-reveal="steps"].is-in .step:nth-child(2) > * { transition-delay: .6s; }
.anim [data-reveal="steps"].is-in .step:nth-child(3) > * { transition-delay: .95s; }
.anim [data-reveal="steps"].is-in .step:nth-child(4) > * { transition-delay: 1.3s; }
.step-num { transition: color .3s; }
.step:hover .step-num { color: var(--ink); }

/* teléfonos y email */
.contact-big a { display: inline-block; transition: background-size .4s var(--ease-out), color .2s, transform .4s var(--ease-out); }
.contact-big a:hover { transform: translateX(6px); color: var(--accent); }



/* ==========================================================================
   BLOQUES AÑADIDOS: llamada a la acción, preguntas, pie y barra móvil
   ========================================================================== */

/* ---------- Franja de llamada a la acción ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* triángulo del logo, gigante, de fondo */
.cta-band::after {
  content: "";
  position: absolute;
  right: -6%; bottom: -30%;
  width: min(60vw, 40rem); aspect-ratio: 1;
  background: rgba(255, 255, 255, .07);
  clip-path: polygon(0 30%, 100% 0, 85% 100%);
  transform: translate3d(0, var(--py, 0px), 0);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; gap: 2rem; }
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.cta-band h2 em { color: #ffe1cc; }
.cta-side p { font-size: 1.15rem; max-width: 26rem; color: rgba(255, 255, 255, .92); }
.cta-band :focus-visible { outline-color: #fff; }
.btn-light::before { background: var(--ink); }
.btn-light:hover { color: #fff; border-color: var(--ink); }
@media (min-width: 64em) {
  .cta-inner { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 4rem; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.6vw, 1.8rem);
  line-height: 1.2;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
/* icono + que gira a × */
.faq summary::after {
  content: "";
  flex: none;
  width: 1.5rem; height: 1.5rem;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 2.5rem 1.6rem 0; color: var(--ink-soft); }
.faq-a p { margin: 0; max-width: 40rem; }
.faq details[open] .faq-a { animation: faqIn .55s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-10px); } }

@media (min-width: 64em) {
  .faq-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 5rem; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

/* ---------- Nombre gigante en el pie ---------- */
.footer-giant {
  display: flex;
  justify-content: space-between;
  margin: 0 0 -.06em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(3rem, 18.5vw, 17.5rem);
  line-height: .85;
  letter-spacing: -.02em;
  color: #2b2f2d;
  overflow: hidden;
  user-select: none;
}
.footer-giant span { display: inline-block; transition: color .4s; }
.footer-giant span:hover { color: var(--accent-light); }
.anim .footer-giant span { transform: translateY(105%); transition: transform 1.2s var(--ease-out), color .4s; }
.anim .footer-giant.is-in span { transform: none; }
.anim .footer-giant span:nth-child(2) { transition-delay: .05s, 0s; }
.anim .footer-giant span:nth-child(3) { transition-delay: .1s, 0s; }
.anim .footer-giant span:nth-child(4) { transition-delay: .15s, 0s; }
.anim .footer-giant span:nth-child(5) { transition-delay: .2s, 0s; }
.anim .footer-giant span:nth-child(6) { transition-delay: .25s, 0s; }
.anim .footer-giant span:nth-child(7) { transition-delay: .3s, 0s; }

/* ---------- Barra de contacto fija en móvil ---------- */
.quick-bar { display: none; }
.js .quick-bar {
  position: fixed;
  left: .75rem; right: .75rem; bottom: .75rem;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: .5rem;
  transform: translateY(160%);
  transition: transform .5s var(--ease-out);
}
.js .quick-bar.is-visible { transform: none; }
.quick-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
}
.quick-bar a:first-child { background: var(--accent); color: #fff; }
.quick-bar a:hover { color: #fff; }
@media (min-width: 48em) { .js .quick-bar { display: none; } }

/* entrada del comparador */
.anim .ba-figure[data-reveal="clip"] .work-media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io) var(--d, 0ms);
}
.anim .ba-figure[data-reveal="clip"].is-in .work-media { clip-path: inset(0 0 0 0); }

/* ---------- Página 404 ---------- */
.not-found { min-height: 75vh; display: flex; align-items: center; padding-block: 5rem; }
.not-found h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: .98;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.not-found h1 em { color: var(--accent); }

/* ==========================================================================
   ENTRADA Y PORTADA ESPECTACULAR
   ========================================================================== */

/* ---------- Entrada: la grieta abre la pantalla ---------- */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  color: var(--on-dark);
}
.intro-half {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(236, 230, 219, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 230, 219, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: transform 1.3s var(--ease-io);
  will-change: transform;
}
/* las dos mitades siguen exactamente el trazo de la grieta del logo */
.intro-l { clip-path: polygon(0 0, 49.5% 0, 52.5% 18%, 32.5% 24.5%, 40.5% 63.5%, 64.5% 52%, 79% 100%, 0 100%); }
.intro-r { clip-path: polygon(49.5% 0, 100% 0, 100% 100%, 79% 100%, 64.5% 52%, 40.5% 63.5%, 32.5% 24.5%, 52.5% 18%); }
html.intro-open .intro-l { transform: translate3d(-105%, 0, 0) rotate(-4deg); }
html.intro-open .intro-r { transform: translate3d(105%, 0, 0) rotate(4deg); }

.intro-crack {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.intro-crack polyline {
  fill: none;
  stroke: #fff;
  stroke-width: .9;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: introCrack 1.5s var(--ease-io) .3s forwards;
}
.intro-tri {
  fill: #f07e26;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: introTri .7s var(--ease-out) 1.65s forwards;
}
@keyframes introCrack { to { stroke-dashoffset: 0; } }
@keyframes introTri { 0% { transform: scale(0) rotate(-60deg); } 100% { transform: none; } }

.intro-brand, .intro-count {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 3rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  animation: introFade .8s var(--ease-out) .15s both;
}
.intro-brand { left: clamp(1rem, 4vw, 3rem); }
.intro-brand span {
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: .3em;
}
.intro-brand small, .intro-count small {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.intro-count { right: clamp(1rem, 4vw, 3rem); text-align: right; align-items: flex-end; }
.intro-num {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: .85;
  font-variant-numeric: tabular-nums;
  color: var(--accent-light);
}
@media (max-width: 47.99em) {
  .intro-count { top: clamp(1rem, 3vw, 2rem); bottom: auto; left: 1rem; right: auto; align-items: flex-start; text-align: left; }
}
@keyframes introFade { from { opacity: 0; transform: translateY(14px); } }
/* al abrirse, la grieta "viva" se cambia al instante por las copias de cada mitad */
html.intro-open .intro-crack { visibility: hidden; }
.intro-half svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; visibility: hidden; }
html.intro-open .intro-half svg { visibility: visible; }
.intro-half polyline { fill: none; stroke: #fff; stroke-width: .9; stroke-linejoin: miter; }
.intro-half polygon { fill: #f07e26; }
html.intro-open .intro-brand,
html.intro-open .intro-count { opacity: 0; transition: opacity .35s; }

/* ---------- Portada oscura a pantalla completa ---------- */
.hero-dark {
  --ink-soft: var(--on-dark-soft);
  --line: rgba(236, 230, 219, .16);
  --accent: var(--accent-light);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(2rem, 7vw, 4.5rem));
  padding-bottom: 0;
  background: var(--ink);
  color: var(--on-dark);
}
.hero-dark::before {
  background-image:
    linear-gradient(to right, rgba(236, 230, 219, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 230, 219, .045) 1px, transparent 1px);
}
.hero-dark .hero-grid { position: relative; z-index: 2; flex: 1; align-content: center; }
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark h1 { color: var(--on-dark); }
.hero-dark .lead { color: var(--on-dark-soft); }

.hero-dark .btn-primary { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
.hero-dark .btn-primary::before { background: var(--paper); }
.hero-dark .btn-primary:hover { background: var(--accent-light); color: var(--ink); border-color: var(--paper); }
.hero-dark .btn-ghost { color: var(--on-dark); border-color: rgba(236, 230, 219, .45); }
.hero-dark .btn-ghost::before { background: var(--on-dark); }
.hero-dark .btn-ghost:hover { color: var(--ink); border-color: var(--on-dark); }
.magnetic { transition: color .35s var(--ease-out), border-color .35s, translate .5s var(--ease-out); }

.hero-dark .hero-facts { border-top-color: rgba(236, 230, 219, .6); }
.anim .hero-dark [data-reveal="facts"]::before { background: rgba(236, 230, 219, .6); }
.hero-dark .hero-photo { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }

/* la cinta queda como borde claro al pie de la portada */
.hero-dark .ticker {
  --accent: #a84a16;
  position: relative;
  z-index: 2;
  background: var(--stone);
  color: var(--ink);
  border-color: var(--stone);
}

/* profundidad con el ratón (variables --mx/--my que pone main.js) */
.hero-dark [style*="--depth"] {
  translate: calc(var(--mx, 0) * var(--depth) * 1px) calc(var(--my, 0) * var(--depth) * 1px);
}

/* ---------- Plano que se dibuja ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-drawing {
  position: absolute;
  top: calc(var(--header-h) + 1rem);
  bottom: 6rem;
  right: -30%;
  width: 140%;
  opacity: .45;
}
.blueprint { display: block; width: 100%; height: 100%; }
.hero-drawing {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
}
.blueprint path {
  fill: none;
  stroke: rgba(236, 230, 219, .3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.blueprint .b { stroke: rgba(236, 230, 219, .6); }
.blueprint .f { stroke: rgba(236, 230, 219, .16); }
.blueprint .ax { stroke: rgba(240, 138, 60, .22); }
.blueprint .acc { stroke: rgba(240, 138, 60, .8); }
.blueprint text {
  fill: rgba(236, 230, 219, .5);
  font: 500 13px var(--font-sans);
  letter-spacing: .06em;
}
.blueprint .ta { fill: var(--accent-light); font-size: 15px; font-weight: 600; }
.blueprint .tb { font-size: 11px; letter-spacing: .22em; }
/* línea de escaneo que recorre el plano */
.hero-drawing::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(240, 138, 60, .12), transparent);
  animation: scan 7s linear 3.5s infinite;
  opacity: 0;
}
@keyframes scan {
  0% { transform: translateY(-140px); opacity: 1; }
  100% { transform: translateY(110vh); opacity: 1; }
}
.anim [data-reveal="blueprint"] path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim [data-reveal="blueprint"] text { opacity: 0; }
.anim [data-reveal="blueprint"].is-in path {
  animation: draw 1.4s var(--ease-io) forwards;
  animation-delay: calc(var(--i) * 11ms);
}
.anim [data-reveal="blueprint"].is-in text {
  animation: introFade .8s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 11ms + 600ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 64em) {
  .hero-drawing { right: 2%; width: min(58vw, 920px); opacity: 1; }
}

/* ---------- Puntero CAD ---------- */
.cad { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-dark { cursor: crosshair; }
  .hero-dark a, .hero-dark button { cursor: pointer; }
  .hero-dark .ticker { cursor: auto; }
  .cad {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    bottom: var(--cad-bottom, 0px);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
  }
  .cad.is-on { opacity: 1; }
  .cad-x, .cad-y { position: absolute; background: rgba(240, 138, 60, .38); }
  .cad-x { left: 0; right: 0; top: 0; height: 1px; transform: translate3d(0, var(--cy, -10px), 0); }
  .cad-y { top: 0; bottom: 0; left: 0; width: 1px; transform: translate3d(var(--cx, -10px), 0, 0); }
  .cad-label {
    position: absolute;
    left: 0; top: 0;
    transform: translate3d(calc(var(--cx, 0px) + 14px), calc(var(--cy, 0px) + 14px), 0);
    padding: .3rem .5rem;
    background: rgba(27, 30, 29, .85);
    color: var(--accent-light);
    font: 600 .66rem var(--font-sans);
    letter-spacing: .14em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
}

/* ---------- Cabecera transparente sobre la portada ---------- */
.site-header { transition: transform .45s var(--ease-out), box-shadow .3s, background-color .4s, border-color .4s; }
.site-header.on-hero {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: rgba(236, 230, 219, .12);
  box-shadow: none;
}
.site-header.on-hero .brand,
.site-header.on-hero .nav-toggle { color: var(--on-dark); }
.site-header.on-hero .nav-toggle { border-color: rgba(236, 230, 219, .5); }
.site-header.on-hero .brand-text small { color: var(--on-dark-soft); }
.site-header.on-hero :focus-visible { outline-color: var(--accent-light); }
@media (min-width: 64em) {
  .site-header.on-hero .site-nav a { color: var(--on-dark); }
  .site-header.on-hero .site-nav a:hover,
  .site-header.on-hero .site-nav a.is-active { color: var(--accent-light); }
  .site-header.on-hero .site-nav .nav-cta a { color: var(--accent-light); border-color: var(--accent-light); }
  .site-header.on-hero .site-nav .nav-cta a:hover { background: var(--accent-light); color: var(--ink); }
}

/* entrada más dramática del titular de portada */
.anim .hero-dark h1 .w > span { transform: translateY(120%) rotate(8deg) skewX(-6deg); transition-duration: 1.3s; }
.anim .hero-dark h1.is-in .w > span { transform: none; }

/* ---------- Reducir movimiento: todo quieto ---------- */
html.no-motion .ticker-track { animation: none; }
html.no-motion .hero-photo img, html.no-motion .work-media img { transform: none; scale: 1; }
html.no-motion .site-header.is-hidden { transform: none; }
html.no-motion .hero-dark [style*="--depth"] { translate: none; }
html.no-motion .hero-drawing::after { display: none; }


/* ---------- Botón para pausar / activar animaciones ---------- */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--on-dark);
  font: inherit;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.motion-toggle:hover { color: var(--accent-light); }
.motion-toggle:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* ==========================================================================
   NOTICIAS: obras terminadas, año a año
   ========================================================================== */
.section-news { background: var(--paper); border-top: 1px solid var(--line); }
.section-intro { max-width: 34rem; margin: 1.5rem 0 0; font-size: 1.1rem; color: var(--ink-soft); }

.news-year { display: grid; gap: 1.5rem; }
.news-year + .news-year { margin-top: clamp(3.5rem, 8vw, 6rem); }
/* año gigante en contorno, como el 1998 de la sección oscura */
.news-year-label {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.news-year-label span { display: inline-block; }
.news-list { display: grid; gap: 2.5rem; }

.news-card { position: relative; }
.news-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  background: var(--stone-2);
}
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.news-card:hover .news-media img { scale: 1.06; }
/* marcador mientras no hay foto: cuadrícula de plano con el triángulo del logo */
.news-placeholder {
  position: absolute; inset: 0;
  background-color: var(--stone-2);
  background-image:
    linear-gradient(to right, rgba(27, 30, 29, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 30, 29, .07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.news-placeholder::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--accent);
  opacity: .5;
  clip-path: polygon(0 30%, 100% 0, 85% 100%);
}
.news-meta {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.news-meta span {
  display: none;
  padding: .2rem .45rem;
  background: var(--accent);
  color: #fff;
  letter-spacing: .1em;
}
.news-card.is-example .news-meta span { display: inline-block; }
.news-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  line-height: 1.1;
  margin-bottom: .5rem;
  transition: color .25s;
}
.news-card:hover h3 { color: var(--accent); }
.news-card > p:last-child { margin: 0; color: var(--ink-soft); }
/* línea que se dibuja bajo cada ficha al pasar el ratón */
.news-card::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1.25rem;
  background: var(--accent);
  transform: scaleX(.15);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.news-card:hover::after { transform: none; }

@media (min-width: 48em) {
  .news-list { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
}
@media (min-width: 64em) {
  .news-year { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 3rem; align-items: start; }
  .news-year-label { position: sticky; top: calc(var(--header-h) + 2rem); font-size: clamp(6rem, 11vw, 10rem); }
  .news-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* entrada: el año se traza de abajo arriba y las fichas se abren como las obras */
.anim [data-reveal="year-label"] span { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.anim [data-reveal="year-label"].is-in span { clip-path: inset(0 0 0 0); }
.anim .news-card[data-reveal="clip"] .news-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io) var(--d, 0ms); }
.anim .news-card[data-reveal="clip"].is-in .news-media { clip-path: inset(0 0 0 0); }
.anim .news-card[data-reveal="clip"] > :not(.news-media) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) calc(var(--d, 0ms) + .5s), transform .8s var(--ease-out) calc(var(--d, 0ms) + .5s); }
.anim .news-card[data-reveal="clip"].is-in > :not(.news-media) { opacity: 1; transform: none; }

/* el menú tiene ahora 7 apartados: algo menos de separación en pantallas medianas */
@media (min-width: 64em) and (max-width: 80em) {
  .site-nav ul { gap: 1.35rem; }
}

/* ==========================================================================
   CONTENIDO DE LA WEB ANTIGUA
   ========================================================================== */

/* ---------- Servicios: texto introductorio y ámbitos ---------- */
.service-intro { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 34rem; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .service-intro { grid-column: 1; }
}
.scopes { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.scopes-title {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.scopes ul { display: grid; border-top: 1px solid var(--ink); }
.scopes li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.1;
  transition: color .3s, padding-left .4s var(--ease-out);
}
.scopes li span { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.scopes li:hover { color: var(--accent); padding-left: .75rem; }
@media (min-width: 64em) {
  .scopes ul { grid-template-columns: repeat(4, 1fr); }
  .scopes li { flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .scopes li:last-child { border-right: 0; }
  .scopes li:hover { padding-left: 0; transform: translateY(-4px); }
}

/* ---------- Portfolio: rejilla de comparadores antes / después ---------- */
.ba-hint-intro {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent) !important;
}
.ba-hint-intro span { width: 2.5rem; height: 1px; background: currentColor; animation: nudge 1.8s var(--ease-io) infinite; }
.pf-grid { display: grid; gap: 3rem; }
.pf-item .ba { aspect-ratio: 1 / 1; }
.pf-text { padding-top: 1.1rem; }
.pf-kicker {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.pf-kicker .work-num { font-size: 1.6rem; letter-spacing: 0; text-transform: none; }
.pf-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2rem);
  line-height: 1.1;
  margin-bottom: .5rem;
}
.pf-text h3 small { font-family: var(--font-sans); font-size: .9rem; color: var(--ink-soft); margin-left: .35rem; }
.pf-text p:last-child { margin: 0; color: var(--ink-soft); max-width: 30rem; }
@media (min-width: 48em) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; }
}
@media (min-width: 64em) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem 2.5rem; }
  .pf-item:nth-child(3n+2) { margin-top: 4rem; }
}
.anim .pf-item[data-reveal="clip"] .work-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) var(--d, 0ms); }
.anim .pf-item[data-reveal="clip"].is-in .work-media { clip-path: inset(0 0 0 0); }
.anim .pf-item[data-reveal="clip"] .pf-text { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) calc(var(--d, 0ms) + .6s), transform .8s var(--ease-out) calc(var(--d, 0ms) + .6s); }
.anim .pf-item[data-reveal="clip"].is-in .pf-text { opacity: 1; transform: none; }

/* ---------- Noticias: subtítulo y "Leer más" ---------- */
.news-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--accent); margin-bottom: .6rem; }
.news-card > p:not(.news-meta):not(.news-sub) { color: var(--ink-soft); margin-bottom: .8rem; }
.news-more summary {
  display: inline-flex; align-items: center; gap: .5rem;
  list-style: none; cursor: pointer;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.news-more summary::-webkit-details-marker { display: none; }
.news-more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; transition: transform .4s var(--ease-out); }
.news-more[open] summary::after { transform: rotate(45deg); }
.news-more[open] summary { margin-bottom: .8rem; }
.news-more div p { color: var(--ink-soft); font-size: .98rem; }
.news-more div strong { color: var(--ink); font-weight: 600; }
.news-more[open] > div { animation: faqIn .55s var(--ease-out); }
.news-card > p:last-child, .news-card .news-more { margin-bottom: 0; }

/* ---------- Estudio: texto principal y equipo ---------- */
.why-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}
.why-lead em { color: var(--accent-light); }
.team { margin-top: clamp(4rem, 9vw, 6.5rem); }
.team-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 2rem;
}
.team-title::after { content: ""; flex: 1; height: 1px; background: rgba(236, 230, 219, .25); transform-origin: left; }
.anim .team-title[data-reveal="line"]::after { transform: scaleX(0); transition: transform 1.4s var(--ease-io) .1s; }
.anim .team-title[data-reveal="line"].is-in::after { transform: none; }
.team-grid { display: grid; gap: 3rem; }
.person { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; align-items: center; }
.person-photo { overflow: hidden; aspect-ratio: 3 / 4; background: #2b2f2d; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: scale 1.2s var(--ease-out), filter .6s; }
.person:hover .person-photo img { scale: 1.06; filter: grayscale(.2); }
.person figcaption { display: flex; flex-direction: column; }
.person strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2rem); line-height: 1.1; }
.person span { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin: .4rem 0 .9rem; }
.person q { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--on-dark-soft); quotes: "“" "”"; }
@media (min-width: 48em) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .person { grid-template-columns: 10rem 1fr; }
}
.anim .person[data-reveal="clip"] .person-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io) var(--d, 0ms); }
.anim .person[data-reveal="clip"].is-in .person-photo { clip-path: inset(0 0 0 0); }
.anim .person[data-reveal="clip"] figcaption { opacity: 0; transform: translateX(-16px); transition: opacity .8s var(--ease-out) calc(var(--d, 0ms) + .5s), transform .8s var(--ease-out) calc(var(--d, 0ms) + .5s); }
.anim .person[data-reveal="clip"].is-in figcaption { opacity: 1; transform: none; }
@media (min-width: 64em) {
  .why-main { display: block; }
}

/* ---------- Contacto: horario ---------- */
.contact-hours { font-size: 1.15rem; line-height: 1.5; margin-bottom: 1.5rem; }
.contact-hours strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; }

/* ---------- Pie: logos del Kit Digital ---------- */
.kit-digital { background: #fff; padding-block: 1.1rem; }
.kit-digital img { width: 100%; max-width: 60rem; height: auto; margin-inline: auto; }
/* el desfase de la columna central no debe dejar hueco al final del portfolio */
@media (min-width: 64em) {
  .pf-grid { padding-bottom: 0; }
  .pf-item:nth-child(3n+2) { margin-top: 4rem; margin-bottom: -4rem; }
}
.kit-digital { margin-top: 2.5rem; }
