/* ==========================================================================
   GEROS S.A.S. - Hoja de Estilos Principal (Ingeniería B2B & SEO)
   Paleta Oficial: #025230, #00703C, #307B48, #04B86D, #051B11, #F3F7F5
   ========================================================================== */

:root {
  /* Colores Corporativos Oficiales GEROS */
  --geros-ink: #051B11;
  --geros-deep: #025230;
  --geros-primary: #00703C;
  --geros-logo: #307B48;
  --geros-emerald: #04B86D;
  --geros-emerald-bright: #00D07A;
  --geros-surface: #F2F7F4;
  --geros-surface-alt: #E5EFEA;
  --geros-white: #FFFFFF;

  /* Textos de Alto Contraste (WCAG AA/AAA) */
  --text-main: #12211A;
  --text-secondary: #3B4F44;
  --text-muted: #5A6F63;
  --text-on-dark: #F4F9F6;
  --text-on-dark-muted: #C2D8CD;

  /* Bordes y Sombras Arquitectónicas */
  --border-subtle: #D5E3DC;
  --border-strong: #B4CCC0;
  --shadow-sm: 0 2px 8px rgba(5, 27, 17, 0.05);
  --shadow-md: 0 10px 30px rgba(5, 27, 17, 0.08);
  --shadow-lg: 0 20px 48px rgba(5, 27, 17, 0.14);
  --shadow-emerald: 0 8px 24px rgba(4, 184, 109, 0.25);

  /* Tipografías */
  --font-display: 'Exo 2', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radios y Transiciones */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--geros-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--geros-emerald);
  color: var(--geros-ink);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--geros-ink);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
}

a {
  color: var(--geros-primary);
  text-decoration: none;
  transition: color var(--transition);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(4, 184, 109, 0.12);
  color: var(--geros-deep);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Accesibilidad: Skip Link y Focus Visible */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--geros-emerald);
  color: var(--geros-ink);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--geros-emerald);
  outline-offset: 2px;
}

/* Utilidades de Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 5.5rem 0;
}

.bg-white {
  background-color: var(--geros-white);
}

.bg-surface {
  background-color: var(--geros-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bg-dark-emerald {
  background: linear-gradient(135deg, var(--geros-ink) 0%, var(--geros-deep) 60%, #036038 100%);
  position: relative;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--geros-white) !important;
}

.text-light-muted {
  color: var(--text-on-dark-muted) !important;
}

.icon-xs {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Encabezados de Sección */
.section-header {
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--geros-primary);
  background: rgba(0, 112, 60, 0.09);
  border: 1px solid rgba(0, 112, 60, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.section-tag.tag-light {
  color: var(--geros-emerald-bright);
  background: rgba(4, 184, 109, 0.14);
  border-color: rgba(4, 184, 109, 0.35);
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Botones Corporativos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.72rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
  min-height: 44px;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--geros-primary);
  color: var(--geros-white);
  border-color: var(--geros-primary);
}

.btn-primary:hover {
  background-color: var(--geros-deep);
  border-color: var(--geros-deep);
  color: var(--geros-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-emerald {
  background-color: var(--geros-emerald);
  color: var(--geros-ink);
  border-color: var(--geros-emerald);
  font-weight: 700;
}

.btn-emerald:hover {
  background-color: var(--geros-emerald-bright);
  border-color: var(--geros-emerald-bright);
  color: var(--geros-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-emerald);
}

.btn-outline {
  background-color: transparent;
  color: var(--geros-primary);
  border-color: var(--geros-primary);
}

.btn-outline:hover {
  background-color: var(--geros-primary);
  color: var(--geros-white);
}

.btn-ghost-light {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--geros-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
  background-color: var(--geros-white);
  color: var(--geros-deep);
  border-color: var(--geros-white);
}

/* ==========================================================================
   1. TOPBAR Y HEADER NAVEGACIÓN
   ========================================================================== */
.topbar {
  background-color: #03130C;
  color: var(--text-on-dark-muted);
  font-size: 0.83rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--geros-emerald);
  box-shadow: 0 0 8px var(--geros-emerald);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-on-dark);
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--geros-emerald-bright);
}

.topbar-divider {
  opacity: 0.3;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  margin-left: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--text-on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--geros-emerald);
  color: var(--geros-ink);
}

/* Header Principal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(5, 27, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: all var(--transition);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.site-header .logo-color {
  display: none;
}

.site-header.scrolled .logo-light {
  display: none;
}

.site-header.scrolled .logo-color {
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-on-dark);
  border-radius: 6px;
  transition: all 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--geros-emerald-bright);
  background: rgba(255, 255, 255, 0.07);
}

.site-header.scrolled .nav-link {
  color: var(--text-main);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--geros-primary);
  background: var(--geros-surface);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
}

.site-header.scrolled .nav-toggle {
  border-color: var(--border-strong);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--geros-white);
  transition: 0.2s ease;
}

.site-header.scrolled .hamburger-bar {
  background-color: var(--geros-ink);
}

/* ==========================================================================
   2. HERO Y CONSOLA INTERACTIVA DE ARQUITECTURA GEROS
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #04160E 0%, #024427 55%, #006636 100%);
  color: var(--geros-white);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-circuit-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(4, 184, 109, 0.18) 0%, transparent 42%),
    linear-gradient(to right, rgba(4, 184, 109, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 184, 109, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--geros-emerald-bright);
  background: rgba(4, 184, 109, 0.12);
  border: 1px solid rgba(4, 184, 109, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--geros-emerald-bright);
}

.hero-copy h1 {
  color: var(--geros-white);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.13;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-lead strong {
  color: var(--geros-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-trust-strip {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.35rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--geros-emerald-bright);
  flex-shrink: 0;
}

/* Consola Interactiva Hero */
.console-window {
  background: rgba(6, 26, 17, 0.88);
  border: 1px solid rgba(4, 184, 109, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.console-dots span:first-child { background: #FF5F56; }
.console-dots span:nth-child(2) { background: #FFBD2E; }
.console-dots span:nth-child(3) { background: #27C93F; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--geros-emerald-bright);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--geros-emerald-bright);
}

.console-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.console-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-on-dark-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.console-tab:hover {
  color: var(--geros-white);
  background: rgba(255, 255, 255, 0.04);
}

.console-tab.active {
  color: var(--geros-emerald-bright);
  border-bottom-color: var(--geros-emerald-bright);
  background: rgba(4, 184, 109, 0.08);
}

.console-body {
  padding: 1.35rem;
}

.console-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kpi-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--geros-emerald-bright);
  font-weight: 600;
}

.kpi-box strong {
  font-size: 0.88rem;
  color: var(--geros-white);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.workflow-diagram {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.wf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.wf-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(4, 184, 109, 0.16);
  color: var(--geros-emerald-bright);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.wf-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--geros-emerald);
}

.wf-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--geros-emerald);
  color: var(--geros-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-step strong {
  display: block;
  font-size: 0.88rem;
  color: var(--geros-white);
}

.wf-step small {
  font-size: 0.77rem;
  color: var(--text-on-dark-muted);
}

/* Matriz ERP en Consola */
.erp-mini-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.erp-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: all 0.18s ease;
}

.erp-node:hover {
  border-color: var(--geros-emerald-bright);
  background: rgba(4, 184, 109, 0.12);
  transform: translateY(-2px);
}

.node-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--geros-emerald-bright);
}

.erp-node strong {
  font-size: 0.82rem;
  color: var(--geros-white);
}

.erp-node small {
  font-size: 0.71rem;
  color: var(--text-on-dark-muted);
}

/* Pipeline Desarrollo a Medida en Consola */
.custom-dev-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pipe-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
}

.pipe-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--geros-ink);
  background: var(--geros-emerald-bright);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.pipe-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--geros-white);
  margin-bottom: 0.2rem;
}

.pipe-item p {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.console-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

.console-footer-bar code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--geros-white);
}

.console-link {
  color: var(--geros-emerald-bright);
  font-weight: 600;
}

.console-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   3. LOS 3 PILARES COMERCIALES (#soluciones)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.pillar-card {
  background: var(--geros-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--geros-primary);
}

.pillar-featured {
  border: 2px solid var(--geros-primary);
  background: linear-gradient(180deg, rgba(0, 112, 60, 0.03) 0%, #FFFFFF 100%);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 112, 60, 0.1);
  color: var(--geros-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--geros-deep);
  background: var(--geros-surface-alt);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.pillar-card > p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}

.pillar-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--geros-primary);
  font-weight: 800;
}

.pillar-footer {
  margin-top: auto;
}

/* ==========================================================================
   4. SECCIÓN SISTEMA DE GESTIÓN DOCUMENTAL (#gestion-documental)
   ========================================================================== */
.sgd-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.sgd-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}

.sgd-lead {
  color: var(--text-secondary);
  font-size: 1.04rem;
  margin-bottom: 1.75rem;
}

.sgd-pillars-mini {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sgd-mini-card {
  background: var(--geros-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sgd-mini-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--geros-white);
  background: var(--geros-deep);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.sgd-mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--geros-ink);
}

.sgd-mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sgd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Panel Interactivo SGD */
.sgd-interactive-panel {
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.sgd-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.panel-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--geros-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sgd-panel-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.sgd-norm-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(4, 184, 109, 0.15);
  color: var(--geros-deep);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.sgd-step-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--geros-surface);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.sgd-step-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.sgd-step-btn.active {
  background: var(--geros-deep);
  color: var(--geros-white);
  box-shadow: var(--shadow-sm);
}

.sgd-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sgd-check-card {
  background: var(--geros-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.check-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--geros-primary);
  background: rgba(0, 112, 60, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sgd-check-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.sgd-check-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.sgd-doc-types {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}

.doc-types-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doc-pills span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--geros-surface-alt);
  color: var(--geros-deep);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
}

/* ==========================================================================
   5. EXPLORADOR DE LOS 9 MÓDULOS DE GEROS ERP (#modulos-erp)
   ========================================================================== */
.modules-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--geros-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2rem;
}

.module-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.module-search-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 2.9rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-main);
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-search-input:focus {
  border-color: var(--geros-primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 60, 0.15);
  outline: none;
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  background: var(--geros-surface-alt);
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
}

.module-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  background: var(--geros-white);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--geros-primary);
  color: var(--geros-primary);
}

.filter-chip.active {
  background: var(--geros-primary);
  border-color: var(--geros-primary);
  color: var(--geros-white);
}

.search-status-msg {
  font-size: 0.92rem;
  color: var(--geros-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.module-card {
  background: var(--geros-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.module-card:hover,
.module-card.highlight-pulse {
  border-color: var(--geros-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.module-card.highlight-pulse {
  box-shadow: 0 0 0 3px var(--geros-emerald), var(--shadow-md);
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--geros-deep);
  color: var(--geros-emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-icon svg {
  width: 24px;
  height: 24px;
}

.module-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--geros-primary);
  letter-spacing: 0.04em;
}

.module-card h3 {
  font-size: 1.22rem;
  margin: 0.15rem 0 0;
}

.module-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.module-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.module-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--geros-emerald);
}

.module-card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-subtle);
}

.btn-module-select {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--geros-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-module-select:hover {
  color: var(--geros-deep);
  text-decoration: underline;
}

/* Banner de Portafolio PDF */
.portfolio-banner {
  background: var(--geros-surface);
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--geros-primary);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--geros-primary);
  margin-bottom: 0.35rem;
}

.portfolio-banner-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.portfolio-banner-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.portfolio-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   6. METODOLOGÍA DE DESARROLLO A LA MEDIDA (#desarrollo-medida)
   ========================================================================== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.method-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  transition: all var(--transition);
}

.method-step:hover {
  border-color: var(--geros-emerald-bright);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.method-num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--geros-emerald-bright);
  margin-bottom: 0.85rem;
}

.method-step h3 {
  color: var(--geros-white);
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.method-step p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   7. CONFIGURADOR INTERACTIVO DE DIAGNÓSTICO (#diagnostico)
   ========================================================================== */
.diagnostic-box {
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.diagnostic-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.diagnostic-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.diagnostic-header p {
  color: var(--text-secondary);
  margin: 0;
}

.diagnostic-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.diag-option {
  cursor: pointer;
  display: block;
}

.diag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.diag-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--geros-surface);
  transition: all 0.18s ease;
  position: relative;
}

.diag-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  background: var(--geros-white);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  transition: all 0.18s ease;
}

.diag-card strong {
  font-size: 0.98rem;
  color: var(--geros-ink);
}

.diag-card small {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.diag-option input:checked + .diag-card {
  border-color: var(--geros-primary);
  background: rgba(0, 112, 60, 0.06);
}

.diag-option input:checked + .diag-card .diag-check {
  background: var(--geros-primary);
  border-color: var(--geros-primary);
  color: var(--geros-white);
}

.diag-option input:focus-visible + .diag-card {
  outline: 3px solid var(--geros-emerald);
}

.diagnostic-summary-bar {
  background: var(--geros-ink);
  color: var(--geros-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.diag-count-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--geros-emerald-bright);
  margin-bottom: 0.25rem;
}

.diag-summary-text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  max-width: 620px;
}

.diag-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   8. NOSOTROS Y POR QUÉ GEROS (#nosotros)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.about-brand-card {
  background: linear-gradient(135deg, var(--geros-deep) 0%, var(--geros-primary) 100%);
  color: var(--geros-white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.about-logo {
  margin-bottom: 1.5rem;
}

.about-brand-card h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.about-brand-card > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.mv-box h3 {
  color: var(--geros-emerald-bright);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.mv-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  margin: 0;
}

.why-geros-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-geros-content h3 {
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--geros-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}

.benefit-check {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--geros-primary);
  color: var(--geros-white);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.benefit-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   9. PREGUNTAS FRECUENTES (#preguntas-frecuentes)
   ========================================================================== */
.faq-container {
  max-width: 900px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--geros-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--geros-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--geros-primary);
}

.faq-chevron {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--geros-primary);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--geros-surface);
}

.faq-answer p {
  margin: 0.85rem 0 0;
}

/* ==========================================================================
   10. CONTACTO Y FORMULARIO (#contacto)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.85rem;
}

.contact-lead {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-channel-card {
  background: var(--geros-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--geros-primary);
  color: var(--geros-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.channel-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.phone-link,
.email-link,
.coverage-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--geros-ink);
  display: inline-block;
}

.phone-link:hover,
.email-link:hover {
  color: var(--geros-primary);
}

.channel-wa-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wa-inline-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--geros-white);
  color: var(--geros-deep);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.wa-inline-btn:hover {
  background: var(--geros-primary);
  color: var(--geros-white);
  border-color: var(--geros-primary);
}

.channel-note {
  display: block;
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Tarjeta del Formulario */
.contact-form-card {
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1.65rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--geros-ink);
  margin-bottom: 0.4rem;
}

.req {
  color: #C92A2A;
}

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--geros-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
  transition: all 0.18s ease;
}

.form-input:focus {
  background: var(--geros-white);
  border-color: var(--geros-primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 60, 0.14);
  outline: none;
}

.form-input.input-invalid {
  border-color: #C92A2A;
  background: #FFF5F5;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #C92A2A;
  margin-top: 0.25rem;
  min-height: 1em;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
  margin-top: 0.22rem;
  width: 18px;
  height: 18px;
  accent-color: var(--geros-primary);
  flex-shrink: 0;
}

.inline-legal-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--geros-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.form-feedback {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-feedback.is-success {
  background: #E6F8EF;
  border: 1px solid #04B86D;
  color: #025230;
}

.form-feedback.is-error {
  background: #FFF0F0;
  border: 1px solid #E03131;
  color: #9C1C1C;
}

.form-submit-row {
  margin-top: 1.25rem;
}

/* ==========================================================================
   11. FOOTER, WIDGET WHATSAPP, COOKIES Y MODALES LEGALES
   ========================================================================== */
.site-footer {
  background-color: var(--geros-ink);
  color: var(--text-on-dark-muted);
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--geros-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--geros-white);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--geros-emerald-bright);
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
}

.footer-contact-list li span:first-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.footer-legal-btn:hover {
  color: var(--geros-emerald-bright);
  text-decoration: underline;
}

/* Botón Flotante de WhatsApp */
.wa-floating-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: #128C7E;
  background: linear-gradient(135deg, #00A859 0%, #00703C 100%);
  color: var(--geros-white);
  border: 2px solid var(--geros-white);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab:hover {
  transform: translateY(-2px) scale(1.02);
}

.wa-fab svg {
  width: 24px;
  height: 24px;
}

.wa-popup {
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 300px;
  padding: 1.15rem;
  box-shadow: var(--shadow-lg);
}

.wa-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.wa-popup-header strong {
  color: var(--geros-ink);
  font-size: 0.96rem;
}

.wa-popup-header button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-muted);
}

.wa-popup-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.wa-line-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--geros-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

.wa-line-item:last-child {
  margin-bottom: 0;
}

.wa-line-item:hover {
  border-color: var(--geros-primary);
  background: rgba(0, 112, 60, 0.08);
}

.wa-line-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00BD65;
  flex-shrink: 0;
}

.wa-line-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--geros-ink);
}

.wa-line-item span {
  font-size: 0.8rem;
  color: var(--geros-primary);
  font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 980;
  max-width: 960px;
  margin: 0 auto;
  background: var(--geros-ink);
  color: var(--text-on-dark);
  border: 1px solid rgba(4, 184, 109, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-lg);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-on-dark-muted);
}

.cookie-inner .inline-legal-btn {
  color: var(--geros-emerald-bright);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-actions .btn-outline {
  color: var(--geros-white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Modales Legales */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 27, 17, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal-backdrop[hidden] {
  display: none !important;
}

.legal-modal {
  background: var(--geros-white);
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--geros-white);
}

.legal-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.legal-close-btn {
  background: var(--geros-surface);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.legal-modal-body {
  padding: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legal-modal-body h4 {
  margin-top: 1.15rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* ==========================================================================
   12. PÁGINA 404 PERSONALIZADA
   ========================================================================== */
.error-404-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  background: var(--geros-surface);
}

.error-404-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--geros-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--geros-primary);
  background: rgba(0, 112, 60, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.error-lead {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.error-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  margin-bottom: 2rem;
}

.error-quick-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--geros-surface);
}

.error-quick-item:hover {
  border-color: var(--geros-primary);
}

.quick-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--geros-primary);
  font-weight: 600;
}

.error-quick-item strong {
  color: var(--geros-ink);
}

.error-quick-item span:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   13. DISEÑO RESPONSIVO (TABLET Y MÓVIL)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .sgd-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diagnostic-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--geros-ink);
    border-bottom: 2px solid var(--geros-emerald);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .site-header.scrolled .primary-nav {
    background: var(--geros-white);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  .header-cta .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .section-padding {
    padding: 3.75rem 0;
  }

  .topbar-left {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .pillars-grid,
  .modules-grid,
  .methodology-grid,
  .diagnostic-selector,
  .sgd-checklist-grid,
  .mission-vision-grid,
  .form-row,
  .footer-grid,
  .error-quick-grid {
    grid-template-columns: 1fr;
  }

  .console-kpis,
  .erp-mini-matrix,
  .sgd-step-selector {
    grid-template-columns: 1fr;
  }

  .diagnostic-box,
  .contact-form-card,
  .about-brand-card,
  .sgd-interactive-panel,
  .error-404-card {
    padding: 1.5rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .wa-fab-label {
    display: none;
  }

  .wa-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

