/* ==========================================================================
   ONUVENT v2 — sistema de diseño "Oficio de precisión"
   Paleta: marfil + tinta azul marino, con los tres colores reales del
   isotipo (azul, rojo, dorado) llevados a tonos profundos y minerales —
   azul acero, óxido/ladrillo, latón antiguo — en vez del RGB puro del logo.
   Tipos: Fraunces (titulares, serifa con carácter de oficio) + Inter (texto)
   + IBM Plex Mono (etiquetas técnicas, ficha de obra).
   ========================================================================== */

:root {
  /* -- tinta / fondos -- */
  --ink: #14213D;
  --ink-soft: #1B2A4A;
  --steel: #1F3050;
  --steel-2: #26395C;
  --steel-line: #33456B;
  --paper: #F7F4EE;
  --paper-dim: #EFEAE0;

  /* -- acentos (mismo trío del logo, en tono mineral) -- */
  --cyan: #3654A6;        /* azul acero — antes cian vivo */
  --cyan-deep: #24397A;
  --coral: #A13D2E;       /* óxido / ladrillo — antes coral vivo */
  --coral-deep: #7C2E22;
  --yellow: #C9A227;      /* latón antiguo — antes amarillo vivo */
  --yellow-deep: #9C7D1C;

  /* -- variantes claras de los acentos, solo para texto sobre fondo oscuro/foto -- */
  --cyan-bright: #7FADE6;
  --coral-bright: #EC8659;
  --yellow-bright: #E4C247;

  --text-on-dark: #F3EFE4;
  --text-on-dark-soft: #fff;
  --text-on-paper: #1B1F27;
  --text-on-paper-soft: #5B6270;
  --line: rgba(243, 239, 228, .14);
  --line-soft: #DED7C8;

  --display: 'Fraunces', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 3px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: 0; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
h3, h4 { font-family: var(--body); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.visually-hidden:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  z-index: 999; background: var(--yellow); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; clip: auto;
}

/* ── Scroll progress bar ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--yellow);
  z-index: 1100; transition: width .1s linear;
}

/* ── Nav — clara, editorial, flota sobre el hero ─────────────────────── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 26px 0;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav.is-scrolled {
  padding: 16px 0;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 30px rgba(20, 33, 61, .06);
}
.brand { display: flex; align-items: center; }
.brand .brand-logo { height: 40px; width: auto; transition: height .4s var(--ease); }
.site-nav.is-scrolled .brand .brand-logo { height: 34px; }
.brand .brand-logo-light { display: none; }
.site-nav.is-scrolled .brand .brand-logo-dark { display: none; }
.site-nav.is-scrolled .brand .brand-logo-light { display: block; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--text-on-dark-soft); font-weight: 500; font-size: .92rem;
  letter-spacing: .01em;
  position: relative; padding: 4px 0; transition: color .3s;
}
.site-nav.is-scrolled .nav-links a { color: var(--text-on-paper-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--yellow);
  transition: right .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text-on-dark); }
.site-nav.is-scrolled .nav-links a:hover, .site-nav.is-scrolled .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn-primary span.short { display: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text-on-dark);
  width: 42px; height: 42px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
  cursor: pointer;
}
.site-nav.is-scrolled .nav-toggle { color: var(--ink); border-color: var(--line-soft); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ── Buttons — estructurados, sin pastillas neón ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: 15px 28px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, border-color .35s, color .35s;
}
.btn-primary {
  background: var(--ink); color: var(--text-on-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(20, 33, 61, .45); background: var(--ink-soft); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(161, 61, 46, .45); background: var(--coral-deep); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: var(--text-on-dark); border-color: rgba(255,255,255,.55); }
.btn-ghost-dark:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(255,255,255,.12); }
.btn-ghost-light { background: transparent; color: var(--text-on-paper); border-color: var(--line-soft); }
.btn-ghost-light:hover { border-color: var(--ink); }
.btn-gold { background: var(--yellow); color: var(--ink); font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(201, 162, 39, .5); background: var(--yellow-bright); }
.btn-block { width: 100%; }

/* ── Eyebrow / badges ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.eyebrow.on-paper { color: var(--coral-deep); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  color: var(--text-on-paper-soft); background: #fff;
}

/* ── Reveal-on-scroll ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-1.is-visible { transition-delay: .08s; }
.reveal-2.is-visible { transition-delay: .16s; }
.reveal-3.is-visible { transition-delay: .24s; }
.reveal-4.is-visible { transition-delay: .32s; }
.reveal-5.is-visible { transition-delay: .40s; }
.reveal-6.is-visible { transition-delay: .48s; }
.reveal-7.is-visible { transition-delay: .56s; }

/* ── (antiguas formas flotantes desactivadas: demasiado "kinetic") ───── */
.frame-field { display: none; }

/* ── Marquee — banda serif lenta, discreta ───────────────────────────── */
.marquee {
  background: var(--ink); border-block: 1px solid var(--line);
  overflow: hidden; padding: 20px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.05rem;
  color: var(--text-on-dark-soft); padding-inline: 30px; white-space: nowrap;
}
.marquee-item .dot { width: 22px; height: 1px; background: var(--yellow); border-radius: 0; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--ink); color: var(--text-on-dark);
  padding-top: clamp(150px, 22vw, 210px); padding-bottom: clamp(90px, 12vw, 140px);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 60% 50% at 78% 25%, #000 30%, transparent 85%);
  opacity: .5;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%;
  filter: grayscale(.15) contrast(1.05);
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  from { transform: scale(1.0); }
  to { transform: scale(1.08); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 34%, rgba(20,33,61,.92) 52%, rgba(20,33,61,.5) 76%, rgba(20,33,61,.24) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 600; color: var(--text-on-dark); max-width: 720px; }
.hero h1 .accent-cyan { color: var(--cyan-bright); font-style: italic; font-weight: 500; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 .accent-coral { color: var(--coral-bright); font-style: italic; font-weight: 500; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 .accent-yellow { color: var(--yellow-bright); font-style: italic; font-weight: 500; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-sub { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-on-dark-soft); max-width: 540px; line-height: 1.7; font-weight: 300; }
.hero-ctas { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ctas .btn-primary { background: var(--yellow); color: var(--ink); }
.hero-ctas .btn-primary:hover { background: var(--yellow-bright); box-shadow: 0 14px 26px -12px rgba(201, 162, 39, .5); }
.hero-chips { margin-top: 64px; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line);
}
.hero-chip:last-child { border-right: none; }
.hero-chip strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--text-on-dark); display: block; }
.hero-chip .chip-label { font-size: .76rem; color: var(--text-on-dark-soft); font-family: var(--mono); letter-spacing: .02em; }

.scroll-cue {
  position: absolute; bottom: 40px; left: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 12px; color: var(--text-on-dark-soft);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.scroll-cue svg { width: 14px; height: 14px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Page hero (interior pages) ──────────────────────────────────────── */
.page-hero {
  position: relative; background: var(--ink); color: var(--text-on-dark);
  padding-top: clamp(140px, 18vw, 180px); padding-bottom: clamp(70px, 8vw, 100px);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; }
.page-hero .lede { margin-top: 22px; max-width: 620px; color: var(--text-on-dark-soft); font-size: 1.08rem; line-height: 1.7; font-weight: 300; }
.page-hero .breadcrumb { font-family: var(--mono); font-size: .74rem; color: var(--text-on-dark-soft); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.page-hero .breadcrumb a:hover { color: var(--yellow); }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { position: relative; }
.section-pad { padding-block: clamp(76px, 9vw, 128px); }
.section-head { max-width: 620px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
.section-head p { margin-top: 20px; font-size: 1.05rem; color: var(--text-on-paper-soft); line-height: 1.7; }
.section-head.on-dark h2 { color: var(--text-on-dark); }
.section-head.on-dark p { color: var(--text-on-dark-soft); }
.section-foot { margin-top: 48px; display: flex; justify-content: center; }

.diagonal-top { clip-path: none; margin-top: 0; padding-top: clamp(76px, 9vw, 128px); }

/* ── Services grid ────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card {
  position: relative; padding: 34px 28px; background: var(--ink);
  overflow: hidden; transition: background-color .4s var(--ease);
}
.service-card:hover { background: var(--ink-soft); }
.service-card::before { content: none; }
.service-card .icon {
  width: 44px; height: 44px; border-radius: 0; display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 26px; position: relative; z-index: 1;
  border-bottom: 1px solid currentColor; padding-bottom: 10px;
  transition: color .3s;
}
.service-card:nth-child(4n+2) .icon { color: var(--coral); }
.service-card:nth-child(4n+3) .icon { color: var(--yellow); }
.service-card:hover .icon { transform: none; }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { position: relative; z-index: 1; font-size: 1.14rem; font-weight: 600; color: var(--text-on-dark); margin-bottom: 12px; }
.service-card p { position: relative; z-index: 1; font-size: .9rem; color: var(--text-on-dark-soft); line-height: 1.6; font-weight: 300; }
.service-card .go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); opacity: 0; transition: .3s; }
.service-card:hover .go { opacity: 1; }

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ── Why / stats ──────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat-card {
  padding: 26px 20px; text-align: left; background: var(--paper);
}
.stat-card strong {
  display: block; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600;
  color: var(--ink);
}
.stat-card span { font-size: .76rem; color: var(--text-on-paper-soft); font-family: var(--mono); }

.values-list { display: grid; gap: 24px; margin-top: 32px; }
.value-item { display: flex; gap: 20px; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.value-item:first-child { border-top: none; padding-top: 0; }
.value-item .dot {
  width: 30px; height: 30px; border-radius: 0; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--cyan); border: 1px solid var(--line-soft);
}
.value-item:nth-child(2) .dot { color: var(--coral); }
.value-item:nth-child(3) .dot { color: var(--ink); }
.value-item:nth-child(4) .dot { color: var(--yellow-deep); }
.value-item .dot svg { width: 15px; height: 15px; }
.value-item h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 5px; font-family: var(--display); }
.value-item p { font-size: .92rem; color: var(--text-on-paper-soft); line-height: 1.6; }

.frame-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame-photo:hover img { transform: scale(1.035); }
.frame-corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--yellow); z-index: 2; }
.frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* ── Projects grid ────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.project-card {
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  cursor: pointer; border-radius: 0;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.92); }
.project-card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.project-card .scrim {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,33,61,.94) 100%);
  opacity: .85; transition: opacity .4s;
}
.project-card:hover .scrim { opacity: .95; }
.project-card .tag {
  position: absolute; top: 18px; left: 18px; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--yellow);
  padding: 0;
}
.project-card .cap { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.project-card .cap strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.project-card .cap span { font-size: .78rem; color: rgba(255,255,255,.68); font-family: var(--mono); }
@media (max-width: 1080px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }

.projects-cta { margin-top: 56px; display: flex; justify-content: center; }

/* Filter tabs (proyectos page) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
.filter-tab {
  font-family: var(--mono); font-size: .78rem; padding: 12px 4px; margin-right: 24px; border-radius: 0;
  border: none; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; transition: .3s;
  color: var(--text-on-paper-soft);
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active { color: var(--ink); border-bottom-color: var(--yellow-deep); }
.project-card.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgba(20, 33, 61, .96);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 26px; right: 26px; width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-cap { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-family: var(--mono); font-size: .82rem; }

/* ── Brands strip ─────────────────────────────────────────────────────── */
.brands-strip { background: var(--paper-dim); }
.brands-row { display: flex; align-items: center; justify-content: center; gap: clamp(48px, 8vw, 110px); flex-wrap: wrap; }
.brands-row img { height: 64px; width: auto; filter: grayscale(1) contrast(1.15); opacity: .7; transition: .4s; }
@media (max-width: 560px) { .brands-row img { height: 48px; } }
.brands-row img:hover { filter: none; opacity: 1; }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.testi-card { background: var(--paper); padding: 32px; }
.testi-stars { font-family: var(--display); letter-spacing: .12em; color: var(--yellow-deep); margin-bottom: 18px; font-size: .95rem; }
.testi-card p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.08rem; line-height: 1.55; color: var(--text-on-paper); }
.testi-name { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; color: var(--text-on-dark); background: var(--ink);
  font-size: .76rem;
}
.testi-name strong { font-size: .84rem; font-family: var(--body); font-weight: 600; }
@media (max-width: 1080px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-grid.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .testi-grid.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testi-grid.n4 { grid-template-columns: 1fr; } }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta-final {
  position: relative; background: var(--ink);
  color: #fff; text-align: center; overflow: hidden;
}
.cta-final h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; }
.cta-final h2 em { color: var(--yellow); }
.cta-final p { margin-top: 20px; font-size: 1.05rem; color: #fff; font-weight: 300; }
.cta-final .hero-ctas { justify-content: center; margin-top: 40px; }
.cta-final .btn-ghost-dark:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── Service detail rows (servicios page) ────────────────────────────── */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding-block: 68px; border-bottom: 1px solid var(--line-soft);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .sd-media { order: 2; }
.sd-index { font-family: var(--mono); font-size: .76rem; color: var(--coral-deep); margin-bottom: 16px; letter-spacing: .06em; }
.sd-body h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 18px; font-weight: 600; }
.sd-body p { color: var(--text-on-paper-soft); line-height: 1.75; font-size: 1.02rem; }
.sd-list { margin-top: 24px; display: grid; gap: 12px; }
.sd-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-on-paper); font-family: var(--mono); }
.sd-list svg { width: 15px; height: 15px; color: var(--yellow-deep); flex: none; margin-top: 3px; }
.sd-media { position: relative; }
.sd-media .frame-photo { aspect-ratio: 4/3; }
.sd-media.no-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text-on-dark-soft);
  position: relative; overflow: hidden;
}
.sd-media.no-photo .icon-big { width: 72px; height: 72px; color: var(--yellow); opacity: .85; }
@media (max-width: 900px) {
  .service-detail, .why-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 36px; }
  .service-detail:nth-child(even) .sd-media { order: 0; }
}

/* Process strip */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.process-step { position: relative; padding: 30px 26px; background: var(--ink); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .76rem; color: var(--yellow); display: block; margin-bottom: 16px;
}
.process-step h4 { color: var(--text-on-dark); font-size: 1rem; margin-bottom: 10px; font-weight: 600; }
.process-step p { color: var(--text-on-dark-soft); font-size: .88rem; line-height: 1.55; font-weight: 300; }
.process-step:not(:last-child)::after { content: none; }
@media (max-width: 900px) { .process-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-strip { grid-template-columns: 1fr; } }

/* ── About page specifics ────────────────────────────────────────────── */
.about-lede { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.55; color: var(--text-on-paper); max-width: 820px; }
.about-lede strong { color: var(--coral-deep); font-weight: 500; font-style: italic; }
.split-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split-media { grid-template-columns: 1fr; } }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-card { background: var(--ink); border-radius: var(--radius-lg); padding: 44px; color: var(--text-on-dark); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .78rem; font-weight: 500; margin-bottom: 9px; color: var(--text-on-dark-soft); font-family: var(--mono); letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--steel); color: var(--text-on-dark); font-family: var(--body); font-size: .96rem;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--text-on-dark-soft); }
.field-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--yellow); }
.field-check a { color: var(--yellow); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 18px; font-size: .86rem; opacity: 0; transition: opacity .3s; }
.form-status.is-visible { opacity: 1; }
.form-status.ok { color: var(--yellow); }
.form-status.err { color: var(--coral); }

.info-list { display: grid; gap: 24px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.info-item:first-child { border-top: none; padding-top: 0; }
.info-item .dot {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex: none; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-soft); color: var(--coral-deep);
}
.info-item .dot svg { width: 18px; height: 18px; }
.info-item h4 { font-size: .96rem; margin-bottom: 5px; font-family: var(--display); font-weight: 600; }
.info-item p, .info-item a { font-size: .94rem; color: var(--text-on-paper-soft); }
.info-item a:hover { color: var(--coral-deep); }
.map-frame { margin-top: 30px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 16/9; filter: grayscale(.25); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--text-on-dark); padding-top: 76px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-logo { height: 40px; width: auto; }
.footer-brand p { color: var(--text-on-dark-soft); font-size: .92rem; line-height: 1.65; max-width: 280px; font-weight: 300; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, color .25s;
}
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-on-dark-soft); margin-bottom: 20px; font-family: var(--mono); font-weight: 400; }
.footer-col a, .footer-col span { display: block; margin-bottom: 13px; color: var(--text-on-dark-soft); font-size: .92rem; transition: color .2s; font-weight: 300; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; flex-wrap: wrap; font-size: .8rem; color: var(--text-on-dark-soft); font-family: var(--mono); }
.footer-bottom a { color: var(--text-on-dark-soft); }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ── Mobile nav ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav .wrap { gap: 12px; }
  .brand .brand-logo { height: 30px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-primary { padding: 11px 18px; font-size: .82rem; }
  .nav-toggle { width: 38px; height: 38px; flex: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 110px 32px 40px; gap: 28px; transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; font-family: var(--display); }
  .nav-cta .btn-primary span.long { display: none; }
  .nav-cta .btn-primary span.short { display: inline; }
}
@media (max-width: 380px) {
  .nav-cta .btn-primary { padding: 10px 14px; font-size: .8rem; }
}

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
