/* ═══════════════════════════════════════════════════════════════════════════
   HAUS HEALTHY BUILDINGS — Hoja de estilos principal
   Inspirado en Neolith: minimalismo, elegancia, premium
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. VARIABLES ─────────────────────────────────────────────────────── */
:root {
  /* Paleta */
  --c-bg:          #F5F4F0;
  --c-white:       #FFFFFF;
  --c-surface:     #ECEAE4;
  --c-ink:         #1A1A18;
  --c-ink-soft:    #3A3A36;
  --c-muted:       #7A7A72;
  --c-border:      #E0DED8;
  --c-accent:      #2D5A27;
  --c-accent-lt:   #4A8040;
  --c-accent-bg:   #EDF2EC;
  --c-accent-dark: #1C3B1A;
  --c-overlay:     rgba(26,26,24,0.55);

  /* Tipografía */
  --font-display:  'Montserrat', system-ui, sans-serif;
  --font-body:     'Montserrat', system-ui, sans-serif;

  /* Escala fluida */
  --text-xs:    clamp(0.75rem,  1vw,   0.8125rem);
  --text-sm:    clamp(0.875rem, 1.2vw, 0.9375rem);
  --text-base:  clamp(1rem,     1.4vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 2vw,   1.375rem);
  --text-xl:    clamp(1.5rem,   3vw,   2.25rem);
  --text-2xl:   clamp(2.25rem,  4.5vw, 4rem);
  --text-hero:  clamp(3.5rem,   8vw,   8rem);

  /* Espaciado */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   8rem;
  --sp-2xl: 14rem;

  /* Layout */
  --max-w:     1400px;
  --max-w-text: 740px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);

  /* Transiciones */
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --fast:    200ms;
  --mid:     450ms;
  --slow:    800ms;

  /* Bordes y sombras */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.14);
}


/* ─── 2. RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }


/* ─── 3. TIPOGRAFÍA BASE ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
h1 { font-size: var(--text-hero); letter-spacing: -0.03em; font-weight: 300; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 500; }
h5 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

p { max-width: var(--max-w-text); }
p + p { margin-top: 1em; }

.text-muted { color: var(--c-muted); }
.text-accent { color: var(--c-accent); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--c-ink-soft);
  line-height: 1.6;
}

article h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 2.5rem; margin-bottom: 1rem; }
article p, article li { max-width: var(--max-w-text); }
article ul, article ol { padding-left: 1.5rem; margin: 1rem 0; }
article ul { list-style: disc; }
article ol { list-style: decimal; }
article li { margin-bottom: 0.5rem; }
article strong { font-weight: 600; }
article blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--c-ink-soft);
}


/* ─── 4. LAYOUT ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad {
  padding-top:    clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.section-pad-sm {
  padding-top:    clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.bg-white   { background: var(--c-white); }
.bg-bg      { background: var(--c-bg); }
.bg-surface { background: var(--c-surface); }
.bg-accent  { background: var(--c-accent-bg); }
.bg-dark    { background: var(--c-ink); color: var(--c-white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--c-white); }
.bg-dark .overline { color: #7BC46F; }
.bg-dark p, .bg-dark li { color: rgba(255,255,255,0.75); }

/* Grid utilitarios */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }

/* Separador decorativo */
.divider {
  width: 48px;
  height: 2px;
  background: var(--c-accent);
  margin: 1.5rem 0;
}
.divider--center { margin-inline: auto; }

/* Espacio entre encabezado de sección y contenido */
.section-header { margin-bottom: clamp(2.5rem, 6vw, 5rem); }


/* ─── 5. BOTONES ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  border: 2px solid var(--c-accent);
}
.btn-primary:hover { background: var(--c-accent-lt); border-color: var(--c-accent-lt); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-white); }

.btn-outline-light {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--c-white); color: var(--c-ink); }

.btn-ghost {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after { content: ' →'; transition: transform var(--fast) var(--ease); display: inline-block; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-ghost:hover { color: var(--c-accent-lt); transform: none; }

.btn-sm { padding: 0.65rem 1.25rem; font-size: var(--text-xs); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: var(--text-base); }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }


/* ─── 6. NAVEGACIÓN ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease),
              backdrop-filter var(--mid) var(--ease);
}

/* Transparente sobre el hero */
.site-header.is-top {
  background: transparent;
}

/* Después del scroll: fondo blanco */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.logo-img {
  display: block;
  height: 30px;
  width: auto;
  filter: brightness(0) opacity(0.85);
  transition: filter var(--fast);
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--fast);
}
.is-top .logo-img  { filter: brightness(0) invert(1); }
.is-top .logo-sub  { color: rgba(255,255,255,0.6); }

/* Nav links */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.nav-list a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-ink);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--fast);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--c-accent);
  transition: right var(--fast) var(--ease);
}
.nav-list a:hover { color: var(--c-accent); }
.nav-list a:hover::after { right: 0; }
.is-top .nav-list a { color: rgba(255,255,255,0.85); }
.is-top .nav-list a:hover { color: var(--c-white); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.is-top .btn-primary {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: var(--c-white);
}
.is-top .btn-primary:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-ink);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--mid);
}
.is-top .nav-toggle-bar { background: var(--c-white); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay móvil */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid);
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }


/* ─── 6b. SELECTOR DE IDIOMA (BANDERAS) ──────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
  flex-shrink: 0;
  opacity: 0.55;
}

.lang-flag svg {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.lang-flag:hover {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.lang-flag--active {
  opacity: 1;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(45,90,39,0.2);
}

/* Sobre fondo oscuro (hero) */
.is-top .lang-flag--active {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.is-top .lang-flag { opacity: 0.5; }
.is-top .lang-flag:hover,
.is-top .lang-flag--active { opacity: 1; }


/* ─── 7. HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--c-ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
/* Vídeo de fondo: anula el reset global img,video y cubre el hero entero */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,8,0.80) 0%,
    rgba(10,10,8,0.35) 60%,
    rgba(10,10,8,0.15) 100%
  );
}

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

.hero-content .container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero h1 {
  color: var(--c-white);
  max-width: 30ch;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 56ch;
  line-height: 1.6;
  font-weight: 300;
}

/* Hero secundario (páginas interiores) */
.page-hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-ink);
  min-height: 60vh;
}

.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero h1 {
  color: var(--c-white);
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 18ch;
}

.page-hero .lead { color: rgba(255,255,255,0.70); }


/* ─── 8. CARDS ───────────────────────────────────────────────────────────── */
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-img {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  overflow: hidden;
  position: relative;
  background: var(--c-surface);
}
.proj-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.7s ease;
  z-index: 0;
}
.proj-carousel__slide.active {
  transform: translateX(0);
  z-index: 1;
}
.proj-carousel__slide.leaving {
  transform: translateX(-100%);
  z-index: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }

/* Placeholder de imagen (cuando no hay foto real) */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.card-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card-excerpt {
  color: var(--c-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1;
}

.card-awards {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--c-accent-bg);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-sm);
}
.card-awards__icon {
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: 2px;
}
.card-awards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-awards ul li {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-accent-dark);
  line-height: 1.4;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
  font-size: var(--text-xs);
  color: var(--c-muted);
}

/* Card de servicio */
.service-card {
  background: var(--c-accent-dark, #1a3a18);
  border: none;
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), background var(--mid) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (hover: hover) {
  .service-card:hover { background: var(--c-ink); }
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}

.service-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-top: 0.25rem;
  color: #fff;
}

.service-card p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); }
.service-card .btn-ghost { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); padding-right: 2rem; justify-content: center; }
.service-card .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }


/* ─── 9. FORMULARIOS ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink-soft);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: var(--text-base);
  transition: border-color var(--fast), box-shadow var(--fast);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.12);
}
.form-control::placeholder { color: var(--c-muted); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }

.form-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: none;
}
.form-msg.success { background: var(--c-accent-bg); color: var(--c-accent-dark); border: 1px solid var(--c-accent); }
.form-msg.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-msg.visible { display: block; }


/* ─── 10. CERTIFICACIONES (badges) ──────────────────────────────────────── */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cert-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  background: var(--c-white);
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.cert-badge:hover, .cert-badge.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

/* ─── 11. MÉTRICAS / STATS ───────────────────────────────────────────────── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 4rem);
}
.stat-item { flex: 1; min-width: 140px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--c-muted);
  font-weight: 400;
}


/* ─── 12. BLOQUE SPLIT (imagen + texto) ──────────────────────────────────── */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 60vh;
}
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  background: var(--c-surface);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Carrusel dentro de split-image */
.sost-carousel .sost-carousel__slide {
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.sost-carousel .sost-carousel__slide.active {
  opacity: 1;
  z-index: 1;
}
.split-image-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 6vw, 5rem);
  gap: 1.5rem;
}
.split-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.split-content ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--c-ink-soft);
}
.split-content ul li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--c-accent-bg);
  border: 1.5px solid var(--c-accent);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%232D5A27' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}


/* ─── 13. PROCESO / TIMELINE ──────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: steps;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-increment: steps;
  position: relative;
}
.process-step::before {
  content: counter(steps, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
}
.process-step__icon {
  color: var(--c-accent);
  line-height: 0;
  margin-bottom: -0.5rem;
}
.process-step__title { font-family: var(--font-display); font-size: var(--text-base) !important; font-weight: 600; }
.process-step p  { font-size: var(--text-sm); color: var(--c-muted); }


/* ─── 14. TESTIMONIAL ──────────────────────────────────────────────────────── */
.testimonial-block {
  border-left: 3px solid var(--c-accent);
  padding: 2rem 2.5rem;
  background: var(--c-accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--c-ink);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.testimonial-block cite { font-size: var(--text-sm); color: var(--c-muted); font-style: normal; }


/* ─── 15. FILTROS (PROYECTOS) ──────────────────────────────────────────────── */
.proyectos-filtros {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.filtros-grupo {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.filtros-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  min-width: 130px;
  padding-top: 0.5rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-white);
  cursor: pointer;
  transition: all var(--fast);
}
.filter-btn.is-disabled, .filter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.filter-btn:hover, .filter-btn.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}


/* ─── 16. FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-brand .logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-brand .logo-img { filter: brightness(0) invert(1); height: 30px; width: auto; display: block; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-brand p {
  margin-top: 1.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 32ch;
}

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--fast);
}
.footer-social a:hover { border-color: var(--c-white); color: var(--c-white); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--fast);
}
.footer-col a:hover { color: var(--c-white); }

.footer-col address { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col address p, .footer-col address a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.35); max-width: none; }
.footer-bottom a { color: rgba(255,255,255,0.35); margin-left: 1.25rem; transition: color var(--fast); }
.footer-bottom a:hover { color: var(--c-white); }


/* ─── 17. ANIMACIONES SCROLL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ─── 18. UTILIDADES ──────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.full-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-bg);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}


/* ─── 19. RESPONSIVE ──────────────────────────────────────────────────────── */

/* Ocultar el item de contacto del menú en escritorio (solo móvil) */
.nav-contact-mobile { display: none; }

/* Tablet landscape / desktop reducido (≤1024px) */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split-block { grid-template-columns: 1fr; }
  .split-block.reverse { direction: ltr; }
  .split-image { min-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* grid-3 en tablet horizontal: 2 columnas para respirar */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait / móvil grande (≤768px) */
@media (max-width: 768px) {
  /* Header / Nav móvil */
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--c-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2.5rem 3rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--mid) var(--ease-out);
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.is-open { right: 0; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--c-border); }
  .nav-list a::after { display: none; }
  .is-top .nav-list a { color: var(--c-ink); }
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }

  /* CTA de contacto: ocultar el del header en móvil, mostrar dentro del menú */
  .header-actions > a.btn { display: none; }
  .nav-contact-mobile { display: block; margin-top: 1.25rem; }
  .nav-contact-mobile a.btn { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; border-bottom: none !important; font-size: 1rem; color: #fff !important; }
  .nav-list .nav-contact-mobile a { border-bottom: none; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a:first-of-type { margin-left: 0; }

  /* Stats */
  .stats-row { gap: 2rem; }
  .stat-item { min-width: 120px; }

  /* Touch targets cómodos */
  .btn { min-height: 44px; }
  .nav-list a { min-height: 44px; display: flex; align-items: center; }

  /* Hero no encajona demasiado en móvil */
  .hero { min-height: 85svh; }
}

/* Móvil pequeño (≤480px) */
@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-pad { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
}

/* Móvil muy pequeño (≤380px, iPhone SE, etc.) */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .page-hero h1 { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .stats-row { flex-wrap: wrap; gap: 1.5rem; }
  .stat-item { min-width: 100px; }
}

/* ─── SCRAMBLE TEXT ──────────────────────────────────────────────────── */
.scramble-section {
  background: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.scramble-inner {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}
.scramble-line {
  font-family: 'Montserrat', sans-serif;
  color: var(--c-ink);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-align: center;
  transition: font-size 0.6s ease, font-weight 0.4s ease;
}
.scramble-rnd {
  color: var(--c-accent);
  opacity: 0.6;
}

/* ─── EXPERTOS EN SOSTENIBILIDAD ──────────────────────────────────────── */
.expertos-sost {
  position: relative;
  min-height: 691px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a18;
}
.expertos-sost__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
.expertos-sost__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.33);
  z-index: 1;
}
.expertos-sost__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.expertos-sost__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}
.expertos-sost__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.625rem);
  color: #fff;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.expertos-sost__sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  color: #fff;
  max-width: 480px;
  line-height: 1.55;
  margin: 0 0 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .expertos-sost { min-height: 521px; }
}

/* ─── Icono área de clientes ─────────────────────────────────────────────── */
.client-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  color: var(--c-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.client-icon:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(45,90,39,.06);
}
.client-icon--active {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(45,90,39,.08);
}
.is-top .client-icon {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.is-top .client-icon:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.12);
}
