/* ==========================================================================
   PIRAMINET 2026 · v2 — Capa de motion graphics
   Se carga DESPUÉS de styles.css: reutiliza sus tokens y componentes
   (header, botones, glass, servicios, chat…) y añade:
   - Preloader con revelado de marca
   - Hero slider a pantalla completa (wipe + Ken Burns + texto partido)
   - Red de partículas en canvas, marquee, contadores, texto cinético,
     tilt 3D con spotlight, timeline con progreso, FAQ acordeón,
     borde cónico animado en el CTA y cursor personalizado
   ========================================================================== */

/* Propiedades animables (Chrome, Edge, Safari 16.4+, Firefox 128+) */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #00d4ff;
}

@property --accent-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #a855f7;
}

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  --hero-bg: #04060d;
}

/* ---------- Preloader ---------- */
.preloader {
  display: none;
}

.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 300px at 50% 55%, rgba(var(--rgb-cyan), 0.12), transparent 70%),
    var(--hero-bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out), visibility 0s linear 1s;
}

.is-loaded .preloader {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.preloader__inner {
  text-align: center;
}

.preloader__logo {
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  display: flex;
  justify-content: center;
}

.preloader__mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.preloader__mask>span {
  display: inline-block;
  transform: translateY(110%);
  animation: plUp 0.9s var(--ease-out) forwards 0.1s;
}

.preloader__mask--net>span {
  color: var(--p-amber);
  animation-delay: 0.25s;
}

.preloader__bar {
  width: min(260px, 60vw);
  height: 2px;
  margin: 22px auto 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple), var(--p-magenta));
  transform-origin: left;
  transform: scaleX(0);
  animation: plBar 1.1s var(--ease-in-out) forwards 0.2s;
}

.preloader__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: plFade 0.8s ease forwards 0.5s;
}

@keyframes plUp {
  to {
    transform: translateY(0);
  }
}

@keyframes plBar {
  to {
    transform: scaleX(1);
  }
}

@keyframes plFade {
  to {
    opacity: 1;
  }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple), var(--p-magenta));
  transform-origin: left;
  transform: scaleX(var(--sp, 0));
  box-shadow: 0 0 12px rgba(var(--rgb-cyan), 0.6);
}

/* ---------- Cursor ---------- */
.cursor {
  display: none;
}

@media (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    pointer-events: none;
  }

  .cursor__dot,
  .cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
  }

  .cursor__dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--p-cyan);
    box-shadow: 0 0 12px var(--p-cyan);
  }

  .cursor__ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(var(--rgb-cyan), 0.5);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out),
      background 0.3s, border-color 0.3s, opacity 0.3s;
  }

  .cursor.is-hover .cursor__ring {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(var(--rgb-cyan), 0.08);
    border-color: rgba(var(--rgb-purple), 0.7);
  }

  .cursor.is-hidden {
    opacity: 0;
  }
}

/* ---------- Header sobre el hero ---------- */
.site-header {
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition),
    transform 0.5s var(--ease-out);
}

.js .site-header {
  transform: translateY(-100%);
}

.js.is-loaded .site-header,
.is-loaded .site-header {
  transform: translateY(0);
  transition-delay: 0.6s;
}

.site-header.is-hidden {
  transform: translateY(-100%) !important;
  transition-delay: 0s !important;
}

@media (min-width: 881px) {
  .nav__link {
    position: relative;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg, var(--p-cyan), var(--p-purple));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
  }

  .nav__link:hover::after,
  .nav__link.is-current::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav__link.is-current {
    color: var(--p-cyan);
  }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hs {
  --accent: #00d4ff;
  --accent-2: #a855f7;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  max-height: 1200px;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
  transition: --accent 1.2s ease, --accent-2 1.2s ease;
  touch-action: pan-y;
}

.hs__slides {
  position: absolute;
  inset: 0;
}

.hs__slide {
  --sa: var(--p-cyan);
  --sb: var(--p-purple);
  position: absolute;
  inset: 0;
  visibility: hidden;
  z-index: 1;
}

.hs__slide.is-active {
  visibility: visible;
  z-index: 3;
}

.hs__slide.is-leaving {
  visibility: visible;
  z-index: 2;
}

/* Media: wipe + Ken Burns + parallax con ratón */
.hs__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hs__slide.is-entering .hs__media {
  animation: hsWipeIn 1.25s var(--ease-in-out) both;
}

.hs.is-rev .hs__slide.is-entering .hs__media {
  animation-name: hsWipeInRev;
}

@keyframes hsWipeIn {
  from {
    clip-path: inset(0 0 0 100%);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hsWipeInRev {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.hs__media-inner {
  position: absolute;
  inset: -3%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

.hs__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.18);
  transform-origin: 70% 50%;
}

.hs__slide.is-active .hs__media img {
  animation: hsKen 12s var(--ease-out) forwards;
}

.hs__slide.is-leaving .hs__media img {
  transform: scale(1.04);
  filter: brightness(0.45) saturate(0.6);
  transition: filter 1.2s ease;
}

@keyframes hsKen {
  from {
    transform: scale(1.18);
  }

  to {
    transform: scale(1.03);
  }
}

/* Viñetas y degradados para legibilidad */
.hs__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 13, 0.96) 0%, rgba(4, 6, 13, 0.82) 30%, rgba(4, 6, 13, 0.25) 62%, rgba(4, 6, 13, 0.35) 100%),
    linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, transparent 22%, transparent 65%, var(--hero-bg) 100%);
}

.hs__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 600px at 78% 45%, color-mix(in srgb, var(--sa) 16%, transparent), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.4s ease 0.3s;
}

.hs__slide.is-active::after {
  opacity: 1;
}

/* Capas decorativas */
.hs__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
}

.hs__grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 10%, transparent 75%);
  animation: hsGrid 30s linear infinite;
}

@keyframes hsGrid {
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

.hs__noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Contenido */
.hs__container {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 150px;
}

.hs__content {
  max-width: 820px;
}

.hs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.hs__eyebrow-num {
  color: var(--sa);
  font-weight: 600;
}

.hs__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sa);
  box-shadow: 0 0 0 0 var(--sa);
  animation: hsPulse 2s infinite;
}

@keyframes hsPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sa) 70%, transparent);
  }

  70% {
    box-shadow: 0 0 0 10px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hs__title {
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}

.hs__title .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

/* Palabras partidas por JS.
   El padding (compensado con margen negativo) da aire a la máscara para que
   no recorte tildes, ¿, ñ ni descendentes (g, p, j). */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.14em 0.06em 0.18em;
  margin: -0.14em -0.06em -0.18em;
}

.w__i {
  display: inline-block;
  transform: translateY(108%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 0.35s);
}

.hs__title .gradient-text .w__i {
  background: linear-gradient(120deg, var(--sa) 0%, var(--sb) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hs__lead {
  max-width: 600px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: rgba(230, 235, 245, 0.78);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

.hs__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

.hs__cta .btn--primary {
  background: linear-gradient(135deg, var(--sa), var(--sb));
  box-shadow: 0 10px 34px color-mix(in srgb, var(--sa) 35%, transparent);
}

/* Estado "dentro" (slide activa y página cargada) */
.is-loaded .hs__slide.is-active .hs__eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.is-loaded .hs__slide.is-active .w__i {
  transform: none;
}

.is-loaded .hs__slide.is-active .hs__lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.85s;
}

.is-loaded .hs__slide.is-active .hs__cta {
  opacity: 1;
  transform: none;
  transition-delay: 1s;
}

/* Salida */
.hs__slide.is-leaving .hs__content {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease-in-out);
}

.hs__slide.is-leaving .w__i,
.hs__slide.is-leaving .hs__eyebrow,
.hs__slide.is-leaving .hs__lead,
.hs__slide.is-leaving .hs__cta {
  transition: none;
}

/* ---------- Chips flotantes ---------- */
.hs__chip {
  position: absolute;
  right: 24px;
  bottom: 180px;
  width: 340px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 21, 37, 0.72), rgba(10, 15, 29, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--sa) 12%, transparent) inset;
  opacity: 0;
  transform: translate3d(calc(var(--cx, 0px)), calc(40px + var(--cy, 0px)), 0) scale(0.94);
  transition: opacity 0.9s ease, transform 1.1s var(--ease-out);
  pointer-events: none;
}

.is-loaded .hs__slide.is-active .hs__chip {
  opacity: 1;
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(1);
  transition-delay: 1.1s, 0s;
}

.hs__slide.is-leaving .hs__chip {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hs__chip::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--sa), transparent 40%, transparent 60%, var(--sb));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.chip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.chip-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.chip-head em {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.chip-head em b {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  color: var(--sa);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-mint);
  box-shadow: 0 0 8px var(--p-mint);
  animation: blink 1.6s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.chip-avatar,
.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--sa) 14%, transparent);
  color: var(--sa);
  border: 1px solid color-mix(in srgb, var(--sa) 30%, transparent);
  overflow: hidden;
}

.chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-icon svg {
  width: 20px;
  height: 20px;
}

/* Chat */
.chip-bubble {
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(10px);
}

.chip-bubble--user {
  margin-left: 40px;
  background: linear-gradient(135deg, var(--sa), var(--sb));
  color: #050a16;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chip-bubble--bot {
  margin-right: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.is-loaded .hs__slide.is-active .chip-bubble {
  animation: chipIn 0.6s var(--ease-out) forwards;
}

.is-loaded .hs__slide.is-active .chip-bubble--user {
  animation-delay: 1.6s;
}

.is-loaded .hs__slide.is-active .chip-bubble--bot {
  animation-delay: 2.6s;
}

@keyframes chipIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.chip-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.chip-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s infinite;
}

.chip-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chip-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Onda de voz */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
  margin: 4px 0 14px;
}

.wave span {
  flex: 1;
  height: 20%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--sa), var(--sb));
  animation: wave 1.1s ease-in-out infinite;
}

.wave span:nth-child(3n) {
  animation-duration: 0.9s;
}

.wave span:nth-child(4n) {
  animation-duration: 1.3s;
}

.wave span:nth-child(5n) {
  animation-duration: 0.75s;
}

.wave span:nth-child(2n) {
  animation-delay: -0.4s;
}

.wave span:nth-child(7n) {
  animation-delay: -0.7s;
}

@keyframes wave {

  0%,
  100% {
    height: 18%;
  }

  50% {
    height: 100%;
  }
}

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

.chip-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sa) 35%, transparent);
  color: var(--sa);
  background: color-mix(in srgb, var(--sa) 8%, transparent);
}

/* Barras CRM */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 0 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--sa), color-mix(in srgb, var(--sb) 40%, transparent));
  transform-origin: bottom;
  transform: scaleY(0);
}

.is-loaded .hs__slide.is-active .bars span {
  animation: barUp 0.9s var(--ease-out) forwards;
}

.bars span:nth-child(1) { animation-delay: 1.5s !important; }
.bars span:nth-child(2) { animation-delay: 1.58s !important; }
.bars span:nth-child(3) { animation-delay: 1.66s !important; }
.bars span:nth-child(4) { animation-delay: 1.74s !important; }
.bars span:nth-child(5) { animation-delay: 1.82s !important; }
.bars span:nth-child(6) { animation-delay: 1.9s !important; }
.bars span:nth-child(7) { animation-delay: 1.98s !important; }
.bars span:nth-child(8) { animation-delay: 2.06s !important; }

@keyframes barUp {
  to {
    transform: scaleY(1);
  }
}

.chip-rows div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text);
  padding: 7px 0;
}

.chip-rows i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.chip-rows b {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Gauges web */
.gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gauge {
  position: relative;
  text-align: center;
}

.gauge svg {
  width: 100%;
  max-width: 84px;
  transform: rotate(-90deg);
}

.gauge circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.gauge .gauge__val {
  stroke: var(--sa);
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--sa));
}

.is-loaded .hs__slide.is-active .gauge__val {
  animation: gauge 1.6s var(--ease-out) forwards 1.5s;
}

@keyframes gauge {
  to {
    stroke-dashoffset: calc(100 - var(--v));
  }
}

.gauge span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  max-height: calc(100% - 22px);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.gauge em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Controles del slider ---------- */
.hs__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding-bottom: 34px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 1.2s, transform 0.8s var(--ease-out) 1.2s;
}

.is-loaded .hs__ui {
  opacity: 1;
  transform: none;
}

.hs__ui-inner {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hs__tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.hs__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 0 0;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: "Poppins", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s ease;
}

.hs__tab:hover,
.hs__tab.is-active {
  color: #fff;
}

.hs__tab-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: inherit;
  opacity: 0.7;
}

.hs__tab.is-active .hs__tab-num {
  color: var(--accent);
  opacity: 1;
}

.hs__tab-label {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs__tab-bar {
  grid-column: 1 / -1;
  position: relative;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.hs__tab-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.hs__tab.is-done .hs__tab-bar i {
  transform: scaleX(1);
  opacity: 0.35;
}

.hs__tab:focus-visible,
.hs__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.hs__arrows {
  display: flex;
  gap: 10px;
}

.hs__arrow {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}

.hs__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}

.hs__arrow:hover {
  color: #050a16;
  border-color: transparent;
}

.hs__arrow:hover::before {
  transform: scale(1);
}

.hs__arrow svg {
  position: relative;
  width: 20px;
  height: 20px;
}

/* Contador grande vertical */
.hs__counter {
  position: absolute;
  right: 34px;
  top: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}

.is-loaded .hs__counter {
  opacity: 1;
}

.hs__counter-cur {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  display: inline-block;
}

.hs__counter-cur.is-flip {
  animation: flip 0.7s var(--ease-out);
}

@keyframes flip {
  from {
    transform: translateY(60%);
    opacity: 0;
    filter: blur(4px);
  }

  to {
    transform: none;
    opacity: 1;
    filter: none;
  }
}

.hs__counter-sep {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* Indicador de scroll */
.hs__scroll {
  position: absolute;
  left: 34px;
  bottom: 40px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.8s ease 1.6s, color 0.3s;
}

.is-loaded .hs__scroll {
  opacity: 1;
}

.hs__scroll:hover {
  color: #fff;
}

.hs__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hs__scroll-mouse i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: mouse 1.8s var(--ease-in-out) infinite;
}

@keyframes mouse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(12px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.hs__scroll-txt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Responsive hero */
@media (max-width: 1440px) {

  .hs__scroll,
  .hs__counter {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hs__chip {
    display: none;
  }
}

@media (max-width: 880px) {
  .hs {
    min-height: 620px;
  }

  .hs__media img {
    object-position: 78% center;
  }

  .hs__media::after {
    background:
      linear-gradient(180deg, rgba(4, 6, 13, 0.6) 0%, rgba(4, 6, 13, 0.7) 40%, rgba(4, 6, 13, 0.92) 75%, var(--hero-bg) 100%);
  }

  .hs__container {
    align-items: flex-end;
    padding-bottom: 130px;
  }

  .hs__eyebrow {
    margin-bottom: 18px;
    font-size: 0.66rem;
  }

  .hs__lead {
    margin-bottom: 26px;
  }

  .hs__ui {
    padding-bottom: 26px;
  }

  .hs__ui-inner {
    gap: 18px;
    align-items: center;
  }

  .hs__tabs {
    gap: 10px;
  }

  .hs__tab-label {
    display: none;
  }

  .hs__tab {
    grid-template-columns: 1fr;
  }

  .hs__arrow {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .hs__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hs__cta .btn--lg {
    padding: 14px 22px;
    font-size: 0.95rem;
  }

  .hs__lead {
    font-size: 0.95rem;
  }
}

@media (max-height: 760px) and (min-width: 881px) {
  .hs__title {
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  }

  .hs__container {
    padding-bottom: 120px;
  }

  .hs__chip {
    bottom: 140px;
  }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative;
  padding: 34px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--hero-bg), rgba(10, 15, 29, 0.6));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
}

.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 36px;
  padding-right: 36px;
  animation: marquee 38s linear infinite;
}

.marquee__row:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.marquee__track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.marquee__track span:hover {
  color: var(--p-cyan);
  -webkit-text-stroke-color: transparent;
}

.marquee__track b {
  font-size: 1.6rem;
  color: var(--p-amber);
  font-weight: 400;
}

.marquee__row--alt {
  margin-top: 14px;
}

.marquee__row--alt .marquee__track {
  animation-direction: reverse;
  animation-duration: 46s;
  gap: 28px;
  padding-right: 28px;
}

.marquee__row--alt .marquee__track span {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  -webkit-text-stroke: 0;
}

.marquee__row--alt .marquee__track b {
  font-size: 1rem;
  color: var(--p-purple);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   CIFRAS
   ========================================================================== */
.stats--xl {
  margin-top: 0;
  gap: 20px;
}

.stats--xl .stat {
  position: relative;
  padding: 40px 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}

.stats--xl .stat::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(var(--rgb-cyan), 0.22), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stats--xl .stat:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--rgb-cyan), 0.35);
}

.stats--xl .stat:hover::before {
  opacity: 1;
}

.stats--xl .stat__num {
  position: relative;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats--xl .stat__label {
  position: relative;
}

/* ==========================================================================
   REVEAL mejorado (con escalonado)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1.1s var(--ease-out), filter 1s ease;
  transition-delay: calc(var(--d, 0) * 110ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Las tarjetas con tilt gestionan su transform al pasar el ratón */
.js .reveal.is-visible[data-tilt] {
  transition: opacity 1s ease, filter 1s ease, transform 0.25s ease-out, border-color var(--transition);
  transition-delay: 0s;
}

/* Cabeceras de sección: línea animada bajo el eyebrow */
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* ==========================================================================
   SERVICIOS: tilt 3D + spotlight
   ========================================================================== */
.services-grid {
  perspective: 1400px;
}

.service[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.service[data-tilt]:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.service__num {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: -webkit-text-stroke-color 0.4s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}

.service:hover .service__num {
  -webkit-text-stroke-color: var(--accent);
  transform: translateY(-4px) scale(1.04);
}

.service__icon {
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, background 0.5s ease;
}

.service:hover .service__icon {
  transform: translateZ(30px) rotate(-6deg) scale(1.08);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
}

.service__list li {
  transition: color 0.3s ease, padding-left 0.3s var(--ease-out);
}

.service__list li:hover {
  color: var(--text);
  padding-left: 6px;
}

/* ==========================================================================
   MANIFIESTO (palabras que se iluminan con el scroll)
   ========================================================================== */
.manifesto {
  padding: 120px 0;
  position: relative;
}

.manifesto::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--rgb-purple), 0.14), transparent);
  pointer-events: none;
  z-index: -1;
}

.manifesto__text {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
  color: #fff;
}

.js .manifesto__text .sw {
  opacity: 0.13;
  transition: opacity 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.js .manifesto__text .sw.is-on {
  opacity: 1;
}

.js .manifesto__text .sw.is-accent.is-on {
  color: var(--p-cyan);
  text-shadow: 0 0 30px rgba(var(--rgb-cyan), 0.45);
}

/* ==========================================================================
   CASOS DE USO + OPENCLAW
   ========================================================================== */
.usecase {
  position: relative;
  overflow: hidden;
}

.usecase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.usecase:hover::after {
  transform: scaleX(1);
}

.usecase__icon {
  transition: transform 0.5s var(--ease-out), background 0.4s ease;
}

.usecase:hover .usecase__icon {
  transform: scale(1.12) rotate(-8deg);
  background: rgba(var(--rgb-cyan), 0.2);
}

.openclaw__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(var(--rgb-mint), 0.14), transparent);
  border-bottom: 1px solid rgba(var(--rgb-mint), 0.4);
  animation: scan 4.5s var(--ease-in-out) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(340%);
  }
}

/* ==========================================================================
   METODOLOGÍA: línea de progreso ligada al scroll
   ========================================================================== */
.process::before {
  opacity: 0.18;
}

.process::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 2px;
  height: var(--prog, 0%);
  background: linear-gradient(180deg, var(--p-cyan), var(--p-purple), var(--p-magenta), var(--p-mint), var(--p-amber));
  background-size: 100% var(--prog-full, 100%);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(var(--rgb-cyan), 0.6);
  z-index: 1;
}

.step__num {
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
  transform: scale(0.6);
}

.step.is-visible .step__num {
  transform: scale(1);
}

.step__body {
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.5s var(--ease-out);
}

.step:hover .step__body {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateX(6px);
}

@media (max-width: 600px) {
  .process::after {
    left: 24px;
  }
}

/* ==========================================================================
   FAQ acordeón
   ========================================================================== */
.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
}

.faq__item[open] {
  border-color: rgba(var(--rgb-purple), 0.4);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(var(--rgb-purple), 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
}

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

.faq__item summary h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq__item summary:hover h3 {
  color: var(--p-cyan);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform 0.5s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--p-cyan), var(--p-purple));
  border-color: transparent;
  color: #050a16;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__body {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq__body p {
  margin: 0;
}

.faq__item[open] .faq__body {
  animation: faqIn 0.6s var(--ease-out);
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   CTA con borde cónico animado
   ========================================================================== */
.cta-box--motion {
  isolation: isolate;
}

.cta-box--motion::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0deg, var(--p-cyan) 60deg, var(--p-purple) 120deg, transparent 180deg, transparent 240deg, var(--p-magenta) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinBorder 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes spinBorder {
  to {
    --ang: 360deg;
  }
}

.cta-box h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form input,
.form select,
.form textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  box-shadow: 0 0 0 4px rgba(var(--rgb-cyan), 0.12);
}

/* ==========================================================================
   BOTONES: brillo que recorre + magnetismo (JS)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease-out);
  z-index: -1;
}

.btn--primary:hover::after {
  left: 130%;
}

.btn svg {
  transition: transform 0.4s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

[data-magnetic] {
  will-change: transform;
}

/* ==========================================================================
   FOOTER con marca gigante
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.footer-mega {
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 17rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  padding: 0.12em 0 0;
  margin: 8px 0 -0.24em;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple), var(--p-magenta), var(--p-amber));
  background-size: 200% 100%;
  background-position: var(--fx, 50%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.14;
  user-select: none;
  transition: opacity 0.8s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
}

.footer-mega:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Accesibilidad: reducir movimiento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  .hs__canvas,
  .hs__noise,
  .cursor,
  .openclaw__scan {
    display: none !important;
  }

  .marquee__track {
    animation: none !important;
  }

  .js .reveal {
    filter: none;
    transform: none;
  }

  .w__i {
    transform: none !important;
  }
}

/* ==========================================================================
   TEMA ALTERNATIVO: PIZARRA NOCHE & TOQUES ÁMBAR/NARANJA (motion overrides)
   ========================================================================== */
html[data-theme="amber"] .hs {
  --accent: #ffc107;
  --accent-2: #ff7a18;
}


/* ==========================================================================
   ALTERNANCIA DE FONDOS: secciones claras
   (servicios, casos y FAQ; el resto se queda en oscuro)
   ========================================================================== */
.site-header.is-scrolled {
  background: #060912;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section--light {
  --text: #0d1430;
  --text-muted: #4b5570;
  --text-dim: #6b7591;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(13, 20, 48, 0.1);
  --border-strong: rgba(13, 20, 48, 0.2);
  --bg-1: #ffffff;
  background: #f3f5fb;
  color: var(--text);
}

.section--light .eyebrow { color: #0079c2; }
.section--light .eyebrow::before { background: #0079c2; }
.section--light .eyebrow--mint { color: #00915f; }
.section--light .eyebrow--mint::before { background: #00915f; }
.section--light .eyebrow--purple { color: #7c3aed; }
.section--light .eyebrow--purple::before { background: #7c3aed; }

/* Tarjetas glass -> tarjetas blancas */
.section--light .glass,
.section--light .service[data-tilt],
.section--light .usecase,
.section--light .faq__item {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(13, 20, 48, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section--light .glass::before {
  background: linear-gradient(135deg, rgba(13, 20, 48, 0.08), transparent 40%, transparent 60%, rgba(var(--rgb-cyan), 0.25));
}

.section--light .service[data-tilt] {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    #ffffff;
}

.section--light .service[data-tilt]:hover,
.section--light .usecase:hover {
  box-shadow: 0 24px 50px rgba(13, 20, 48, 0.12);
}

.section--light .service__icon,
.section--light .usecase__icon {
  background: color-mix(in srgb, var(--accent, var(--p-cyan)) 10%, #ffffff);
}

.section--light .service__cta,
.section--light .service__list li::before {
  filter: saturate(1.3) brightness(0.8);
}

.section--light .faq__item[open] {
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(var(--rgb-purple), 0.07), transparent 70%),
    #ffffff;
  border-color: rgba(var(--rgb-purple), 0.45);
}

.section--light .faq__item summary:hover h3 { color: #0079c2; }
.section--light .faq__item[open] .faq__icon { color: #ffffff; }

/* El panel OpenClaw sigue oscuro para dar contraste */
.section--light .openclaw {
  --text: #e6ebf5;
  --text-muted: #98a2b8;
  --text-dim: #6b7591;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  background: #0a0f1d;
  color: var(--text);
  box-shadow: 0 30px 70px rgba(13, 20, 48, 0.25);
}

.section--light .openclaw .eyebrow--mint { color: var(--p-mint); }
.section--light .openclaw .eyebrow--mint::before { background: var(--p-mint); }

/* ==========================================================================
   METODOLOGÍA: flujo animado del proyecto (wf-*)
   ========================================================================== */
.wf {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 34px 30px 28px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 12% 0, rgba(var(--rgb-cyan), 0.14), transparent 50%),
    radial-gradient(circle at 92% 100%, rgba(var(--rgb-purple), 0.16), transparent 50%),
    var(--bg-1);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.wf__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wf__head b {
  color: var(--text);
  font-weight: 600;
}

.wf__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-mint);
  box-shadow: 0 0 10px var(--p-mint);
  animation: wfPulse 1.4s infinite;
}

.wf__week {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--p-cyan);
  letter-spacing: 0.06em;
}

@keyframes wfPulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.wf__row {
  display: flex;
  align-items: flex-start;
}

.wf__node {
  --c: var(--p-cyan);
  flex: none;
  width: 150px;
  text-align: center;
  position: relative;
}

.wf__node:nth-child(3) { --c: var(--p-purple); }
.wf__node:nth-child(5) { --c: var(--p-magenta); }
.wf__node:nth-child(7) { --c: var(--p-mint); }
.wf__node:nth-child(9) { --c: var(--p-amber); }

.wf__ic {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s, border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.wf__ic svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf__ic::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 30px;
  border: 2px solid var(--c);
  opacity: 0;
}

.wf__ok {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  color: #050a16;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.wf__ok svg { width: 13px; height: 13px; stroke-width: 3; }

.wf__num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.wf__t {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  transition: color 0.4s;
}

.wf__chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
  white-space: nowrap;
}

.wf__node.is-on .wf__ic {
  color: var(--c);
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--bg-3));
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 40%, transparent);
}

.wf__node.is-on .wf__ic::after { animation: wfRing 1.2s ease-out infinite; }
.wf__node.is-on .wf__t { color: var(--text); }
.wf__node.is-on .wf__chip,
.wf__node.is-done .wf__chip { opacity: 1; transform: none; }

.wf__node.is-done .wf__ic {
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}

.wf__node.is-done .wf__ok { transform: scale(1); }
.wf__node.is-done .wf__t { color: var(--text); }

/* Sprints: anillo giratorio en desarrollo */
.wf__spin {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px dashed var(--c);
  opacity: 0;
  transition: opacity 0.3s;
}

.wf__node.is-sprint .wf__spin {
  opacity: 0.8;
  animation: wfSpin 1.6s linear infinite;
}

.wf__node.is-sprint .wf__ic::after { animation: none; }

@keyframes wfRing {
  0% { opacity: 0.9; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.3); }
}

@keyframes wfSpin { to { transform: rotate(360deg); } }

.wf__arrow {
  flex: 1;
  min-width: 24px;
  height: 76px;
  position: relative;
}

.wf__arrow::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 14px;
  top: 37px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
}

.wf__arrow::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 32px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: border-color 0.3s;
}

.wf__fill {
  position: absolute;
  left: 6px;
  top: 36px;
  height: 4px;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple));
  box-shadow: 0 0 12px rgba(var(--rgb-cyan), 0.7);
}

.wf__arrow.is-go .wf__fill { width: calc(100% - 20px); transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.wf__arrow.is-fin .wf__fill { width: calc(100% - 20px); }
.wf__arrow.is-go::after,
.wf__arrow.is-fin::after { border-color: var(--p-cyan); }

.wf__pk {
  position: absolute;
  top: 24px;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--p-cyan), var(--p-purple));
  box-shadow: 0 6px 18px rgba(var(--rgb-purple), 0.55);
  opacity: 0;
}

.wf__pk svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf__arrow.is-go .wf__pk { animation: wfPk 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes wfPk {
  0% { left: 0; opacity: 0; transform: scale(0.4) rotate(-20deg); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; }
  100% { left: calc(100% - 30px); opacity: 0; transform: scale(0.6) rotate(10deg); }
}

/* Bucle de mejora continua */
.wf__loop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.wf__loop::before,
.wf__loop::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 5px, transparent 5px 10px);
}

.wf__loop span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.wf__loop svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf__loop.is-on span { color: var(--p-amber); border-color: var(--p-amber); box-shadow: 0 0 22px rgba(255, 193, 7, 0.25); }
.wf__loop.is-on svg { animation: wfSpin 1.6s linear infinite; }

.wf__cap {
  margin-top: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
  min-height: 1.6em;
}

.wf__prog {
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wf__prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--p-cyan), var(--p-purple), var(--p-magenta), var(--p-mint), var(--p-amber));
}

@media (max-width: 960px) {
  .wf { padding: 28px 18px 22px; }
  .wf__row { flex-direction: column; align-items: center; }
  .wf__node { width: auto; }
  .wf__arrow { flex: none; width: 76px; height: 56px; min-width: 0; }
  .wf__arrow::before { left: 37px; right: auto; top: 4px; bottom: 14px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px); }
  .wf__arrow::after { right: auto; left: 32px; top: auto; bottom: 6px; transform: rotate(135deg); }
  .wf__fill { left: 36px; top: 4px; width: 4px !important; height: 0; }
  .wf__arrow.is-go .wf__fill { height: calc(100% - 20px); transition: height 0.9s; }
  .wf__arrow.is-fin .wf__fill { height: calc(100% - 20px); }
  .wf__pk { left: 24px; top: 0; }
  .wf__arrow.is-go .wf__pk { animation-name: wfPkV; }
  .wf__head { flex-wrap: wrap; }
}

@keyframes wfPkV {
  0% { top: 0; opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; }
  100% { top: calc(100% - 30px); opacity: 0; transform: scale(0.6); }
}

/* Badge 'Nuevo' con pulso para botón de agente de correo */
.btn-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(var(--rgb-cyan), 0.12);
  color: var(--p-cyan);
  border: 1px solid rgba(var(--rgb-cyan), 0.35);
  margin-right: 4px;
}

.section--light .btn-badge-pulse {
  background: rgba(0, 121, 194, 0.1);
  color: #0079c2;
  border-color: rgba(0, 121, 194, 0.3);
}

.btn-badge-pulse__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-mint);
  box-shadow: 0 0 8px var(--p-mint);
  animation: pulse 1.4s ease-in-out infinite;
  display: inline-block;
}

/* ==========================================================================
   CTA 'Agente de IA para tu correo' (tarjeta-botón con borde animado)
   ========================================================================== */
@property --ac-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.agent-cta {
  --ac-a: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  border-radius: 20px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background:
    radial-gradient(220px 90px at 0% 0%, rgba(0, 212, 255, 0.22), transparent 70%),
    radial-gradient(220px 90px at 100% 100%, rgba(168, 85, 247, 0.26), transparent 70%),
    linear-gradient(160deg, #101a36, #080d1b);
  box-shadow: 0 16px 38px -10px rgba(13, 20, 48, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s;
}
.agent-cta::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 21.5px;
  background: conic-gradient(from var(--ac-a), #00d4ff, #a855f7, #ec4899, #ffc107, #00d4ff);
}
.agent-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background:
    radial-gradient(220px 90px at 0% 0%, rgba(0, 212, 255, 0.22), transparent 70%),
    radial-gradient(220px 90px at 100% 100%, rgba(168, 85, 247, 0.26), transparent 70%),
    linear-gradient(160deg, #101a36, #080d1b);
}
.agent-cta:hover { box-shadow: 0 22px 46px -10px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }

.agent-cta__icon {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.agent-cta__icon > svg { width: 26px; height: 26px; }
.agent-cta__cal {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffc107, #ff7a18);
  color: #1a1200;
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.5);
}
.agent-cta__cal svg { width: 14px; height: 14px; }

.agent-cta__txt { display: grid; gap: 1px; min-width: 0; }
.agent-cta__txt strong { font-size: 1.02rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.agent-cta__txt small { font-size: 0.78rem; color: #98a2b8; line-height: 1.35; }
.agent-cta__new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #10ffa1;
  background: rgba(16, 255, 161, 0.1);
  border: 1px solid rgba(16, 255, 161, 0.35);
}
.agent-cta__top { display: block; margin-bottom: 3px; }
.agent-cta__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10ffa1;
  box-shadow: 0 0 8px #10ffa1;
}
.agent-cta__go {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 4px;
  background: linear-gradient(135deg, #00d4ff, #a855f7 60%, #ec4899);
  color: #fff;
  transition: transform 0.3s;
}

@media (max-width: 520px) {
  .agent-cta { width: 100%; gap: 12px; }
  .agent-cta__txt strong { font-size: 0.95rem; }
  .agent-cta__go { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-cta::before, .agent-cta__cal, .agent-cta__dot { animation: none; }
}

/* Forzar botones uno debajo del otro y sin animación en el botón OpenClaw */
.casos-cta {
  flex-direction: column !important;
  align-items: center !important;
}

.casos-cta .btn {
  transform: none !important;
  transition: box-shadow 0.3s ease !important;
}

.casos-cta .btn:hover {
  transform: none !important;
}

.casos-cta .btn::after {
  display: none !important;
}

.casos-cta .btn svg,
.casos-cta .btn:hover svg {
  transform: none !important;
  transition: none !important;
}
