/* ==========================================================================
   decor.css — Capa estética: profundidad, color por categoría y detalles.
   Todo es ESTÁTICO (gradientes y sombras fijas): sin blur, sin filtros y sin
   animar sombras, para mantener 60 FPS en equipos de gama baja.
   ========================================================================== */

/* ---------- Hero: retícula de puntos + título con degradado ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(196, 181, 253, 0.16) 1px, transparent 1.5px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.hero__title-accent {
  background: linear-gradient(90deg, #c4b5fd, #f0abfc 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn--wa {
  box-shadow: 0 10px 24px -8px rgba(34, 197, 94, 0.55);
}

.brand__logo {
  box-shadow: 0 6px 18px -4px rgba(124, 58, 237, 0.7);
}

.nav__link--cta {
  box-shadow: 0 6px 16px -6px rgba(162, 28, 175, 0.7);
}

/* ---------- Chips de confianza bajo los botones ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s4);
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: rgba(20, 18, 43, 0.85);
  color: var(--text-soft);
  font-size: var(--fs-small);
  font-weight: 600;
}

.chips li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.chips li:nth-child(2)::before {
  background: var(--accent-pink);
}

.chips li:nth-child(3)::before {
  background: var(--wa-hover);
}

/* ---------- Visual del hero: anillo degradado + tarjetas flotantes ---------- */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 2.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(217, 70, 239, 0.18) 55%, rgba(99, 102, 241, 0.04));
}

.hero__visual .media--hero {
  max-width: none;
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border: 1px solid var(--border-violet);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  color: var(--text-main);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
}

.float-chip .feature__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
}

/* Posiciones en las esquinas despejadas de hero-showcase.webp (arriba-izq. y abajo-der.) */
.float-chip--a {
  right: -0.5rem;
  bottom: 1.5rem;
}

.float-chip--b {
  left: -0.5rem;
  top: 1.5rem;
}

@media (min-width: 64em) {
  .float-chip--a {
    right: -1rem;
  }

  .float-chip--b {
    left: -1.5rem;
  }
}

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.eyebrow::after {
  transform: scaleX(-1);
}

#como-funciona {
  background: linear-gradient(180deg, transparent, rgba(27, 24, 56, 0.55) 50%, transparent);
}

/* ---------- Tarjetas con color propio por categoría (--hue) ---------- */
.card {
  --hue: 262;
  position: relative;
  border-color: hsla(var(--hue), 70%, 65%, 0.28);
  background:
    radial-gradient(120% 55% at 50% 0%, hsla(var(--hue), 80%, 55%, 0.16), transparent 65%),
    var(--bg-surface);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}

.grid--cats .card:nth-child(2) { --hue: 292; }
.grid--cats .card:nth-child(3) { --hue: 222; }
.grid--cats .card:nth-child(4) { --hue: 322; }

.card .media {
  border-color: hsla(var(--hue), 70%, 65%, 0.3);
  background: linear-gradient(135deg, hsl(var(--hue), 55%, 24%), var(--bg-surface) 60%, hsl(calc(var(--hue) + 45), 55%, 22%));
}

.card .media::before {
  background: hsla(var(--hue), 90%, 85%, 0.45);
}

.card .btn--outline {
  border-color: hsla(var(--hue), 70%, 65%, 0.4);
  color: hsl(var(--hue), 95%, 86%);
}

@media (hover: hover) {
  .card:hover,
  .js .reveal.is-visible.card:hover {
    border-color: hsla(var(--hue), 90%, 75%, 0.8);
  }

  .card .btn--outline:hover {
    border-color: transparent;
    background: hsl(var(--hue), 65%, 38%);
    color: #fff;
  }
}

/* ---------- Pasos: conector entre tarjetas en escritorio ---------- */
.step {
  position: relative;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-surface));
}

@media (min-width: 48em) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.5rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }
}

/* ---------- CTA final con resplandor superior ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(168, 85, 247, 0.28), transparent 70%);
}
