/* ==========================================================================
   INPRO — Hoja de estilos
   Índice
   01. Tokens (colores, tipografía, espacios)
   02. Base y reset
   03. Utilidades y layout
   04. Tipografía editorial
   05. Botones y enlaces
   06. Header y navegación
   07. Imágenes, placeholders y animaciones
   08. Inicio — Hero
   09. Servicios (inicio)
   10. Del plano a la realidad
   11. Proceso
   12. Nosotros (bloque)
   13. Proyectos — cuadrícula y filtros
   14. Contacto y footer
   15. Páginas interiores (cabecera, nosotros, servicios)
   16. Detalle de proyecto y lightbox
   17. Responsive
   ========================================================================== */

/* 01. TOKENS ============================================================== */
:root {
  /* Paleta "Musgo" (Propuestas/INPRO_Paletas_de_Color_v3, opción 1)
     Fondo blanco; secciones con fotos en blanco; el color queda en
     Contacto + footer, la superficie de "Lo que hacemos" y los acentos. */
  --bone: #ffffff;        /* fondo principal */
  --paper: #f4f3ee;       /* superficie clara (ej. "Lo que hacemos") y texto sobre bloques */
  --sand: #e4e2d6;        /* fondos secundarios / imágenes mientras cargan */
  --stone: #6e6c5e;       /* texto secundario */
  --taupe: #c9c4a2;       /* acento sobre bloques de color */
  --ink: #161614;         /* texto principal */
  --ink-soft: #3a3a32;
  --block: #4b4b39;       /* bloques de color: Contacto y footer (verde musgo) */
  --clay: #77735e;        /* acento sobre blanco (líneas de títulos, hovers) */
  --sage: #8b8f7a;        /* acento salvia (uso puntual) */
  --line: rgba(22, 22, 20, 0.14);
  --line-light: rgba(244, 243, 238, 0.24);

  /* Tipografía */
  /* Grotesca neutra al estilo Helvetica: una sola familia, jerarquía por tamaño */
  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);

  /* Espacios */
  --gutter: clamp(20px, 4.2vw, 72px);
  --section: clamp(96px, 13vw, 200px);
  --max: 1680px;
  --header-h: 84px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 02. BASE ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
em, i { font-style: normal; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 1px solid var(--clay); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bone); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* Transición entre páginas */
body { animation: page-in 0.9s var(--ease) both; }
body.is-leaving { opacity: 0; transition: opacity 0.35s var(--ease-in-out); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* 03. UTILIDADES Y LAYOUT ================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--dark { background: var(--block); color: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark + .section--dark { border-top: 1px solid var(--line-light); }
.section--paper { background: var(--paper); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 04. TIPOGRAFÍA ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--stone);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--clay); }
.section--dark .eyebrow::before { background: var(--taupe); }
.section--dark .eyebrow { color: var(--taupe); }

.title-xl, .title-lg, .title-md {
  font-family: var(--font-sans); font-weight: 400; letter-spacing: -0.04em; line-height: 0.94;
}
/* Títulos grandes en mayúsculas compactas (referencia "Create interiors that inspire") */
.title-xl { font-size: clamp(3rem, 8vw, 8.4rem); text-transform: uppercase; letter-spacing: -0.045em; line-height: 1.05; } /* 1.05: deja espacio para comas y tildes entre líneas */
/* Títulos de sección en minúsculas, sobrios (referencia "Projects / Explore") */
.title-lg { font-size: clamp(2.4rem, 5.2vw, 5.2rem); }
.title-md { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.08; letter-spacing: -0.025em; }
.serif, .title-xl em, .title-lg em, .title-md em {
  font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit;
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.55rem); line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.section--dark .lead { color: rgba(250, 248, 244, 0.78); }
.body-text { color: var(--ink-soft); max-width: 60ch; }
.body-text p + p { margin-top: 1.1em; }
.muted { color: var(--stone); }
.small { font-size: 14px; }

/* Encabezado de sección editorial: etiqueta a la izquierda, título a la derecha */
.section-head { align-items: end; row-gap: 28px; margin-bottom: clamp(48px, 7vw, 110px); }
.section-head__label { grid-column: 1 / span 3; align-self: start; padding-top: 0.9em; }
.section-head__title { grid-column: 4 / span 6; }
.section-head__aside { grid-column: 10 / span 3; justify-self: end; }

/* 05. BOTONES Y ENLACES =================================================== */
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  padding-bottom: 8px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(0.35); }
.link-arrow .arrow { transition: transform 0.6s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover { color: var(--bone); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.6s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.section--dark .btn::before { background: var(--paper); }
.section--dark .btn:hover { color: var(--ink); border-color: var(--paper); }

.arrow { display: inline-block; width: 18px; height: 10px; flex: none; }

/* 06. HEADER Y NAVEGACIÓN ================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
/* Logo 02: símbolo original + nombre en Tahoma (PNG transparente) */
.brand__logo { display: block; height: 51px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.nav__link {
  position: relative; font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 0; color: var(--ink-soft); transition: color 0.4s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; min-height: 42px; padding: 0 22px; font-size: 12px; }

.menu-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before {
  display: block; width: 26px; height: 1px; background: var(--ink); position: relative;
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.menu-toggle span::before { content: ""; position: absolute; top: 7px; left: 0; }
.menu-toggle span { transform: translateY(-4px); }
.menu-open .menu-toggle span { transform: translateY(0) rotate(45deg); }
.menu-open .menu-toggle span::before { transform: translateY(-7px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out); }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1;
  transform: translateY(100%); transition: transform 0.8s var(--ease);
}
.mobile-menu__list a small { font-size: 12px; letter-spacing: 0.04em; color: var(--stone); font-weight: 500; }
.menu-open .mobile-menu__list a { transform: translateY(0); }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .mobile-menu__list li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-menu__foot { display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.menu-open { overflow: hidden; }

/* 07. IMÁGENES, PLACEHOLDERS Y ANIMACIONES ================================ */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Tratamiento sutil para unificar fotografías de distintas fuentes */
  filter: saturate(0.82) contrast(1.03) brightness(1.01);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease), opacity 0.8s var(--ease);
}
.media img[loading="lazy"] { opacity: 0; }
.media img.is-loaded { opacity: 1; }
.media--hover:hover img, a:hover > .media--hover img, a:hover .media--hover img { transform: scale(1.045); filter: saturate(0.95) contrast(1.04); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Placeholder claramente identificado para reemplazar por material real */
.placeholder {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-start;
  background-color: var(--sand);
  background-image: repeating-linear-gradient(135deg, rgba(22,22,20,0.05) 0 1px, transparent 1px 14px);
  color: var(--stone); overflow: hidden;
}
.placeholder__tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft); padding: 7px 10px; border: 1px dashed var(--taupe);
}
.placeholder__label { position: relative; z-index: 2; padding: 20px; font-size: 14px; line-height: 1.4; max-width: 30ch; }
.placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--ease), filter 0.8s var(--ease), opacity 0.8s var(--ease); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }
.reveal-img.is-visible img { transform: scale(1); }
a:hover .reveal-img.is-visible.media--hover img, .reveal-img.is-visible.media--hover:hover img { transform: scale(1.045); }
[data-delay="1"] { transition-delay: 0.1s; } [data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; } [data-delay="4"] { transition-delay: 0.4s; }

/* 08. PORTADA ============================================================= */
/* Fotografía fija a pantalla completa, sin carrusel ni animaciones.
   El nombre INPRO es una imagen (Tahoma Regular, espaciado 0,22 em). */
.cover { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #d9dcdc; }
.cover__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  filter: saturate(0.42) contrast(1.02) brightness(1.06);
}
.cover__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 45%, rgba(255,255,255,0) 70%); }
/* Posición del nombre: "top" controla la altura (25 % = levemente más arriba que la maqueta, 27 %) */
.cover__name { position: absolute; z-index: 2; left: var(--gutter); top: 22%; margin: 0; width: clamp(260px, 34.7vw, 720px); line-height: 0; }
.cover__name img { width: 100%; height: auto; }
.cover__scroll, .cover__credit { position: absolute; z-index: 2; bottom: clamp(24px, 4.4vh, 44px); font-size: 12px; color: var(--ink); transition: opacity 0.4s var(--ease); }
.cover__scroll { left: var(--gutter); letter-spacing: 0.08em; text-transform: uppercase; }
.cover__credit { right: var(--gutter); text-align: right; line-height: 1.6; letter-spacing: 0.02em; }
.cover__credit b { font-weight: 500; }
.cover__scroll:hover, .cover__credit:hover { opacity: 0.6; }
body[data-page="inicio"], body[data-page="proyectos"] { animation: none; } /* inicio y proyectos aparecen sin fundido */

/* Pantallas verticales (celular, tablet en vertical): se encuadra la zona de cielo */
@media (max-aspect-ratio: 1/1) {
  .cover__photo { object-position: 14% 50%; }
  .cover__name { top: 20%; width: min(76vw, 520px); }
}

.hero__intro { padding-block: clamp(56px, 8vw, 120px) clamp(72px, 9vw, 140px); align-items: start; row-gap: 32px; }
.hero__slogan { grid-column: 1 / span 7; }
/* "Construimos ideas": más pequeño que INPRO, en cursiva, misma letra que "Un puente entre el diseño y la construcción" */
.slogan { margin-top: 0; font-family: var(--font-sans); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; }
.hero__text { grid-column: 9 / span 4; padding-top: 0.35em; display: grid; gap: 34px; }

/* 09. SERVICIOS (INICIO) ================================================== */
/* "Lo que hacemos": título + un enlace, tres columnas limpias (sin cuadros ni líneas) */
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 5.6vw, 80px); }
.services__link { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.services__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 48px); }
@media (max-width: 1100px) and (min-width: 861px) { .services__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.services__item { display: block; }
.service-row__note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--stone); max-width: 46ch; }
.services__num { font-size: 13px; letter-spacing: 0.04em; color: var(--stone); }
.services__title { font-size: clamp(1.8rem, 2.4vw, 2.15rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; margin: 12px 0 16px; }
.services__text { color: var(--ink-soft); font-size: 16.5px; line-height: 1.5; }
.services__item:hover .services__title, .services__link:hover { color: var(--clay); } /* cambio de color sin movimiento */

/* 10. ANTES Y DESPUÉS (comparador) ======================================= */
.ba-section { align-items: start; }
.ba-section__text { grid-column: 1 / span 4; }
.ba-section__text .title-lg { margin-top: 18px; }
.ba-section__sub { margin: 22px 0 0; max-width: 34ch; color: var(--stone); line-height: 1.55; }
.ba-section__media { grid-column: 5 / -1; margin: 0; }

.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; -webkit-user-drag: none; }
.ba__img--antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.ba__handle svg { width: 24px; height: 12px; }
.ba__label {
  position: absolute; bottom: 16px; padding: 7px 11px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: rgba(22, 22, 20, 0.55); pointer-events: none;
}
.ba__label--antes { left: 16px; }
.ba__label--despues { right: 16px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba__range:focus-visible) .ba__handle { outline: 2px solid var(--taupe); outline-offset: 3px; }
.ba__caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 14px; color: var(--stone); }
.ba__caption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.ba__caption a:hover { color: var(--ink); }

/* 11. PROCESO ============================================================= */
.process { align-items: start; }
.process__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
.process__intro .lead { margin-top: 28px; max-width: 36ch; }
.process__steps { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: minmax(110px, 0.9fr) 2fr; gap: 24px; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.step__num {
  font-size: clamp(3.6rem, 6.4vw, 6.4rem); font-weight: 400; line-height: 0.85; letter-spacing: -0.06em;
  color: var(--taupe); transition: color 0.8s var(--ease);
}
.step.is-visible .step__num { color: var(--ink); }
.step__title { font-size: clamp(1.35rem, 1.8vw, 1.75rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.2; }
.step__text { color: var(--ink-soft); max-width: 46ch; }

/* 12. NOSOTROS (BLOQUE) =================================================== */
.about { align-items: center; row-gap: 56px; }
.about__media { grid-column: 1 / span 5; }
.about__content { grid-column: 7 / span 6; }
/* Todo el texto del bloque usa un mismo estilo (Inter Tight 400) */
.about__text { font-size: clamp(1.15rem, 1.6vw, 1.55rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); }
.about__placeholder { position: relative; margin-top: 30px; padding: 64px 28px 28px; border: 1px dashed var(--taupe); background: rgba(255,255,255,0.5); }
.about__placeholder .about__text { color: var(--stone); }
.about__body { margin-top: 30px; }
.founder-photo img { object-position: 38% 22%; } /* mantiene el rostro de Claudio visible si el marco recorta */
.about__title { font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; margin: 26px 0 28px; max-width: 18ch; text-wrap: balance; }
.about__body .about__text + .about__text { margin-top: 1em; }
.about__sign { margin: 36px 0 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__sign span { color: var(--stone); }

/* 13. PROYECTOS =========================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 96px); }
.project-card { grid-column: span 4; display: block; }
.project-card__media { aspect-ratio: 4 / 5; }
.project-card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.project-card__name { font-size: clamp(1.1rem, 1.35vw, 1.3rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.3; }
.project-card__cat { font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.project-card__name span { display: inline-block; transition: transform 0.6s var(--ease); }
.project-card:hover .project-card__name span { transform: translateX(6px); }
/* Página Proyectos: fotos estáticas, sin aparición, zoom ni desplazamiento */
.project-card--static .media img, .project-card--static .media img[loading="lazy"] { opacity: 1; transform: none; transition: none; }
.project-card--static .project-card__name span, .project-card--static:hover .project-card__name span { transform: none; transition: none; }
.project-card--static .project-card__media { aspect-ratio: 4 / 3; } /* formato original de las fotos */


.projects-more { display: flex; justify-content: center; margin-top: clamp(64px, 8vw, 120px); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 72px); }
.filter {
  position: relative; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone);
  padding: 6px 0; transition: color 0.4s var(--ease);
}
.filter sup { font-size: 10px; margin-left: 4px; letter-spacing: 0.05em; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }
.projects-grid .project-card.is-entering { animation: card-in 0.9s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.category-intro { margin-bottom: clamp(36px, 4vw, 56px); max-width: 62ch; color: var(--ink-soft); min-height: 1.6em; }

/* 14. CONTACTO Y FOOTER =================================================== */
.contact { padding-block: var(--section) clamp(64px, 7vw, 110px); }
.contact__title { font-size: clamp(3rem, 8.4vw, 9rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.88; text-transform: uppercase; max-width: 14ch; }
.contact__title em { color: var(--taupe); }
.contact__body { margin-top: clamp(48px, 6vw, 96px); align-items: end; row-gap: 48px; }
.contact__invite { grid-column: 1 / span 5; }
.contact__channels { grid-column: 7 / span 6; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
/* Sin título: el mosaico parte justo después de la frase de INPRO */
.section--projects { padding-top: 0; }

/* Mosaico de proyectos del inicio (banda completa + pares asimétricos, fotos pegadas) */
.feature-mosaic { display: grid; }
.fm-row { display: grid; }
.fm-row--wn { grid-template-columns: 2fr 1fr; }
.fm-row--nw { grid-template-columns: 1fr 2fr; }
.fm-tile { position: relative; display: block; overflow: hidden; background: var(--sand); height: min(82vh, 820px); }
.fm-row--wn .fm-tile, .fm-row--nw .fm-tile { height: min(70vh, 660px); }
.fm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.36)); pointer-events: none; }
.fm-cap { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: #fff; }
.fm-name { font-size: 17px; font-weight: 500; line-height: 1.25; }
.fm-place { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; white-space: nowrap; }
.fm-tile:hover .fm-name { text-decoration: underline; text-underline-offset: 4px; }
.feature-mosaic + .container .projects-more { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 700px) {
  .fm-tile { height: 125vw; max-height: 560px; }
  .fm-row--wn, .fm-row--nw { grid-template-columns: 1fr 1fr; }
  .fm-row--wn .fm-tile, .fm-row--nw .fm-tile { height: 78vw; }
  .fm-cap { left: 14px; right: 14px; bottom: 12px; }
  .fm-name { font-size: 14px; }
  .fm-row--wn .fm-place, .fm-row--nw .fm-place { display: none; }
}

/* Servicios — bloques de color */
.page-head__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 52ch; }
.svc-blocks { display: grid; grid-template-columns: 1fr 1fr; }
.svc-block { min-height: clamp(420px, 38vw, 560px); padding: clamp(36px, 4vw, 56px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; scroll-margin-top: 80px; }
.svc-block--moss { background: var(--block); color: var(--paper); }
.svc-block--paper { background: var(--paper); color: var(--ink); }
.svc-block--sand { background: var(--sand); color: var(--ink); }
.svc-block--ink { background: var(--ink); color: var(--paper); }
.svc-block__num { font-size: 13px; letter-spacing: 0.06em; opacity: 0.7; }
.svc-block__name { margin-top: 14px; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.92; text-wrap: balance; }
.svc-block__foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.svc-block__desc { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; max-width: 38ch; }
.svc-block__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); font-size: 14px; line-height: 1.45; opacity: 0.85; max-width: 40ch; }
.svc-block__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.svc-block__list { list-style: none; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.35; opacity: 0.9; }
.svc-block__list li { padding-left: 16px; position: relative; }
.svc-block__list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 1px; background: currentColor; opacity: 0.6; }
@media (max-width: 860px) {
  .svc-blocks { grid-template-columns: 1fr; }
  .svc-block { min-height: 0; gap: 32px; padding-block: 40px; }
  .svc-block__name { font-size: clamp(2.3rem, 10vw, 3rem); }
  .svc-block__foot { grid-template-columns: 1fr; gap: 18px; }
}

/* Valenzuela Arquitectura — estudio aliado */
.project-hero__credit--estudio { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.project-hero__credit--estudio a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.project-hero__credit--estudio .credit-link { text-decoration: none; font-weight: 500; }
.service-row__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.va-studio__grid { align-items: center; row-gap: 40px; }
.va-studio__mark { grid-column: 1 / span 5; display: flex; justify-content: center; }
.va-studio__mark img { width: min(300px, 70%); height: auto; }
.va-studio__text { grid-column: 7 / span 6; }
.va-studio__projects { list-style: none; margin: 26px 0 34px; border-top: 1px solid var(--line); }
.va-studio__projects li { border-bottom: 1px solid var(--line); }
.va-studio__projects a { display: flex; justify-content: space-between; padding: 14px 0; font-size: 17px; }
.va-studio__projects a::after { content: "→"; color: var(--clay); }
.va-studio__projects a:hover { color: var(--clay); }
.va-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-top: clamp(56px, 7vw, 96px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.va-band__mark { width: 52px; height: auto; }
.va-band__text { font-size: 17px; color: var(--ink-soft); } .va-band__text b { font-weight: 500; color: var(--ink); }
.va-band__link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.va-band:hover .va-band__link { color: var(--clay); }
.contact__note--va { margin-top: 10px; } .contact__note--va a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 860px) {
  .va-studio__mark, .va-studio__text { grid-column: 1 / -1; }
  .va-studio__mark { justify-content: flex-start; } .va-studio__mark img { width: 160px; }
  .va-band { grid-template-columns: auto 1fr; } .va-band__link { grid-column: 2; }
}

/* Frase bajo la invitación de contacto */
.contact__note { margin-top: 22px; color: var(--taupe); font-size: 16px; max-width: 46ch; }

/* Botón flotante de WhatsApp: solo en pantallas chicas */
.wa-float { display: none; }
@media (max-width: 860px) {
  .wa-float {
    display: grid; place-items: center; position: fixed; z-index: 60;
    right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--block); color: var(--paper); box-shadow: 0 6px 20px rgba(22, 22, 20, 0.22);
  }
  .wa-float svg { width: 26px; height: 26px; }
  body.menu-open .wa-float { display: none; }
}
.channel { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.channel__label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--taupe); min-width: 90px; }
.channel__value { font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -0.03em; flex: 1; transition: color 0.4s var(--ease); word-break: break-word; }
.channel .arrow { color: var(--taupe); transition: transform 0.6s var(--ease), color 0.4s; }
.channel:hover .channel__value { color: var(--sand); }
.channel:hover .arrow { transform: translate(4px, -4px) rotate(-45deg); color: var(--paper); }
.contact__notice { margin-top: 18px; font-size: 12.5px; color: rgba(250,248,244,0.5); display: flex; gap: 10px; align-items: center; }
.contact__notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }

.site-footer { background: var(--block); color: rgba(250,248,244,0.6); padding-bottom: 36px; }
.site-footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; padding-block: 56px; border-top: 1px solid var(--line-light); align-items: start; }
.footer-brand { grid-column: 1 / span 4; display: flex; gap: 28px; align-items: flex-end; }
.footer-brand__logo { width: 110px; height: 110px; filter: invert(1); mix-blend-mode: screen; object-fit: contain; opacity: 0.92; }
.footer-brand__tag { font-family: var(--font-serif); font-style: normal; font-size: 24px; line-height: 1.15; color: var(--taupe); }
.footer-nav { grid-column: 6 / span 3; display: grid; gap: 8px; }
.footer-contact { grid-column: 10 / span 3; display: grid; gap: 8px; }
.footer-title { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; }
.site-footer a { transition: color 0.4s var(--ease); }
.site-footer a:hover { color: var(--paper); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; padding-top: 28px; border-top: 1px solid var(--line-light); }

/* 15. PÁGINAS INTERIORES ================================================== */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head__grid { align-items: end; row-gap: 32px; }
.page-head__title { grid-column: 1 / span 8; }
.page-head__title .title-xl { margin-top: 26px; }
.page-head__lead { grid-column: 9 / span 4; }

/* Nosotros */
.founder { align-items: start; row-gap: 56px; }
.founder__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.founder__caption { margin-top: 16px; font-size: 13px; color: var(--stone); display: flex; justify-content: space-between; }
.founder__text { grid-column: 7 / span 6; }
.founder__text h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); margin: 56px 0 18px; }
.founder__text h3:first-child { margin-top: 0; }
.founder__text .body-text { font-size: 18px; }
.founder--solo .founder__text { grid-column: 4 / span 7; }

/* Equipo (nosotros.html) */
.team-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.team-head__text { color: var(--ink-soft); max-width: 56ch; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 2vw, 32px); }
.team-card__name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 18px 0 4px; }
.team-card__role { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); }
.team-card__text { margin-top: 10px; color: var(--ink-soft); font-size: 15px; max-width: 36ch; }
.team-card__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.team-card__empty { display: grid; place-items: center; background: var(--paper); }
.team-card__empty span { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 300; letter-spacing: 0.08em; color: var(--taupe); }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
/* (sin capitular: estilo grotesco sobrio) */

/* "Lo que nos define": versión esencial, solo las cuatro ideas en grande */
.principles { display: grid; grid-template-columns: 4fr 8fr; column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.principles__label { padding-top: 22px; margin: 0; }
.principles__list { list-style: none; }
.principles__list li { font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.12; }

.network { align-items: start; row-gap: 40px; }
.network__intro { grid-column: 1 / span 5; }
.network__list { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); }
.network__list li { padding: 20px 0; border-bottom: 1px solid var(--line-light); font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 400; display: flex; gap: 16px; align-items: baseline; }
.network__list li span { font-size: 11px; letter-spacing: 0.04em; color: var(--taupe); }

/* Servicios — formato índice: nombre · una frase · lo que incluye */
.service-rows { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.8vw, 40px); padding: clamp(36px, 3.4vw, 48px) 0 clamp(40px, 3.9vw, 56px); border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: var(--header-h); }
.service-row__num { font-size: 13px; letter-spacing: 0.04em; color: var(--stone); }
.service-row__name { font-weight: 400; font-size: clamp(2rem, 2.8vw, 2.5rem); letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.service-row__desc { color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.service-row__more { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.service-row__more:hover { color: var(--clay); }
.service-row__list { list-style: none; }
.service-row__list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); }
.service-row__list li:first-child { padding-top: 0; }

/* 16. DETALLE DE PROYECTO Y LIGHTBOX ====================================== */
.project-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); }
.project-hero__top { align-items: end; row-gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.project-hero__title { grid-column: 1 / span 9; }
.project-hero__title .title-xl { margin-top: 22px; }
.project-hero__back { grid-column: 10 / span 3; justify-self: end; }
.project-hero__media { aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; }
.project-hero__credit { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--stone); max-width: 70ch; }
.project-info { align-items: start; row-gap: 56px; }
.project-info__meta { grid-column: 1 / span 4; border-top: 1px solid var(--line); }
.project-info__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.project-info__meta dt { color: var(--stone); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 3px; }
.project-info__meta dd { margin: 0; text-align: right; }
.project-info__meta dd.pending { color: var(--taupe); font-style: normal; font-family: var(--font-serif); font-size: 17px; }
.project-info__text { grid-column: 6 / span 7; }
.project-info__text .lead { margin-bottom: 28px; color: var(--ink); }
.draft-flag { display: inline-flex; gap: 8px; align-items: center; margin-top: 24px; font-size: 12px; letter-spacing: 0.08em; color: var(--clay); }
.draft-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); }
.gallery__item { grid-column: span 6; cursor: zoom-in; }
.gallery__item:nth-child(3n+1) { grid-column: 1 / -1; }
.gallery__item .media { aspect-ratio: 3 / 2; }
.gallery__item:nth-child(3n+1) .media { aspect-ratio: 21 / 9; }
.gallery__item.placeholder-item { cursor: default; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.project-nav a { padding: clamp(36px, 5vw, 72px) 0; display: grid; gap: 10px; }
.project-nav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.project-nav__name { font-size: clamp(1.5rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; transition: color 0.4s var(--ease); }
.project-nav a:hover .project-nav__name { color: var(--clay); }
.not-found { padding: calc(var(--header-h) + 120px) 0 120px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 18, 16, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; color: var(--paper); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px;
}
.lightbox__close { top: 12px; right: calc(var(--gutter) - 14px); }
.lightbox__prev { left: calc(var(--gutter) - 14px); bottom: 12px; }
.lightbox__next { right: calc(var(--gutter) - 14px); bottom: 12px; }
.lightbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--taupe); font-size: 13px; letter-spacing: 0.04em; }

/* 17. RESPONSIVE ========================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__slogan { grid-column: 1 / -1; }
  .hero__text { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 0; }
  .section-head__label { grid-column: 1 / -1; padding-top: 0; }
  .section-head__title { grid-column: 1 / span 9; }
  .section-head__aside { grid-column: 10 / span 3; }
  .process__intro { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .process__steps { grid-column: 1 / -1; }
  .project-card { grid-column: span 6; }
  .principles { grid-template-columns: 1fr; row-gap: 28px; }
  .principles__label { padding-top: 0; }
  .page-head__title { grid-column: 1 / -1; }
  .page-head__lead { grid-column: 1 / span 8; }
  .project-info__meta { grid-column: 1 / -1; }
  .project-info__text { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand__logo { height: 40px; }
  .hero__text { grid-template-columns: 1fr; }
  .section-head__title, .section-head__aside { grid-column: 1 / -1; justify-self: start; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__row { grid-template-columns: 1fr; gap: 40px; }
  .ba-section__text, .ba-section__media { grid-column: 1 / -1; }
  .ba-section__media { margin-top: 40px; }
  .ba { aspect-ratio: 4 / 5; }
  .about__media, .about__content { grid-column: 1 / -1; }
  .about__media .media { aspect-ratio: 4 / 4.4; }
  .contact__invite, .contact__channels { grid-column: 1 / -1; }
  .footer-brand, .footer-nav, .footer-contact { grid-column: 1 / -1; }
  .founder__media, .founder__text, .founder--solo .founder__text { grid-column: 1 / -1; position: static; }
  .network__intro, .network__list { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .service-row__list li:first-child { padding-top: 11px; border-top: 1px solid var(--line); }
  .page-head__lead { grid-column: 1 / -1; }
  .project-hero__title, .project-hero__back { grid-column: 1 / -1; justify-self: start; }
  .project-hero__media { aspect-ratio: 4 / 3; }
  .gallery__item, .gallery__item:nth-child(3n+1) { grid-column: 1 / -1; }
  .gallery__item .media, .gallery__item:nth-child(3n+1) .media { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .project-card { grid-column: 1 / -1; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__num { font-size: 3.4rem; }
  .network__list { grid-template-columns: 1fr; }
  .channel { flex-wrap: wrap; gap: 6px; }
  .channel__label { width: 100%; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; text-align: left; }
  .filters { gap: 8px 22px; }
  .filter { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .reveal-img img { transform: none; }
}

/* Filtros de Proyectos en pantallas chicas: cuando pasan a dos líneas, la raya
   del filtro activo va justo bajo la palabra (antes caía sobre la segunda línea
   y parecía tachar "Inspección"). */
@media (max-width: 860px) {
  .filters { row-gap: 16px; }
  .filter::after { bottom: -6px; }
}
