/* ==========================================================================
   MB AI SOLUTIONS — Design system
   Fuente de verdad: Docs/01-MARCA-MB-AI-SOLUTIONS.md
   ========================================================================== */

:root {
  /* --- Paleta oficial --- */
  --c-primary: #35e0d0;          /* Turquesa Brillante */
  --c-secondary: #00838F;        /* Verde Azulado Profundo (solo decorativo / texto grande: 4.1:1 sobre fondo) */
  --c-silver: #E0E0E0;           /* Acento metálico */
  --c-bg: #05070f;               /* Fondo */

  /* --- Derivados --- */
  --c-bg-deep: #05070f;
  --c-surface: rgba(255, 255, 255, 0.035);
  --c-surface-hover: rgba(53, 224, 208, 0.06);
  --c-border: rgba(224, 224, 224, 0.10);
  --c-border-glow: rgba(53, 224, 208, 0.35);
  --c-text: #E0E0E0;             /* 13.4:1 sobre --c-bg */
  --c-text-muted: #A3ABB0;       /* 7.6:1 sobre --c-bg */
  --c-on-primary: #061216;

  --glow-sm: 0 0 12px rgba(53, 224, 208, 0.35);
  --glow-md: 0 0 24px rgba(53, 224, 208, 0.35), 0 0 60px rgba(53, 224, 208, 0.15);
  --grad-light: linear-gradient(90deg, transparent, var(--c-primary), var(--c-secondary), transparent);

  /* --- Tipografía (Inter Bold / Regular) --- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 4.6vw, 5.25rem);
  --lh-tight: 1.05;
  --lh-body: 1.6;

  /* --- Espaciado y layout --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 76px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* --- Movimiento --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 400ms;

  /* --- Capas --- */
  --z-ambient: 0;
  --z-content: 2;
  --z-header: 50;
  --z-float: 60;
  --z-cursor: 70;
  --z-preloader: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--c-bg);
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--c-primary); color: var(--c-on-primary); }

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: calc(var(--z-preloader) + 1);
  padding: var(--space-2) var(--space-4);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Componentes
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-primary);
  box-shadow: var(--glow-sm);
}

.text-glow {
  color: var(--c-primary);
  text-shadow: 0 0 28px rgba(53, 224, 208, 0.45);
}

/* --- Botones --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  will-change: transform;
}
.btn--sm { min-height: 42px; padding: 0 var(--space-5); }
.btn__icon { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 0 0 rgba(53, 224, 208, 0);
}
.btn--primary:hover,
.btn--primary:focus-visible { box-shadow: var(--glow-md); }

.btn--ghost {
  border: 1px solid var(--c-border-glow);
  color: var(--c-text);
  background: rgba(53, 224, 208, 0.03);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-primary);
  background: var(--c-surface-hover);
  box-shadow: var(--glow-sm);
}

/* Contenido interno del botón magnético (se mueve ligeramente distinto) */
.magnetic__inner { display: inline-flex; align-items: center; gap: inherit; pointer-events: none; }

/* --- Divisor de luz entre secciones --- */
.light-divider {
  position: relative;
  z-index: var(--z-content);
  height: 1px;
  max-width: var(--container);
  margin-inline: auto;
  background: var(--grad-light);
  opacity: 0.55;
  transform-origin: center;
}
.light-divider::after {
  content: "";
  position: absolute;
  inset: -6px 20%;
  background: var(--grad-light);
  filter: blur(8px);
  opacity: 0.6;
}

/* ==========================================================================
   Capas globales: ambiente, fénix, cursor
   ========================================================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
}
.fx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}
.fx-cursor { z-index: var(--z-cursor); display: none; }

.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.12), rgba(53, 224, 208, 0.04) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  display: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-cursor) + 1);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  display: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #E8FDFF;
  box-shadow: 0 0 10px 2px rgba(53, 224, 208, 0.9), 0 0 26px 6px rgba(53, 224, 208, 0.35);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(53, 224, 208, 0.65);
  box-shadow: 0 0 12px rgba(53, 224, 208, 0.25), inset 0 0 8px rgba(53, 224, 208, 0.15);
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.cursor-ring.is-hover { background: rgba(53, 224, 208, 0.08); border-color: var(--c-primary); }

/* El cursor de luz solo existe con mouse y movimiento permitido */
.custom-cursor .cursor-halo,
.custom-cursor .fx-cursor,
.custom-cursor .cursor-dot,
.custom-cursor .cursor-ring { display: block; }
.custom-cursor,
.custom-cursor * { cursor: none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-border);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand__logo {
  width: auto;
  height: calc(var(--header-h) - 8px);
  filter: drop-shadow(0 0 10px rgba(53, 224, 208, 0.25));
  transition: filter var(--dur-med) var(--ease-out);
}
.brand:hover .brand__logo { filter: drop-shadow(0 0 16px rgba(53, 224, 208, 0.5)); }

/* Toggle móvil */
.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-silver);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 14, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s;
}
.nav__list { display: grid; justify-items: center; gap: var(--space-6); }
.nav__link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  transition: color var(--dur-fast);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--c-primary); }

@media (min-width: 900px) {
  :root { --header-h: 88px; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__list { display: flex; align-items: center; gap: var(--space-6); }
  .nav__link {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-muted);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--c-primary);
    box-shadow: var(--glow-sm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease-out);
  }
  .nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--space-6)) var(--space-8);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.glow--a {
  width: 60vmax;
  height: 60vmax;
  right: -20vmax;
  top: -15vmax;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.20), transparent 65%);
}
.glow--b {
  width: 50vmax;
  height: 50vmax;
  left: -25vmax;
  bottom: -25vmax;
  background: radial-gradient(circle, rgba(0, 131, 143, 0.28), transparent 65%);
}

.streams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.stream {
  fill: none;
  stroke: url(#stream-grad);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(53, 224, 208, 0.6));
}
.stream--thin { stroke-width: 0.8; opacity: 0.6; }

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.hero__content { max-width: 720px; }
.hero__eyebrow { margin-bottom: var(--space-5); }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero__sub {
  margin-top: var(--space-5);
  max-width: 580px;
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}
.hero__ctas {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Ancla del fénix: en móvil arriba-derecha, en desktop columna derecha */
.hero__perch {
  position: absolute;
  top: calc(-1 * var(--space-6));
  right: 0;
  width: 40vw;
  max-width: 200px;
  aspect-ratio: 900 / 707;
  pointer-events: none;
}

/* Split por palabras */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word__inner { display: inline-block; will-change: transform; }
.is-revealed .word { overflow: visible; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  width: 28px;
  height: 56px;
  margin-left: -14px;
  display: grid;
  justify-items: center;
}
.scroll-cue__line {
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--c-primary), transparent);
  transform-origin: top;
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 599px) {
  .hero__ctas .btn { width: 100%; }
  .hero__content { padding-top: var(--space-8); }
  .scroll-cue { display: none; }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.25fr 1fr; }
  .hero__content { padding-top: 0; }
  .hero__perch {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 440px;
    justify-self: end;
  }
}

/* ==========================================================================
   Marquee de nichos
   ========================================================================== */
.marquee {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--space-6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__label {
  margin-bottom: var(--space-4);
  padding-inline: 12%;   /* fuera del difuminado lateral del marquee */
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(1.25rem, 0.8rem + 2vw, 2.75rem);
  padding-right: clamp(1.25rem, 0.8rem + 2vw, 2.75rem);
}
.marquee__group span {
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(224, 224, 224, 0.6);
  white-space: nowrap;
  transition: color var(--dur-med) var(--ease-out), -webkit-text-stroke-color var(--dur-med);
}
.marquee__group span:nth-child(4n + 1) { color: var(--c-silver); -webkit-text-stroke-color: transparent; }
.marquee__group i {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--c-primary);
  transform: rotate(45deg);
  box-shadow: var(--glow-sm);
}
/* Sin movimiento: lista estática que envuelve */
html:not(.motion-ok) .marquee { -webkit-mask-image: none; mask-image: none; }
html:not(.motion-ok) .marquee__track { display: block; width: auto; }
html:not(.motion-ok) .marquee__group { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: var(--space-3); padding-inline: var(--gutter); }
html:not(.motion-ok) .marquee__group span { font-size: var(--fs-h3); }

/* ==========================================================================
   Encabezado de sección
   ========================================================================== */
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-title { margin-top: var(--space-4); font-size: var(--fs-h2); font-weight: 800; color: #fff; }
.section-sub { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 620px; }

/* ==========================================================================
   Servicios — tarjetas con identidad fénix
   (caída con estela, chispas, borde de luz giratorio y escena animada)
   ========================================================================== */
.cards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.card {
  --card-bg: #15191b;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Capa recortada: borde de luz + fondo + foco + barrido */
.card__clip {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(224, 224, 224, 0.08);    /* borde base de 1px */
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.card__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  margin: -80% 0 0 -80%;
  background: conic-gradient(from 0deg, transparent 0deg 250deg, rgba(0, 131, 143, 0.9) 290deg, #35e0d0 330deg, #fff 345deg, transparent 360deg);
  opacity: 0.45;
  animation: beam 7s linear infinite;
  animation-play-state: paused;
  transition: opacity var(--dur-med) var(--ease-out);
}
.card.is-live .card__beam { animation-play-state: running; }
.card:nth-child(2n) .card__beam { animation-duration: 9s; animation-direction: reverse; }
.card:nth-child(3n) .card__beam { animation-duration: 8s; }
@keyframes beam { to { transform: rotate(1turn); } }

.card__bg {
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(53, 224, 208, 0.07), transparent 60%),
    var(--card-bg);
}
.card__spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.16), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
/* Barrido de luz vertical al aterrizar (JS) */
.card__scan {
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(53, 224, 208, 0.18) 70%, rgba(224, 255, 255, 0.5) 99%, transparent);
  opacity: 0;
  transform: translateY(-100%);
}

.card:hover .card__beam, .card:focus-within .card__beam { opacity: 1; }
.card:hover .card__spot { opacity: 1; }
.card:hover .card__clip, .card:focus-within .card__clip { box-shadow: 0 30px 70px -30px rgba(53, 224, 208, 0.35); }

/* Visual superior */
.card__visual {
  position: relative;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(53, 224, 208, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(53, 224, 208, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(80% 90% at 50% 100%, rgba(0, 131, 143, 0.22), transparent 70%),
    rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(53, 224, 208, 0.10);
  overflow: hidden;
  transform: translateZ(30px);
}
.card__num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  z-index: 1;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}
.card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--glow-sm);
}
.card__title { font-size: var(--fs-h3); line-height: 1.2; color: #fff; letter-spacing: -0.015em; transform: translateZ(20px); }
.card__text { color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.65; transform: translateZ(10px); }

/* Chispas y motas (se crean desde JS) */
.card__sparks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.spark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #E8FDFF;
  box-shadow: 0 0 6px 2px rgba(53, 224, 208, 0.9), 0 0 16px 4px rgba(53, 224, 208, 0.35);
  opacity: 0;
}
.spark--mote { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }

/* Estela que acompaña la caída */
.card__trail {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 160px;
  margin-left: -1px;
  background: linear-gradient(to top, rgba(224, 255, 255, 0.95), rgba(53, 224, 208, 0.6) 30%, transparent);
  filter: drop-shadow(0 0 6px rgba(53, 224, 208, 0.9));
  transform-origin: bottom;
  opacity: 0;
  pointer-events: none;
}

/* Destacada */
.card--featured { --card-bg: #0f1c1f; }
.card--featured .card__clip { background: rgba(53, 224, 208, 0.35); }
.card--featured .card__beam { opacity: 0.8; }
.card--featured .card__bg {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(53, 224, 208, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(0, 131, 143, 0.20), transparent 70%),
    var(--card-bg);
}
.card__bird {
  position: absolute;
  right: -18px;
  bottom: -14px;
  width: 128px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(53, 224, 208, 0.5));
  pointer-events: none;
}
.card__link {
  margin-top: auto;
  padding-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--c-primary);
}
.card__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-med) var(--ease-out);
}
.card__link:hover svg, .card__link:focus-visible svg { transform: translateX(4px); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* --- Escenas SVG --- */
.scene { width: 100%; height: auto; overflow: visible; }
.scene .s-bubble { fill: rgba(224, 224, 224, 0.07); stroke: rgba(224, 224, 224, 0.16); }
.scene .s-bubble--me { fill: rgba(53, 224, 208, 0.85); stroke: none; filter: drop-shadow(0 0 8px rgba(53, 224, 208, 0.5)); }
.scene .s-line { fill: rgba(224, 224, 224, 0.45); }
.scene .s-line--dim { fill: rgba(224, 224, 224, 0.22); }
.scene .s-line--dark { fill: rgba(6, 18, 22, 0.55); }
.scene .s-dot { fill: var(--c-primary); }
.scene .s-ring { fill: rgba(53, 224, 208, 0.06); stroke: var(--c-primary); stroke-width: 1.5; }
.scene .s-stroke { fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .s-stroke--thick { stroke-width: 4; }
.scene .s-label { fill: var(--c-text-muted); font: 600 10px/1 var(--font); letter-spacing: 0.04em; }
.scene .s-label--big { fill: var(--c-silver); font-size: 13px; font-weight: 700; }
.scene .s-gear { fill: none; stroke: var(--c-primary); stroke-width: 9; stroke-dasharray: 6 5; filter: drop-shadow(0 0 6px rgba(53, 224, 208, 0.45)); }
.scene .s-gear--b { stroke: var(--c-secondary); stroke-width: 7; stroke-dasharray: 5 4; }
.scene .s-hub { fill: var(--card-bg); stroke: rgba(224, 224, 224, 0.4); stroke-width: 1.5; }
.scene .s-box { fill: rgba(53, 224, 208, 0.08); stroke: rgba(53, 224, 208, 0.5); }
.scene .s-check { fill: none; stroke: var(--c-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scene .s-wire { fill: none; stroke: rgba(53, 224, 208, 0.28); stroke-width: 1.5; stroke-dasharray: 3 4; }
.scene .s-pulse { fill: #E8FDFF; filter: drop-shadow(0 0 5px #35e0d0); }
.scene .s-core { fill: var(--c-primary); filter: drop-shadow(0 0 10px rgba(53, 224, 208, 0.8)); }
.scene .s-core-glow { fill: rgba(53, 224, 208, 0.15); }
.scene .s-typed { fill: rgba(224, 224, 224, 0.5); }
.scene .s-caret { fill: var(--c-primary); }
.scene .s-spark { fill: var(--c-primary); }
.scene .s-chip { fill: rgba(53, 224, 208, 0.14); stroke: rgba(53, 224, 208, 0.4); }
.scene .s-layer { fill: rgba(0, 131, 143, 0.25); stroke: rgba(53, 224, 208, 0.5); stroke-width: 1.2; }
.scene .s-layer--top { fill: rgba(53, 224, 208, 0.28); stroke: var(--c-primary); filter: drop-shadow(0 0 10px rgba(53, 224, 208, 0.6)); }
.scene .s-dash { fill: none; stroke: rgba(224, 224, 224, 0.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scene .s-axis { stroke: rgba(224, 224, 224, 0.2); }
.scene .s-bar { fill: rgba(0, 131, 143, 0.45); }
.scene .s-bar--hot { fill: var(--c-primary); filter: drop-shadow(0 0 8px rgba(53, 224, 208, 0.7)); }
.scene .s-lens-glass { fill: rgba(224, 255, 255, 0.08); }

/* ==========================================================================
   Proceso — pasos con línea de progreso por scroll
   ========================================================================== */
.process__inner { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .process__inner { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; }
  .process__head { position: sticky; top: calc(var(--header-h) + var(--space-7)); margin-bottom: 0; }
}

.steps { --node: 44px; position: relative; }
@media (min-width: 640px) { .steps { --node: 52px; } }
.steps__rail {
  position: absolute;
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2);
  left: calc(var(--node) / 2 - 1px);
  width: 2px;
  background: rgba(224, 224, 224, 0.10);
  border-radius: 2px;
}
.steps__progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c-secondary), var(--c-primary));
  box-shadow: 0 0 12px rgba(53, 224, 208, 0.6);
  transform-origin: top;
  transform: scaleY(0);
}
.steps__comet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #E8FDFF;
  box-shadow: 0 0 10px 3px rgba(53, 224, 208, 0.9), 0 0 30px 8px rgba(53, 224, 208, 0.35);
  opacity: 0;
}
html:not(.motion-ok) .steps__progress { transform: none; }

.steps__list { display: grid; gap: var(--space-6); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: var(--space-5);
  align-items: start;
}
.step__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid rgba(224, 224, 224, 0.18);
  font-weight: 800;
  color: var(--c-text-muted);
  transition: border-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.step__node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--c-primary);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--dur-med) var(--ease-out), transform 600ms var(--ease-out);
}
.step.is-active .step__node,
html:not(.motion-ok) .step__node {
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: var(--glow-md);
}
.step.is-active .step__node::after { opacity: 0.35; transform: scale(1); }

.step__body {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--c-border);
  transition: border-color var(--dur-med) var(--ease-out), background-color var(--dur-med);
}
.step.is-active .step__body { border-color: rgba(53, 224, 208, 0.25); }
.step__title { font-size: var(--fs-h3); line-height: 1.2; color: #fff; }
.step__text { margin-top: var(--space-2); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Por qué MB AI SOLUTIONS
   ========================================================================== */
.why__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .why__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

.why__media { position: relative; margin: 0; }
.why__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(53, 224, 208, 0.25);
  box-shadow: 0 40px 80px -40px rgba(53, 224, 208, 0.35);
}
.why__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 18, 0.65));
  pointer-events: none;
}
.why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
html:not(.motion-ok) .why__img { transform: none; }
.why__glow {
  position: absolute;
  inset: 10% -6% -8% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.25), transparent 65%);
  filter: blur(40px);
}

.why__head { margin-bottom: var(--space-6); }
.reasons { display: grid; gap: var(--space-3); }
.reason {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.reason:hover { border-color: rgba(53, 224, 208, 0.2); background: rgba(53, 224, 208, 0.04); }
.reason__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(53, 224, 208, 0.08);
  border: 1px solid rgba(53, 224, 208, 0.25);
  color: var(--c-primary);
  box-shadow: inset 0 0 12px rgba(53, 224, 208, 0.12);
}
.reason__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reason__title { font-size: 1.125rem; line-height: 1.3; color: #fff; }
.reason__text { margin-top: var(--space-1); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta {
  text-align: center;
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vmax;
  height: 90vmax;
  margin: -45vmax 0 0 -45vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.16), rgba(0, 131, 143, 0.10) 30%, transparent 60%);
  will-change: transform, opacity;
}
.cta__streams { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }

.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-primary);
  box-shadow: var(--glow-sm);
}
.cta__title {
  margin-top: var(--space-5);
  font-size: clamp(2.5rem, 1.4rem + 5.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.cta__sub {
  margin-top: var(--space-5);
  max-width: 560px;
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}

.cta__action {
  position: relative;
  margin-top: var(--space-7);
  display: grid;
  place-items: center;
}
.btn--xl {
  min-height: 68px;
  padding: 0 var(--space-7);
  font-size: 1.0625rem;
  box-shadow: 0 0 30px rgba(53, 224, 208, 0.35);
}
.btn--xl .btn__icon { width: 24px; height: 24px; }
.cta__ring {
  position: absolute;
  inset: -10px -14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.5);
  opacity: 0;
  pointer-events: none;
}
.cta__orbit {
  position: absolute;
  inset: -34px -40px;
  pointer-events: none;
}
.cta__orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #E8FDFF;
  box-shadow: 0 0 8px 2px rgba(53, 224, 208, 0.9);
  opacity: 0;
}
html:not(.motion-ok) .cta__orbit { display: none; }

.cta__note {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.cta__perch {
  position: absolute;
  right: 4%;
  top: -6%;
  width: clamp(110px, 16vw, 220px);
  aspect-ratio: 900 / 707;
  pointer-events: none;
}
@media (max-width: 767px) { .cta__perch { right: 0; top: -12%; } }

/* ==========================================================================
   Footer — columnas + océano cibernético
   ========================================================================== */
.footer {
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(0, 131, 143, 0.22), transparent 70%),
    linear-gradient(180deg, transparent, var(--c-bg-deep) 30%);
}

.footer__top {
  display: grid;
  gap: var(--space-7) var(--space-6);
  padding-block: var(--space-8) var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

.footer__logo-link { display: inline-block; }
.footer__logo {
  width: 104px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(53, 224, 208, 0.35));
  transition: filter var(--dur-med) var(--ease-out);
}
.footer__logo-link:hover .footer__logo { filter: drop-shadow(0 0 22px rgba(53, 224, 208, 0.6)); }
.footer__slogan {
  margin-top: var(--space-4);
  max-width: 320px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer__about {
  margin-top: var(--space-3);
  max-width: 340px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.footer__cta { margin-top: var(--space-5); }

.footer__heading {
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a {
  position: relative;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast);
}
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--c-primary);
  box-shadow: var(--glow-sm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.footer__col a:hover, .footer__col a:focus-visible { color: #fff; }
.footer__col a:hover::after, .footer__col a:focus-visible::after { transform: scaleX(1); }

.footer__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.footer__contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.footer__made span { color: var(--c-primary); }
.footer__top-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(53, 224, 208, 0.35);
  color: var(--c-primary);
  transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med);
}
.footer__top-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-med) var(--ease-out); }
.footer__top-btn:hover, .footer__top-btn:focus-visible { background: rgba(53, 224, 208, 0.08); box-shadow: var(--glow-sm); }
.footer__top-btn:hover svg { transform: translateY(-3px); }
@media (max-width: 767px) {
  /* el botón flotante de WhatsApp ocupa esa esquina */
  .footer__bottom { justify-content: flex-start; }
  .footer__top-btn { order: -1; }
}

/* Océano cibernético */
.footer__sea {
  position: relative;
  height: clamp(150px, 18vw, 250px);
  margin-top: calc(clamp(150px, 18vw, 250px) * -0.35);
  pointer-events: none;
}
.footer__sea::after {
  /* brillo del horizonte */
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30%;
  height: 40%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(53, 224, 208, 0.18), transparent 70%);
  filter: blur(20px);
}
.footer__sea-canvas { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 10px 30px -8px rgba(53, 224, 208, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.wa-float svg { position: relative; width: 30px; height: 30px; }
.wa-float:hover, .wa-float:focus-visible { box-shadow: var(--glow-md); }
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-primary);
  animation: wa-pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(53, 224, 208, 0.3);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .wa-float:hover .wa-float__label,
  .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
}
.js.motion-ok .wa-float { opacity: 0; }

/* ==========================================================================
   HUD del hero — capa decorativa (grid holográfico + anillos lentos)
   ========================================================================== */
.hud {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  overflow: hidden;
}
.hud__grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(53, 224, 208, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.hud__ring {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  margin-top: calc(min(62vw, 820px) / -2);
  display: none;
}
.hud__ring--a { animation: hud-spin 60s linear infinite; }
.hud__ring--b {
  width: min(48vw, 640px);
  margin-top: calc(min(48vw, 640px) / -2);
  right: calc(-8% + (min(62vw, 820px) - min(48vw, 640px)) / 2);
  animation: hud-spin 90s linear infinite reverse;
}
@keyframes hud-spin { to { transform: rotate(1turn); } }
.hud__stroke { fill: none; stroke: #35e0d0; stroke-width: 1.2; opacity: 0.8; }
.hud__stroke--dash { stroke-dasharray: 2 10; }
.hud__stroke--ticks { stroke-width: 10; stroke-dasharray: 1 14; opacity: 0.6; }
.hud__stroke--arc { stroke-width: 3; opacity: 1; }
@media (min-width: 768px) { .hud__ring { display: block; } }

/* ==========================================================================
   Consola IA estilo JARVIS (dentro de "Por qué MB AI SOLUTIONS")
   ========================================================================== */
.jarvis {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-9);
}
@media (min-width: 960px) {
  .jarvis { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); }
}
.jarvis__title {
  margin-top: var(--space-4);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.jarvis__text { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 520px; }
.jarvis__note {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  max-width: 520px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(53, 224, 208, 0.3);
  background: rgba(53, 224, 208, 0.04);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-text-muted);
}
.jarvis__note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; }
.jarvis__cta { margin-top: var(--space-5); }
.jarvis__cta[hidden] { display: none; }

.console {
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(53, 224, 208, 0.16);
  box-shadow: 0 40px 90px -50px rgba(53, 224, 208, 0.45), inset 0 0 40px rgba(53, 224, 208, 0.04);
  isolation: isolate;
  min-width: 0;
}
/* Grid tenue de fondo */
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(53, 224, 208, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
}
/* Esquinas en "L" */
.console__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--c-primary);
  filter: drop-shadow(0 0 6px rgba(53, 224, 208, 0.8));
  pointer-events: none;
}
.console__corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 14px; }
.console__corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 14px; }
.console__corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 14px; }
.console__corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 14px; }

.console__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(53, 224, 208, 0.14);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
}
.console__status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--c-primary); font-weight: 700; }
.console__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 8px 2px rgba(53, 224, 208, 0.8);
  animation: console-dot 1.6s ease-in-out infinite;
}
@keyframes console-dot { 50% { opacity: 0.35; transform: scale(0.75); } }
.console__sep { margin-inline: var(--space-2); opacity: 0.5; }

.console__core {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(170px, 30vw, 220px);
}
.console__wave { width: clamp(170px, 30vw, 220px); height: clamp(170px, 30vw, 220px); }
.console__core-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-silver);
  text-shadow: 0 0 10px rgba(53, 224, 208, 0.8);
}

.console__log {
  height: clamp(200px, 28vh, 260px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(224, 224, 224, 0.06);
  font-size: var(--fs-sm);
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 224, 208, 0.35) transparent;
}
.console__line { color: var(--c-text); }
.console__line--user { color: var(--c-text-muted); }
.console__who {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin-right: var(--space-1);
}
.console__line--user .console__who { color: var(--c-silver); }
.console__caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--c-primary);
  animation: console-dot 0.8s steps(1) infinite;
}

.console__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.console__chip {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.3);
  background: rgba(53, 224, 208, 0.05);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-align: left;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast), opacity var(--dur-fast);
}
.console__chip:hover,
.console__chip:focus-visible { background: rgba(53, 224, 208, 0.12); border-color: var(--c-primary); box-shadow: var(--glow-sm); }
.console__chip[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.console__form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224, 224, 224, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.console__form:focus-within { border-color: var(--c-primary); box-shadow: var(--glow-sm); }
.console__prompt { font-family: var(--mono); color: var(--c-primary); font-weight: 700; }
.console__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
}
.console__input::placeholder { color: rgba(163, 171, 176, 0.75); }
.console__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-on-primary);
  transition: box-shadow var(--dur-fast), opacity var(--dur-fast);
}
.console__send:hover, .console__send:focus-visible { box-shadow: var(--glow-md); }
.console__send[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.console__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 479px) {
  .console { padding: var(--space-4); }
  .console__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hud__ring, .console__dot, .console__caret { animation: none !important; }
}

/* --- Consola: señales de "esto es interactivo" --- */
.console__live {
  margin-left: var(--space-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  box-shadow: var(--glow-sm);
}

/* Barrido de escaneo al entrar en pantalla */
.console::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(53, 224, 208, 0.14) 80%, rgba(224, 255, 255, 0.45) 99%, transparent);
  opacity: 0;
  pointer-events: none;
}
.jarvis.is-seen .console::after { animation: console-scan 1.6s var(--ease-out) 0.2s 1; }
@keyframes console-scan {
  0% { opacity: 1; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(340%); }
}

/* Botón destacado: plan de IA */
.console__plan {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-primary);
  background: linear-gradient(90deg, rgba(0, 131, 143, 0.35), rgba(53, 224, 208, 0.22));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 0 22px rgba(53, 224, 208, 0.25), inset 0 0 18px rgba(53, 224, 208, 0.12);
  transition: box-shadow var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}
.console__plan svg { width: 20px; height: 20px; fill: none; stroke: var(--c-primary); stroke-width: 1.7; stroke-linejoin: round; }
.console__plan:hover,
.console__plan:focus-visible { box-shadow: var(--glow-md), inset 0 0 22px rgba(53, 224, 208, 0.2); }
.console__plan[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.console__plan-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(224, 255, 255, 0.35), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: plan-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes plan-shine {
  0%, 55% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}

/* Aviso flotante sobre el campo */
.console__plan-wrap { position: relative; display: grid; }
/* La Morpho con su letrero reemplaza al aviso anterior */
.console__plan-wrap .console__hint { display: none; }
.console__hint {
  position: absolute;
  z-index: 2;
  right: var(--space-4);
  bottom: calc(100% - 6px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--glow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.console__hint::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--c-primary);
}
.jarvis.is-seen .console__hint { opacity: 1; animation: hint-bob 1.6s ease-in-out 1s infinite; }
.jarvis.is-seen .console__hint.is-gone { opacity: 0; animation: none; }
@keyframes hint-bob { 50% { transform: translateY(-5px); } }

/* Tarjeta de plan generada por la IA */
.plan {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(53, 224, 208, 0.35);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(53, 224, 208, 0.12), transparent 60%),
    rgba(0, 131, 143, 0.12);
  box-shadow: inset 0 0 24px rgba(53, 224, 208, 0.08);
}
.plan__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-primary);
}
.plan__biz { color: var(--c-silver); text-align: right; }
.plan__list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.plan__item { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3); align-items: start; }
.plan__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(53, 224, 208, 0.45);
  background: rgba(53, 224, 208, 0.08);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-primary);
  box-shadow: 0 0 10px rgba(53, 224, 208, 0.25);
}
.plan__title { font-weight: 700; color: #fff; line-height: 1.3; }
.plan__detail { margin-top: 2px; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }
.plan__cta {
  display: inline-flex;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-weight: 700;
  font-size: var(--fs-xs);
  box-shadow: var(--glow-sm);
}
.plan__cta:hover, .plan__cta:focus-visible { box-shadow: var(--glow-md); }

@media (prefers-reduced-motion: reduce) {
  .console__plan-glow, .console__hint, .console::after { animation: none !important; }
}

/* ==========================================================================
   Precio "Desde" (componente compartido)
   ========================================================================== */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); line-height: 1.1; }
.price__from { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-muted); }
.price__value {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 24px rgba(53, 224, 208, 0.35);
}
.price__cur { font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }
.price--sm .price__value { font-size: 1.5rem; }
.pkg .price__value { font-size: clamp(1.7rem, 1.2rem + 1.1vw, 2.15rem); }
.pkg .price { flex-wrap: nowrap; }

/* ==========================================================================
   Problemas que resolvemos
   ========================================================================== */
.problems__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .problems__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems__grid { grid-template-columns: repeat(4, 1fr); } }
.problem {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 76px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-text);
  transition: border-color var(--dur-med) var(--ease-out), background-color var(--dur-med);
}
.problem:hover { border-color: rgba(53, 224, 208, 0.3); background-color: rgba(53, 224, 208, 0.04); }
.problem__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(53, 224, 208, 0.08);
  border: 1px solid rgba(53, 224, 208, 0.2);
  color: var(--c-primary);
}
.problem__icon svg, .sector__icon svg, .pricing__notes svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.problems__answer {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 208, 0.3);
  background:
    radial-gradient(90% 120% at 0% 50%, rgba(53, 224, 208, 0.12), transparent 60%),
    rgba(0, 131, 143, 0.1);
}
.problems__claim {
  max-width: 620px;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ==========================================================================
   MB AI AGENT — producto principal
   ========================================================================== */
.agent { overflow: hidden; }
.agent__glow {
  position: absolute;
  right: -15%;
  top: 10%;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.12), rgba(0, 131, 143, 0.08) 35%, transparent 65%);
  pointer-events: none;
}
.agent__inner { position: relative; display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) { .agent__inner { grid-template-columns: 1.15fr 0.85fr; } }
.agent__title {
  margin-top: var(--space-4);
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
}
.agent__lead { margin-top: var(--space-4); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); font-weight: 700; color: var(--c-silver); }
.agent__text { margin-top: var(--space-4); max-width: 620px; font-size: var(--fs-lg); color: var(--c-text-muted); }
.agent__uses-title {
  margin-top: var(--space-6);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.agent__uses { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: 660px; }
.agent__uses li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.22);
  background: rgba(53, 224, 208, 0.05);
  font-size: var(--fs-xs);
  color: var(--c-text);
}
.agent__note { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--c-text-muted); font-style: italic; }
.agent__price {
  margin-top: var(--space-6);
  padding: var(--space-5);
  max-width: 560px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(53, 224, 208, 0.3);
  background: linear-gradient(90deg, rgba(53, 224, 208, 0.08), rgba(0, 131, 143, 0.05));
}
.agent__range { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }
.agent__ctas { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 599px) { .agent__ctas .btn { width: 100%; } }

/* Teléfono con conversación de ejemplo */
.agent__visual { position: relative; display: grid; place-items: center; }
.agent__orbit {
  position: absolute;
  width: min(460px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(53, 224, 208, 0.25);
  z-index: -1;
  animation: hud-spin 50s linear infinite;
}
.phone {
  width: min(340px, 100%);
  padding: var(--space-4);
  border-radius: 34px;
  background: linear-gradient(180deg, #161b1e, #0d1113);
  border: 1px solid rgba(53, 224, 208, 0.3);
  box-shadow: 0 40px 90px -40px rgba(53, 224, 208, 0.55), inset 0 0 0 6px rgba(0, 0, 0, 0.35);
}
.phone__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid rgba(224, 224, 224, 0.08);
}
.phone__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0a0c0e;
  border: 1px solid rgba(53, 224, 208, 0.4);
  overflow: hidden;
}
.phone__avatar img { width: 30px; height: auto; }
.phone__name { font-size: var(--fs-sm); font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.phone__status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--c-primary); }
.phone__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 6px var(--c-primary); }
.phone__chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 330px;
  padding: var(--space-4) var(--space-1);
}
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.bubble--in { align-self: flex-start; background: rgba(224, 224, 224, 0.08); color: var(--c-text); border-bottom-left-radius: 4px; }
.bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(53, 224, 208, 0.9), rgba(0, 190, 210, 0.9));
  color: var(--c-on-primary);
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 20px -8px rgba(53, 224, 208, 0.7);
}
.bubble--typing { align-self: flex-end; display: none; gap: 4px; background: rgba(53, 224, 208, 0.15); }
.bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.phone__tag { text-align: center; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); }

/* ==========================================================================
   Servicios: etiquetas, precio y detalle
   ========================================================================== */
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-1); }
.card__tags li {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(53, 224, 208, 0.06);
  border: 1px solid rgba(53, 224, 208, 0.16);
  font-size: 0.75rem;
  color: var(--c-text-muted);
}
.card__price {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  border-top: 1px solid rgba(224, 224, 224, 0.07);
}
.card__price span { margin-right: 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--c-primary); }
.card--featured .card__link { margin-top: var(--space-2); padding-top: 0; }
.card__fine { font-size: 0.75rem; color: var(--c-text-muted); }
.card__details { font-size: var(--fs-xs); color: var(--c-text-muted); }
.card__details summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
  font-weight: 700;
  color: var(--c-primary);
  list-style: none;
}
.card__details summary::-webkit-details-marker { display: none; }
.card__details summary::after { content: "+"; margin-left: 8px; font-size: 1rem; }
.card__details[open] summary::after { content: "–"; }
.card__details ul { display: grid; gap: 6px; margin-top: var(--space-2); }
.card__details li { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: 6px; border-bottom: 1px dashed rgba(224, 224, 224, 0.08); }
.card__details li span:last-child { color: var(--c-text); font-weight: 700; white-space: nowrap; }
.card__details summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.scene .s-pulse-line { fill: none; stroke: rgba(53, 224, 208, 0.55); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(53, 224, 208, 0.6)); }

/* ==========================================================================
   Sectores
   ========================================================================== */
.sectors__grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sectors__grid { grid-template-columns: repeat(3, 1fr); } }
.sector {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: linear-gradient(160deg, rgba(53, 224, 208, 0.05), rgba(255, 255, 255, 0.01) 60%);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.sector:hover { border-color: rgba(53, 224, 208, 0.35); box-shadow: 0 20px 50px -30px rgba(53, 224, 208, 0.45); }
.sector__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: 14px;
  background: rgba(53, 224, 208, 0.08);
  border: 1px solid rgba(53, 224, 208, 0.25);
  color: var(--c-primary);
}
.sector__icon svg { width: 22px; height: 22px; }
.sector h3 { font-size: 1.125rem; color: #fff; }
.sector p { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ==========================================================================
   Paquetes, MB AI CARE y notas de precio
   ========================================================================== */
.pricing__head { margin-inline: auto; text-align: center; }
.pricing__head .section-sub { margin-inline: auto; }
.pricing__head .eyebrow { justify-content: center; }
.pkgs { display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.pkg--featured {
  border-color: rgba(53, 224, 208, 0.5);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(53, 224, 208, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(0, 131, 143, 0.2), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 80px -40px rgba(53, 224, 208, 0.6);
}
@media (min-width: 900px) { .pkg--featured { top: -12px; } }
.pkg__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: var(--glow-sm);
}
.pkg__name { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.2em; color: var(--c-primary); }
.pkg__for { color: var(--c-text-muted); font-size: var(--fs-sm); min-height: 2.8em; }
.pkg__inc { margin-top: var(--space-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-silver); }
.pkg__list { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.pkg__list li, .care__list li { position: relative; padding-left: 24px; font-size: var(--fs-sm); color: var(--c-text); }
.pkg__list li::before, .care__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}
.pkg__cta { margin-top: auto; width: 100%; }

.care {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 208, 0.28);
  background:
    radial-gradient(70% 100% at 100% 50%, rgba(53, 224, 208, 0.1), transparent 60%),
    rgba(10, 12, 14, 0.6);
}
@media (min-width: 960px) { .care { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.care__title { margin-top: var(--space-3); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.care__text { margin-top: var(--space-3); color: var(--c-text-muted); }
.care__inc { margin-top: var(--space-4); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-silver); }
.care__list { margin-top: var(--space-3); display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.care__fine { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--c-text-muted); font-style: italic; }
.care__plans { display: grid; gap: var(--space-3); }
.care__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.03);
}
.care__plan--mid { border-color: rgba(53, 224, 208, 0.45); background: rgba(53, 224, 208, 0.06); }
.care__name { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.18em; color: var(--c-primary); }
.care__cta-row { display: flex; justify-content: flex-end; }
@media (max-width: 479px) {
  .care__plan { flex-direction: column; align-items: flex-start; }
  .care__cta-row .btn { width: 100%; }
}

.pricing__notes { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .pricing__notes { grid-template-columns: 1fr 1fr; } }
.pricing__notes li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(53, 224, 208, 0.25);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--c-text-muted);
}
.pricing__notes svg { flex: none; margin-top: 2px; color: var(--c-primary); }
.pricing__notes strong { color: var(--c-silver); }

/* CTA final: enlace secundario */
.cta__alt { margin-top: var(--space-5); }
.cta__alt a { font-weight: 700; color: var(--c-primary); border-bottom: 1px solid rgba(53, 224, 208, 0.35); padding-bottom: 2px; }
.cta__alt a:hover, .cta__alt a:focus-visible { border-bottom-color: var(--c-primary); }

@media (prefers-reduced-motion: reduce) {
  .agent__orbit { animation: none !important; }
}

/* ==========================================================================
   Mariposa guía hacia la consola IA
   ========================================================================== */
.guide {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.4s;
}
.guide.is-on { visibility: visible; pointer-events: auto; transition: none; }
html:not(.motion-ok) .guide.is-on { opacity: 1; }
.guide__body {
  display: grid;
  place-items: center;
  width: 72px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.18), transparent 70%);
}
.guide__tip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(53, 224, 208, 0.45);
  box-shadow: var(--glow-sm);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.guide:hover .guide__tip,
.guide:focus-visible .guide__tip { opacity: 1 !important; }
.guide:focus-visible { outline: none; }
.guide:focus-visible .guide__body { outline: 2px solid var(--c-primary); outline-offset: 2px; }
html:not(.motion-ok) .guide__tip { opacity: 1; }
@media (max-width: 767px) {
  .guide__body { width: 58px; height: 54px; }

}

/* La consola responde al llamado de la mariposa */
.jarvis.is-called .console::after { animation: console-scan 1.4s var(--ease-out) 0.1s 1; }
.jarvis.is-called .console__corner { animation: corner-call 0.9s var(--ease-out) 2; }
@keyframes corner-call { 50% { transform: scale(1.35); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  .jarvis.is-called .console::after, .jarvis.is-called .console__corner { animation: none !important; }
}

/* ==========================================================================
   Mariposa Morpho (referencia: Morpho azul) — SVG compartido
   ========================================================================== */
.morpho { display: block; width: 100%; height: auto; overflow: visible; }
.morpho .mo-fore,
.morpho .mo-hind { stroke: #050b24; stroke-width: 3.2; stroke-linejoin: round; }
.morpho .mo-sheen { fill: #E8FDFF; opacity: 0.12; }
.morpho .mo-dots { fill: rgba(255, 255, 255, 0.9); }
.morpho .mo-body { fill: #0a1030; stroke: #3a6bff; stroke-width: 0.8; }
.morpho .mo-antenna { fill: none; stroke: #9fb8ff; stroke-width: 1.3; stroke-linecap: round; }
.morpho .mo-tip { fill: #35e0d0; }
.guide__svg,
.morpho--perch,
.morpho--fly {
  filter: drop-shadow(0 0 8px rgba(47, 155, 255, 0.85)) drop-shadow(0 0 22px rgba(53, 224, 208, 0.35));
}

/* Entrada: la Morpho vuela hacia la cámara con su letrero */
.morpho-fly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-cursor) - 1);
  width: 90px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.morpho-fly__banner {
  position: absolute;
  top: 38%;
  right: 78%;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(8, 16, 48, 0.92);
  border: 1px solid rgba(47, 155, 255, 0.8);
  box-shadow: 0 0 12px rgba(47, 155, 255, 0.6);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform-origin: 100% 50%;
}
.morpho-fly__banner.is-below {
  top: 102%;
  right: auto;
  left: 50%;
  max-width: 96px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  transform-origin: 50% 0;
}
.morpho-fly__banner.is-below::after { display: none; }
.morpho-fly__banner::after {
  /* hilo que une el letrero con la mariposa */
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(159, 184, 255, 0.9);
}

/* Posada en la esquina de la consola con el letrero */
.morpho-perch {
  position: absolute;
  top: -44px;
  right: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.morpho-perch.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.morpho-perch.is-gone { pointer-events: none; }
.morpho-perch__bug { width: 64px; flex: none; order: 2; }
.morpho-sign { order: 1; display: flex; align-items: center; padding: 0; cursor: pointer; }
.morpho-sign__board {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 24, 80, 0.95), rgba(8, 16, 48, 0.95));
  border: 1px solid rgba(47, 155, 255, 0.85);
  box-shadow: 0 0 16px rgba(47, 155, 255, 0.5), inset 0 0 12px rgba(53, 224, 208, 0.12);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.morpho-sign__string { order: 2; width: 12px; height: 1px; background: rgba(159, 184, 255, 0.9); }
.morpho-sign:hover .morpho-sign__board,
.morpho-sign:focus-visible .morpho-sign__board { box-shadow: 0 0 26px rgba(47, 155, 255, 0.8), inset 0 0 12px rgba(53, 224, 208, 0.2); }
.morpho-sign:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: 10px; }
@media (max-width: 479px) {
  .morpho-perch { right: 2px; top: -40px; }
  .morpho-perch__bug { width: 52px; }
  .morpho-sign__board { white-space: normal; max-width: 190px; font-size: 0.75rem; }
}

/* Selector de idioma ES / EN — siempre visible */
.header__inner { gap: var(--space-3); }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.3);
  background: rgba(18, 18, 18, 0.6);
}
@media (min-width: 900px) { .lang { order: 3; margin-left: 0; } .nav { order: 2; margin-left: auto; } }
.lang__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.lang__opt:hover, .lang__opt:focus-visible { color: #fff; background: rgba(53, 224, 208, 0.08); }
.lang__opt.is-active { color: var(--c-on-primary); background: var(--c-primary); box-shadow: var(--glow-sm); }
.flag { width: 20px; height: auto; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
@media (max-width: 380px) { .lang__opt { padding: 0 7px; } .lang__opt span { display: none; } .flag { width: 22px; } }

/* Letrero bilingüe del hero */
.bilingual {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.35);
  background: rgba(53, 224, 208, 0.06);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}
.bilingual__flags { display: inline-flex; gap: 4px; }
.bilingual .flag { width: 24px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section {
  position: relative;
  overflow-x: clip;   /* chispas y estelas nunca generan scroll lateral */
  z-index: var(--z-content);
  padding-block: var(--space-9);
}

/* ==========================================================================
   Estados iniciales para animación (solo si hay JS y movimiento permitido)
   ========================================================================== */
.js.motion-ok [data-hero] { opacity: 0; }
.js.motion-ok [data-reveal],
.js.motion-ok [data-card],
.js.motion-ok [data-reason],
.js.motion-ok [data-step] { opacity: 0; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient, .cursor-halo, .fx-cursor, .cursor-dot, .cursor-ring { display: none !important; }
}
