/*
Theme Name: GIESAC
Theme URI: https://giesac.com.pe
Author: GIESAC - Grupo Ingenieros Especialistas S.A.C.
Author URI: https://giesac.com.pe
Description: Tema corporativo para GIESAC. Sistema de diseño premium.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giesac
Tags: custom-colors, custom-logo, editor-style, featured-images, wide-blocks
*/

/* ============================================================
   GIESAC — Grupo Ingenieros Especialistas S.A.C.
   Desarrollado por: Franco Caballero — hansgianfranco@gmail.com
   ============================================================ */

/* La tipografía Inter se carga desde inc/setup.php (wp_enqueue_style + preconnect). */

:root {
  --bg1: #F7F6F4;
  --bg2: #EDECEA;
  --bg3: #E4E4E4;
  --bg4: #CACACA;
  --bg5: #3A3238;
  --ink: #2A2127;
  --dark: #1A1619;
  --ink-92: rgba(42, 33, 39, 0.92);
  --ink-80: rgba(42, 33, 39, 0.80);
  --ink-75: rgba(42, 33, 39, 0.75);
  --ink-60: rgba(42, 33, 39, 0.60);
  --ink-55: rgba(42, 33, 39, 0.55);
  --ink-40: rgba(42, 33, 39, 0.50);
  --ink-20: rgba(42, 33, 39, 0.20);
  --ink-10: rgba(42, 33, 39, 0.10);
  --ink-06: rgba(42, 33, 39, 0.06);
  --accent: #3D9EA6;
  --accent-warm: #C8A96E;
  --accent-invert: rgba(42, 33, 39, 0.60);
  --white-90: rgba(247, 246, 244, 0.90);
  --white-85: rgba(247, 246, 244, 0.85);
  --white-80: rgba(247, 246, 244, 0.80);
  --white-75: rgba(247, 246, 244, 0.75);
  --white-70: rgba(247, 246, 244, 0.70);
  --white-65: rgba(247, 246, 244, 0.65);
  --white-60: rgba(247, 246, 244, 0.60);
  --white-55: rgba(247, 246, 244, 0.55);
  --white-50: rgba(247, 246, 244, 0.50);
  --white-45: rgba(247, 246, 244, 0.45);
  --white-40: rgba(247, 246, 244, 0.40);
  --white-35: rgba(247, 246, 244, 0.35);
  --white-30: rgba(247, 246, 244, 0.30);
  --white-25: rgba(247, 246, 244, 0.25);
  --white-20: rgba(247, 246, 244, 0.20);
  --white-15: rgba(247, 246, 244, 0.15);
  --white-12: rgba(247, 246, 244, 0.12);
  --white-10: rgba(247, 246, 244, 0.10);
  --white-06: rgba(247, 246, 244, 0.06);
  --whatsapp: #25D366;
  --whatsapp-glow: rgba(37, 211, 102, 0.30);
  --whatsapp-glow-hover: rgba(37, 211, 102, 0.40);
  --font: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg1);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bloquear scroll cuando el overlay está abierto */
body.overlay-open {
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: var(--bg1);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg1);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Focus Visible ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade {
    opacity: 1;
    transform: none;
  }

  .carousel-track {
    animation: none;
  }
}

/* ---- Layout ---- */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 30px;
  }
}

/* ---- Tipografía ---- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 400;
  margin-bottom: 24px;
  display: block;
}

h1 {
  font-family: var(--font);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-family: var(--font);
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p.lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
}

p.body {
  font-size: 15px;
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.8;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.btn:hover {
  color: var(--bg1);
  border-color: var(--ink);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn.light {
  border-color: var(--white-50);
  color: var(--bg1);
}

.btn.light::before {
  background: var(--bg1);
}

.btn.light:hover {
  color: var(--ink);
  border-color: var(--bg1);
}

.btn.ghost {
  border-color: var(--ink-20);
}

.btn.ghost:hover {
  border-color: var(--ink);
}

.nav-cta {
  padding: 14px 28px;
  font-size: 11px;
}

.form-submit-full {
  width: 100%;
  justify-content: center;
}

.btn--submitted {
  background: var(--ink);
  color: var(--bg1);
}

.form-feedback {
  font-size: 13px;
  color: var(--accent);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-feedback.visible {
  opacity: 1;
}

/* ---- Links ---- */
.link-u {
  position: relative;
  padding-bottom: 2px;
}

.link-u::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.link-u:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Header: minimalista logo + botón circular ---- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

/* WordPress admin bar: deja espacio para que no tape el header/menú/overlay/toolbar */
body.admin-bar header {
  top: 32px;
}

body.admin-bar .menu-btn {
  top: 56px;
}

body.admin-bar .site-overlay__inner {
  padding-top: 60px;
}

body.admin-bar .proy-toolbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }

  body.admin-bar .menu-btn {
    top: 70px;
  }

  body.admin-bar .site-overlay__inner {
    padding-top: 74px;
  }

  body.admin-bar .proy-toolbar {
    top: 46px;
  }
}

/* Nav bar: logo izquierda, botón derecha */
.nav-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Scrolled: sin fondo, solo logo y botón */
header.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
}

/* Utility: JS usa esta clase para hacer elementFromPoint() a través del botón */
.pointer-events-none {
  pointer-events: none !important;
}

/* Botón circular de menú — fijo, sigue la pantalla */
.menu-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-20);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.3s ease, background 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.menu-btn:hover {
  border-color: var(--ink-60);
  background: rgba(59, 49, 53, 0.05);
}

.menu-btn__bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.4s var(--ease-out), opacity 0.3s ease;
  transform-origin: center;
}

/* Estado abierto: las barras forman una X */
.menu-btn.is-open .menu-btn__bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-btn.is-open .menu-btn__bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Menú abierto: siempre blanco, el overlay siempre tiene fondo oscuro */
body.overlay-open .menu-btn.is-open {
  border-color: var(--white-35);
}

body.overlay-open .menu-btn.is-open:hover {
  border-color: var(--white-70);
  background: rgba(255, 255, 255, 0.08);
}

body.overlay-open .menu-btn.is-open .menu-btn__bar {
  background: var(--bg1);
}

/* Header por encima del overlay para que el botón X quede visible y clickeable */
body.overlay-open header {
  z-index: 1000;
}

/* Evitar doble logo: ocultar el del header cuando el overlay está abierto */
body.overlay-open .brand {
  opacity: 0;
  visibility: hidden;
}


/* Scrolled: botón oscuro */
header.scrolled .menu-btn {
  border-color: var(--ink-20);
}

header.scrolled .menu-btn:hover {
  border-color: var(--ink-60);
  background: rgba(59, 49, 53, 0.05);
}

header.scrolled .menu-btn__bar {
  background: var(--ink);
}

/* Override: scrolled pero sobre sección oscura → mantener blanco */
header.scrolled.header--over-dark .menu-btn {
  border-color: var(--white-35);
}

header.scrolled.header--over-dark .menu-btn:hover {
  border-color: var(--white-70);
  background: rgba(255, 255, 255, 0.08);
}

header.scrolled.header--over-dark .menu-btn__bar {
  background: var(--bg1);
}


/* ---- Logo ---- */
/* <picture> no debe participar del layout flex: los hijos heredan el rol de item. */
.brand picture,
.site-overlay__brand picture {
  display: contents;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

/* ---- Fade In ---- */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

.fade-delay-4 {
  transition-delay: 0.4s;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(61, 158, 166, 0.35);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(61, 158, 166, 0.5);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: var(--white-45);
  padding: 20px 0;
  font-size: 13px;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand svg {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--white-50);
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
  margin-top: 16px;
}

.footer-address {
  display: block;
  color: var(--white-45);
  margin-top: 16px;
  font-size: 12px;
}

.footer-col h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--white-45);
  margin-bottom: 12px;
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--bg1);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Header — Logo base styles
   ============================================================ */

/* Por defecto: logo negro, barras tinta */
.nav-logo--light {
  display: none;
}

.nav-logo--dark {
  display: block;
}

/* ============================================================
   Dynamic dark-section detection — applied by JS via scroll
   ============================================================ */

/* Smooth crossfade on all header interactive elements */
.menu-btn__bar {
  transition: background 0.3s ease;
}

.menu-btn {
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* === Over a dark section: logo blanco + barras blancas === */
.header--over-dark .nav-logo--light {
  display: block;
}

.header--over-dark .nav-logo--dark {
  display: none;
}

.header--over-dark .menu-btn {
  border-color: var(--white-35);
}

.header--over-dark .menu-btn:hover {
  border-color: var(--white-70);
  background: rgba(255, 255, 255, 0.08);
}

.header--over-dark .menu-btn__bar {
  background: var(--bg1);
}

/* ============================================================
   HOME V2 — Hero (full-bleed blueprint animado)
   ============================================================ */

/* Variables de color del SVG — valores exactos de hero-alumbrado.html */
.hero-v2 {
  --wall-lite: rgba(255, 255, 255, 0.34);
  --wall-dark: rgba(255, 255, 255, 0.62);
  --draw-lite: #C4C1BE;
  --draw-dark: #F4F2F0;
  --hero-grid-line: rgba(255, 255, 255, 0.14);

  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .hero-v2 {
    height: 100svh;
    height: 100vh;
    min-height: 0;
  }
}

/* ---- Fondo SVG animado (blueprint eléctrico) ---- */
.hero-v2__bg {
  position: absolute;
  inset: -6% -6%;
  z-index: 0;
  animation: hero-drift 46s ease-in-out 7.5s infinite alternate;
}

/* Variantes de fondo editables: imagen o video full-bleed */
.hero-v2__bg--image,
.hero-v2__bg--video {
  inset: 0;
  animation: none;
}

.hero-v2__bg--image img,
.hero-v2__bg--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Drift suave del plano de fondo */
@keyframes hero-drift {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.07) translate(-1.2%, -1.4%);
  }
}

/* ---- Blueprint en canvas (worker OffscreenCanvas) ---- */
.hero-v2__bg .blueprint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  translate: 0 0; /* parallax del puntero (propiedad translate, no pisa el transform) */
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Sin OffscreenCanvas o fallo del worker: imagen estática del plano final */
.hero-v2__bg.bp-fallback {
  background: url("assets/images/hero-blueprint-still.webp") center / cover no-repeat;
}

/* Overlay de legibilidad — gradiente de lectura sobre el plano */
.hero-v2__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(42, 33, 39, 0.82) 0%,
      rgba(42, 33, 39, 0.58) 28%,
      rgba(42, 33, 39, 0.24) 54%,
      rgba(42, 33, 39, 0.46) 100%),
    linear-gradient(180deg,
      rgba(42, 33, 39, 0.32) 0%,
      rgba(42, 33, 39, 0.05) 30%,
      rgba(42, 33, 39, 0.12) 70%,
      rgba(42, 33, 39, 0.78) 100%);
  pointer-events: none;
}

/* Grid overlay sutil (efecto técnico / digital) */
.hero-v2__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, black 0%, transparent 72%);
  pointer-events: none;
}

/* Dark gradient: full left half solid, fades to transparent right */
.hero-v2__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(42, 33, 39, 0.68) 0%,
      rgba(42, 33, 39, 0.42) 32%,
      rgba(42, 33, 39, 0.18) 58%,
      transparent 100%);
  pointer-events: none;
}

/* Text container — vertically centered, aligned left */
.hero-v2__inner {
  position: relative;
  z-index: 5;
  padding: 0 48px;
  /* Removed top/bottom padding for true flex center */
  max-width: 700px;
  /* Constrain width to keep it on the left */
  margin: 0;
  text-align: left;
  width: 100%;
}

/* Eyebrow técnico: filigrana de acento + etiqueta */
.hero-v2__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white-60);
}

.hero-v2__eyebrow-line {
  width: 44px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-v2__text h1 {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 60px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--bg1);
  margin-bottom: 32px;
}

.hero-v2__text h1 strong {
  font-weight: 700;
}

/* Scroll icon */
.hero-v2__scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
  display: inline-block;
  color: var(--white-45);
  transition: color 0.3s ease;
  line-height: 0;
  z-index: 5;
  cursor: pointer;
}

.hero-v2__scroll:hover {
  color: var(--bg1);
}

@media (max-width: 860px) {
  .hero-v2__inner {
    padding: 120px 24px 56px;
    max-width: 100%;
  }

  .hero-v2__scrim {
    background:
      linear-gradient(180deg,
        rgba(42, 33, 39, 0.55) 0%,
        rgba(42, 33, 39, 0.55) 40%,
        rgba(42, 33, 39, 0.92) 78%,
        rgba(42, 33, 39, 0.97) 100%);
  }

  .hero-v2__overlay {
    background: linear-gradient(to top,
        var(--ink) 0%,
        rgba(42, 33, 39, 0.7) 50%,
        transparent 100%);
  }

  .hero-v2__grid {
    display: none;
  }
}

/* Reduced motion: mantener transiciones suaves desactivadas pero permitir el drift del hero */
@media (prefers-reduced-motion: reduce) {
  .hero-v2__bg .blueprint-canvas {
    transition: none;
  }
}

/* ============================================================
   HOME V2 — Intro Split (slider Nosotros)
   ============================================================ */

.intro-split {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  background: var(--bg3);
}

.intro-split__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro-split__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%);
}

.intro-split__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(228, 228, 228, 0.8);
  pointer-events: none;
}

.intro-split__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 78px;
  min-height: 500px;
}

.intro-split__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.intro-split__counter {
  font-size: 14px;
  color: var(--ink-60);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.intro-split__slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  min-height: 180px;
}

/* swiper-wrapper del intro */
.intro-split__track {
  width: 100%;
}

.intro-split__slide {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.8;
  font-weight: 300;
  /* Para Swiper fade: cada slide ocupa toda la caja */
  height: auto !important;
  padding-bottom: 8px;
}

.intro-split__slide p {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0 0 16px;
}

.intro-split__slide p:last-child {
  margin-bottom: 0;
}

.intro-split__slide strong {
  color: var(--accent);
  font-weight: 600;
}

.intro-split__controls {
  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.intro-split__ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.intro-split__inner--ui {
  height: 100%;
}


.intro-split__more {
  font-size: 13px;
  color: var(--ink-40);
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink-20);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.intro-split__more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.intro-split__arrows {
  display: flex;
  gap: 12px;
}

.intro-split__arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-40);
  line-height: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.intro-split__arrow:hover {
  color: var(--ink);
}

.intro-split__arrow--next:hover {
  transform: translateX(3px);
}

.intro-split__arrow--prev:hover {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .intro-split {
    min-height: 0;
  }

  .intro-split__inner {
    padding: 40px 24px;
    min-height: 0;
  }

  .intro-split__slider {
    margin: 32px 0 28px;
  }

  .intro-split__slide {
    font-size: 20px;
  }
}


/* ============================================================
   HOME V2 — Stats Strip
   ============================================================ */

.home-stats-strip {
  background-color: var(--bg2);
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-10);
}

.home-stats-strip__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
}

.home-stat__number {
  font-size: clamp(64px, 6vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.home-stat__content {
  display: flex;
  flex-direction: column;
}

.home-stat__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

/* Stat 1: Area (m2) */
.home-stat--area .home-stat__top {
  display: flex;
  align-items: flex-end;
  margin-bottom: 4px;
}

.home-stat--area .home-stat__m2-wrap {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  padding-left: 12px;
  padding-bottom: 4px;
}

.home-stat--area .home-stat__axis-icon {
  position: absolute;
  bottom: -4px;
  left: -8px;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

/* Stat 2: Proyectos */
.home-stat--projects {
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}

.home-stat--projects .home-stat__number {
  line-height: 0.8;
}

.home-stat--projects .home-stat__text {
  margin-bottom: 6px;
}

/* Stat 3: Años */
.home-stat--years {
  align-items: center;
}

@media (max-width: 900px) {
  .home-stats-strip__grid {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
}


/* ============================================================
   HOME V2 — Services Strip (Dark)
   ============================================================ */

.services-strip {
  background: var(--ink);
  padding: 0;
}

.services-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.services-strip__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 40px 48px;
  transition: background 0.35s ease;
}

.services-strip__item p {
  max-width: 320px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-55);
  font-weight: 300;
}

.services-strip__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.services-strip__content::-webkit-details-marker {
  display: none;
}

.services-strip__item:hover {
  background: var(--white-06);
}

.services-strip__num {
  font-size: 14px;
  font-weight: 400;
  margin-top: 2px;
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1.5;
  flex-shrink: 0;
  transition: color 0.35s ease;
}

.services-strip__title {
  font-size: 18px;
  color: var(--bg1);
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}

.services-strip__chevron {
  position: relative;
  width: 16px;
  height: 16px;
  margin-left: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.services-strip__chevron::before,
.services-strip__chevron::after {
  content: '';
  position: absolute;
  background: var(--white-45);
  transition: transform 0.3s ease;
}

.services-strip__chevron::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.services-strip__chevron::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.services-strip__item[open] .services-strip__chevron::after {
  transform: translateX(-50%) scaleY(0);
}

.services-strip__desc {
  max-width: 320px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-55);
  font-weight: 300;
}

.services-strip__item--featured {
  background: var(--bg5);
}

.services-strip__item--featured:hover {
  background: linear-gradient(var(--white-06), var(--white-06)), var(--bg5);
}

@media (max-width: 768px) {
  .services-strip {
    padding: 48px 0;
  }

  .services-strip__inner {
    grid-template-columns: 1fr;
  }

  .services-strip__item {
    min-height: 0;
    padding: 28px 24px;
  }
}

/* ============================================================
   HOME V2 — Projects Carousel
   ============================================================ */

.projects-carousel {
  background: var(--bg1);
  padding: 72px 0 56px;
}

.projects-carousel--dark {
  background: var(--ink);
}

/* Header row: title left, stat right */
.projects-carousel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.projects-carousel__title h2 {
  font-family: var(--font);
  font-size: clamp(20px, 2.5vw, 38px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

.projects-carousel__title h2 strong {
  font-weight: 700;
}

.projects-carousel--dark .projects-carousel__title h2 {
  color: var(--bg1);
}

.projects-carousel__stat {
  text-align: right;
  flex-shrink: 0;
}

.projects-carousel__big {
  display: block;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.projects-carousel--dark .projects-carousel__big {
  color: var(--bg1);
}

.projects-carousel__sub {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-40);
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.6;
}

.projects-carousel--dark .projects-carousel__sub {
  color: var(--white-35);
}

/* Wrapper: arrows flanking the stage */
.projects-carousel__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Side arrow buttons — left and right of the stage */
.projects-carousel__side-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 20px;
  color: var(--ink-30);
  line-height: 0;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.projects-carousel__side-btn:hover {
  color: var(--ink);
  transform: scale(1.08);
}

.projects-carousel--dark .projects-carousel__side-btn {
  color: var(--white-30);
}

.projects-carousel--dark .projects-carousel__side-btn:hover {
  color: var(--bg1);
}

.intro-split__arrow:focus-visible,
.projects-carousel__side-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
  color: var(--accent);
  transform: none;
}

/* The scrollable stage */
.projects-carousel__stage {
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--ink-10);
  /* Swiper necesita height auto para calcular correctamente */
  height: auto;
}

.projects-carousel--dark .projects-carousel__stage {
  border-color: var(--white-10);
}

/* Track (= swiper-wrapper) — no sobreescribir display:flex de Swiper */
.projects-carousel__track {
  /* Swiper pone display:flex, no lo anulamos */
  width: 100%;
}

/* Split-frame: two images side by side */
.projects-carousel__frame--split {
  display: flex;
  gap: 0;
  aspect-ratio: 2 / 1;
  height: auto;
  overflow: hidden;
}

/* Stack-frame: two images stacked vertically */
.projects-carousel__frame--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 1260px;
  overflow: hidden;
}

.projects-carousel__split-img {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.projects-carousel__split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease, transform 0.6s var(--ease-out);
  display: block;
}

.projects-carousel__split-img:hover img,
.projects-carousel__card:hover .projects-carousel__split-img img {
  filter: grayscale(0);
  transform: scale(1.02);
}

/* Cards wrapper inside each slide */
.projects-carousel__cards {
  display: flex;
  gap: 0;
  width: 100%;
}

.projects-carousel__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.projects-carousel__card .projects-carousel__split-img {
  order: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.projects-carousel__card-caption {
  order: 2;
  padding: 16px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Slides gestionados por Swiper — no usar position:absolute custom */
.projects-carousel__slide {
  /* Swiper gestiona width/transform. Sólo añadimos padding visual */
  padding: 30px;
  box-sizing: border-box;
  height: auto;
  /* Que el contenido empuje la altura del stage */
  display: flex;
  flex-direction: column;
}

/* Frame: holds image + caption */
.projects-carousel__frame {
  position: relative;
  /*aspect-ratio: 16/7; */
  overflow: hidden;
}

.projects-carousel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease, transform 0.6s var(--ease-out);
  display: block;
}

.projects-carousel__frame:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}

/* Caption below the image, centered */
.projects-carousel__caption {
  padding: 16px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projects-carousel__caption--top {
  padding: 0 8px 16px;
}

.projects-carousel__tag {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-60);
  font-weight: 500;
  margin-bottom: 4px;
}

.projects-carousel__name {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.projects-carousel__loc {
  font-size: 11px;
  color: var(--ink-55);
  font-weight: 300;
}

.projects-carousel__caption--split {
  flex-direction: row;
  gap: 24px;
}

.projects-carousel__caption--split .projects-carousel__name {
  flex: 1;
}

.projects-carousel--dark .projects-carousel__tag {
  color: var(--white-55);
}

.projects-carousel--dark .projects-carousel__name {
  color: var(--bg1);
}

.projects-carousel--dark .projects-carousel__loc {
  color: var(--white-45);
}

@media (max-width: 768px) {
  .projects-carousel__head {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .projects-carousel__title h2 {
    text-align: center;
  }

  .projects-carousel__stat {
    text-align: center;
  }

  .projects-carousel__side-btn {
    padding: 0 10px;
  }

  .projects-carousel__stage {
    padding: 0;
  }

  .projects-carousel__side-btn {
    margin: 0;
  }

  .wrap--flush {
    padding: 0;
  }

  .projects-carousel__side-btn svg {
    width: 36px;
    height: 36px;
  }

  .projects-carousel__frame {
    aspect-ratio: 4/3;
  }

  .projects-carousel__slide {
    padding: 20px 10px;
    box-sizing: border-box;
  }

  /* Responsive: apilar las 2 cards verticalmente */
  .projects-carousel__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .projects-carousel__card {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Primera card: texto ARRIBA de la imagen */
  .projects-carousel__card--first {
    display: flex;
    flex-direction: column;
  }

  .projects-carousel__card--first .projects-carousel__card-caption {
    order: 1;
    padding: 0 8px 12px;
    text-align: center;
  }

  .projects-carousel__card--first .projects-carousel__split-img {
    order: 2;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
  }

  /* Segunda card: texto ABAJO de la imagen */
  .projects-carousel__card--second {
    display: flex;
    flex-direction: column;
  }

  .projects-carousel__card--second .projects-carousel__split-img {
    order: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
  }

  .projects-carousel__card--second .projects-carousel__card-caption {
    order: 2;
    padding: 12px 8px 0;
    text-align: center;
  }
}

/* ============================================================
   HOME V2 — Clients New
   ============================================================ */

.clients-new {
  background: var(--bg3);
  padding: 64px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}

.clients-new__title {
  font-family: var(--font);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 48px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.clients-new__title strong {
  font-weight: 700;
  color: var(--accent);
}

.clients-new__slider {
  display: flex;
  align-items: center;
  gap: 20px;
}

.clients-sbtn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.clients-sbtn:hover {
  color: var(--accent);
}

.clients-sbtn svg {
  width: 20px;
  height: 20px;
}

.clients-sbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.clients-new__grid {
  flex: 1;
  overflow: hidden;
  height: auto;
}

/* swiper-wrapper de clientes — Swiper pone display:flex; no lo pisar */
.clients-new__track {
  /* No forzar position ni width: Swiper lo gestiona */
  align-items: center;
}

.clients-new__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.clients-new__logo:hover {
  opacity: 0.85;
  filter: grayscale(0.1);
}

.clients-new__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

@media (max-width: 600px) {
  .clients-new__grid {
    min-height: 56px;
  }

  .clients-new__slider {
    gap: 8px;
  }

  .clients-sbtn {
    width: 40px;
    height: 40px;
  }

  .clients-new__logo img {
    height: 44px;
    max-width: 100%;
  }
}

/* ============================================================
   HOME V2 — CTA Section
   ============================================================ */

.cta-section {
  background: var(--bg1);
  padding: 0;
}

/* Full-width grid, no wrap — text left, image right flush */
.cta-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  align-items: stretch;
}

.cta-section__left {
  padding: 72px 80px 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-section__left h2 {
  font-family: var(--font);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 20px;
}

.cta-section__left h2 strong {
  font-weight: 700;
}

.cta-section__left>p {
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 420px;
  font-weight: 300;
}

/* Filled dark button matching mockup */
.btn--filled {
  background: var(--ink);
  color: var(--bg1);
  border-color: var(--ink);
  align-self: flex-start;
}

.btn--filled:hover {
  background: transparent;
  color: var(--ink);
}

.btn--filled::before {
  display: none;
}

.cta-section__datos {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-10);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-section__dato-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-40);
  font-weight: 500;
}

.cta-section__dato-val {
  font-size: 13px;
  color: var(--ink-55);
  font-weight: 300;
  line-height: 1.7;
}

.cta-section__social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  align-items: center;
}

.cta-section__social-link {
  color: var(--ink-30);
  line-height: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.cta-section__social-link:hover {
  color: var(--ink);
}

/* Right image — framed, centered with breathing room */
.cta-section__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 56px 56px 40px;
}

.cta-section__frame {
  border: 1px solid var(--ink-20);
  padding: 28px;
  width: fit-content;
  max-width: 100%;
}

.cta-section__img {
  width: 400px;
  height: 600px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease-out);
  display: block;
}

.cta-section__frame:hover .cta-section__img {
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .cta-section__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cta-section__left {
    padding: 48px 24px;
  }

  .cta-section__right {
    order: -1;
    padding: 24px;
  }

  .cta-section__frame {
    padding: 16px;
  }

  .cta-section__img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

/* ============================================================
   HOME V2 — Footer Minimal (matches mockup: logo + address + icons)
   ============================================================ */

.footer-minimal {
  background: var(--ink);
  color: var(--white-70);
  padding: 48px 0 40px;
  font-size: 13px;
  font-weight: 300;
}

/* Single column layout matching the mockup */
.footer-minimal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  text-align: center;
}

.footer-minimal__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-minimal__office-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--white-60);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.footer-minimal__address {
  font-size: 12px;
  color: var(--white-70);
  line-height: 1.7;
  font-style: normal;
  font-weight: 300;
}

.footer-minimal__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.footer-minimal__social-link {
  color: var(--white-55);
  line-height: 0;
  display: inline-flex;
  transition: color 0.3s ease;
}

.footer-minimal__social-link:hover {
  color: var(--accent);
}

.footer-minimal__nav {
  border-top: 1px solid var(--white-12);
  padding-top: 20px;
}

.footer-minimal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-minimal__list a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color 0.3s ease;
}

.footer-minimal__list a:hover {
  color: var(--accent);
}

.footer-minimal__copy {
  font-size: 11px;
  color: var(--white-55);
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-minimal__inner {
    max-width: 100%;
  }
}

/* ============================================================
   HOME V2 — Misc Utilities
   ============================================================ */

.mt-40 {
  margin-top: 40px;
}

.mt-60 {
  margin-top: 60px;
}

.text-center {
  text-align: center;
}

.btn--outline-light {
  border-color: var(--white-35);
  color: var(--bg1);
}

.btn--outline-light::before {
  background: var(--bg1);
}

.btn--outline-light:hover {
  color: var(--ink);
  border-color: var(--bg1);
}

/* ---- Page Header (interior) — legacy, mantenido por compatibilidad ---- */
.page-header {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--ink-10);
  position: relative;
  overflow: hidden;
  background-color: var(--bg1);
}

/* Blueprint grid texture — isometric lines evoking technical drawings */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-06) 1px, transparent 1px),
    linear-gradient(var(--ink-06) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--ink-06) 0.5px, transparent 0.5px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 40px;
  width: 420px;
  height: 340px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='340' viewBox='0 0 420 340'%3E%3Cpath d='M20 280 L280 30 L400 280' fill='none' stroke='rgba(61,158,166,0.18)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='6 4'/%3E%3Ccircle cx='280' cy='30' r='5' fill='none' stroke='rgba(61,158,166,0.25)' stroke-width='1.5'/%3E%3Ccircle cx='280' cy='30' r='2' fill='rgba(61,158,166,0.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-header .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .page-header::after {
    display: none;
  }
}

/* ============================================================
   404 — Fullscreen error page
   ============================================================ */
.error-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--bg1);
}

/* Grid blueprint de fondo */
.error-404__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0.5px, transparent 0.5px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* Gradiente de legibilidad */
.error-404__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, rgba(42, 33, 39, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.error-404__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 640px;
  width: 100%;
}

/* Número 404 gigante decorativo */
.error-404__code {
  font-family: var(--font);
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  margin: 0 0 -0.1em;
  pointer-events: none;
}

.error-404__title {
  font-family: var(--font);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--bg1);
  margin: 0 0 20px;
  line-height: 1.2;
}

.error-404__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--white-60);
  margin: 0 0 40px;
}

.error-404__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .error-404__actions {
    flex-direction: column;
    align-items: center;
  }

  .error-404__actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ============================================================
   PAGE HERO — hero oscuro tipo blueprint para páginas interiores
   (Nosotros, Servicios, Proyectos, Contacto)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .page-hero {
    height: 100svh;
    height: 100vh;
    min-height: 0;
  }
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.5;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      var(--ink) 0%,
      var(--ink) 40%,
      rgba(42, 33, 39, 0.72) 65%,
      rgba(42, 33, 39, 0.4) 100%);
  pointer-events: none;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--white-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 200px;
  padding-bottom: 64px;
}

.page-hero .breadcrumb {
  color: var(--white-45);
}

.page-hero .breadcrumb a {
  color: var(--white-70);
}

.page-hero .breadcrumb a:hover {
  color: var(--bg1);
}

.page-hero h1 {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--bg1);
  max-width: 760px;
  margin-bottom: 22px;
}

.page-hero h1 strong {
  font-weight: 700;
}

.page-hero .sub {
  font-size: 16px;
  color: var(--white-60);
  max-width: 560px;
}

.page-hero .stat-row {
  margin-top: 52px;
}

.page-hero .stat-row .n {
  color: var(--bg1);
}

.page-hero .stat-row .l {
  color: var(--white-40);
}

@media (max-width: 860px) {
  .page-hero {
    min-height: auto;
  }

  .page-hero .wrap {
    padding-top: 130px;
    padding-bottom: 48px;
  }

  .page-hero .stat-row {
    gap: 32px;
    margin-top: 36px;
  }
}

.breadcrumb {
  font-size: 12px;
  color: var(--ink-40);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--ink-60);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* ---- Carrusel Infinito ---- */
.carousel-track {
  display: flex;
  gap: 15px;
  animation: scroll 120s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  flex-shrink: 0;
  height: 60px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.carousel-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.carousel-item:hover {
  opacity: 0.7;
}

.carousel-mask {
  overflow: hidden;
  position: relative;
}

.carousel-mask::before,
.carousel-mask::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.carousel-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--bg1), transparent);
}

.carousel-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--bg1), transparent);
}

/* ---- Cards ---- */
.card {
  background: var(--bg2);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  background: var(--bg1);
  box-shadow: 0 20px 60px rgba(59, 49, 53, 0.08);
}

.card-number {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}

/* ---- Service Accordion ---- */
.service-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s ease;
  opacity: 0;
}

.card:hover .service-expand,
.card.active .service-expand {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
}

.service-expand ul {
  list-style: none;
  padding: 0;
}

.service-expand li {
  font-size: 13px;
  color: var(--ink-60);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.service-expand li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- Project Grid ---- */
.project-grid {
  display: grid;
  gap: 1px;
  background: var(--ink-10);
}

.project-grid.featured {
  grid-template-columns: 1.2fr 1fr;
}

.project-grid.featured .project-card:first-child {
  grid-row: span 2;
}

@media (max-width: 960px) {
  .project-grid.featured {
    grid-template-columns: 1fr;
  }

  .project-grid.featured .project-card:first-child {
    grid-row: span 1;
  }
}

.project-card {
  position: relative;
  background: var(--bg2);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-grid.featured .project-card {
  height: 100%;
}

.project-grid.featured .project-card:first-child {
  aspect-ratio: auto;
}

.project-card img,
.project-card .project-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.8s var(--ease-out);
}

.project-card:hover img,
.project-card:hover .project-visual {
  transform: scale(1.04);
  filter: grayscale(0.6);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink-92) 0%, rgba(59, 49, 53, 0.30) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px;
  color: var(--bg1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s var(--ease-out);
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-card .project-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  font-weight: 500;
}

.project-card .project-info h4 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
}

.project-card .project-info .loc {
  font-size: 13px;
  color: var(--white-60);
  margin-bottom: 12px;
  font-weight: 300;
}

.project-card .project-info .ficha {
  font-size: 12px;
  color: var(--white-80);
  border-top: 1px solid var(--white-20);
  padding-top: 12px;
  margin-top: 12px;
  line-height: 1.6;
}

.project-card .num-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 11px;
  color: var(--ink-40);
  z-index: 3;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---- Filtros (sticky, estilo galería editorial) ---- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--ink-10);
  padding: 18px 0 24px;
  position: sticky;
  top: 78px;
  z-index: 20;
  background: var(--white-90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filtro {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--ink-40);
  font-family: var(--font);
  font-weight: 400;
  transition: all 0.3s ease;
}

.filtro.active,
.filtro:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---- Team ---- */
.team-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--ink-10);
}

.team-card:first-child {
  padding-top: 0;
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.team-card:hover img {
  filter: grayscale(0.3);
}

.team-card .rol {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0 20px;
  display: block;
  font-weight: 500;
}

.team-card p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.8;
  max-width: 520px;
}

.team-card__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
}

.team-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-60);
  transition: color 0.3s ease;
}

.team-card__links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .team-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---- Team Card v2 (Prototipo 3 columnas) ---- */
.team-card-v2 {
  display: grid;
  grid-template-columns: 1fr 340px 1.2fr;
  gap: 48px;
  align-items: stretch;
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-10);
}

.team-card-v2:first-child {
  padding-top: 0;
}

/* Columna 1: Identidad */
.team-card-v2__identity {
  display: flex;
  flex-direction: column;
}

.team-card-v2__identity h3 {
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.team-card-v2__identity h3 .prefix {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.team-card-v2__identity .rol {
  font-size: 14px;
  color: var(--ink-80);
  font-weight: 500;
  margin-bottom: 24px;
}

.team-card-v2__links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-bottom: auto;
  /* Empuja especialización al fondo */
}

.team-card-v2__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-40);
  transition: color 0.3s ease;
  text-decoration: none;
}

.team-card-v2__links a:hover {
  color: var(--accent);
}

/* Columna 2: Imagen */
.team-card-v2__image {
  background-color: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-v2__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  mix-blend-mode: multiply;
  /* Integrar fondo de la foto si es blanco con el gris */
}

/* Columna 3: Biografía */
.team-card-v2__bio {
  display: flex;
  flex-direction: column;
}

.team-card-v2__bio p {
  font-size: 14px;
  color: var(--ink-80);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 90%;
}

.team-card-v2__bio p:last-of-type {
  margin-bottom: 0;
}

.team-card-v2__nav {
  margin-top: auto;
  /* Lo empuja abajo */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.team-card-v2__nav .nav-count {
  font-size: 12px;
  color: var(--ink-40);
  font-weight: 500;
}

.team-card-v2__nav .nav-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink-20);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-card-v2__nav .nav-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg1);
}

/* Responsive */
@media (max-width: 1024px) {
  .team-card-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .team-card-v2__image {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .team-card-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-card-v2__image {
    grid-column: 1;
  }

  .team-card-v2__bio p {
    max-width: 100%;
  }

  .team-card-v2__nav {
    margin-top: 32px;
  }
}

/* ---- Form ---- */
.form-field {
  margin-bottom: 32px;
  position: relative;
}

.form-field label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  margin-bottom: 12px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-20);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 0;
  font-weight: 300;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
}

.form-field select option {
  color: #111;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero__image img {
    opacity: 0.62;
  }

  .page-hero__overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(42, 33, 39, 0.5) 0%,
        rgba(42, 33, 39, 0.2) 55%,
        rgba(42, 33, 39, 0.05) 100%
      ),
      linear-gradient(
        to right,
        rgba(42, 33, 39, 0.9) 0%,
        rgba(42, 33, 39, 0.62) 45%,
        rgba(42, 33, 39, 0.38) 75%,
        rgba(42, 33, 39, 0.22) 100%
      );
  }
}

/* ---- Dark Sections ---- */
.dark-section {
  background: var(--ink);
  color: var(--bg1);
  padding: 100px 0;
}

.dark-section .eyebrow {
  color: var(--accent);
  opacity: 0.85;
}

.dark-section p.lead {
  color: var(--white-50);
}

/* ---- Stats ---- */
.stat-row {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-row .n {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-row .l {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 10px;
  font-weight: 400;
}

.dark-section .stat-row .l {
  color: var(--white-40);
}

/* ---- Legacy / Flagship Projects ---- */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-12);
}

.legacy-item {
  background: var(--ink);
  padding: 44px 36px;
  border-left: 2px solid transparent;
  transition: all 0.4s ease;
}

.legacy-item:hover {
  border-left-color: var(--accent);
}

.legacy-item .n {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 18px;
}

.legacy-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--bg1);
  font-weight: 600;
}

.legacy-item p {
  font-size: 13.5px;
  color: var(--white-50);
  line-height: 1.7;
  font-weight: 300;
}

.legacy-item.highlight {
  background: var(--accent);
  border-left-color: var(--accent);
}

.legacy-item.highlight .n {
  color: var(--ink);
}

.legacy-item.highlight h4 {
  color: var(--ink);
}

.legacy-item.highlight p {
  color: var(--ink-75);
}

@media (max-width: 860px) {
  .legacy-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Section Spacing ---- */
section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.section-head h2 {
  max-width: 600px;
}

/* ---- Mobile Menu ---- */
/* ============================================================
   SITE OVERLAY — Menú fullscreen
   ============================================================ */
.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  /* Oculto: escala hacia arriba y transparente */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s var(--ease-smooth);
}

.site-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Contenedor interior: usa toda la altura */
.site-overlay__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 48px 48px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Logo en la esquina superior izquierda del overlay */
.site-overlay__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-overlay__brand img {
  height: 32px;
  width: auto;
}

/* Navegación: links grandes centrados verticalmente */
.site-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
}

.site-overlay__link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
  text-decoration: none;
  transition: gap 0.4s var(--ease-out);
  overflow: hidden;
}

.site-overlay__link:first-child {
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.site-overlay__link:hover {
  gap: 32px;
}

.site-overlay__num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 245, 245, 0.3);
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
  transform: translateY(-2px);
}

.site-overlay__text {
  font-size: clamp(36px, 6vw, 50px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bg1);
  line-height: 1;
  transition: color 0.3s ease, transform 0.4s var(--ease-out);
  transform: translateX(0);
  display: block;
}

.site-overlay__link:hover .site-overlay__text {
  color: rgba(245, 245, 245, 0.6);
}

.site-overlay__link.active .site-overlay__text {
  font-weight: 500;
}

/* Footer del overlay: CTA + dirección */
.site-overlay__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.site-overlay__cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg1);
  border: 1px solid rgba(245, 245, 245, 0.35);
  padding: 12px 28px;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-overlay__cta:hover {
  background: var(--bg1);
  color: var(--ink);
}

.site-overlay__address {
  font-size: 12px;
  color: rgba(245, 245, 245, 0.35);
  letter-spacing: 0.05em;
}

/* Animación de entrada de los links */
.site-overlay.is-open .site-overlay__link {
  animation: overlayLinkIn 0.6s var(--ease-out) both;
}

.site-overlay.is-open .site-overlay__link:nth-child(1) {
  animation-delay: 0.05s;
}

.site-overlay.is-open .site-overlay__link:nth-child(2) {
  animation-delay: 0.10s;
}

.site-overlay.is-open .site-overlay__link:nth-child(3) {
  animation-delay: 0.15s;
}

.site-overlay.is-open .site-overlay__link:nth-child(4) {
  animation-delay: 0.20s;
}

.site-overlay.is-open .site-overlay__link:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes overlayLinkIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: menos padding en móvil */
@media (max-width: 640px) {
  .site-overlay__inner {
    padding: 24px 24px 36px;
  }

  .nav-minimal {
    padding: 20px 24px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  .site-overlay,
  .site-overlay.is-open .site-overlay__link {
    transition: none;
    animation: none;
  }
}

/* ============================================================
   HOME — Hero (Split Asymmetric Layout)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--ink);
}

.hero-split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
}

/* Left panel — text content */
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px 72px 80px 48px;
}

@media (max-width: 1200px) {
  .hero-left {
    padding: 180px 48px 80px 48px;
  }
}

/* Right panel — image with clip-path diagonal cut */
.hero-right {
  position: relative;
  overflow: hidden;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform 8s ease-out;
}

.hero:hover .hero-right img {
  transform: scale(1.03);
}

/* Gradient overlay on image panel */
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Decorative engineering line — diagonal SVG trace */
.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero h1 {
  color: var(--bg1);
  margin-bottom: 32px;
  max-width: 680px;
}

.hero-sub {
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Stats row — vertical layout in left column */
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--white-12);
}

.hero-stats .n {
  font-family: var(--font);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--bg1);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stats .l {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  font-weight: 500;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    height: 50vw;
    clip-path: polygon(0% 8%, 100% 0%, 100% 100%, 0% 100%);
  }

  .hero-left {
    padding: 140px 24px 48px;
  }

  .hero-stats {
    gap: 32px;
  }
}

/* ============================================================
   HOME — Services Quick
   ============================================================ */

.services-quick {
  background: var(--bg1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-10);
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg2);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  cursor: default;
  border-left: 3px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  background: var(--bg1);
  box-shadow: 0 16px 48px var(--ink-06);
}

.service-card .num {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card>p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}

.service-subs {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease-out), opacity 0.5s ease, margin 0.4s ease;
  margin-top: 0;
}

.service-card:hover .service-subs,
.service-card:focus-within .service-subs {
  max-height: 500px;
  opacity: 1;
  margin-top: 28px;
}

.service-subs ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ink-10);
  padding-top: 20px;
}

.service-subs li {
  font-size: 13.5px;
  color: var(--ink-60);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.6;
  font-weight: 300;
}

.service-subs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.service-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--ink-06);
  border-left: 2px solid var(--accent);
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================================
   HOME — Featured Projects
   ============================================================ */

.featured-projects .project-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.featured-projects .project-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.featured-projects .project-card:not(:first-child) {
  aspect-ratio: 1/1;
}

@media (max-width: 960px) {
  .featured-projects .project-grid {
    grid-template-columns: 1fr;
  }

  .featured-projects .project-card:first-child {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}

/* ============================================================
   HOME — Clients
   ============================================================ */

.clients-section {
  background: var(--bg1);
  padding: 100px 0;
}

.clients-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.impact-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.impact-stats span {
  font-size: 13px;
  color: var(--ink-40);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.impact-stats strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   HOME — Contact Preview
   ============================================================ */

.contact-preview {
  background: var(--ink);
  color: var(--bg1);
  padding: 100px 0;
}

.contact-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.contact-preview h2 {
  color: var(--bg1);
  margin-bottom: 24px;
}

.contact-preview p {
  color: var(--white-55);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 440px;
}

.contact-preview .datos {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--white-15);
  padding-top: 32px;
}

.contact-preview .datos b {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10.5px;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-preview .datos span {
  font-size: 14px;
  color: var(--white-60);
  font-weight: 300;
}

@media (max-width: 860px) {
  .contact-preview-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ============================================================
   NOSOTROS — Sectors Grid
   ============================================================ */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-10);
  margin-bottom: 120px;
}

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

@media (max-width: 560px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

.sector-item {
  background: var(--bg1);
  padding: 44px 36px;
  transition: all 0.4s var(--ease-out);
}

.sector-item:hover {
  background: var(--bg2);
}

.sector-item .n {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}

.sector-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sector-item p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   NOSOTROS — About Intro
   ============================================================ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-bottom: 120px;
}

@media (max-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.about-intro p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.9;
  font-weight: 300;
}

.about-intro p strong {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}

.about-intro p strong::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
}

.about-intro p+p {
  margin-top: 24px;
}

/* ============================================================
   NOSOTROS — Team
   ============================================================ */

.team-section {
  background: var(--bg1);
}

.team-header {
  max-width: 700px;
  margin-bottom: 80px;
}

.team-header .eyebrow {
  color: var(--accent);
}

.team-header p {
  font-size: 17px;
  color: var(--ink-60);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 20px;
}

/* ============================================================
   NOSOTROS — Foto del equipo
   ============================================================ */

.team-photo {
  margin-bottom: 80px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.team-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.team-photo:hover img {
  filter: grayscale(0%);
}

.team-photo .swiper-pagination {
  bottom: 24px;
}

.team-photo .swiper-pagination-bullet {
  background: var(--bg);
  opacity: 0.5;
  width: 10px;
  height: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-photo .swiper-pagination-bullet-active {
  background: var(--bg);
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================================
   SERVICIOS — Service Detail
   ============================================================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-10);
}

.service-detail:first-child {
  padding-top: 0;
}

@media (max-width: 860px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.service-detail .num {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink-10);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.service-detail h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.service-detail p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-detail ul {
  list-style: none;
  padding: 0;
}

.service-detail ul li {
  font-size: 14px;
  color: var(--ink-60);
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--ink-06);
  line-height: 1.6;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.service-visual {
  background: var(--bg2);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.service-detail:hover .service-visual img {
  filter: grayscale(0.3);
}

/* ============================================================
   SERVICIOS — Process
   ============================================================ */

.process-section {
  background: var(--ink);
  color: var(--bg1);
  padding: 100px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-top: 40px;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.process-step .n {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.process-step h4 {
  font-size: 20px;
  margin-bottom: 16px;
}

.process-step p {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   PROYECTOS — Single: barra de meta (ubicación, área, cliente…)
   ============================================================ */

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-10);
}

.project-meta__item {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-60);
}

.project-meta__item strong {
  font-weight: 500;
  color: var(--ink);
  margin-right: 4px;
}

.project-meta__link {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.project-meta__link:hover {
  opacity: 0.75;
}

/* ============================================================
   PROYECTOS — Grid
   ============================================================ */

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-10);
}

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

@media (max-width: 620px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
  }
}

.proyecto {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg2);
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}

.proyecto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.8s var(--ease-out);
}

.proyecto:hover img {
  transform: scale(1.04);
  filter: grayscale(0.5);
}

.proyecto .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink-92) 0%, var(--ink-20) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.proyecto:hover .overlay {
  opacity: 1;
}

.proyecto .num-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 11px;
  color: var(--ink-40);
  z-index: 3;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.proyecto:hover .num-tag {
  color: var(--white-60);
}

.proyecto .cliente-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  color: var(--ink-30);
  text-align: right;
  max-width: 130px;
  font-weight: 400;
  transition: color 0.3s;
}

.proyecto:hover .cliente-tag {
  color: var(--white-50);
}

.proyecto .proyecto-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  color: var(--bg1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s var(--ease-out);
  z-index: 2;
}

.proyecto:hover .proyecto-info {
  transform: translateY(0);
  opacity: 1;
}

.proyecto .proyecto-info h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.proyecto .proyecto-info .loc {
  font-size: 12px;
  color: var(--white-60);
  margin-bottom: 10px;
  font-weight: 300;
}

.proyecto .proyecto-info .ficha {
  font-size: 11px;
  color: var(--white-85);
  border-top: 1px solid var(--white-20);
  padding-top: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.proyecto .proyecto-info .desc {
  font-size: 11.5px;
  color: var(--white-65);
  margin-top: 8px;
  font-weight: 300;
  line-height: 1.5;
}

/* ============================================================
   PROYECTOS — Toolbar (búsqueda + filtros dropdown + orden)
   Inspirado en el patrón de portafolios editoriales de arquitectura:
   buscador, dropdowns de tipo/ubicación y orden por fecha/alfabético.
   ============================================================ */

.proy-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-bottom: 40px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--ink-10);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white-90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Buscador ---- */
.proy-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
}

.proy-search svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-40);
  pointer-events: none;
}

.proy-search input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--ink-10);
  background: none;
  padding: 0 0 10px 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.3s ease;
}

.proy-search input::placeholder {
  color: var(--ink-40);
}

.proy-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

/* ---- Dropdown filtros ---- */
.proy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.proy-filter {
  position: relative;
}

/* Select nativo — oculto en desktop, visible en mobile (ver media query) */
.proy-filter__native {
  display: none;
}

.proy-filter__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 0 0 10px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.proy-filter__toggle svg {
  width: 9px;
  height: 9px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.proy-filter__toggle:hover,
.proy-filter.is-open .proy-filter__toggle,
.proy-filter--active .proy-filter__toggle {
  color: var(--ink);
  border-color: var(--ink);
}

.proy-filter.is-open .proy-filter__toggle svg {
  transform: rotate(180deg);
}

.proy-filter--active .proy-filter__toggle {
  color: var(--accent);
  border-color: var(--accent);
}

.proy-filter__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--bg1);
  border: 1px solid var(--ink-10);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s var(--ease-out);
}

.proy-filter.is-open .proy-filter__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.proy-filter__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-75);
  padding: 11px 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.proy-filter__item:hover {
  background: var(--bg2);
  color: var(--ink);
}

.proy-filter__item.active {
  color: var(--accent);
  font-weight: 500;
}

/* ---- Orden ---- */
.proy-orderby {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.proy-orderby__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 0 0 10px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.proy-orderby__btn svg {
  width: 10px;
  height: 10px;
}

.proy-orderby__btn:hover {
  color: var(--ink-60);
}

.proy-orderby__btn.active {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  .proy-toolbar {
    position: relative;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    top: 0;
    gap: 18px;
  }

  .proy-search {
    flex: none;
    max-width: 100%;
  }

  .proy-orderby {
    margin-left: 0;
  }

  /* En mobile se usa el <select> nativo con apariencia nativa (sin
     appearance:none) para que iOS/Android abran el picker del sistema. */
  .proy-filters {
    flex-direction: column;
    gap: 0;
  }

  .proy-filter {
    width: 100%;
  }

  .proy-filter + .proy-filter {
    margin-top: 28px;
  }

  .proy-filter__toggle,
  .proy-filter__menu {
    display: none;
  }

  .proy-filter__native {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--ink-10);
    border-radius: 0;
    background-color: transparent;
    padding: 0 4px 12px 0;
    min-height: 48px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-60);
  }

  .proy-filter__native:focus {
    outline: none;
    border-bottom-color: var(--ink);
  }

  .proy-filter--active .proy-filter__native {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
}

/* ---- Estado vacío ---- */
.proy-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-40);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ============================================================
   PROYECTOS — Contador & CTA
   ============================================================ */

.contador {
  font-size: 13px;
  color: var(--ink-40);
  margin-bottom: 40px;
  font-weight: 300;
}

.cta-bottom {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--ink-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-bottom p {
  font-size: 15px;
  color: var(--ink-60);
  max-width: 420px;
  font-weight: 300;
  line-height: 1.7;
}

.cta-bottom h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ============================================================
   CONTACTO — Contact
   ============================================================ */

.contact-hero {
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--ink-10);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info>p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 440px;
  font-weight: 300;
}

.contact-datos {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-dato h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-dato p,
.contact-dato a {
  font-size: 15px;
  color: var(--ink-80);
  line-height: 1.7;
  font-weight: 300;
}

.contact-dato a:hover {
  color: var(--ink);
}

.contact-form-wrapper {
  background: var(--bg2);
  padding: 56px 48px;
}

@media (max-width: 560px) {
  .contact-form-wrapper {
    padding: 40px 28px;
  }
}

.contact-form-wrapper h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-form-wrapper>p {
  font-size: 14px;
  color: var(--ink-60);
  margin-bottom: 40px;
  font-weight: 300;
}

/* ============================================================
   CONTACTO — Map
   ============================================================ */

.map-section {
  padding: 0 0 120px;
}

.map-container {
  width: 100%;
  height: 400px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.map-drag-blocker {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: grab;
  z-index: 2;
  /* Bloquea click y drag, pero deja pasar el scroll/zoom via JS */
}

/* El overlay con el botón se muestra solo al hacer hover */
.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 49, 53, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.map-container:hover .map-overlay {
  opacity: 1;
  pointer-events: none;
  /* el bloqueador sigue encima; el link se accede via z-index del a */
}

.map-overlay a {
  position: relative;
  z-index: 4;
  pointer-events: all;
  background: var(--bg1);
  color: var(--ink);
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.map-overlay a:hover {
  background: var(--ink);
  color: var(--bg1);
}

.map-iframe {
  border: 0;
  filter: grayscale(1);
  /* pointer-events manejados por JS: activa brevemente al hacer scroll */
}

/* ============================================================
   SECTION MODIFIERS
   ============================================================ */

.section--bg2 {
  background: var(--bg2);
  padding: 100px 0;
}

.section--nopt {
  padding-top: 0;
}

.section--cta {
  padding: 100px 0;
  text-align: center;
}

.cta__heading {
  max-width: 600px;
  margin: 20px auto 30px;
}

.cta__lead {
  margin: 0 auto 40px;
}

/* ============================================================
   GRIDS — reusable
   ============================================================ */

.grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-10);
}

.grid--4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--white-10);
}

@media (max-width: 860px) {
  .grid--3col {
    grid-template-columns: 1fr;
  }

  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid--4col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FEATURE CARDS — used in servicios especialidades & contacto docs
   ============================================================ */

.feature-card {
  background: var(--bg1);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg2);
}

.feature-card--dark {
  background: var(--ink);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease-out);
}

.feature-card--dark:hover {
  transform: translateY(-4px);
}

.feature-card__num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.7;
  font-weight: 300;
}

.feature-card--dark .feature-card__title {
  color: var(--bg1);
}

.feature-card--dark .feature-card__desc {
  color: var(--white-55);
}

/* ============================================================
   VALUE CARDS — used in nosotros valores
   ============================================================ */

.value-card {
  background: var(--ink);
  padding: 44px 36px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.value-card__num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.value-card__title {
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card__desc {
  font-size: 13.5px;
  color: var(--white-50);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   DOC CARD — used in contacto documentación
   ============================================================ */

.doc-card {
  display: block;
  background: var(--bg1);
  padding: 40px 32px;
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

a.doc-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.doc-card:hover {
  background: var(--bg2);
  transform: translateY(-4px);
}

.doc-card__num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.doc-link {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================================
   CONTACT PREVIEW IMAGE
   ============================================================ */

.contact-preview__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(1);
}

/* ============================================================
   LINKEDIN LINK LIGHT
   ============================================================ */

.linkedin-link--light {
  color: var(--white-60);
  text-decoration: underline;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.text-center {
  text-align: center;
}

.mt-60 {
  margin-top: 60px;
}

.mt-50 {
  margin-top: 50px;
}

.mb-64 {
  margin-bottom: 64px;
}

.about-intro__heading {
  margin-top: 16px;
  max-width: 500px;
}

/* ============================================================
   PROYECTOS — Toggle de vista (grilla / listado)
   ============================================================ */

.proy-view {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.proy-view__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink-10);
  background: none;
  cursor: pointer;
  color: var(--ink-40);
  transition: all 0.3s ease;
}

.proy-view__btn svg {
  width: 16px;
  height: 16px;
}

.proy-view__btn:hover {
  color: var(--ink-60);
  border-color: var(--ink-20);
}

.proy-view__btn.active {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  .proy-view {
    margin-left: 0;
  }
}

/* ---- Vista listado ---- */
.proyectos-grid--list {
  grid-template-columns: 1fr;
  gap: 0;
}

.proyectos-grid--list .proyecto {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 22px 24px;
  background: transparent;
  border-bottom: 1px solid var(--ink-10);
  transition: background 0.35s var(--ease-out);
}

.proyectos-grid--list .proyecto:first-child {
  border-top: 1px solid var(--ink-10);
}

.proyectos-grid--list .proyecto:hover {
  background: var(--bg1);
}

.proyectos-grid--list .proyecto img {
  display: none;
}

.proyectos-grid--list .proyecto .overlay,
.proyectos-grid--list .proyecto .num-tag,
.proyectos-grid--list .proyecto .cliente-tag {
  display: none;
}

.proyectos-grid--list .proyecto .proyecto-info {
  position: static;
  opacity: 1;
  transform: none;
  color: var(--ink);
  padding: 0;
}

.proyectos-grid--list .proyecto .proyecto-info h4 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.proyectos-grid--list .proyecto .proyecto-info .loc {
  color: var(--ink-55);
  font-size: 14px;
  margin: 0;
}

.proyectos-grid--list .proyecto .proyecto-info .ficha {
  display: inline-block;
  color: var(--ink-60);
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  padding: 5px 12px;
  margin-top: 12px;
  width: fit-content;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .proyectos-grid--list .proyecto {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .proyectos-grid--list .proyecto .proyecto-info h4 {
    font-size: 17px;
  }
}

/* ============================================================
   PROYECTOS — Card corta (proyectos sin foto)
   ============================================================ */

.proyecto--short {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--ink-10);
  cursor: pointer;
  transition: background 0.35s var(--ease-out);
}

.proyecto--short:hover {
  background: var(--bg1);
}

.proyecto--short__num {
  font-size: 11px;
  color: var(--ink-40);
  font-weight: 500;
}

.proyecto--short .proyecto-info {
  position: static;
  opacity: 1;
  transform: none;
  color: var(--ink);
  padding: 0;
}

.proyecto--short .proyecto-info h4 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.proyecto--short .proyecto-info .loc {
  color: var(--ink-55);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 560px) {
  .proyecto--short {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .proyecto--short .proyecto-info h4 {
    font-size: 16px;
  }
}

/* ============================================================
   PROYECTOS — Paginación
   ============================================================ */

.proy-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.proy-page {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-10);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.proy-page:hover:not(:disabled) {
  border-color: var(--ink-40);
  background: var(--bg2);
}

.proy-page.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white-90);
}

.proy-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.proy-page--gap {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--ink-40);
}

/* ============================================================
   PROYECTOS — Modal de detalle (con carrusel de fotos)
   ============================================================ */

.proy-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth), visibility 0.35s;
}

.proy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.proy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 25, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.proy-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "carousel info"
    "carousel thumbs";
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg1);
  z-index: 1;
}

.proy-modal__panel--no-media {
  grid-template-columns: 1fr;
  grid-template-areas:
    "info";
}

.proy-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(247, 246, 244, 0.9);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.proy-modal__close svg {
  width: 20px;
  height: 20px;
}

.proy-modal__close:hover {
  background: var(--bg1);
}

.proy-modal__carousel {
  grid-area: carousel;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.proy-modal__carousel--none {
  display: none;
}

.proy-modal__stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}

.proy-modal__track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.proy-modal__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.proy-modal__img:hover {
  filter: grayscale(0);
}

.proy-modal__video {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}

.proy-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(247, 246, 244, 0.85);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.proy-modal__nav:hover {
  background: var(--bg1);
  transform: translateY(-50%) scale(1.06);
}

.proy-modal__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.proy-modal__nav--prev {
  left: 14px;
}

.proy-modal__nav--next {
  right: 14px;
}

.proy-modal__nav svg {
  width: 20px;
  height: 20px;
}

.proy-modal__counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(26, 22, 25, 0.62);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.proy-modal__thumbs {
  grid-area: thumbs;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 40px 40px;
  border-top: 1px solid var(--ink-10);
}

.proy-modal__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.proy-modal__thumb-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.proy-modal__thumb-badge svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.proy-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.proy-modal__thumb:hover {
  opacity: 0.9;
}

.proy-modal__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.proy-modal__thumb.is-active img {
  filter: grayscale(0);
}

.proy-modal__info {
  grid-area: info;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proy-modal__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.proy-modal__name {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.proy-modal__meta {
  font-size: 13px;
  color: var(--ink-55);
  font-weight: 300;
}

.proy-modal__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-60);
  font-weight: 300;
}

.proy-modal__cliente {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-10);
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: 0.04em;
}

.proy-modal__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}

.proy-modal__link:hover {
  opacity: 0.75;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .proy-modal {
    padding: 0;
    align-items: flex-end;
  }

  .proy-modal__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "carousel"
      "thumbs"
      "info";
    max-height: 92vh;
    width: 100%;
  }

  .proy-modal__stage {
    min-height: 280px;
  }

  .proy-modal__thumbs {
    padding: 12px 24px;
  }

  .proy-modal__info {
    padding: 28px 24px 40px;
  }
}

/* ============================================================
   Proyectos clickeables (home)
   ============================================================ */

[data-proyecto] {
  cursor: pointer;
}

[data-proyecto]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ============================================================
   CONTACTO — Nota WhatsApp (sin formulario)
   ============================================================ */

.contact-wa-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-55);
}

.contact-wa-note a {
  color: var(--accent);
  text-decoration: none;
}

.contact-wa-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTACTO — Banda de confianza (stats)
   ============================================================ */

.stats-band {
  background: var(--bg1);
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  padding: 56px 0;
}

.stats-band__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: stretch;
}

.stats-band__item {
  flex: 1;
  padding: 0 48px;
}

.stats-band__item:first-child {
  padding-left: 0;
}

.stats-band__item:last-child {
  padding-right: 0;
}

.stats-band__row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  margin-bottom: 12px;
}

.stats-band__plus {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-band__num {
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.stats-band__label {
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

.stats-band__sep {
  width: 1px;
  background: var(--ink-10);
  flex-shrink: 0;
  margin: 4px 0;
}

@media (max-width: 768px) {
  .stats-band__inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }

  .stats-band__item {
    padding: 0;
  }

  .stats-band__sep {
    width: 100%;
    height: 1px;
  }
}

.proyecto:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ============================================================
   Sliders — ocultar botones cuando no hay retroceso/avance
   ============================================================ */

.slider-btn--hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   TEAM — Campo especialidad
   ============================================================ */

.team-card-v2__identity .especialidad {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

/* Asegurar que rol quede debajo de especialidad */
.team-card-v2__identity .especialidad+.rol {
  margin-top: 0;
}