/* ============================================
   HEIMDALL — HOJA DE ESTILOS BASE
   Tokens, tipografia, navbar, footer y componentes compartidos.
   Las paginas historicas todavia llevan esta hoja embebida; las
   secciones nuevas (sectores) la consumen desde aca.
   ============================================ */

/* ============================================
   DESIGN TOKENS — IDENTIDAD OFICIAL HEIMDALL
   Fuente: Manual de marca Heimdall (Draft Estudio Creativo)
   ============================================ */
:root {
  /* Colores oficiales */
  --mars-red:     #DE411B;  /* Pantone 7597 C — Predominante */
  --mars-red-700: #B8351A;  /* Hover / darker */
  --mars-red-300: #F29B82;  /* Tint suave */
  --mars-red-100: #FCE4DD;  /* Background soft */
  --mars-red-50:  #FDF1EC;  /* Background very soft */

  --deep-space:      #48535B;  /* Pantone 446 C — Secundario */
  --deep-space-900:  #2C343B;  /* Darker variant */
  --deep-space-800:  #3A4248;
  --deep-space-700:  #48535B;  /* base */
  --deep-space-500:  #6E7880;
  --deep-space-400:  #8B949B;
  --deep-space-300:  #B8BEC3;
  --deep-space-200:  #DCE0E3;
  --deep-space-100:  #EEF0F2;
  --deep-space-50:   #F6F7F8;

  --white:  #FFFFFF;
  --cream:  #FAFAF8;

  /* Escala de grises neutros adicionales */
  --ink-900: #1A1F23;

  /* Tipografía */
  --font-display: 'Archivo', system-ui, sans-serif;  /* Proxy de Monument Extended */
  --font-body:    'Montserrat', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Layout */
  --max-w: 1280px;
  --gutter: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(72, 83, 91, 0.04);
  --shadow-sm: 0 2px 8px rgba(72, 83, 91, 0.06);
  --shadow-md: 0 8px 24px rgba(72, 83, 91, 0.1);
  --shadow-lg: 0 24px 56px rgba(72, 83, 91, 0.14);
  --shadow-brand: 0 12px 32px rgba(222, 65, 27, 0.28);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  color: var(--deep-space-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   Monument Extended (proxy: Archivo 125% width) para títulos
   Montserrat para cuerpo
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mars-red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--mars-red);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--deep-space-900);
}
h1 {
  font-size: clamp(32px, 4.64vw, 60.8px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--deep-space-900);
}

p { color: var(--deep-space-500); line-height: 1.6; }
.lead { font-size: 18px; line-height: 1.55; color: var(--deep-space-500); max-width: 56ch; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--space-10) 0; }

/* ============================================
   BUTTONS — estilo del manual (pill shape, Mars Red)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.btn-primary {
  background: var(--mars-red);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--mars-red-700);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(222, 65, 27, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--deep-space-700);
  border: 1.5px solid var(--deep-space-700);
}
.btn-secondary:hover {
  background: var(--deep-space-700);
  color: var(--white);
}
.btn-ghost {
  padding: 12px 8px;
  color: var(--deep-space-700);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.btn-ghost:hover { color: var(--mars-red); }
.btn-lg { padding: 20px 36px; font-size: 15px; }

.arrow-r {
  width: 15px; height: 15px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow-r { transform: translateX(3px); }

/* ============================================
   LOGO OFICIAL HEIMDALL
   Reconstrucción fiel del manual de marca
   - Dos barras verticales rojas
   - Barra izquierda: corte diagonal superior derecho
   - Barra derecha: corte diagonal inferior izquierdo
   - Juntas forman un escudo estilizado
   ============================================ */
.heimdall-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heimdall-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.footer .heimdall-logo-img {
  height: 80px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid var(--deep-space-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-space-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--mars-red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 0 var(--space-9);
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--white) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(222, 65, 27, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { position: relative; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  background: var(--white);
  border: 1px solid var(--deep-space-200);
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--deep-space-700);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-xs);
}
.hero-meta-dot {
  width: 8px; height: 8px;
  background: #2F9E5F;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 3px rgba(47, 158, 95, 0.2);
}
.hero-meta-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(47, 158, 95, 0.4);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
h1 .accent-red { color: var(--mars-red); }
h1 .highlight {
  color: var(--mars-red);
  font-weight: 700;
}
.hero p.lead { margin-top: 28px; font-size: 19px; color: var(--deep-space-500); }
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual — Deep Space background with shield composition */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-height: 640px;
}
.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-space-900) 0%, var(--deep-space-700) 100%);
  border-radius: 20px;
  overflow: hidden;
}
.hero-visual-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(222, 65, 27, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 82% 88%, rgba(222, 65, 27, 0.12) 0%, transparent 50%);
}
.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-shield-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-shield-ring.r1 { inset: -18%; animation: rotate 60s linear infinite; }
.hero-shield-ring.r2 { inset: -6%; animation: rotate 40s linear infinite reverse; }
.hero-shield-ring.r3 { inset: 8%; animation: rotate 30s linear infinite; border-color: rgba(222, 65, 27, 0.28); }
.hero-shield-ring.r1::before,
.hero-shield-ring.r2::before {
  content: ''; position: absolute;
  width: 6px; height: 6px;
  background: var(--mars-red);
  border-radius: 50%;
  top: -3px; left: 50%;
  box-shadow: 0 0 14px var(--mars-red-300);
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-shield-brand {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.hero-shield-brand svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 48px rgba(222, 65, 27, 0.5)); }

.hero-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.hero-chip-icon {
  width: 26px; height: 26px;
  background: var(--mars-red);
  border-radius: 7px;
  display: grid; place-items: center;
  color: white;
}
.hero-chip.c1 { top: 9%;   left: 5%;  animation: float 6s ease-in-out infinite; }
.hero-chip.c2 { bottom: 16%; right: 5%; animation: float 6s ease-in-out infinite 2s; }
.hero-chip.c3 { top: 42%;  right: -4%; animation: float 6s ease-in-out infinite 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-chip-num {
  font-family: var(--font-mono);
  color: var(--mars-red-300);
  font-weight: 600;
  font-size: 11px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: end;
}
.section-head-left .section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--deep-space-400);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.section-head-right { max-width: 52ch; }
.section-head h2 { margin-top: 12px; }


/* ============================================
   RECURSO VISUAL DEL ENCABEZADO
   Ícono grande sobre órbitas, sin marco.
   ============================================ */
.section-head.has-visual { align-items: center; }
.section-visual {
  position: relative;
  width: 100%;
  height: 240px;
}
.section-visual.is-icon {
  display: grid;
  place-items: center;
}
.section-visual.is-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(222, 65, 27, 0.07) 0%, transparent 58%);
}
/* Cuadrado centrado: mantiene los anillos circulares sin depender del ancho */
.section-visual-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  aspect-ratio: 1;
}
.section-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(222, 65, 27, 0.15);
}
.section-visual-ring.r1 { inset: 0; animation: rotate 70s linear infinite; }
.section-visual-ring.r2 {
  inset: 15%;
  border-color: rgba(72, 83, 91, 0.12);
  animation: rotate 45s linear infinite reverse;
}
.section-visual-ring.r1::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mars-red);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(222, 65, 27, 0.55);
}
.section-visual-glyph {
  position: relative;
  z-index: 2;
  width: 112px; height: 112px;
  color: var(--mars-red);
}

/* Sobre Deep Space los trazos claros desaparecen: suben anillos y tinte del ícono */
.section-visual.is-icon.on-dark .section-visual-glyph { color: var(--mars-red-300); }
.section-visual.is-icon.on-dark .section-visual-ring { border-color: rgba(222, 65, 27, 0.30); }
.section-visual.is-icon.on-dark .section-visual-ring.r2 { border-color: rgba(255, 255, 255, 0.12); }
.section-visual.is-icon.on-dark::after {
  background: radial-gradient(circle at 50% 50%, rgba(222, 65, 27, 0.12) 0%, transparent 58%);
}

/* ============================================
   PROBLEMA — Fondo Deep Space
   ============================================ */
.problema {
  background: var(--deep-space-900);
  color: var(--white);
  position: relative;
}
.problema::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mars-red) 30%, var(--mars-red) 70%, transparent);
  opacity: 0.35;
}
.problema h2 { color: var(--white); }
.problema h2 em { color: var(--mars-red); font-weight: 700; }
.problema .section-head-left .section-num { color: var(--deep-space-400); }
.problema .section-head-right p { color: var(--deep-space-300); }

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.problema-card {
  padding: 48px 32px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background 0.3s;
}
.problema-card:last-child { border-right: none; padding-right: 0; }
.problema-card:not(:first-child) { padding-left: 32px; }
.problema-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mars-red-300);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.problema-card-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: rgba(222, 65, 27, 0.14);
}
.problema-card-icon svg { width: 24px; height: 24px; color: var(--mars-red-300); }
.problema-card h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.problema-card p { color: var(--deep-space-300); font-size: 15px; line-height: 1.6; }


.problema-cierre {
  margin-top: 64px;
  padding: 32px 40px;
  border-left: 3px solid var(--mars-red);
  background: rgba(255,255,255,0.03);
  font-size: 19px;
  color: var(--white);
  line-height: 1.55;
  max-width: 820px;
}
.problema-cierre strong { color: var(--mars-red); font-weight: 700; }

/* ============================================
   SOLUCIÓN
   ============================================ */
.solucion {
  background: var(--cream);
  position: relative;
}
.solucion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.solucion-card {
  padding: 40px 32px 36px;
  background: var(--white);
  border: 1px solid var(--deep-space-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.solucion-card:hover {
  transform: translateY(-4px);
  border-color: var(--mars-red);
  box-shadow: var(--shadow-md);
}
.solucion-card-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--deep-space-400);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.solucion-card-step::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--deep-space-200);
}
.solucion-card-icon {
  width: 58px; height: 58px;
  background: var(--mars-red-50);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--mars-red);
}
.solucion-card-icon svg { width: 28px; height: 28px; }
.solucion-card h4 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep-space-900);
  line-height: 1.15;
}
.solucion-card p { font-size: 15px; line-height: 1.6; color: var(--deep-space-500); }

/* ============================================
   CÓMO FUNCIONA — Timeline horizontal
   ============================================ */
.proceso { background: var(--white); }
.proceso-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 40px;
}
.proceso-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--deep-space-300) 0 4px, transparent 4px 12px);
  z-index: 0;
}
.proceso-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.proceso-step-node {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--deep-space-200);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 19px;
  font-weight: 700;
  color: var(--deep-space-900);
  transition: all 0.3s;
  letter-spacing: -0.02em;
}
.proceso-step:hover .proceso-step-node {
  background: var(--mars-red);
  color: var(--white);
  border-color: var(--mars-red);
  transform: scale(1.06);
}
.proceso-step h4 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep-space-900);
  line-height: 1.2;
}
.proceso-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--deep-space-500);
}

/* ============================================
   SERVICIOS — Asymmetric grid
   ============================================ */
.servicios { background: var(--deep-space-50); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.servicio-card {
  background: var(--white);
  border: 1px solid var(--deep-space-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.servicio-card:hover {
  background: var(--deep-space-900);
  border-color: var(--deep-space-900);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.servicio-card:hover h4 { color: var(--white); }
.servicio-card:hover p { color: var(--deep-space-300); }
.servicio-card:hover .servicio-number { color: var(--mars-red-300); }
.servicio-card:hover .servicio-icon { background: var(--mars-red); color: var(--white); }
.servicio-card:hover .servicio-arrow { background: var(--mars-red); color: var(--white); transform: rotate(-45deg); }

.servicio-card.span-6 { grid-column: span 6; }
.servicio-card.span-4 { grid-column: span 4; }

.servicio-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.servicio-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--deep-space-400);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.servicio-icon {
  width: 50px; height: 50px;
  background: var(--mars-red-50);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--mars-red);
  transition: all 0.3s;
}
.servicio-icon svg { width: 23px; height: 23px; }
.servicio-arrow {
  width: 42px; height: 42px;
  background: var(--deep-space-100);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--deep-space-700);
  transition: all 0.3s;
}
.servicio-arrow svg { width: 15px; height: 15px; }
.servicio-card h4 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--deep-space-900);
  transition: color 0.3s;
}
.servicio-card.span-6 h4 { font-size: 30px; }
.servicio-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--deep-space-500);
  transition: color 0.3s;
  margin-top: auto;
}
.servicio-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.servicio-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--deep-space-400);
  letter-spacing: 0.05em;
}
.servicio-card:hover .servicio-tag { color: var(--deep-space-400); }

.servicios-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 44px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--deep-space-200);
  gap: 24px;
}
.servicios-cta p {
  color: var(--deep-space-900);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================
   AUDIENCIA
   ============================================ */

/* ============================================
   DIFERENCIALES — Deep Space bg
   ============================================ */
.diferenciales {
  background: var(--deep-space-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.diferenciales::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(222, 65, 27, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.diferenciales h2 { color: var(--white); }
.diferenciales h2 em { color: var(--mars-red); font-weight: 700; }
.diferenciales .section-head-left .section-num { color: var(--deep-space-400); }
.diferenciales .section-head-right p { color: var(--deep-space-300); }

.diferenciales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.diferencial-item {
  padding: 40px 32px 40px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.diferencial-item:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.diferencial-item:nth-child(even) { padding-left: 48px; }
.diferencial-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }

.diferencial-check {
  width: 44px; height: 44px;
  background: var(--mars-red);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
}
.diferencial-check svg { width: 20px; height: 20px; }
.diferencial-item h4 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}
.diferencial-item p {
  color: var(--deep-space-300);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  padding: var(--space-10) 0;
  background: var(--cream);
}
.cta-final-card {
  background: var(--mars-red);
  color: var(--white);
  border-radius: 24px;
  padding: 88px 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-final-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 60%);
}
.cta-final-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, black 0%, transparent 60%);
}
.cta-final-copy { position: relative; z-index: 1; }
.cta-final .eyebrow { color: rgba(255,255,255,0.85); }
.cta-final .eyebrow::before { background: rgba(255,255,255,0.6); }
.cta-final h2 {
  color: var(--white);
  font-size: clamp(36px, 4.6vw, 60px);
  margin-top: 20px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.cta-final h2 em { font-weight: 700; opacity: 0.78; }
.cta-final p {
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  margin-top: 20px;
  max-width: 48ch;
  line-height: 1.55;
}
.cta-final-buttons {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-final .btn-primary {
  background: var(--white);
  color: var(--mars-red-700);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.cta-final .btn-primary:hover { background: var(--cream); }
.cta-final .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.cta-final .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.cta-final-visual {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.cta-shield {
  width: 280px; height: 280px;
  position: relative;
  display: grid;
  place-items: center;
}
.cta-shield-ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50%;
}
.cta-shield-ring.r1 { inset: 0; animation: rotate 40s linear infinite; }
.cta-shield-ring.r2 { inset: -18%; animation: rotate 60s linear infinite reverse; border-style: dashed; border-color: rgba(255,255,255,0.18); }
.cta-shield-ring.r1::before {
  content: ''; position: absolute;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  top: -4px; left: 50%;
  transform: translateX(-50%);
}
.cta-shield-brand { width: 90%; position: relative; z-index: 2; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--deep-space-900);
  color: var(--deep-space-300);
  padding: var(--space-9) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .footer p.footer-tagline {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--deep-space-300);
  max-width: 32ch;
  line-height: 1.55;
  font-weight: 400;
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-space-400);
  font-weight: 700;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  color: var(--deep-space-300);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--mars-red); }
.footer-contact li {
  font-size: 14px;
  color: var(--deep-space-300);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact svg { width: 14px; height: 14px; color: var(--mars-red); flex-shrink: 0; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal {
  font-size: 13px;
  color: var(--deep-space-400);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--deep-space-300);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--mars-red);
  color: var(--white);
  border-color: var(--mars-red);
}
.footer-social svg { width: 14px; height: 14px; }

/* ============================================
   NAV MÓVIL — hamburguesa + panel
   ============================================ */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--deep-space-900);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--deep-space-100);
}
.nav-mobile a {
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-space-900);
  border-bottom: 1px solid var(--deep-space-100);
}
.nav-mobile a.btn { margin-top: 16px; border-bottom: none; justify-content: center; color: var(--white); }
body.nav-open .nav-mobile { display: flex; }

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --space-10: 88px; --space-9: 72px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-height: 360px; aspect-ratio: 1.4/1; }
    .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-visual { height: 200px; }
  .section-visual-glyph { width: 96px; height: 96px; }
  .problema-grid, .solucion-grid, .proceso-timeline { grid-template-columns: 1fr; }
  .proceso-timeline::before { display: none; }
  .proceso-step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; row-gap: 6px; }
  .proceso-step-node { grid-row: 1 / span 2; }
  .proceso-step h4 { align-self: center; }
  .problema-card { padding: 40px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .problema-card:last-child { border-bottom: none; }
  .problema-card:not(:first-child) { padding-left: 0; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicio-card.span-6, .servicio-card.span-4 { grid-column: span 2; }
  .diferenciales-grid { grid-template-columns: 1fr; }
  .diferencial-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .diferencial-item:nth-child(even) { padding-left: 0; }
  .cta-final-card { grid-template-columns: 1fr; padding: 56px 40px; gap: 40px; text-align: left; }
  .cta-final-visual { min-height: 220px; }
  .cta-shield { width: 200px; height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --space-10: 64px; --space-9: 56px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 48px 0 64px; }
    .servicios-grid { grid-template-columns: 1fr; }
  .servicio-card.span-6, .servicio-card.span-4 { grid-column: span 1; }
  .servicios-cta { flex-direction: column; gap: 20px; align-items: flex-start; padding: 28px; }
  .cta-final-card { padding: 48px 28px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
em { font-style: normal; }
