/* ==========================================================================
   GTI Soluciones Constructivas — Landing
   Palette:  #E1E9E5  #1E1E1E  #1DB3A7  #8E9290  #BEBEBE
   Type:     Montserrat + IBM Plex Serif (italic accent)
   ========================================================================== */

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --paper: #FAFBFA;
  --paper-tint: #E1E9E5;
  --paper-tint-soft: #EEF2EF;
  --ink: #1E1E1E;
  --ink-soft: #2A2A2A;
  --jade: #1DB3A7;
  --jade-hover: #189D93;
  --jade-glow: rgba(29, 179, 167, 0.24);
  --mute: #8E9290;
  --line: #BEBEBE;
  --line-soft: rgba(30, 30, 30, 0.08);
  --line-softer: rgba(30, 30, 30, 0.05);

  /* Typography */
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'IBM Plex Serif', ui-serif, Georgia, serif;

  /* Radius (documented rule: buttons pill, cards 24px, small cards 16px, inputs 12px) */
  --r-card: 24px;
  --r-card-sm: 16px;
  --r-input: 12px;
  --r-pill: 999px;

  /* Shadows (tinted, not pure black) */
  --shadow-sm: 0 2px 8px rgba(30, 30, 30, 0.04), 0 1px 2px rgba(30, 30, 30, 0.04);
  --shadow-md: 0 12px 32px rgba(30, 30, 30, 0.06), 0 2px 8px rgba(30, 30, 30, 0.04);
  --shadow-lg: 0 24px 64px rgba(30, 30, 30, 0.09), 0 8px 16px rgba(30, 30, 30, 0.04);
  --shadow-jade: 0 12px 32px rgba(29, 179, 167, 0.20);

  /* Timing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
}

/* Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

::selection { background: var(--jade); color: #fff; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

/* Cinematic grain (fixed overlay, pointer-safe) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.12 0 0 0 0 0.12 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Common ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--jade);
  box-shadow: 0 0 0 4px var(--jade-glow);
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.section-label--on-dark { color: rgba(255,255,255,0.60); }

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.section-header__body {
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 60ch;
  margin-top: 20px;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 18px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  padding-bottom: 2px;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn iconify-icon { font-size: 16px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 15px; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
  box-shadow: var(--shadow-jade);
  transform: translateY(-1px);
}

.btn--jade {
  background: var(--jade);
  color: #fff;
  border-color: var(--jade);
  box-shadow: var(--shadow-jade);
}
.btn--jade:hover {
  background: var(--jade-hover);
  border-color: var(--jade-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--on-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 80;
  transition: top var(--dur) var(--ease);
}
.nav__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 14px 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(250, 251, 250, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(30, 30, 30, 0.06);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  margin: 0 clamp(16px, 3vw, 32px);
}
.nav--scrolled .nav__inner {
  background: rgba(250, 251, 250, 0.86);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 30, 30, 0.08);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 2px 2px;
  transition: opacity var(--dur) var(--ease);
}
.nav__brand:hover { opacity: 0.75; }
.nav__brand img { width: 40px; height: 40px; }

.nav__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.nav__brand-sub { font-size: 11px; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.nav__menu a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__menu a:hover { background: rgba(30, 30, 30, 0.06); color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__brand-sub { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(250, 251, 250, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.menu-overlay nav a {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1;
  color: var(--ink);
}
.menu-overlay nav a:hover { color: var(--jade); }
.menu-overlay__cta {
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-size: 15px !important;
}

/* Hero — full-viewport cinematic (light architectural render bg)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scaleX(-1) scale(1.02);
  transition: transform 12s var(--ease);
  filter: brightness(0.88) contrast(1.06);
}
.hero:hover .hero__bg img { transform: scaleX(-1) scale(1.06); }

/* Scrim — light lift for text legibility + subtle uniform tint on the render */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 75% at 12% 20%,
      rgba(250, 251, 250, 0.80) 0%,
      rgba(250, 251, 250, 0.45) 30%,
      rgba(250, 251, 250, 0.10) 58%,
      rgba(250, 251, 250, 0.00) 78%),
    linear-gradient(180deg,
      rgba(24, 32, 34, 0.20) 0%,
      rgba(24, 32, 34, 0.12) 45%,
      rgba(24, 32, 34, 0.24) 100%);
  pointer-events: none;
}

/* Content layer */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(140px, 18vh, 200px) clamp(24px, 5vw, 56px) 0;
}

.hero__copy { max-width: 720px; }

.hero__copy .eyebrow { margin-bottom: 28px; }

.eyebrow--on-image {
  color: var(--ink-soft);
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  padding-bottom: 4px;
  display: inline;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  max-width: 48ch;
  margin-bottom: 40px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Liquid glass card — floating, centered at bottom */
.hero__glass {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(28px, 5vh, 56px);
  transform: translateX(-50%);
  width: min(760px, calc(100% - 48px));
  padding: 20px 28px;
  border-radius: 22px;
  color: #fff;

  /* Liquid glass — layered translucency */
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.05) 45%,
      rgba(255, 255, 255, 0.10) 100%),
    rgba(20, 22, 24, 0.22);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);

  /* Layered borders — outer edge + inner highlight */
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.18);

  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.hero__glass-row { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.hero__glass-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.hero__glass-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  line-height: 1.1;
  padding-bottom: 2px;
}
.hero__glass-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.02) 100%);
}
@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }
  .hero__content {
    padding-bottom: clamp(24px, 4vh, 40px);
  }
  .hero__glass {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: 0 clamp(16px, 4vw, 24px) clamp(28px, 5vh, 48px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 24px;
  }
  .hero__glass-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.24) 50%,
      rgba(255, 255, 255, 0.02) 100%);
    justify-self: center;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hero__glass {
    background: rgba(20, 22, 24, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero__cta .btn--ghost {
    background: rgba(20, 22, 24, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Manifesto / Filosofía
   -------------------------------------------------------------------------- */
.manifesto {
  padding: clamp(96px, 12vw, 160px) 0;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(29, 179, 167, 0.12), transparent 62%),
    var(--ink);
  position: relative;
}
/* Texto e íconos claros sobre la sección oscura
   (con .manifesto para ganarle en especificidad a las reglas de abajo) */
.manifesto .manifesto__quote { color: #fff; }
.manifesto .section-label { color: rgba(255, 255, 255, 0.55); }
.manifesto .manifesto__credential { color: rgba(255, 255, 255, 0.6); }
.manifesto .manifesto__credential em { color: #fff; }
.manifesto .pillar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.manifesto .pillar:hover { background: rgba(255, 255, 255, 0.07); }
.manifesto .pillar__icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.manifesto .pillar__title { color: #fff; }
.manifesto .pillar__body { color: rgba(255, 255, 255, 0.62); }
.manifesto .section-label {
  display: block;
  text-align: center;
  margin-bottom: 32px;
}
.manifesto__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto clamp(64px, 8vw, 96px);
  padding-bottom: 6px;
}
.manifesto__quote em {
  font-style: italic;
  color: var(--jade);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.pillar {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.78);
}

.pillar__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-card-sm);
  background: var(--paper);
  color: var(--jade);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  border: 1px solid var(--line-softer);
}
.pillar__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pillar__body {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.65;
}

.manifesto__credential {
  position: relative;
  max-width: 52ch;
  margin: clamp(56px, 7vw, 80px) auto 0;
  padding-top: clamp(32px, 4vw, 40px);
  text-align: center;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mute);
}
.manifesto__credential::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.manifesto__credential em {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

/* Servicios (bento)
   -------------------------------------------------------------------------- */
.services { padding: clamp(96px, 12vw, 140px) 0; }

.services__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .services__bento {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
  }
  .service--lead { grid-row: 1 / span 2; }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line-softer);
  border-radius: var(--r-card);
  color: var(--ink);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  overflow: hidden;
  min-height: 260px;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 220px at 100% 0%, rgba(29, 179, 167, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 179, 167, 0.4);
  box-shadow: var(--shadow-md);
}
.service:hover::before { opacity: 1; }

.service--lead {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 44px 40px;
  min-height: 480px;
}
.service--lead:hover {
  border-color: var(--jade);
  box-shadow: var(--shadow-lg);
}
.service--lead::before {
  background: radial-gradient(500px 300px at 100% 0%, rgba(29, 179, 167, 0.25), transparent 60%);
  opacity: 0.5;
}
.service--lead:hover::before { opacity: 1; }

.service__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.service__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-card-sm);
  background: var(--paper-tint);
  color: var(--jade);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  border: 1px solid var(--line-softer);
}
.service--lead .service__icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--jade);
}
.service__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
}
.service--lead .service__index { color: rgba(255, 255, 255, 0.5); }

.service__body { flex: 1; }
.service__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.014em;
  margin-bottom: 14px;
}
.service__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.service--lead .service__title {
  font-size: clamp(28px, 3.2vw, 40px);
  padding-bottom: 4px;
}
.service__desc {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.65;
  max-width: 44ch;
}
.service--lead .service__desc { color: rgba(255, 255, 255, 0.72); }

.service__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.service__tags li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.service__cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; /* la tarjeta ya no es link: solo el CTA es clickeable */
  margin-top: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.service__cta iconify-icon {
  transition: transform var(--dur) var(--ease);
}
.service:hover .service__cta { color: var(--jade); gap: 12px; }
.service:hover .service__cta iconify-icon { transform: translate(2px, -2px); }
.service--lead .service__cta { color: #fff; }
.service--lead:hover .service__cta { color: var(--jade); }

/* Proyectos
   -------------------------------------------------------------------------- */
.projects {
  padding: clamp(96px, 12vw, 140px) 0;
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(29, 179, 167, 0.10), transparent 60%),
    var(--ink);
}
/* Texto claro sobre la sección oscura (las tarjetas se mantienen claras) */
.projects .section-title { color: #fff; }
.projects .section-label { color: rgba(255, 255, 255, 0.55); }
.projects .section-header__body { color: rgba(255, 255, 255, 0.62); }

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .projects__grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 24px;
  }
  .projects__grid--two {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .projects__grid--two .project__figure { aspect-ratio: 4 / 3.2; }
}

.project {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-softer);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project--tall { grid-row: span 1; }
@media (min-width: 900px) {
  .project--tall {
    grid-row: span 2;
  }
  .project--tall .project__figure { aspect-ratio: 4 / 5.6; }
}

.project__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-tint);
}
.project__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.project:hover .project__figure img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.project__meta { padding: 24px 26px 28px; }
.project__location {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 10px;
}
.project__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.project__name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  padding-bottom: 2px;
  display: inline-block;
}
.project__type { color: var(--mute); font-size: 13.5px; }

/* Proceso Kaizen
   -------------------------------------------------------------------------- */
.process { padding: clamp(96px, 12vw, 140px) 0; }

.process__flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 800px) {
  .process__flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.step {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--paper);
  border: 1px solid var(--line-softer);
  border-radius: var(--r-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--jade);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.step:hover {
  border-color: rgba(29, 179, 167, 0.3);
  background: #fff;
  transform: translateY(-3px);
}
.step:hover::after { transform: scaleX(1); }

.step__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  color: var(--jade);
  line-height: 1;
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.step__icon {
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 14px;
  display: block;
}
.step__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.step__desc {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.6;
}

/* CTA / Contacto
   -------------------------------------------------------------------------- */
.cta {
  padding: clamp(64px, 8vw, 96px) 0 clamp(96px, 12vw, 140px);
}
.cta__card {
  position: relative;
  padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(29, 179, 167, 0.18), transparent 60%),
    radial-gradient(500px 260px at 10% 100%, rgba(29, 179, 167, 0.08), transparent 55%),
    var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.cta .section-label { margin-bottom: 20px; }
.cta__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--jade);
  padding-bottom: 4px;
  display: inline-block;
}
.cta__sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 40px;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 72px 0 32px;
  background: var(--paper-tint);
  border-top: 1px solid rgba(30, 30, 30, 0.06);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}
@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer__brand img { margin-bottom: 20px; }
.footer__tag {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
}
.footer__tag em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--jade);
}

.footer__label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-soft); font-size: 14.5px; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--jade); }
.footer__col li { color: var(--ink-soft); font-size: 14.5px; }

.footer__legal {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--mute);
  flex-wrap: wrap;
}

/* Reveal (motion)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero:hover .hero__bg img,
  .project:hover .project__figure img { transform: none; }
  .btn:hover, .service:hover, .pillar:hover, .step:hover, .project:hover { transform: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Responsive polish
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .hero__content { padding-top: clamp(120px, 20vh, 160px); }
  .hero__title { font-size: clamp(38px, 12vw, 56px); }
  .hero__sub { font-size: 15.5px; }
  .cta__card { padding: 40px 24px; }
  .services__bento { gap: 16px; }
  .service { padding: 28px; min-height: 220px; }
  .service--lead { padding: 32px 28px; min-height: 380px; }
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   Zona de trabajo — mapa (Leaflet)
   ========================================================================== */
.zona {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--paper);
  position: relative;
}

.zona__header { text-align: center; margin: 0 auto; max-width: 720px; }
.zona__header .section-label { display: block; margin-bottom: 16px; }
.zona__header .section-header__body { margin: 20px auto 0; max-width: 620px; }

.zona__map-wrap {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

#zona-map {
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  background: var(--paper-tint-soft);
  z-index: 0; /* contiene el z-index interno de Leaflet debajo del nav */
}

/* Etiquetas (tags) de localidades sobre el mapa */
.leaflet-tooltip.zona-tag {
  background: #ffffff;
  color: var(--ink);
  border: none;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 10px rgba(30, 30, 30, 0.18);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  white-space: nowrap;
}
.leaflet-tooltip.zona-tag::before { display: none; } /* sin flechita */
.leaflet-tooltip.zona-tag--center {
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
}

/* Leyenda debajo del mapa */
.zona__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.zona__legend li { display: inline-flex; align-items: center; gap: 8px; }
.zona__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-soft);
}
.zona__legend-dot--center { background: var(--ink); }

/* Leaflet usa un font propio; lo alineamos al sistema del sitio */
.leaflet-container { font-family: var(--font-sans); }

@media (max-width: 640px) {
  .zona__legend { gap: 10px 16px; font-size: 12px; }
}
