@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/syne-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
}

:root {
  /* Variables originales de marca ByGrow */
  --nopal: #1F5A45;
  --espina: #12261D;
  --salvia: #E3EDDA;
  --hueso: #F7FAF4;
  --brote: #B8E06A;
  --gris: #5B6F64;
  --linea: #CFDCC6;

  /* Tokens extendidos — Estética Dark Void (inspirado en DESIGN.md) */
  --void: #07110C;
  --void-deep: #040B08;
  --esmeralda: #288865;
  --ambar: #FFB829;
  --gris-claro: #8AA195;
  --brote-glow: rgba(184, 224, 106, 0.22);
  --nopal-glass: rgba(18, 38, 29, 0.72);
  --linea-sutil: rgba(207, 220, 198, 0.12);
  --linea-activa: rgba(184, 224, 106, 0.4);

  /* Tipografías (fonts.txt) */
  --font-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;

  /* Escala Tipográfica Escultórica */
  --text-caption: 0.75rem;      /* 12px */
  --text-nav: 0.875rem;         /* 14px */
  --text-body: 1.125rem;        /* 18px */
  --text-body-lg: 1.25rem;      /* 20px */
  --text-h3: clamp(1.5rem, 2.2vw, 2.1rem);
  --text-h2: clamp(2.25rem, 4.2vw, 4.25rem);
  --text-display: clamp(2.75rem, 5.6vw, 5.75rem);

  /* Espaciado (base 6px de DESIGN.md) */
  --space-6: 6px;
  --space-12: 12px;
  --space-18: 18px;
  --space-24: 24px;
  --space-36: 36px;
  --space-60: 60px;
  --space-96: 96px;
  --space-120: 120px;

  /* Radios */
  --radius-card: 24px;
  --radius-pill: 9999px;
  --page-max-width: 1280px;
}

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

html {
  background-color: var(--void);
  color: var(--hueso);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at 70% 20%, rgba(31, 90, 69, 0.16) 0%, rgba(18, 38, 29, 0.4) 45%, var(--void) 100%);
  background-color: var(--void);
  color: var(--hueso);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--brote);
  color: var(--espina);
}

/* Lienzo WebGL 3D Fijo (Constelación de Partículas) */
#webgl-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Viñeta sutil para proteger legibilidad del texto sobre las partículas */
.void-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(4, 11, 8, 0.65) 100%),
    linear-gradient(180deg, rgba(7, 17, 12, 0.7) 0%, transparent 12%, transparent 88%, rgba(7, 17, 12, 0.85) 100%);
}

/* Contenido principal sobre el Void */
main, header, footer {
  position: relative;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--space-24);
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR (Minimalista y transparente estilo DESIGN.md)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 20px 0;
  transition: background-color 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background-color: rgba(7, 17, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(207, 220, 198, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hueso);
}

.brand-logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(184, 224, 106, 0.25));
  transition: transform 0.3s ease;
}

.brand-lockup:hover .brand-logo-svg {
  transform: scale(1.06) rotate(-3deg);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--hueso);
}

.brand-wordmark span {
  color: var(--brote);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris-claro);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--hueso);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   BOTONES Y ENLACES (Un solo acento saturado --brote para acción primaria)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--brote);
  color: var(--espina);
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.btn-primary:hover {
  background-color: #c7eb7e;
  box-shadow: 0 0 28px rgba(184, 224, 106, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--sm {
  padding: 12px 18px;
  font-size: 0.8125rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--salvia);
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 12px 6px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  color: var(--ambar);
  transform: translateX(3px);
}

/* ==========================================================================
   TIPOGRAFÍA Y COMPONENTES EDITORIALES (Sin cajas, flotando en el Void)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ambar);
  margin-bottom: var(--space-18);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brote);
  box-shadow: 0 0 10px var(--brote);
}

.headline-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--hueso);
  margin-bottom: var(--space-24);
}

.headline-display .accent-brote {
  color: var(--brote);
}

.headline-display .accent-ambar {
  color: var(--ambar);
}

.headline-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--hueso);
  margin-bottom: var(--space-24);
}

.body-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--salvia);
  max-width: 520px;
}

.body-copy strong {
  color: var(--hueso);
  font-weight: 500;
}

.body-copy--muted {
  color: var(--gris-claro);
}

/* ==========================================================================
   LAYOUT DE SECCIONES (Ritmo asimétrico de 2 columnas en Zigzag)
   ========================================================================== */
.stage-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-120) 0;
  position: relative;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-24);
  align-items: center;
  width: 100%;
}

/* Columna texto a la izquierda, espacio de partículas a la derecha */
.split-grid--left .content-col {
  grid-column: 1 / 7;
}
.split-grid--left .visual-spacer {
  grid-column: 7 / 13;
  min-height: 420px;
}

/* Columna texto a la derecha, espacio de partículas a la izquierda */
.split-grid--right .visual-spacer {
  grid-column: 1 / 6;
  min-height: 420px;
}
.split-grid--right .content-col {
  grid-column: 6 / 13;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: var(--space-36);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-60);
  padding-top: var(--space-24);
  border-top: 1px solid var(--linea-sutil);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hueso);
}

.metric-value span {
  color: var(--brote);
}

.metric-label {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gris-claro);
  font-weight: 500;
}

/* ==========================================================================
   SECCIÓN EL SISTEMA (Camino del cliente sin cajas pesadas)
   ========================================================================== */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 36px;
  margin-top: var(--space-36);
}

.journey-node {
  padding-left: 18px;
  border-left: 1px solid var(--linea-activa);
}

.journey-node-num {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brote);
  margin-bottom: 6px;
  display: block;
}

.journey-node-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--hueso);
  margin-bottom: 6px;
}

.journey-node-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gris-claro);
  line-height: 1.5;
}

/* ==========================================================================
   SERVICIOS (Pilar blocks con tags limpios)
   ========================================================================== */
.service-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brote);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-index::after {
  content: "";
  width: 36px;
  height: 1px;
  background-color: var(--linea-activa);
}

.service-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ambar);
  letter-spacing: -0.02em;
  margin: var(--space-18) 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-24);
  list-style: none;
}

.service-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--salvia);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 220, 198, 0.16);
  background: rgba(18, 38, 29, 0.45);
}

/* ==========================================================================
   SECTORES Y DIFERENCIALES
   ========================================================================== */
.sectors-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-24) 0 var(--space-36);
}

.sector-pill {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--hueso);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(184, 224, 106, 0.25);
  background: rgba(31, 90, 69, 0.18);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.sector-pill:hover {
  border-color: var(--brote);
  transform: translateY(-2px);
}

.differentials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: var(--space-36);
}

.diff-item {
  border-top: 1px solid var(--linea-sutil);
  padding-top: 18px;
}

.diff-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--hueso);
  margin-bottom: 8px;
}

.diff-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gris-claro);
}

/* ==========================================================================
   PROCESO (5 PASOS — Tipografía pura flotando sobre el Void)
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: var(--space-60);
  border-top: 1px solid var(--linea-sutil);
  padding-top: var(--space-36);
}

.process-step {
  position: relative;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--brote);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.process-step-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--hueso);
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gris-claro);
  line-height: 1.5;
}

/* ==========================================================================
   CIERRE / DIAGNÓSTICO FINAL
   ========================================================================== */
.cta-final-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-120) 0;
}

.diagnostic-form {
  margin-top: var(--space-36);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.void-input {
  width: 100%;
  background: rgba(18, 38, 29, 0.55);
  border: 1px solid rgba(207, 220, 198, 0.18);
  border-radius: 16px;
  padding: 15px 18px;
  color: var(--hueso);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.void-input::placeholder {
  color: var(--gris-claro);
}

.void-input:focus {
  border-color: var(--brote);
  background: rgba(18, 38, 29, 0.85);
}

/* ==========================================================================
   HUD DE CONSTELACIÓN 3D (Indicador lateral de Morphing)
   ========================================================================== */
.constellation-hud {
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(7, 17, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 220, 198, 0.1);
}

.hud-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

.hud-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hud-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(207, 220, 198, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.hud-dot:hover::before {
  background: var(--salvia);
  transform: scale(1.2);
}

.hud-dot:focus-visible {
  outline: 2px solid var(--brote);
  outline-offset: 2px;
}

.hud-dot.active::before {
  background: var(--brote);
  box-shadow: 0 0 10px var(--brote);
  transform: scale(1.25);
}

.hud-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--salvia);
  min-width: 135px;
}

/* ==========================================================================
   ACCIONES FLOTANTES: CHATBOT 24/7 + WHATSAPP DIRECTO
   ========================================================================== */
.contact-fab-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chatbot-widget {
  position: relative;
  font-family: var(--font-body);
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: rgba(18, 38, 29, 0.92);
  border: 1px solid var(--linea-activa);
  color: var(--hueso);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(184, 224, 106, 0.15);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  border-color: var(--brote);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 26px rgba(184, 224, 106, 0.3);
}

.bot-status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brote);
  box-shadow: 0 0 10px var(--brote);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: rgba(9, 21, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 224, 106, 0.3);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(31, 90, 69, 0.28);
  border-bottom: 1px solid var(--linea-sutil);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hueso);
}

.chatbot-subtitle {
  font-size: 0.72rem;
  color: var(--brote);
  display: block;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: var(--gris-claro);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.chatbot-close:hover {
  color: var(--hueso);
}

.chatbot-body {
  padding: 18px 20px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-msg {
  background: rgba(31, 90, 69, 0.24);
  border: 1px solid rgba(207, 220, 198, 0.1);
  color: var(--hueso);
  padding: 12px 15px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.45;
}

.user-msg {
  align-self: flex-end;
  background: var(--brote);
  color: var(--espina);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bot-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.bot-option-btn {
  text-align: left;
  background: rgba(18, 38, 29, 0.75);
  border: 1px solid rgba(184, 224, 106, 0.25);
  color: var(--salvia);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bot-option-btn:hover {
  background: rgba(31, 90, 69, 0.45);
  border-color: var(--brote);
  color: var(--hueso);
}

/* --------------------------------------------------------------------------
   Botón Flotante de WhatsApp (afín a la estética Void + Brote)
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 38, 29, 0.94);
  border: 1px solid rgba(184, 224, 106, 0.45);
  color: var(--brote);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(184, 224, 106, 0.18);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease,
    color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: var(--brote);
  color: var(--espina);
  border-color: var(--brote);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65), 0 0 30px rgba(184, 224, 106, 0.5);
}

.whatsapp-fab:focus-visible {
  outline: 2px solid var(--brote);
  outline-offset: 3px;
}

.whatsapp-icon {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  fill: currentColor;
}

/* Anillo de pulso sutil, alineado con el estado del Chatbot */
.fab-ping {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(184, 224, 106, 0.45);
  animation: fabPing 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes fabPing {
  0% { transform: scale(0.92); opacity: 0; }
  35% { opacity: 0.7; }
  100% { transform: scale(1.32); opacity: 0; }
}

/* Tooltip que aparece a la izquierda del botón */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: rgba(9, 21, 15, 0.96);
  border: 1px solid rgba(184, 224, 106, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hueso);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-fab:hover .fab-tooltip,
.whatsapp-fab:focus-visible .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fab-ping {
    animation: none;
    opacity: 0;
  }

  .whatsapp-fab {
    transition: none;
  }
}

/* ==========================================================================
   UTILIDADES DE ACCESIBILIDAD Y SEO
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--brote);
  color: var(--espina);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--hueso);
  outline-offset: 2px;
}

.field {
  display: flex;
  flex-direction: column;
}

/* Compensa el header fijo al navegar por anclas dentro de la página */
#diagnostico {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (Contenido SEO y soporte a la decisión)
   ========================================================================== */
.faq-section {
  position: relative;
  padding: var(--space-120) 0;
  border-top: 1px solid var(--linea-sutil);
  background: linear-gradient(180deg, rgba(7, 17, 12, 0.9) 0%, rgba(7, 17, 12, 0.96) 100%);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-60);
  align-items: start;
}

.faq-intro .body-copy {
  max-width: 420px;
}

.faq-cta {
  margin-top: var(--space-24);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gris-claro);
}

.faq-cta a {
  color: var(--brote);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 224, 106, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.faq-cta a:hover,
.faq-cta a:focus-visible {
  color: var(--hueso);
  border-color: var(--hueso);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--linea-sutil);
}

.faq-item {
  border-bottom: 1px solid var(--linea-sutil);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--hueso);
  transition: color 0.2s ease;
}

.faq-item summary:hover h3,
.faq-item summary:focus-visible h3 {
  color: var(--brote);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--brote);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 224, 106, 0.32);
  border-radius: 50%;
  color: var(--brote);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
  border-color: var(--brote);
  background: rgba(184, 224, 106, 0.08);
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  max-width: 640px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gris-claro);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 72px 0 96px;
  border-top: 1px solid var(--linea-sutil);
  background: linear-gradient(180deg, rgba(7, 17, 12, 0.96) 0%, rgba(4, 11, 8, 0.99) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.footer-brand .brand-lockup {
  margin-bottom: 18px;
}

.footer-description {
  max-width: 380px;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gris-claro);
}

.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brote);
}

.footer-heading {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hueso);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-list a {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gris-claro);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brote);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--gris-claro);
}

.footer-contact a {
  color: var(--hueso);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--brote);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--linea-sutil);
}

.footer-copy {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gris-claro);
}

/* ==========================================================================
   RESPONSIVE (Mobile-first & adaptación del Canvas 3D)
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .split-grid--left .content-col,
  .split-grid--right .content-col {
    grid-column: 1 / 13;
  }

  .split-grid--left .visual-spacer,
  .split-grid--right .visual-spacer {
    grid-column: 1 / 13;
    min-height: 240px;
    order: -1;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .constellation-hud {
    left: 16px;
    bottom: 18px;
    padding: 8px 12px;
  }

  .hud-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .stage-section {
    padding: var(--space-60) 0;
  }

  .hero-section {
    padding-top: 100px;
  }

  .journey-steps,
  .process-timeline,
  .input-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .chatbot-launcher span.launcher-text {
    display: none;
  }

  .contact-fab-stack {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
  }

  .fab-tooltip {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE — PREGUNTAS FRECUENTES Y FOOTER SEO
   ========================================================================== */
@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-36);
  }

  .faq-intro .body-copy {
    max-width: 620px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .faq-section {
    padding: var(--space-60) 0;
  }

  .faq-item summary {
    padding: 18px 0;
  }

  .faq-item summary h3 {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    margin-top: 36px;
  }
}
