/* ==========================================================================
   NEXUS PM · hoja de estilos personalizada
   Archivo: /css/nexus.css
   Uso: cargar DESPUÉS de theme.css para que pueda sobreescribir
   --------------------------------------------------------------------------
   ÍNDICE
   0.  Variables de diseño
   1.  Animaciones globales (keyframes)
   2.  Accesibilidad (prefers-reduced-motion)
   3.  Navbar (global para todas las páginas)
   4.  Hero home (pantalla completa con dashboard)
   5.  Hero páginas interiores (versión reducida)
   6.  Badges, eyebrows y divisores (utilidades visuales)
   7.  Dashboard carrousel (mockups del hero home)
   8.  Secciones home: servicios, retos, método, casos
   9.  Sección about: foto, chips, pilares, misión/visión
   10. Sección servicios (service.html)
   11. Sección contacto (formulario + calendly)
   12. Página thanks
   13. Página política de privacidad
   14. CTA final (ancho, navy, compartido entre páginas)
   15. Responsive global
   ========================================================================== */


/* ==========================================================================
   0. VARIABLES DE DISEÑO
   ========================================================================== */
:root {
  --nx-navy: #1B2E5E;
  --nx-navy-dark: #04342C;
  --nx-emerald: #00B894;
  --nx-emerald-dark: #0F6E56;
  --nx-cream: #F8F8F5;
  --nx-cream-warm: #F1EFE8;
  --nx-text: #2C2C2A;
  --nx-text-soft: #5F5E5A;
  --nx-border: rgba(27, 46, 94, 0.08);
  --nx-shadow-card: 0 12px 40px rgba(27, 46, 94, 0.1);
  --nx-font: 'Montserrat', sans-serif;
}


/* ==========================================================================
   1. ANIMACIONES GLOBALES
   ========================================================================== */
@keyframes nexusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes nexusNodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes nexusLineDash {
  to { stroke-dashoffset: -60; }
}


/* ==========================================================================
   2. ACCESIBILIDAD · prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .nexus-node-pulse,
  .nexus-node-pulse-2,
  .nexus-node-pulse-3,
  .nexus-line-flow,
  .nexus-hero-badge-dot,
  .nexus-dashboard-live-dot {
    animation: none !important;
  }
}


/* ==========================================================================
   3. NAVBAR · global a todas las páginas
   ========================================================================== */
.nexus-navbar {
  position: relative;
  z-index: 10;
  padding: 18px 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nexus-navbar.scrolled {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(27, 46, 94, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.nexus-navbar .navbar-brand img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s ease;
}

.nexus-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
}

.nexus-navbar .nav-link:hover,
.nexus-navbar .nav-link:focus,
.nexus-navbar .nav-item.active .nav-link {
  color: var(--nx-emerald) !important;
}

.nexus-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.nexus-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.nexus-navbar .btn-navbar-cta {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  margin-left: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nexus-navbar .btn-navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.35);
  color: var(--nx-navy-dark) !important;
  text-decoration: none;
}


/* ==========================================================================
   4. HERO HOME · pantalla completa con dashboard
   ========================================================================== */
.nexus-hero-wrapper {
  position: relative;
  background: var(--nx-navy);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nexus-hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.nexus-hero-wrapper::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(0, 184, 148, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.nexus-hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nexus-node-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: nexusNodePulse 3s ease-in-out infinite;
}

.nexus-node-pulse-2 {
  transform-origin: center;
  transform-box: fill-box;
  animation: nexusNodePulse 3.5s ease-in-out infinite 1s;
}

.nexus-node-pulse-3 {
  transform-origin: center;
  transform-box: fill-box;
  animation: nexusNodePulse 4s ease-in-out infinite 2s;
}

.nexus-line-flow {
  stroke-dasharray: 6 8;
  animation: nexusLineDash 4s linear infinite;
}

.nexus-hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
}

.nexus-hero-title {
  font-family: var(--nx-font);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.nexus-hero-title .accent { color: var(--nx-emerald); }

.nexus-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 32px;
  max-width: 500px;
}

.nexus-hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nexus-cta-primary {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.nexus-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.35);
  color: var(--nx-navy-dark);
  text-decoration: none;
}

.nexus-cta-primary .arrow { transition: transform 0.2s ease; }
.nexus-cta-primary:hover .arrow { transform: translateX(4px); }

.nexus-cta-secondary {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 6px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nexus-cta-secondary:hover {
  color: var(--nx-emerald);
  border-bottom-color: var(--nx-emerald);
  text-decoration: none;
}


/* ==========================================================================
   5. HERO PÁGINAS INTERIORES · versión reducida (about, service, contact, política)
   ========================================================================== */
.nexus-page-hero {
  position: relative;
  background: var(--nx-navy);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.nexus-page-hero.compact { min-height: 360px; }
.nexus-page-hero.tall    { min-height: 460px; }

.nexus-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.nexus-page-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(0, 184, 148, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.nexus-page-hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nexus-page-hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
}

.nexus-page-hero-content.compact { padding: 30px 0 50px; }

.nexus-page-hero-title {
  font-family: var(--nx-font);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.nexus-page-hero-title .accent { color: var(--nx-emerald); }
.nexus-page-hero-title #typed-text { color: var(--nx-emerald); }

.nexus-page-hero-lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  max-width: 820px;
}

.nexus-page-hero-lead.narrow { max-width: 600px; }
.nexus-page-hero-lead .accent { color: var(--nx-emerald); font-weight: 500; }

.nexus-page-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.nexus-hero-cta-inline {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nexus-hero-cta-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.35);
  color: var(--nx-navy-dark) !important;
  text-decoration: none;
}


/* ==========================================================================
   6. BADGES, EYEBROWS Y DIVISORES · utilidades visuales
   ========================================================================== */
.nexus-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 184, 148, 0.15);
  color: var(--nx-emerald);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.nexus-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--nx-emerald);
  border-radius: 50%;
  animation: nexusPulse 2s ease-in-out infinite;
}

.nexus-section-eyebrow {
  display: inline-block;
  background: rgba(0, 184, 148, 0.12);
  color: var(--nx-emerald);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.nexus-section-title {
  font-family: var(--nx-font);
  font-size: 32px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.nexus-section-title.sm { font-size: 30px; }
.nexus-section-title .accent { color: var(--nx-emerald); }

.nexus-section-intro {
  font-size: 15px;
  color: var(--nx-text-soft);
  line-height: 1.6;
  margin: 0;
}

.nexus-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.nexus-about-divider {
  width: 60px;
  height: 3px;
  background: var(--nx-emerald);
  border-radius: 2px;
  margin: 0 0 24px;
}


/* ==========================================================================
   7. DASHBOARD + CARROUSEL · mockups del hero home
   ========================================================================== */
.nexus-dashboard-carousel {
  position: relative;
}

.nexus-dashboard-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.nexus-dashboard-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.nexus-dashboard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.nexus-dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nexus-dashboard-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.nexus-dashboard-dot.active {
  background: var(--nx-emerald);
  transform: scale(1.2);
}

.nexus-dashboard-demo-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(27, 46, 94, 0.08);
  color: var(--nx-navy);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.nexus-dashboard {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  color: var(--nx-navy);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.nexus-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.nexus-dashboard-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0;
}

.nexus-dashboard-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--nx-emerald-dark);
  font-weight: 500;
}

.nexus-dashboard-live-dot {
  width: 7px;
  height: 7px;
  background: var(--nx-emerald);
  border-radius: 50%;
  animation: nexusPulse 1.8s ease-in-out infinite;
}

.nexus-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.nexus-kpi {
  background: var(--nx-cream-warm);
  padding: 12px;
  border-radius: 8px;
}

.nexus-kpi.highlight { background: #E1F5EE; }

.nexus-kpi-label {
  font-size: 10px;
  color: var(--nx-text-soft);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nexus-kpi.highlight .nexus-kpi-label { color: var(--nx-emerald-dark); }

.nexus-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--nx-navy);
  line-height: 1;
}

.nexus-kpi.highlight .nexus-kpi-value { color: var(--nx-emerald); }

.nexus-dashboard-chart {
  width: 100%;
  height: 80px;
}

.nexus-dashboard-timeline {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
  margin-top: 6px;
  padding: 0 2px;
}

/* Mockup 2: rentabilidad (barras horizontales) */
.nexus-dash-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.nexus-dash-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.nexus-dash-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.nexus-dash-bar-label {
  width: 78px;
  color: var(--nx-navy);
  font-weight: 500;
  flex-shrink: 0;
}

.nexus-dash-bar-track {
  flex: 1;
  height: 10px;
  background: var(--nx-cream-warm);
  border-radius: 5px;
  overflow: hidden;
}

.nexus-dash-bar-fill {
  height: 100%;
  background: var(--nx-emerald);
  border-radius: 5px;
}

.nexus-dash-bar-value {
  width: 48px;
  text-align: right;
  color: var(--nx-text-soft);
  font-weight: 600;
}

/* Mockup 3: kanban */
.nexus-dash-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nexus-dash-kanban-col {
  background: var(--nx-cream-warm);
  border-radius: 8px;
  padding: 10px 8px;
  min-height: 140px;
}

.nexus-dash-kanban-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--nx-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 4px;
}

.nexus-dash-kanban-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--nx-navy);
  line-height: 1.35;
  border-left: 3px solid var(--nx-emerald);
}

.nexus-dash-kanban-card.warning { border-left-color: #D97E45; }

.nexus-dash-kanban-meta {
  font-size: 9px;
  color: #888;
  margin-top: 4px;
}

/* Mockup 4: app móvil */
.nexus-dash-app {
  background: var(--nx-cream-warm);
  border-radius: 12px;
  padding: 14px;
  margin-top: 4px;
}

.nexus-dash-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nexus-dash-app-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-navy);
}

.nexus-dash-app-btn {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}

.nexus-dash-app-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.nexus-dash-app-item-text {
  color: var(--nx-navy);
  font-weight: 500;
}

.nexus-dash-app-item-meta {
  color: #888;
  font-size: 10px;
}

.nexus-dash-app-status {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nexus-dash-app-status.ok {
  background: rgba(0, 184, 148, 0.15);
  color: var(--nx-emerald-dark);
}

.nexus-dash-app-status.pending {
  background: rgba(217, 126, 69, 0.15);
  color: #A35020;
}


/* ==========================================================================
   8. SECCIONES HOME · servicios, retos, método
   ========================================================================== */
.nexus-challenges-section { padding: 80px 0; background: #ffffff; }
.nexus-services-section   { padding: 80px 0; background: var(--nx-cream); }
.nexus-method-section     { padding: 80px 0; background: #ffffff; }

/* Retos · 2 columnas problema ↔ solución */
.nexus-challenges-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.nexus-challenge-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--nx-border);
  transition: background-color 0.2s ease;
}

.nexus-challenge-row:hover { background-color: rgba(0, 184, 148, 0.03); }
.nexus-challenge-row:last-child { border-bottom: none; }

.nexus-challenge-problem {
  padding: 22px 24px 22px 0;
  text-align: right;
}

.nexus-challenge-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.nexus-challenge-arrow svg {
  width: 24px;
  height: 24px;
}

.nexus-challenge-solution { padding: 22px 0 22px 24px; }

.nexus-challenge-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.nexus-challenge-label.problem  { color: #993C1D; }
.nexus-challenge-label.solution { color: var(--nx-emerald); }

.nexus-challenge-text {
  font-size: 15px;
  color: var(--nx-text);
  line-height: 1.55;
}

/* Servicios · 4 tarjetas */
.nexus-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nexus-service-card {
  background: #ffffff;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.nexus-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-card);
  border-color: rgba(0, 184, 148, 0.3);
}

.nexus-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.nexus-service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 184, 148, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-emerald);
  font-size: 24px;
}

.nexus-service-number {
  font-size: 12px;
  font-weight: 600;
  color: rgba(27, 46, 94, 0.35);
  letter-spacing: 1px;
}

.nexus-service-title {
  font-family: var(--nx-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0 0 10px;
  line-height: 1.35;
}

.nexus-service-desc {
  font-size: 14px;
  color: var(--nx-text-soft);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.nexus-service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nexus-service-tag {
  background: var(--nx-cream-warm);
  color: var(--nx-text-soft);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Cómo trabajo · 4 pasos */
.nexus-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.nexus-method-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-image: linear-gradient(to right, rgba(0, 184, 148, 0.4) 50%, transparent 50%);
  background-size: 12px 2px;
  z-index: 0;
}

.nexus-method-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.nexus-method-circle {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border: 2px solid var(--nx-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--nx-navy);
  font-size: 26px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nexus-method-step:hover .nexus-method-circle {
  transform: scale(1.08);
  background: var(--nx-emerald);
  color: #ffffff;
}

.nexus-method-step.final .nexus-method-circle {
  background: var(--nx-emerald);
  color: #ffffff;
}

.nexus-method-step.final:hover .nexus-method-circle {
  background: var(--nx-emerald);
  transform: scale(1.08);
}

.nexus-method-meta {
  font-size: 11px;
  color: var(--nx-emerald);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nexus-method-title {
  font-family: var(--nx-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0 0 10px;
}

.nexus-method-desc {
  font-size: 16px;
  color: var(--nx-text-soft);
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================================
   9. ABOUT · foto, chips, pilares, misión / visión
   ========================================================================== */
.nexus-content-section { padding: 80px 0; background: #ffffff; }
.nexus-content-section.alt { background: var(--nx-cream); }

.nexus-about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(27, 46, 94, 0.15);
  display: block;
  margin: 0 auto;
}

.nexus-about-body p {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 16px;
}

.nexus-about-body p strong {
  color: var(--nx-navy);
  font-weight: 600;
}

.nexus-about-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 360px;
}

.nexus-about-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--nx-cream-warm);
  border-radius: 8px;
  font-size: 13px;
  color: var(--nx-navy);
}

.nexus-about-chip .mai-icon {
  color: var(--nx-emerald);
  font-size: 18px;
  flex-shrink: 0;
}

.nexus-about-chip strong { font-weight: 600; }

/* 3 pilares */
.nexus-pillars-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.nexus-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.nexus-pillar-card {
  background: #ffffff;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.nexus-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-card);
  border-color: rgba(0, 184, 148, 0.3);
}

.nexus-pillar-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 184, 148, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-emerald);
  font-size: 24px;
  margin-bottom: 20px;
}

.nexus-pillar-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-navy);
  border-bottom: 2px solid var(--nx-navy);
  padding-bottom: 6px;
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.nexus-pillar-title {
  font-family: var(--nx-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}

.nexus-pillar-desc {
  font-size: 14px;
  color: var(--nx-text-soft);
  line-height: 1.75;
  margin: 0;
  text-align: justify;
  flex: 1;
}

/* Misión / Visión */
.nexus-purpose-block {
  max-width: 1100px;
  margin: 0 auto;
}

.nexus-purpose-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 46, 94, 0.1);
}

.nexus-purpose-body p {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

.nexus-section-divider {
  border: 0;
  border-top: 1px solid rgba(0, 184, 148, 0.2);
  max-width: 1100px;
  margin: 0 auto;
}


/* ==========================================================================
   10. SERVICE.HTML · listado de servicios
   ========================================================================== */
.nexus-services-list {
  padding: 40px 0 20px;
  background: #ffffff;
}

.nexus-service-block {
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 184, 148, 0.15);
}

.nexus-service-block:last-child { border-bottom: none; }

.nexus-service-num {
  display: inline-block;
  font-family: var(--nx-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-emerald);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.nexus-service-heading {
  font-family: var(--nx-font);
  font-size: 28px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.nexus-service-heading .accent { color: var(--nx-emerald); }

.nexus-service-divider {
  width: 50px;
  height: 3px;
  background: var(--nx-emerald);
  border-radius: 2px;
  margin: 0 0 20px;
}

.nexus-service-text p {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 14px;
}

.nexus-service-text p:last-child { margin-bottom: 0; }
.nexus-service-text strong { color: var(--nx-navy); font-weight: 600; }

.nexus-service-media {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(27, 46, 94, 0.12);
  overflow: hidden;
  display: block;
}

.nexus-service-media video,
.nexus-service-media img {
  width: 100%;
  height: auto;
  display: block;
}

.nexus-service-block .nexus-service-tags {
  margin-top: 20px;
}

.nexus-service-block .nexus-service-tag {
  padding: 5px 12px;
}


/* ==========================================================================
   11. CONTACT.HTML · formulario + calendly + datos
   ========================================================================== */
.nexus-contact-section {
  padding: 80px 0;
  background: #ffffff;
}

.nexus-contact-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.nexus-contact-col-title .nexus-contact-col-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 184, 148, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-emerald);
  font-size: 22px;
  flex-shrink: 0;
}

.nexus-contact-col-title h2 {
  font-family: var(--nx-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--nx-navy);
  margin: 0;
  line-height: 1.3;
}

.nexus-contact-col-title h2 .accent { color: var(--nx-emerald); }

.nexus-contact-intro {
  font-size: 14px;
  color: var(--nx-text-soft);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Formulario */
.nexus-form-card {
  background: var(--nx-cream);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}

.nexus-form-card label {
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-navy);
  margin-bottom: 6px;
  display: block;
}

.nexus-form-card .form-control {
  border: 1px solid rgba(27, 46, 94, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexus-form-card .form-control:focus {
  border-color: var(--nx-emerald);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
  outline: none;
}

.nexus-form-card textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.nexus-form-card .form-check-label {
  font-size: 13px;
  color: var(--nx-text-soft);
  line-height: 1.5;
}

.nexus-form-card .form-check-label a {
  color: var(--nx-emerald);
  font-weight: 500;
}

.nexus-form-card .small-notice {
  font-size: 12px;
  color: #888;
  line-height: 1.55;
  text-align: left;
  margin: 0 0 20px;
}

.nexus-form-submit {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  width: 100%;
}

.nexus-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.35);
}

/* Calendly */
.nexus-calendly-card {
  background: var(--nx-cream);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}

.nexus-calendly-card .calendly-inline-widget {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

/* 3 tarjetas de datos */
.nexus-contact-info {
  padding: 60px 0 80px;
  background: var(--nx-cream);
}

.nexus-contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nexus-contact-info-card {
  background: #ffffff;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nexus-contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-card);
  border-color: rgba(0, 184, 148, 0.3);
}

.nexus-contact-info-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 184, 148, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-emerald);
  font-size: 26px;
  margin: 0 auto 18px;
}

.nexus-contact-info-label {
  font-family: var(--nx-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.nexus-contact-info-value {
  font-size: 15px;
  color: var(--nx-text-soft);
  line-height: 1.55;
  margin: 0;
}

.nexus-contact-info-value a {
  color: var(--nx-text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexus-contact-info-value a:hover {
  color: var(--nx-emerald);
  text-decoration: none;
}


/* ==========================================================================
   12. THANKS.HTML · página completa navy
   ========================================================================== */
.nexus-thanks-wrapper {
  position: relative;
  background: var(--nx-navy);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nexus-thanks-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.nexus-thanks-wrapper::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0, 184, 148, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.nexus-thanks-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.nexus-thanks-card {
  max-width: 560px;
  text-align: center;
  animation: nexusThanksFadeIn 0.6s ease-out;
}

@keyframes nexusThanksFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nexus-thanks-check {
  width: 96px;
  height: 96px;
  background: rgba(0, 184, 148, 0.15);
  border: 2px solid var(--nx-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: nexusThanksCheck 0.5s ease-out 0.3s both;
}

@keyframes nexusThanksCheck {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.nexus-thanks-check svg {
  width: 42px;
  height: 42px;
  stroke: var(--nx-emerald);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nexus-thanks-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 184, 148, 0.15);
  color: var(--nx-emerald);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.nexus-thanks-title {
  font-family: var(--nx-font);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.nexus-thanks-title .accent { color: var(--nx-emerald); }

.nexus-thanks-lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

.nexus-thanks-lead strong {
  color: #ffffff;
  font-weight: 500;
}

.nexus-thanks-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Botones CTA en thanks (versiones sobre fondo navy) */
.nexus-thanks-ctas .nexus-cta-primary {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  border-bottom: none;
}

.nexus-thanks-ctas .nexus-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.35);
  color: var(--nx-navy-dark) !important;
}

.nexus-thanks-ctas .nexus-cta-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nexus-thanks-ctas .nexus-cta-secondary:hover {
  border-color: var(--nx-emerald);
  background: rgba(0, 184, 148, 0.08);
  color: var(--nx-emerald) !important;
}

.nexus-thanks-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.nexus-thanks-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.nexus-thanks-footer a:hover { color: var(--nx-emerald); }


/* ==========================================================================
   13. POLÍTICA DE PRIVACIDAD
   ========================================================================== */
.nexus-legal-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

.nexus-legal-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.nexus-legal-intro {
  border-left: 4px solid var(--nx-emerald);
  padding: 4px 0 4px 24px;
  margin: 0 0 40px;
}

.nexus-legal-intro p {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.nexus-legal-intro strong {
  color: var(--nx-navy);
  font-weight: 600;
}

/* Índice */
.nexus-legal-toc {
  background: var(--nx-cream);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 0 0 56px;
}

.nexus-legal-toc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--nx-emerald);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.nexus-legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  counter-reset: toc-counter;
}

.nexus-legal-toc ol li {
  counter-increment: toc-counter;
  font-size: 14px;
  line-height: 1.5;
}

.nexus-legal-toc ol li a {
  color: var(--nx-text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
}

.nexus-legal-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero) ".";
  color: var(--nx-emerald);
  font-weight: 600;
  margin-right: 8px;
}

.nexus-legal-toc ol li a:hover {
  color: var(--nx-emerald);
  text-decoration: none;
}

/* Secciones */
.nexus-legal-section-block {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.nexus-legal-section-block:last-child { margin-bottom: 0; }

.nexus-legal-section-block h2 {
  font-family: var(--nx-font);
  color: var(--nx-navy);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.3;
}

.nexus-legal-section-block h2 .num {
  color: var(--nx-emerald);
  font-weight: 600;
  margin-right: 6px;
}

.nexus-legal-section-block p {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 14px;
}

.nexus-legal-section-block p:last-child { margin-bottom: 0; }

.nexus-legal-section-block ul {
  color: var(--nx-text-soft);
  font-size: 15px;
  line-height: 1.9;
  padding-left: 22px;
  margin: 0 0 14px;
}

.nexus-legal-section-block ul li { margin-bottom: 4px; }

.nexus-legal-section-block strong {
  color: var(--nx-navy);
  font-weight: 600;
}

.nexus-legal-section-block a {
  color: var(--nx-emerald);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexus-legal-section-block a:hover {
  color: var(--nx-emerald-dark);
  text-decoration: underline;
}

/* Cajetines */
.nexus-legal-box {
  background: var(--nx-cream);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 8px 0;
}

.nexus-legal-box.highlight {
  background: rgba(0, 184, 148, 0.08);
  border-left: 3px solid var(--nx-emerald);
  border-radius: 0 12px 12px 0;
  padding-left: 24px;
}

.nexus-legal-box p:last-child { margin-bottom: 0; }

/* Tabla del responsable */
.nexus-legal-table { width: 100%; border-collapse: collapse; }

.nexus-legal-table td {
  padding: 10px 0;
  font-size: 15px;
  color: var(--nx-text-soft);
  line-height: 1.5;
  border-bottom: 1px solid var(--nx-border);
  vertical-align: top;
}

.nexus-legal-table tr:last-child td { border-bottom: none; }

.nexus-legal-table td:first-child {
  font-weight: 600;
  color: var(--nx-navy);
  width: 180px;
  padding-right: 16px;
}

.nexus-legal-divider {
  border: 0;
  border-top: 1px solid rgba(0, 184, 148, 0.2);
  margin: 0 0 48px;
}

.nexus-legal-updated {
  color: #888;
  font-size: 13px;
  font-style: italic;
  margin-top: 18px;
}


/* ==========================================================================
   14. CTA FINAL · navy ancho, compartido entre páginas
   ========================================================================== */
.nexus-final-cta {
  padding: 60px 0 80px;
  background: #ffffff;
  text-align: center;
}

.nexus-final-cta-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  background: var(--nx-navy);
  border-radius: 24px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.nexus-final-cta-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.nexus-final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.nexus-final-cta-title {
  font-family: var(--nx-font);
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.nexus-final-cta-title .accent { color: var(--nx-emerald); }

.nexus-final-cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
}

.nexus-final-cta-btn {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nexus-final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.35);
  color: var(--nx-navy-dark) !important;
  text-decoration: none;
}


/* ==========================================================================
   15. RESPONSIVE GLOBAL
   ========================================================================== */

/* Desktop medio (1200px-) */
@media (max-width: 1199px) {
  .nexus-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (991px-) */
@media (max-width: 991px) {
  /* Hero home */
  .nexus-hero-title { font-size: 32px; }
  .nexus-hero-content { padding: 20px 0 40px; }
  .nexus-hero-wrapper { min-height: auto; }
  .nexus-dashboard { margin-top: 36px; }

  /* Hero interior */
  .nexus-page-hero-title { font-size: 28px; }
  .nexus-page-hero-content,
  .nexus-page-hero-content.compact { padding: 20px 0 40px; }
  .nexus-page-hero { min-height: auto; }
  .nexus-page-hero.compact,
  .nexus-page-hero.tall { min-height: auto; }

  /* Navbar mobile */
  .nexus-navbar .navbar-collapse {
    background: rgba(27, 46, 94, 0.98);
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
  }
  .nexus-navbar .btn-navbar-cta {
    margin-left: 0;
    margin-top: 12px;
    display: inline-block;
  }

  /* Secciones home */
  .nexus-section-title { font-size: 26px; }
  .nexus-challenges-section,
  .nexus-services-section,
  .nexus-method-section { padding: 60px 0; }
  .nexus-method-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .nexus-method-grid::before { display: none; }

  /* About */
  .nexus-content-section { padding: 60px 0; }
  .nexus-pillars-grid { grid-template-columns: 1fr; }
  .nexus-about-photo { max-width: 280px; aspect-ratio: 3/4; }

  /* Service */
  .nexus-service-block { padding: 48px 0; }
  .nexus-service-heading { font-size: 24px; }
  .nexus-service-media { margin-top: 24px; }

  /* Contact */
  .nexus-contact-section { padding: 60px 0; }
  .nexus-calendly-card { margin-top: 32px; }
  .nexus-contact-info-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Móvil (767px-) */
@media (max-width: 767px) {
  /* Hero home: ocultar nodos y reducir puntos de rejilla */
  .nexus-hero-wrapper::before { background-size: 24px 24px; }
  .nexus-hero-nodes { display: none; }

  /* Hero interior */
  .nexus-page-hero::before { background-size: 24px 24px; }
  .nexus-page-hero-nodes { display: none; }

  /* Retos en móvil: una columna con flecha hacia abajo */
  .nexus-challenge-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }
  .nexus-challenge-problem {
    text-align: left;
    padding: 14px 0 8px;
  }
  .nexus-challenge-arrow {
    padding: 4px 0;
    justify-content: flex-start;
  }
  .nexus-challenge-arrow svg { transform: rotate(90deg); }
  .nexus-challenge-solution { padding: 8px 0 14px; }

  /* CTA final */
  .nexus-final-cta-wrapper {
    padding: 48px 28px;
    border-radius: 16px;
  }

  /* Legal · TOC en una columna */
  .nexus-legal-toc ol { grid-template-columns: 1fr; }
  .nexus-legal-table td:first-child {
    width: 140px;
    font-size: 14px;
  }
}

/* Móvil pequeño (575px-) */
@media (max-width: 575px) {
  /* Hero home */
  .nexus-hero-title { font-size: 26px; }
  .nexus-hero-subtitle { font-size: 14px; }
  .nexus-hero-cta-group { flex-direction: column; align-items: stretch; }
  .nexus-hero-cta-group .nexus-cta-primary { justify-content: center; }
  .nexus-hero-cta-group .nexus-cta-secondary { text-align: center; }

  /* Hero interior */
  .nexus-page-hero-title { font-size: 24px; }
  .nexus-page-hero-lead { font-size: 14px; }

  /* Secciones */
  .nexus-services-grid { grid-template-columns: 1fr; }
  .nexus-method-grid { grid-template-columns: 1fr; }
  .nexus-section-title { font-size: 22px; }
  .nexus-service-card { padding: 24px; }
  .nexus-challenge-text { font-size: 14px; }
  .nexus-method-desc { font-size: 15px; }
  .nexus-method-title { font-size: 17px; }

  /* Service */
  .nexus-service-heading { font-size: 22px; }
  .nexus-service-text p { font-size: 14px; }

  /* Contact */
  .nexus-form-card { padding: 24px; }
  .nexus-contact-col-title h2 { font-size: 20px; }

  /* Thanks */
  .nexus-thanks-title { font-size: 28px; }
  .nexus-thanks-lead { font-size: 14px; }
  .nexus-thanks-check { width: 80px; height: 80px; }
  .nexus-thanks-check svg { width: 34px; height: 34px; }
  .nexus-thanks-ctas { flex-direction: column; align-items: stretch; }
  .nexus-thanks-ctas .nexus-cta-primary,
  .nexus-thanks-ctas .nexus-cta-secondary { justify-content: center; }

  /* Legal */
  .nexus-legal-section-block h2 { font-size: 19px; }
  .nexus-legal-section-block p,
  .nexus-legal-section-block ul { font-size: 14px; }
  .nexus-legal-toc { padding: 20px; }
  .nexus-legal-box { padding: 18px 20px; }
  .nexus-legal-table,
  .nexus-legal-table tbody,
  .nexus-legal-table tr,
  .nexus-legal-table td { display: block; width: 100%; }
  .nexus-legal-table td:first-child {
    width: 100%;
    padding: 10px 0 2px;
    border-bottom: none;
  }
  .nexus-legal-table td { padding: 2px 0 10px; }

  /* CTA final */
  .nexus-final-cta-title { font-size: 22px; }

  /* About */
  .nexus-final-cta-wrapper { padding: 36px 24px; }
}

/* ==========================================================================
   16. FOOTER · versión rediseñada (navy profundo + banda + botón subir)
   ========================================================================== */
.nexus-footer {
  position: relative;
  background: #12214A;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
}

.nexus-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.nexus-footer-main {
  position: relative;
  z-index: 1;
  padding: 64px 0 40px;
}

.nexus-footer-col h3 {
  font-family: var(--nx-font);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}

.nexus-footer-col h5 {
  font-family: var(--nx-font);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nexus-footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.nexus-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nexus-footer-menu li { margin-bottom: 8px; }

.nexus-footer-menu a,
.nexus-footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.nexus-footer-menu a:hover,
.nexus-footer-link:hover {
  color: var(--nx-emerald);
  text-decoration: none;
}

.nexus-footer-social {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-top: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nexus-footer-social:hover {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Newsletter */
.nexus-footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nexus-footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.nexus-footer-newsletter .form-control:focus {
  border-color: var(--nx-emerald);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
}

.nexus-footer-newsletter-btn {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nexus-footer-newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.35);
}

/* Divisor emerald fino entre contenido y aviso legal */
.nexus-footer-divider {
  border: 0;
  border-top: 1px solid rgba(0, 184, 148, 0.25);
  margin: 40px 0 24px;
  position: relative;
  z-index: 1;
}

/* Aviso legal de marcas comerciales */
.nexus-footer-legal {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 0 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* Banda inferior copyright · más oscura, casi negra */
.nexus-footer-bottom {
  position: relative;
  z-index: 1;
  background: #0A1530;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

.nexus-footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.nexus-footer-bottom a:hover {
  color: var(--nx-emerald);
  text-decoration: none;
}

/* ==========================================================================
   17. BOTÓN "VOLVER ARRIBA"
   ========================================================================== */
.nexus-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nx-navy);
  color: var(--nx-emerald);
  border: 2px solid var(--nx-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.2s ease, color 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(27, 46, 94, 0.3);
}

.nexus-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nexus-back-to-top:hover {
  background: var(--nx-emerald);
  color: var(--nx-navy-dark);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  transform: translateY(-2px);
}

.nexus-back-to-top:active {
  transform: translateY(0);
}

.nexus-back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.nexus-back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 575px) {
  .nexus-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .nexus-back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive ajustes footer */
@media (max-width: 767px) {
  .nexus-footer-main { padding: 48px 0 32px; }
  .nexus-footer-col { margin-bottom: 24px; }
  .nexus-footer-legal { font-size: 10px; padding: 0 20px; }
}

/* Fin nexus.css */
