/* =========================================================
   Component styles — AppMFSolutions Corporate
   ========================================================= */

/* ----- Main layout ----- */
.main-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ----- Navbar ----- */
.main-navbar {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 1.5rem, calc(var(--container) + 1rem));
  z-index: 1000;
  border-radius: var(--radius-full);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), top var(--transition);
}

.main-navbar.is-scrolled {
  top: 0.5rem;
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 0.45rem 0.65rem 0.45rem 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--text-primary); }

.brand-with-logo {
  line-height: 0;
}

/* Brand logo — se integra al fondo (sin “foto” con recuadro JPG) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Horizontal: JPG con fondo blanco/navy → blend para que el fondo del asset se disuelva */
.brand-logo-horizontal .brand-logo-img {
  height: 2.65rem;
  width: auto;
  max-width: min(200px, 42vw);
}

.brand-logo-nav .brand-logo-img {
  height: 2.45rem;
  max-width: min(176px, 40vw);
}

.brand-logo-footer .brand-logo-img {
  height: 3rem;
  max-width: 220px;
}

.brand-logo-horizontal .brand-logo-light { display: block; }
.brand-logo-horizontal .brand-logo-dark { display: none; }

/* Fondo blanco del JPG light se multiplica y se funde con la barra clara */
.brand-logo-horizontal .brand-logo-light {
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .brand-logo-horizontal .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-horizontal .brand-logo-dark {
  display: block;
  /* Fondo navy del JPG se aclara hacia el nav oscuro */
  mix-blend-mode: screen;
  opacity: 0.96;
}

/* Footer siempre oscuro: misma logica de screen + sin caja */
.corporate-footer .brand-logo-horizontal .brand-logo-light { display: none !important; }
.corporate-footer .brand-logo-horizontal .brand-logo-dark {
  display: block !important;
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* Hero logo DENTRO del stage navy (mismo tono del asset) — sin sombra de tarjeta */
.brand-logo-hero .brand-logo-img,
.hero-brand-logo .brand-logo-img {
  width: 100%;
  max-width: min(480px, 100%);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 18px 40px rgba(51, 102, 245, 0.28));
}

.hero-brand-logo.is-stage .brand-logo-img,
.brand-logo-hero.is-stage .brand-logo-img {
  max-width: min(520px, 100%);
  animation: brand-float 7s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
}

.hero-stage:hover .hero-brand-logo.is-stage .brand-logo-img {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 22px 48px rgba(124, 92, 255, 0.38));
  animation-play-state: paused;
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Stacked / Nosotros: panel navy que iguala el JPG */
.brand-logo-stacked .brand-logo-img,
.nosotros-logo .brand-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.nosotros-brand-panel {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(51, 102, 245, 0.18), transparent 60%),
    linear-gradient(165deg, #f8faff 0%, #eef3fb 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .nosotros-brand-panel {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(51, 102, 245, 0.28), transparent 55%),
    linear-gradient(165deg, #07111f 0%, #0b1a2e 100%);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .nosotros-logo .brand-logo-img {
  mix-blend-mode: screen;
}

.nosotros-logo .brand-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 12px 28px rgba(51, 102, 245, 0.25));
}

.hero-visual-stack {
  display: grid;
  gap: 0;
  justify-items: center;
}

.hero-brand-panel {
  width: 100%;
  max-width: 560px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: var(--radius-xl);
  background: transparent;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(51, 102, 245, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-actions .btn-secondary { display: none; }

  .main-navbar.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }

  .main-navbar.is-open .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 3.75rem) 0 4.25rem;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-cinematic {
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2.5rem) 0 3.5rem;
}

.hero-cinematic .hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.65rem);
  max-width: 16ch;
  letter-spacing: -0.035em;
}

.hero-cinematic .hero-copy .lead {
  margin: 1rem 0 1.6rem;
  max-width: 34rem;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(51, 102, 245, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 102, 245, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

html[data-theme="dark"] .hero-grid-lines {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: orb-drift 14s ease-in-out infinite;
}

.hero-orb.orb-1 {
  width: 340px;
  height: 340px;
  background: rgba(51, 102, 245, 0.42);
  top: 4%;
  right: 6%;
}

.hero-orb.orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(124, 92, 255, 0.36);
  bottom: 6%;
  left: 4%;
  animation-duration: 18s;
  animation-direction: reverse;
}

.hero-orb.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(20, 184, 166, 0.22);
  top: 48%;
  left: 42%;
  animation-duration: 12s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.hero-copy .lead {
  max-width: 36rem;
  margin-bottom: 0.85rem;
}

.hero-brand-line {
  margin: 0 0 0.85rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-aura-line {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stage = marco de video alineado, sin tilt 3D */
.hero-stage,
.hero-stage-video {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 0.15rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(51, 102, 245, 0.22), transparent 58%),
    linear-gradient(165deg, #06101c 0%, #0a1628 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 0 0 1px rgba(51, 102, 245, 0.08),
    0 22px 50px rgba(6, 16, 28, 0.4);
  transform: none;
}

.hero-stage:hover,
.hero-stage-video:hover {
  transform: none;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070b14;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
  color: #e2e8f0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(51, 102, 245, 0.22), transparent 62%),
    linear-gradient(180deg, #0b1628 0%, #070b14 100%);
}

.hero-video-slot-mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  margin-bottom: 0.35rem;
}

.hero-video-slot-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #e2e8f0;
  transform: translate(-50%, -50%);
}

.hero-video-slot strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-video-slot span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.hero-stage-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 38%,
    transparent 62%,
    rgba(124, 92, 255, 0.08) 100%
  );
  z-index: 1;
}

.hero-stage-glow {
  position: absolute;
  width: 70%;
  height: 50%;
  left: 15%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 102, 245, 0.35), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-soft 5s ease-in-out infinite;
}

.hero-stage-logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0.25rem 0.5rem 0;
}

.hero-stage-map {
  position: relative;
  z-index: 2;
  margin-top: 0.15rem;
  padding: 0 0.35rem 0.25rem;
}

/* Mapa dentro del stage: sin disco blanco plano */
.hero-stage .ecosystem-map {
  width: min(100%, 380px);
  max-width: 380px;
}

.hero-stage .eco-tilt-layer {
  background:
    radial-gradient(circle at center, rgba(51, 102, 245, 0.22), transparent 58%),
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.16), transparent 48%),
    rgba(7, 14, 26, 0.35);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    inset 0 0 40px rgba(51, 102, 245, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.hero-stage .map-node {
  background: rgba(10, 18, 32, 0.82);
  color: #e8eef9;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero-stage .map-node:hover {
  background: rgba(20, 32, 56, 0.95);
  border-color: rgba(124, 92, 255, 0.45);
  color: #fff;
}

.hero-stage .map-center {
  box-shadow: 0 14px 36px rgba(51, 102, 245, 0.55);
}

.hero-stage .ecosystem-map .orbit {
  stroke: rgba(148, 163, 184, 0.28);
}

.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(51, 102, 245, 0.45);
  animation: btn-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes btn-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

.reveal-on-load {
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Ecosystem map ----- */
.ecosystem-map {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  max-width: 560px;
  margin-inline: auto;
  border-radius: 50%;
  perspective: 900px;
  overflow: visible;
}

.eco-tilt-layer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(51, 102, 245, 0.16), transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.12), transparent 42%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.eco-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
  animation: pulse-soft 4s ease-in-out infinite;
  pointer-events: none;
}

.ecosystem-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ecosystem-map .orbit {
  fill: none;
  stroke: var(--border-strong);
  stroke-dasharray: 4 8;
  opacity: 0.55;
  transform-origin: 50px 50px;
  animation: orbit-spin 36s linear infinite;
}

.ecosystem-map .orbit.reverse {
  animation-direction: reverse;
  animation-duration: 48s;
  opacity: 0.4;
}

.ecosystem-map .orbit.slow {
  animation-duration: 64s;
  opacity: 0.3;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.ecosystem-map .link-line {
  stroke: url(#mapGradient);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.45;
  stroke-dasharray: 4 6;
  animation: dash-flow 2.8s linear infinite;
}

.ecosystem-map .link-line.delay-1 { animation-delay: 0.4s; }
.ecosystem-map .link-line.delay-2 { animation-delay: 0.8s; }
.ecosystem-map .link-line.delay-3 { animation-delay: 1.2s; }

@keyframes dash-flow {
  to { stroke-dashoffset: -40; }
}

.ecosystem-map:hover .link-line {
  opacity: 0.9;
}

.data-pulse {
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(124, 92, 255, 0.8));
}

.map-center,
.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius-full);
  z-index: 2;
}

.map-center {
  left: 50%;
  top: 50%;
  width: clamp(6.2rem, 20%, 8rem);
  height: clamp(6.2rem, 20%, 8rem);
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, var(--brand-500), var(--accent-aura));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(51, 102, 245, 0.45);
  animation: pulse-soft 3.2s ease-in-out infinite, core-spin-soft 18s linear infinite;
}

.map-center span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 12px 32px rgba(51, 102, 245, 0.35); }
  50% { box-shadow: 0 12px 48px rgba(124, 92, 255, 0.6); }
}

@keyframes core-spin-soft {
  to { filter: hue-rotate(25deg); }
}

.map-node {
  width: clamp(4.6rem, 15%, 6rem);
  height: clamp(4.6rem, 15%, 6rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.map-node.education { top: 16%; left: 50%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-education) 45%, transparent); }
.map-node.health { top: 50%; left: 86%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-health) 45%, transparent); }
.map-node.government { top: 84%; left: 50%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-government) 45%, transparent); }
.map-node.business { top: 50%; left: 14%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-business) 45%, transparent); }

.map-node.float-a { animation: node-float 4.5s ease-in-out infinite; }
.map-node.float-b { animation: node-float 5.2s ease-in-out infinite 0.4s; }
.map-node.float-c { animation: node-float 4.8s ease-in-out infinite 0.8s; }
.map-node.float-d { animation: node-float 5.6s ease-in-out infinite 1.1s; }

@keyframes node-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.map-node:hover {
  z-index: 5;
  scale: 1.12;
  box-shadow: var(--shadow-glow);
  animation-play-state: paused;
}

.map-node .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-bottom: 0.25rem;
  background: var(--sector-accent, var(--accent-primary));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 50%, transparent);
  animation: dot-ping 2.2s ease-out infinite;
}

@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 45%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ----- Indicators ----- */
.indicators {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .indicators { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .indicators { grid-template-columns: 1fr; }
}

.indicator-card {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.indicator-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.indicator-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----- Sector cards ----- */
.sector-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sector-accent, var(--accent-primary)), transparent);
}

.sector-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 14%, transparent);
  color: var(--sector-accent, var(--accent-primary));
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.sector-card h3 {
  margin-bottom: 0.5rem;
}

.sector-card p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  flex: 1;
}

.sector-card .chip-list {
  margin-bottom: 1.15rem;
}

.sector-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sector-accent, var(--accent-primary));
}

/* ----- AURA core ----- */
.aura-section,
.aura-home-section {
  position: relative;
}

.aura-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .aura-layout { grid-template-columns: 1fr; }
}

.aura-stage-wrap {
  max-width: 920px;
  margin: 0 auto 1.5rem;
}

.aura-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  perspective: 1000px;
  overflow: visible;
}

.aura-visual-large {
  min-height: clamp(480px, 62vw, 640px);
}

.aura-tilt-layer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), transparent 52%),
    radial-gradient(circle at 20% 20%, rgba(51, 102, 245, 0.14), transparent 40%),
    var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.aura-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.aura-glow-a {
  width: 42%;
  height: 42%;
  left: 29%;
  top: 29%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  animation: aura-breathe 4s ease-in-out infinite;
}

.aura-glow-b {
  width: 28%;
  height: 28%;
  right: 12%;
  top: 14%;
  background: radial-gradient(circle, rgba(51, 102, 245, 0.28), transparent 70%);
  animation: aura-breathe 5.5s ease-in-out infinite reverse;
}

.aura-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aura-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb5ff;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.8);
  left: calc(8% + (var(--p) * 6.5%));
  top: calc(12% + (var(--p) * 5.2%));
  opacity: 0;
  animation: particle-drift 7s linear infinite;
  animation-delay: calc(var(--p) * -0.45s);
}

.aura-particle:nth-child(odd) {
  background: #c4b5fd;
  width: 4px;
  height: 4px;
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.6);
  }
  15% { opacity: 0.85; }
  50% {
    opacity: 0.7;
    transform: translate3d(calc((var(--p) - 7) * 4px), -40px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc((var(--p) - 7) * 8px), -90px, 0) scale(0.4);
  }
}

.aura-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aura-link-line {
  stroke: url(#auraLineGrad);
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
  animation: dash-flow 2.4s linear infinite;
  animation-delay: calc(var(--i) * 0.2s);
  opacity: 0.75;
}

.aura-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-aura) 40%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.aura-ring.r1 { width: 48%; height: 48%; opacity: 0.7; }
.aura-ring.r2 {
  width: 70%;
  height: 70%;
  animation-direction: reverse;
  animation-duration: 55s;
  opacity: 0.55;
}
.aura-ring.r3 {
  width: 90%;
  height: 90%;
  animation-duration: 75s;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent-primary) 18%, transparent);
  opacity: 0.45;
}

.aura-orbit-system {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.aura-orbit-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --angle: calc(var(--i) * 60deg - 90deg);
  transform: rotate(var(--angle));
  animation: aura-orbit 28s linear infinite;
  animation-delay: calc(var(--i) * -4.6s);
}

@keyframes aura-orbit {
  from { transform: rotate(var(--angle)); }
  to { transform: rotate(calc(var(--angle) + 360deg)); }
}

.aura-engine {
  position: absolute;
  top: -11.5rem;
  left: -3.4rem;
  width: 6.8rem;
  padding: 0.7rem 0.45rem 0.65rem;
  border-radius: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: rotate(calc(var(--angle) * -1));
  animation: aura-counter-orbit 28s linear infinite, engine-bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -4.6s), calc(var(--i) * 0.25s);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), scale var(--transition);
}

.aura-visual-large .aura-engine {
  top: -14.5rem;
  left: -3.9rem;
  width: 7.6rem;
  font-size: 0.84rem;
  padding: 0.85rem 0.5rem 0.75rem;
}

@keyframes aura-counter-orbit {
  from { transform: rotate(calc(var(--angle) * -1)); }
  to { transform: rotate(calc(var(--angle) * -1 - 360deg)); }
}

@keyframes engine-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}

.aura-engine strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.aura-engine small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.aura-engine-dot {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin: 0 auto 0.35rem;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-aura));
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.7);
}

.aura-engine:hover,
.aura-engine.is-active {
  border-color: color-mix(in srgb, var(--accent-aura) 55%, transparent);
  box-shadow: var(--shadow-glow);
  background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent-aura));
  scale: 1.08;
  z-index: 6;
  animation-play-state: paused;
}

.aura-core-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(7.5rem, 18%, 9.5rem);
  height: clamp(7.5rem, 18%, 9.5rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #5b7cfa, #7c5cff 55%, #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 750;
  font-size: 1rem;
  z-index: 4;
  box-shadow: 0 0 0 12px rgba(124, 92, 255, 0.12), 0 18px 48px rgba(79, 70, 229, 0.4);
  animation: aura-breathe 4s ease-in-out infinite;
}

.aura-visual-large .aura-core-node {
  width: clamp(9rem, 20%, 11rem);
  height: clamp(9rem, 20%, 11rem);
  font-size: 1.1rem;
}

.aura-core-label {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  line-height: 1.15;
}

.aura-core-label small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

.aura-core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: ring-expand 2.8s ease-out infinite;
}

.aura-core-ring.delay {
  animation-delay: 1.4s;
}

@keyframes ring-expand {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes aura-breathe {
  0%, 100% {
    box-shadow: 0 0 0 12px rgba(124, 92, 255, 0.12), 0 16px 40px rgba(79, 70, 229, 0.35);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(124, 92, 255, 0.2), 0 22px 56px rgba(79, 70, 229, 0.5);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.aura-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.aura-selection {
  max-width: 36rem;
  margin: 1rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-align: center;
  animation: fade-up 0.35s ease both;
}

.aura-selection p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.aura-bullets {
  max-width: 42rem;
  margin-inline: auto;
}

.engine-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.engine-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in srgb, var(--accent-aura) 35%, transparent);
}

.sector-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.sector-card:hover {
  transform: translateY(-8px);
}

.sector-card:hover .sector-icon {
  transform: scale(1.08) rotate(-4deg);
  transition: transform var(--transition);
}

.module-tile {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.indicator-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.indicator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .engine-grid { grid-template-columns: 1fr; }
}

.engine-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.engine-card h4 {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.engine-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile: AURA keeps motion but shorter orbit radius */
@media (max-width: 720px) {
  .aura-visual,
  .aura-visual-large {
    min-height: 400px;
  }

  .aura-engine,
  .aura-visual-large .aura-engine {
    top: -9.2rem;
    left: -2.9rem;
    width: 5.8rem;
    font-size: 0.72rem;
    padding: 0.55rem 0.35rem;
  }

  .aura-core-node,
  .aura-visual-large .aura-core-node {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 0.85rem;
  }

  .ecosystem-map {
    width: min(100%, 340px);
  }
}

/* Reduced motion: keep layout, drop continuous animation */
@media (prefers-reduced-motion: reduce) {
  .aura-orbit-slot,
  .aura-engine,
  .aura-ring,
  .aura-particle,
  .aura-link-line,
  .aura-core-node,
  .aura-core-ring,
  .map-node,
  .map-center,
  .orbit,
  .link-line,
  .hero-orb,
  .brand-logo-img,
  .btn-pulse::after {
    animation: none !important;
  }

  .aura-tilt-layer,
  .eco-tilt-layer {
    transform: none !important;
  }
}

/* ----- Module explorer ----- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.module-tile {
  padding: 1rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.module-tile:hover,
.module-tile.is-active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-primary) 45%, transparent);
  box-shadow: var(--shadow-glow);
}

.module-tile strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.module-tile span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.module-detail {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  min-height: 4.5rem;
  color: var(--text-secondary);
}

/* ----- Process timeline ----- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent-aura));
  opacity: 0.35;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    display: none;
  }
}

.timeline-step {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-index {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  font-size: 1.05rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ----- Benefits ----- */
.benefit-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.benefit-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.benefit-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ----- Path cards (acciones prácticas en home / contacto) ----- */
.path-grid {
  align-items: stretch;
}

.path-card {
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px color-mix(in srgb, var(--brand-500) 16%, transparent);
}

.path-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.path-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.path-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.path-card .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.path-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(51, 102, 245, 0.35);
}

.path-card-accent {
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border-subtle));
  background:
    radial-gradient(420px 180px at 0% 0%, color-mix(in srgb, var(--brand-500) 14%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--bg-elevated) 88%, var(--brand-100)) 0%, var(--bg-elevated) 100%);
}

.compact-list {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.compact-list li {
  margin-bottom: 0.25rem;
}

.footer-grid-compact {
  gap: 1.75rem;
}

/* ----- CTA ----- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 280px at 15% 0%, rgba(91, 124, 250, 0.35), transparent 55%),
    radial-gradient(600px 260px at 90% 100%, rgba(124, 92, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #1a2a6c, #1e3a8a 45%, #312e81);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  max-width: 28ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1e3a8a;
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  color: #1e3a8a;
  background: #f1f5f9;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ----- Footer ----- */
.corporate-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.corporate-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.corporate-footer a:hover {
  color: #fff;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 28rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ----- Theme switcher ----- */
.theme-switcher {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background var(--transition), border-color var(--transition);
}

.theme-switcher:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
}

/* ----- States ----- */
.state-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
  text-align: center;
  color: var(--text-secondary);
}

.state-box h3 {
  margin-bottom: 0.4rem;
}

.spinner {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent-primary);
  margin: 0 auto 0.75rem;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Pricing ----- */
.plan-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.is-featured {
  border-color: color-mix(in srgb, var(--accent-primary) 50%, transparent);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
  color: var(--accent-primary);
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: var(--text-primary);
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-primary);
  font-weight: 700;
}

/* ----- Content lists ----- */
.content-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.4rem;
}

/* ----- Split layout ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* ===== AURA public chat (corporate guide) ===== */
.aura-talk-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 2rem;
  align-items: start;
}

.aura-talk-grid-wide {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .aura-talk-grid,
  .aura-talk-grid-wide {
    grid-template-columns: 1fr;
  }
}

.aura-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 560px;
  border-radius: calc(var(--radius-xl) + 0.15rem);
  border: 1px solid rgba(124, 92, 255, 0.22);
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(51, 102, 245, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(124, 92, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #0a1220 0%, #0e1830 55%, #0b1528 100%);
  box-shadow:
    0 20px 50px rgba(7, 14, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e8eef9;
  overflow: hidden;
}

.aura-chat.is-full {
  min-height: 480px;
  max-height: 620px;
}

.aura-chat.is-lead-mode {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow:
    0 20px 50px rgba(7, 14, 28, 0.4),
    0 0 0 1px rgba(20, 184, 166, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.aura-chat.is-lead-mode .aura-chat-head {
  border-bottom-color: rgba(20, 184, 166, 0.25);
}

.aura-chat.is-lead-mode .aura-chat-avatar {
  background: linear-gradient(145deg, #14b8a6, #7c5cff);
}

.aura-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(8px);
}

.aura-chat-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.aura-chat-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-500), var(--accent-aura));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2), 0 8px 18px rgba(51, 102, 245, 0.4);
}

.aura-chat-identity strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.aura-chat-identity small {
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.75rem;
}

.aura-chat-close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.aura-chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.aura-chat-thread {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.aura-chat-end {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  pointer-events: none;
}

.aura-chat-msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.aura-chat-msg .who {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.aura-chat-msg.is-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom-left-radius: 0.35rem;
}

.aura-chat-msg.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(51, 102, 245, 0.55), rgba(124, 92, 255, 0.45));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom-right-radius: 0.35rem;
  color: #fff;
}

.aura-chat-msg.is-user p {
  margin: 0;
}

.aura-chat-html a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aura-chat-html strong {
  color: #fff;
}

.aura-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.aura-chip {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
  color: #e0e7ff;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aura-chip:hover {
  background: rgba(124, 92, 255, 0.28);
  border-color: rgba(124, 92, 255, 0.55);
  transform: translateY(-1px);
}

.aura-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(6, 12, 22, 0.65);
}

.aura-chat-input {
  flex: 1;
  min-height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
}

.aura-chat-input::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.aura-chat-input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.aura-chat-disclaimer {
  margin: 0;
  padding: 0.45rem 1rem 0.7rem;
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.65);
  background: rgba(6, 12, 22, 0.5);
}

.aura-chat-disclaimer a {
  color: #93c5fd;
}

/* Floating launcher */
.aura-launcher {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.aura-launcher > * {
  pointer-events: auto;
}

.aura-launcher-panel {
  width: min(100vw - 1.5rem, 380px);
  filter: drop-shadow(0 18px 40px rgba(7, 14, 28, 0.45));
}

.aura-launcher-panel .aura-chat {
  min-height: 420px;
  max-height: min(70vh, 520px);
}

.aura-launcher-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 1.1rem 0.55rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(51, 102, 245, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aura-launcher-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(124, 92, 255, 0.45);
}

.aura-fab-dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  position: relative;
}

.aura-fab-dot::after {
  content: "A";
  font-size: 0.8rem;
  font-weight: 800;
}

.aura-launcher.is-open .aura-launcher-fab {
  background: linear-gradient(135deg, #1e293b, #334155);
}

@media (max-width: 560px) {
  .aura-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .aura-fab-label {
    display: none;
  }
  .aura-launcher-fab {
    padding: 0.55rem;
    width: 3.25rem;
    height: 3.25rem;
    justify-content: center;
  }
}

/* ----- Cinematic home ----- */
.home-cinematic .section {
  padding: clamp(3.25rem, 5.5vw, 5.25rem) 0;
}

.hero-stage-cinematic {
  min-height: 0;
}

/* Sectors */
.sector-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .sector-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .sector-visual-grid { grid-template-columns: 1fr; }
}

.sector-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 12.5rem;
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(51, 102, 245, 0.16), transparent 60%),
    var(--bg-elevated);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.sector-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-primary) 40%, transparent);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.sector-tile.tone-edu { --tile: var(--accent-education); }
.sector-tile.tone-health { --tile: var(--accent-health); }
.sector-tile.tone-gov { --tile: var(--accent-government); }
.sector-tile.tone-biz { --tile: var(--accent-business); }

.sector-tile-mark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tile, var(--accent-primary));
  margin-bottom: auto;
}

.sector-tile h3 { margin: 0.4rem 0 0.25rem; }
.sector-tile p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* AURA highlight */
.aura-highlight {
  background:
    radial-gradient(700px 280px at 12% 20%, rgba(124, 92, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 100%);
  color: #eef2ff;
}

.aura-highlight h2,
.aura-highlight .lead { color: #eef2ff; }

.aura-highlight .lead { margin-bottom: 1.25rem; }

.aura-highlight-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .aura-highlight-grid { grid-template-columns: 1fr; }
}

.aura-highlight-visual {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.aura-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 68%);
  filter: blur(8px);
  animation: orb-drift 10s ease-in-out infinite;
}

.aura-core-mark {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: linear-gradient(160deg, #1b2140, #0d1324);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.aura-core-mark span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #a5b4fc;
}

.aura-verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.aura-verbs li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 650;
  font-size: 0.88rem;
}

/* Leadership premium */
.leader-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .leader-grid-premium { grid-template-columns: 1fr; }
}

.leader-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.leader-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 22rem;
  border-radius: calc(var(--radius-xl) - 0.15rem);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 30% 18%, rgba(124, 92, 255, 0.34), transparent 52%),
    linear-gradient(165deg, #10182b, #070b14);
  border: 1px solid var(--border-subtle);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.leader-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8edf8;
}

.leader-copy h3 { margin-bottom: 0.15rem; }

.leader-role {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent-primary);
}

.leader-areas {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.leader-bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* History rail */
.history-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.history-rail::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent-aura));
  opacity: 0.35;
}

.history-rail li {
  position: relative;
  padding-top: 2.2rem;
}

.history-rail li::before {
  content: "";
  position: absolute;
  top: 0.82rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
}

.history-rail span {
  display: block;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.history-rail p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .history-rail {
    grid-template-columns: 1fr 1fr;
  }
  .history-rail::before { display: none; }
}

@media (max-width: 520px) {
  .history-rail { grid-template-columns: 1fr; }
}

/* Product showcase */
.showcase-grid,
.showcase-grid-cinematic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .showcase-grid,
  .showcase-grid-cinematic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .showcase-grid,
  .showcase-grid-cinematic { grid-template-columns: 1fr; }
}

.showcase-slot h3 {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
}

.showcase-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 18% 12%, rgba(51, 102, 245, 0.24), transparent 48%),
    linear-gradient(165deg, #0d1628, #070b14);
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  color: #cbd5e1;
}

.showcase-window {
  display: flex;
  gap: 0.28rem;
}

.showcase-window i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.28);
}

.showcase-placeholder strong {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

/* Trust chips */
.trust-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.trust-chips li {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-weight: 650;
  font-size: 0.88rem;
}

/* Nosotros airy */
.nosotros-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .nosotros-split { grid-template-columns: 1fr; }
}

.conviction-band {
  text-align: center;
  max-width: 40rem;
}

.conviction-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.define-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.define-chips li {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-weight: 650;
}
