/* ═══════════════════════════════════════════════════
   TOPO · Arquitectura de Procesos
   style.css — shared stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  /* Backgrounds — near-black, barely warm */
  --bg:      #1e1e1e;
  --bg-2:    #292929;
  --bg-3:    #343434;
  --bg-warm: #26221e;

  /* Text — high contrast */
  --text:    #F5F3F0;
  --text-2:  #A39E97;
  --text-3:  #6B6660;

  /* Borders */
  --border:   rgba(245, 243, 240, 0.08);
  --border-2: rgba(245, 243, 240, 0.15);
  --border-3: rgba(245, 243, 240, 0.25);

  /* Accent — terracotta primary */
  --accent:     #CC7C5E;
  --accent-dim: rgba(204, 124, 94, 0.12);

  /* Secondary accents */
  --accent-blue:   #5EAECC;
  --accent-gold:   #D4A017;
  --accent-mustard: #D4A574;
  --accent-green:  #7CAA6D;
  --accent-purple: #7B5E8A;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --nav-h:      72px;
  --max-w:      1280px;
  --gutter:     clamp(20px, 5vw, 80px);
  --section-y:  clamp(80px, 10vw, 140px);

  /* Motion */
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --fast:  180ms;
  --base:  300ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
  background-color: #1e1e1e;
}
body {
  margin: 0;
  height: 100%;
  background: #1e1e1e !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; border-radius: 0; }
::selection { background: var(--accent-dim); color: var(--text); }
hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Typography ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

.t-xl { font-size: clamp(44px, 6.5vw, 90px); }
.t-lg { font-size: clamp(30px, 4vw, 58px); }
.t-md { font-size: clamp(20px, 2.2vw, 32px); }
.t-sm { font-size: clamp(17px, 1.6vw, 22px); }

.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.t-label--accent { color: var(--accent); }

.t-body    { font-size: 15px; line-height: 1.72; color: var(--text-2); }
.t-body-sm { font-size: 13px; line-height: 1.65; color: var(--text-3); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--nav {
  padding-inline: 28px;
  max-width: 100%;
}
.section     { padding-block: var(--section-y); }
.section--dark { background: #292929; }
.section--warm { background: #1e1e1e; }
.section--process { background: #1e1e1e; border-top: 1px solid var(--border); }
.section--cases { background: #1e1e1e; border-top: 1px solid var(--border); }

/* ── Navigation ── */
/* Franja opaca bajo notch / Dynamic Island: el fondo del nav es semitransparente
   y en iPhone el contenido que scrollea detrás se veía “subiendo” hasta la hora/batería. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(30, 30, 30, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--base) var(--ease),
              background var(--base) var(--ease);
}
.nav.scrolled {
  border-color: var(--border-2);
  background: rgba(30, 30, 30, 0.96);
}
.nav.on-contact {
  background: rgba(58, 58, 58, 0.96);
  border-color: rgba(245, 243, 240, 0.12);
}
.nav__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.nav__logo-squares {
  display: flex;
  gap: 4px;
}
.nav__logo-square {
  width: 24px;
  height: 24px;
  border: 1px solid var(--text);
  background: transparent;
  transition: all var(--ease) 0.4s;
}

.nav__logo-square.active-section-1,
.nav__logo-square.active-section-2,
.nav__logo-square.active-section-3,
.nav__logo-square.active-section-4 {
  border-color: var(--text);
  box-shadow: none;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 1;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--base) var(--ease),
              max-width var(--base) var(--ease);
}
.nav.scrolled .nav__logo-text {
  opacity: 1;
  max-width: 150px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  position: relative;
  transition: color var(--fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  font-weight: 500;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-2);
  transition: all var(--fast) var(--ease);
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}


.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vh, 48px) var(--gutter) 0;
}
.hero__meta-tag  { /* .t-label */ }
.hero__meta-loc  { /* .t-label */ }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(52px, 7vh, 88px);
}

.hero__br-mobile { display: none; }
.hero__headline {
  font-size: clamp(44px, 7.5vw, 100px);
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__sub {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 400px;
}

/* Hero accent rule */
.hero__rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim) 20%, var(--accent-dim) 80%, transparent);
}

/* ── Graph section ── */
/* ── Workflow Section ── */
.workflow-section {
  min-height: 100dvh;
  background: #1e1e1e;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow-section__label {
  position: absolute;
  top: 24px;
  left: var(--gutter);
  z-index: 2;
  color: var(--text-2);
}

.workflow-section__corner {
  position: absolute;
  bottom: 24px;
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 2;
}

/* Título principal con cursor */
.workflow-title-container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.workflow-title-final {
  position: absolute;
  top: 20%;
  right: 5%;
  z-index: 3;
  text-align: right;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.workflow-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.workflow-title--small {
  font-size: clamp(28px, 4vw, 48px);
}

.workflow-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: #7AC74F;  /* Verde complementario al branding */
  vertical-align: middle;
  margin-left: 8px;
  animation: workflow-cursor-blink 1.0s step-end infinite;
}

.workflow-cursor--blue {
  background: #4A90E2;  /* Azul acorde al branding */
}

@keyframes workflow-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.workflow-container {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Conectores */
.workflow-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connector {
  transition: opacity 0.6s ease;
}

/* Contenedor de cuadrados */
.workflow-squares {
  position: absolute;
  width: 100%;
  height: 100%;
}

.workflow-square {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid var(--text);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: left, top, transform, opacity;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(204, 124, 94, 0.15);
  z-index: 5;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.workflow-square:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(204, 124, 94, 0.3);
}

/* Colores personalizados para cada nodo */
.workflow-square[data-id="sq1"]:hover {
  border-color: #D4A017;
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
}

.workflow-square[data-id="sq2"]:hover {
  border-color: #5EAECC;
  box-shadow: 0 8px 30px rgba(94, 174, 204, 0.3);
}

.workflow-square[data-id="sq3b"]:hover {
  border-color: #7AC74F;
  box-shadow: 0 8px 30px rgba(122, 199, 79, 0.3);
}

.workflow-square[data-id="sq4"]:hover {
  border-color: #E85D75;
  box-shadow: 0 8px 30px rgba(232, 93, 117, 0.3);
}

/* AI Agent - super nodo con animación especial MUY llamativa (se activa después de la distribución) */
.workflow-square[data-id="sq3"].ai-active {
  border-color: #E8E8E8;
  animation: ai-pulse 2s ease-in-out infinite;
}

.workflow-square[data-id="sq3"].ai-active:hover {
  border-color: #CCCCCC;
  animation: ai-pulse 2s ease-in-out infinite;
  transform: scale(1.05);
}

@keyframes ai-pulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.5),
      0 0 30px rgba(220, 220, 220, 0.35),
      0 0 45px rgba(200, 200, 200, 0.2);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 255, 255, 0.7),
      0 0 50px rgba(230, 230, 230, 0.5),
      0 0 75px rgba(210, 210, 210, 0.3);
  }
}

@keyframes ai-pulse-hover {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(240, 240, 240, 0.6),
      0 0 60px rgba(220, 220, 220, 0.4),
      0 0 80px rgba(200, 200, 200, 0.2);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 255, 255, 1),
      0 0 60px rgba(245, 245, 245, 0.8),
      0 0 90px rgba(230, 230, 230, 0.6),
      0 0 120px rgba(215, 215, 215, 0.4);
  }
}

/* Contenido: título y subtítulo */
.workflow-square__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.workflow-square__title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: rgba(245, 243, 240, 0.6);
  margin: 0;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 48px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  white-space: nowrap;
  pointer-events: none;
  overflow: hidden;
  max-height: 0;
  transition: none;
}

/* Agente IA: título abajo */
.workflow-square[data-id="sq3"] .workflow-square__title {
  bottom: auto;
  top: calc(100% + 48px);
}

.workflow-square.names-visible:hover .workflow-square__title {
  opacity: 1;
  max-height: 80px;
  animation: wf-type 0.3s steps(14) forwards;
}

@keyframes wf-type {
  from { max-height: 0; }
  to   { max-height: 80px; }
}

.workflow-icon {
  width: 40px;
  height: 40px;
  color: rgba(128, 128, 128, 0.4);
  opacity: 0;
  transition: opacity 0.6s ease 0.3s, color 0.3s ease;
}

.workflow-square.names-visible .workflow-icon {
  opacity: 1;
}

.workflow-square[data-id="sq1"]:hover .workflow-icon {
  color: #D4A017;
}

.workflow-square[data-id="sq2"]:hover .workflow-icon {
  color: #5EAECC;
}

.workflow-square[data-id="sq3"]:hover .workflow-icon {
  color: #E8E8E8;
}

.workflow-square[data-id="sq3b"]:hover .workflow-icon {
  color: #7AC74F;
}

.workflow-square[data-id="sq4"]:hover .workflow-icon {
  color: #E85D75;
}

.workflow-square__subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
  text-align: center;
}

/* Posición inicial: 4 cuadrados EN LÍNEA HORIZONTAL (como el logo del header) */
.workflow-square[data-id="sq1"] {
  left: calc(50% - 230px);
  top: calc(50% - 50px);
}

.workflow-square[data-id="sq2"] {
  left: calc(50% - 120px);
  top: calc(50% - 50px);
}

.workflow-square[data-id="sq3"] {
  left: calc(50% - 10px);
  top: calc(50% - 50px);
}

.workflow-square[data-id="sq3b"] {
  left: calc(50% - 10px);
  top: calc(50% - 50px);
}

.workflow-square[data-id="sq4"] {
  left: calc(50% + 100px);
  top: calc(50% - 50px);
}

/* Cuadrados nuevos inicialmente ocultos */
.workflow-square--new {
  opacity: 0;
  scale: 0;
}


/* blinking cursor */
.hero__cursor {
  display: inline-block;
  width: 5px;
  height: 0.80em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 8px;
  animation: cursor-blink 1.0s step-end infinite;
}

/* Cursores de colores para títulos */
.cursor {
  display: inline-block;
  width: 5px;
  height: 0.80em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 8px;
  animation: cursor-blink 1.0s step-end infinite;
}
.cursor--mustard { background: var(--accent-mustard); }
.cursor--blue { background: var(--accent-blue); }
.cursor--gold { background: var(--accent-gold); }
.cursor--green { background: var(--accent-green); }
.cursor--purple { background: var(--accent-purple); }

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--border-3);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn__arrow { font-size: 14px; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  flex-shrink: 0;
}
.section-header__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-header__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ── Services ── */
.services-intro {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.service-card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--fast) var(--ease);
}
.service-card:nth-child(3n)       { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 420ms var(--ease);
}
.service-card:hover { background: rgba(201, 162, 62, 0.03); }
.service-card:hover::before { height: 100%; }
.service-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-card__body {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
}

/* ── Process Roadmap ── */
.process-intro {
  margin-bottom: clamp(60px, 8vw, 100px);
}

.process-intro__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 24px;
}

.process-roadmap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
  z-index: 0;
}
/* Filled progress overlay */
.process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--line-fill, 0%);
  background: var(--accent);
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step {
  position: relative;
  margin-bottom: clamp(70px, 10vw, 100px);
  min-height: 80px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step__number {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid var(--text);
  border-radius: 2px;
  background: var(--bg);
  z-index: 2;
  transition: border-color 1s ease, box-shadow 1s ease, transform 0.3s ease;
}
.process-step__number:hover {
  transform: translateX(-50%) rotate(3deg);
}
.process-step.step-active .process-step__number {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(204, 124, 94, 0.25), inset 0 0 12px rgba(204, 124, 94, 0.06);
}

.process-step__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
  transition: color 1s ease;
}
.process-step.step-active .process-step__num {
  color: var(--accent);
}

.process-step__content {
  padding-top: 8px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Even steps come from the left (they're on the left side) */
.process-step:nth-child(even) .process-step__content {
  transform: translateX(-30px);
}
.process-step.step-active .process-step__content {
  opacity: 1;
  transform: translateX(0);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px 0;
}

.process-step__description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

/* ── Case studies — book cover layout ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.case-card {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  transition: background var(--fast) var(--ease);
  cursor: default;
}
/* Left spine accent */
.case-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-2);
  transition: background 380ms var(--ease);
  z-index: 1;
}
.case-card:hover::before { background: var(--accent); }
.case-card:hover { background: var(--bg-3); }

/* Cover area — occupies most of card */
.case-card__cover {
  flex: 1;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Ghost volume number */
.case-card__num {
  position: absolute;
  bottom: -12px;
  right: -6px;
  font-family: var(--font-display);
  font-size: clamp(90px, 12vw, 160px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: rgba(242, 237, 229, 0.035);
  pointer-events: none;
  user-select: none;
}

.case-card__sector { margin-bottom: auto; padding-bottom: 40px; }

.case-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  position: relative; /* above ghost number */
  z-index: 1;
}

/* KPI band at the bottom — like a book's back-cover blurb */
.case-card__metrics {
  display: flex;
  border-top: 1px solid var(--border);
}
.case-metric {
  flex: 1;
  padding: 22px 28px;
}
.case-metric + .case-metric {
  border-left: 1px solid var(--border);
}
.case-metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.case-metric__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── About + Partners Section ── */
.about-partners-section {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(32px, 5vw, 56px);
  background: #1e1e1e;
}

.team-intro {
  margin-bottom: clamp(48px, 6vw, 64px);
}

.team-intro__label {
  margin-bottom: 16px;
}

/* About Hero - World-class minimal design */
.about-hero {
  margin: clamp(80px, 12vw, 140px) 0;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(60px, 8vw, 100px);
  align-items: start;
  position: relative;
}

/* Photo Column */
.about-hero__photo-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Photo Frame - Logo square border */
.about-hero__photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  background: var(--bg);
  display: block;
}

.about-hero__photo-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--text);
  border-radius: 2px;
  box-sizing: border-box;
}

.about-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: grayscale(100%);
  transition: filter 0.6s ease;
  display: block;
}

.about-hero__photo-frame:hover .about-hero__photo {
  filter: grayscale(0%);
}

/* Content */
.about-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 40px 0;
}

.about-hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.about-hero__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

/* Signature */
.about-hero__signature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-signature-square {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.about-signature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-signature-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-signature-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Team Member Card - Alternating Layout (deprecated, keeping for compatibility) */
.team-member {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.team-member:first-child {
  border-top: none;
  padding-top: 0;
}

/* Alternar dirección en cada miembro */
.team-member:nth-child(even) {
  grid-template-columns: 1fr 240px;
}

.team-member:nth-child(even) .team-member__photo {
  order: 2;
}

.team-member:nth-child(even) .team-member__content {
  order: 1;
  text-align: right;
}

.team-member:nth-child(even) .team-member__role {
  justify-content: flex-end;
}

/* Photo */
.team-member__photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 2px solid var(--border-2);
  background: var(--bg-2);
  transition: all var(--base) var(--ease);
}

.team-member__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--accent) 100%);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity var(--base) var(--ease);
}

.team-member:hover .team-member__photo {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(204, 124, 94, 0.2);
}

.team-member:hover .team-member__photo::after {
  opacity: 0.15;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: all var(--base) var(--ease);
}

.team-member:hover .team-member__photo img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

/* Content */
.team-member__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}

.team-member__role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.team-member__role-square {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.team-member__role-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.team-member__bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 20px;
}

.team-member__highlight {
  color: var(--accent);
  font-weight: 500;
}

.team-member__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.team-member__skill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: all var(--fast) var(--ease);
}

.team-member__skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Partners Banner */
.partners-wrapper {
  background: #1e1e1e;
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.partners-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 32px;
}

.partners-banner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.partners-banner::-webkit-scrollbar { display: none; }

.partner-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--border);
  flex: 1;
  flex-shrink: 0;
  min-width: 140px;
  transition: background var(--fast) var(--ease);
}
.partner-item:last-child { border-right: none; }
.partner-item:hover { background: var(--bg-3); }
.partner-item__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.partner-item__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

/* Compact variant */
.partners-banner--compact .partner-item {
  padding: 16px clamp(16px, 2vw, 28px);
  gap: 4px;
  min-width: 110px;
}
.partners-banner--compact .partner-item__name { font-size: 13px; }
.partners-banner--compact .partner-item__role { font-size: 8px; }

/* ── Sticky stack (partners → contacto): mismo truco que h-screen + sticky + z-index ── */
.sticky-stack {
  position: relative;
  isolation: isolate;
}
.sticky-stack__slide {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.sticky-stack__slide--partners {
  z-index: 1;
  background: #1e1e1e;
  justify-content: flex-start;
  min-height: auto;
}
.sticky-stack__inner {
  width: 100%;
  padding-block: clamp(40px, 6vw, 80px);
}
.sticky-stack__slide--partners .sticky-stack__inner {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 36px);
}
.sticky-stack .partners-wrapper {
  padding-bottom: clamp(24px, 4vw, 40px);
}
.sticky-stack__slide--cta {
  z-index: 2;
  border-top-left-radius: clamp(3px, 0.35vw, 6px);
  border-top-right-radius: clamp(3px, 0.35vw, 6px);
  overflow: hidden;
}

/* ── CTA Block with Overlay Effect ── */
.cta-block {
  padding-block: clamp(80px, 12vw, 160px);
  background: #3a3a3a;
  border-top: 1px solid rgba(245, 243, 240, 0.12);
  text-align: center;
  position: relative;
}
.cta-block__eyebrow  { margin-bottom: 24px; color: var(--accent); }
.cta-block__headline { margin-bottom: 20px; color: #F5F3F0; }
.cta-block__sub {
  font-size: 15px;
  color: #c5c0b8;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 3;
  padding-block: 40px;
  border-top: 1px solid rgba(245, 243, 240, 0.12);
  background: #3a3a3a;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-squares {
  display: flex;
  gap: 1.5px;
}
.footer__logo-square {
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-3);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer__copy    { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--text-3); }
.footer__tagline { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-group .reveal:nth-child(1) { transition-delay:   0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay:  80ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 400ms; }

/* ─────────────────────────────────────────────
   CONTACTO PAGE
   ───────────────────────────────────────────── */

/* Hero */
.contact-hero {
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(64px, 9vw, 128px));
  padding-bottom: 0;
}
.contact-hero .container {
  padding-bottom: clamp(48px, 6vw, 80px);
}
.contact-hero__label    { margin-bottom: 24px; }
.contact-hero__headline { margin-bottom: 20px; }
.contact-hero__sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}

/* Meta bar — 3-column strip at bottom of hero */
.contact-meta-bar {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.contact-meta-item {
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.contact-meta-item:last-child { border-right: none; }
.contact-meta-item__val {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.contact-meta-item__link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  display: inline-block;
  transition: border-color var(--fast) var(--ease);
}
.contact-meta-item__link:hover { border-color: var(--accent); }

/* Form section */
.contact-form-section { padding-block: var(--section-y); background: #3a3a3a; }
.container--form {
  max-width: 760px;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 36px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.form-field { display: flex; flex-direction: column; gap: 12px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9a9590;
}
.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 243, 240, 0.20);
  padding: 14px 0;
  color: #F5F3F0;
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: border-color var(--fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus   { border-bottom-color: var(--accent); }
.form-input::placeholder { color: #787470; }
.form-select option  { background: #3a3a3a; color: #F5F3F0; }
.form-textarea {
  border: 1px solid rgba(245, 243, 240, 0.20);
  padding: 18px;
  resize: vertical;
  min-height: 160px;
  line-height: 1.65;
  transition: border-color var(--fast) var(--ease);
}
.form-textarea::placeholder { color: #787470; }
.form-textarea:focus { border-color: var(--accent); }
.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  min-height: 16px;
}
.form-status--ok  { color: #8a9e7a; }
.form-status--err { color: #9e7a7a; }

/* About section */
/* Nav light mode for contacto page */
.nav--light {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav--light.scrolled {
  background: rgba(30, 30, 30, 0.6);
}

.about-section {
  padding-block: var(--section-y);
  background: #F0EDE8;
  border-top: none;
  position: relative;
}
.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("assets/grain.png");
  background-size: 200px;
  mix-blend-mode: multiply;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-label    { margin-bottom: 20px; }
.about-headline { margin-bottom: 20px; color: #1e1e1e; }
.about-label    { color: #6B6660; }
.about-body     { font-size: 15px; color: #4a4540; line-height: 1.8; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--border);
}
.about-stat {
  background: transparent;
  padding: 32px 28px;
  border-top: 1px solid rgba(30, 30, 30, 0.12);
  border-right: 1px solid rgba(30, 30, 30, 0.12);
}
.about-stat:nth-child(2n) {
  border-right: none;
}
.about-stat:nth-child(-n+2) {
  border-top: none;
}
.about-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.about-stat__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B6660;
}

/* Team / open positions */
.team-section {
  padding-block: var(--section-y);
  background: #3a3a3a;
  border-top: 1px solid rgba(245, 243, 240, 0.12);
}
.team-intro  { margin-bottom: clamp(40px, 5vw, 72px); }
.team-intro__label    { margin-bottom: 16px; }
.team-intro__headline { margin-bottom: 16px; }
.team-intro__body     { font-size: 15px; color: var(--text-2); max-width: 560px; line-height: 1.72; }

.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 48px;
}
.position-card {
  background: rgba(0,0,0,0.15);
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: background var(--fast) var(--ease);
}
.position-card:hover { background: rgba(0,0,0,0.25); }
.position-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.position-card__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.position-card__arrow {
  font-size: 18px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
  margin-top: 2px;
}
.position-card:hover .position-card__arrow { color: var(--accent); transform: translate(3px, -3px); }

.team-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.team-cta__text { font-size: 14px; color: var(--text-2); }
.team-cta__text a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); transition: border-color var(--fast) var(--ease); }
.team-cta__text a:hover { border-color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n)        { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n)        { border-right: none; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }

  .cases-grid        { grid-template-columns: 1fr; }
  .contact-meta-bar  { grid-template-columns: 1fr; }
  .contact-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-meta-item:last-child { border-bottom: none; }
  .about-grid        { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  /* Process roadmap mobile - simple left-aligned version */
  .process-roadmap {
    max-width: 100%;
    padding-left: 0;
  }

  .process-line {
    left: 30px;
    top: 30px;
    bottom: 30px;
    transform: none;
  }

  .process-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
  }

  .process-step:last-child {
    margin-bottom: 0;
  }

  .process-step__number {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .process-step__number:hover {
    transform: rotate(3deg);
  }
  .process-step.step-active .process-step__number {
    transform: none;
  }
  .process-step__content {
    transform: translateY(16px);
  }
  .process-step:nth-child(even) .process-step__content {
    transform: translateY(16px);
  }
  .process-step.step-active .process-step__content {
    transform: translateY(0);
  }

  .process-step__num {
    font-size: 14px;
  }

  .process-step__content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    max-width: none !important;
    padding-top: 4px;
    flex: 1;
  }

  .process-step__title {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 10px;
  }

  .process-step__description {
    font-size: 13px;
    line-height: 1.6;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero__sub { max-width: 100%; }

  /* About Hero mobile */
  .about-hero {
    margin: 60px 0;
  }

  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-hero__photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-hero__content {
    padding-top: 0;
  }

  .about-hero__title {
    font-size: clamp(22px, 5.5vw, 30px);
    margin-bottom: 32px;
  }

  .about-hero__text {
    margin-bottom: 40px;
  }

  .about-signature-square {
    width: 40px;
    height: 40px;
  }

  /* Team members en mobile: foto arriba, contenido abajo */
  .team-member {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .team-member:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .team-member:nth-child(even) .team-member__photo {
    order: 1;
  }

  .team-member:nth-child(even) .team-member__content {
    order: 2;
    text-align: left;
  }

  .team-member:nth-child(even) .team-member__role {
    justify-content: flex-start;
  }

  .team-member__photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .team-member__content {
    min-height: auto;
  }

  .team-member__skills {
    justify-content: center;
  }

  /* Workflow section mobile - ocultar */
  .workflow-section {
    display: none;
  }

  .workflow-container {
    height: 60vh;
  }

  .workflow-square {
    width: 60px;
    height: 60px;
  }

  .workflow-square[data-id="sq1"] {
    left: calc(50% - 135px);
    top: calc(50% - 30px);
  }

  .workflow-square[data-id="sq2"] {
    left: calc(50% - 65px);
    top: calc(50% - 30px);
  }

  .workflow-square[data-id="sq3"] {
    left: calc(50% + 5px);
    top: calc(50% - 30px);
  }

  .workflow-square[data-id="sq3b"] {
    left: calc(50% + 5px);
    top: calc(50% - 30px);
  }

  .workflow-square[data-id="sq4"] {
    left: calc(50% + 75px);
    top: calc(50% - 30px);
  }

  .workflow-square__content {
    display: none;
  }

  .workflow-title-container {
    display: none;
  }

  .workflow-square::after {
    content: attr(data-mobile-label);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .workflow-square.mobile-active::after {
    opacity: 1;
  }
  .workflow-square.mobile-active {
    border-color: var(--accent);
  }

  .nav__link-desktop { display: none !important; }
  .hero__br-mobile { display: inline; }
  .hero__meta-loc { display: none; }

  /* Mobile: logo siempre en versión chica */
  .nav__logo-square {
    width: 16.8px;
    height: 16.8px;
  }
  .nav__logo-text {
    font-size: 14px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card  { border-right: none !important; }
  .service-card:nth-last-child(1) { border-bottom: none; }

  .case-card { min-height: 420px; }
  .partner-item { flex: none; }
  .footer__inner   { flex-direction: column; text-align: center; gap: 10px; }
  .footer__tagline { display: none; }

  .form-row       { grid-template-columns: 1fr; }
  .positions-grid { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cursor { animation: none; opacity: 1; }
}

/* ── Language Toggle (desktop: in nav) ── */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  line-height: 1;
  border-radius: 4px;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Light nav variant */
.nav--light .lang-toggle {
  border-color: rgba(30, 30, 30, 0.2);
  color: rgba(30, 30, 30, 0.5);
}
.nav--light .lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(204, 124, 94, 0.08);
}

/* ── Language Toggle (mobile: fixed bottom-right) ── */
@media (max-width: 768px) {
  .nav__links .lang-toggle-li { display: none; }
  .lang-toggle--mobile {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-2);
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
    line-height: 1;
  }
  .lang-toggle--mobile:hover,
  .lang-toggle--mobile:active {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(30, 30, 30, 0.85);
  }
}
@media (min-width: 769px) {
  .lang-toggle--mobile { display: none; }
}