/* Inicio — dark violet commerce, atmósfera sobria */

.pagina-inicio {
  --inicio-luz: rgba(139, 92, 246, 0.22);
  --inicio-luz-2: rgba(76, 29, 149, 0.28);
  --inicio-linea: rgba(167, 139, 250, 0.35);
}

body.pagina-inicio {
  overflow-x: clip;
}

.inicio-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #05060a;
  color: #f5f7fa;
}

.inicio-intro-interno {
  width: min(280px, 70vw);
  text-align: center;
}

.inicio-intro-marca {
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  color: #f5f3ff;
  filter: drop-shadow(0 8px 20px rgba(91, 33, 182, 0.35));
}

.inicio-intro-marca span {
  color: #c4b5fd;
}

.inicio-intro-pista {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.inicio-intro-carga {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5b21b6, #8b5cf6);
}

.hero-inicio {
  position: relative;
  min-height: calc(100dvh - var(--nav-alto));
  display: grid;
  align-items: center;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-inicio-plano {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  background:
    radial-gradient(980px 640px at 14% 20%, rgba(124, 58, 237, 0.18), transparent 58%),
    radial-gradient(760px 520px at 86% 68%, rgba(76, 29, 149, 0.14), transparent 62%),
    linear-gradient(165deg, var(--fondo) 0%, var(--fondo-2) 52%, var(--fondo-3) 100%);
  background-size: 110% 110%, 110% 110%, 100% 100%;
  animation: fondo-pan 22s ease-in-out infinite alternate;
}

html[data-tema="oscuro"] .hero-inicio-plano {
  background:
    radial-gradient(1100px 700px at 12% 18%, rgba(109, 40, 217, 0.28), transparent 56%),
    radial-gradient(820px 560px at 88% 72%, rgba(49, 22, 98, 0.45), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(124, 58, 237, 0.08), transparent 55%),
    linear-gradient(168deg, #05060a 0%, #07080c 42%, #0a0c12 100%);
  background-size: 115% 115%, 115% 115%, 100% 100%, 100% 100%;
  animation: fondo-pan 20s ease-in-out infinite alternate;
}

@keyframes fondo-pan {
  from { background-position: 0% 0%, 100% 100%, 0% 50%, 50% 100%; }
  to { background-position: 8% 6%, 92% 88%, 100% 50%, 50% 100%; }
}

/* Marketplace: tienda central + iconos orbitando (siempre en movimiento) */
.hero-market {
  --orbit: min(420px, 70vw);
  position: absolute;
  right: max(2%, 3vw);
  top: 50%;
  width: var(--orbit);
  height: var(--orbit);
  transform: translate3d(0, -50%, 0);
  z-index: 3;
  pointer-events: none;
}

.hero-market-pista {
  position: absolute;
  inset: 0;
  animation: market-orbitar 14s linear infinite !important;
  will-change: transform;
}

.hero-market-sat {
  --n: 6;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ede9fe;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  /* reparte en círculo y anti-rota para que el icono no dé vueltas */
  transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translate(calc(var(--orbit) * 0.42))
    rotate(calc(var(--i) * -360deg / var(--n)));
  animation: market-anti-orbitar 14s linear infinite !important;
  will-change: transform;
}

.hero-market-sat svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero-market-centro {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.75rem;
  height: 8.75rem;
  transform: translate3d(-50%, -50%, 0);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #a78bfa 0%, #7c3aed 48%, #4c1d95 100%);
  box-shadow:
    0 0 0 5px rgba(109, 40, 217, 0.16),
    0 18px 42px rgba(49, 22, 98, 0.55);
  animation: market-pulso 3.4s ease-in-out infinite !important;
  z-index: 2;
  overflow: hidden;
}

.hero-market-halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1.5px dashed rgba(196, 181, 253, 0.55);
  animation: market-halo 8s linear infinite !important;
  pointer-events: none;
}

.hero-market-anillo {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px solid rgba(237, 233, 254, 0.35);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.4);
  animation: market-anillo 3.6s ease-in-out infinite !important;
  pointer-events: none;
}

.hero-market-icono {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.hero-market-icono svg {
  width: 3.1rem;
  height: 3.1rem;
  stroke-width: 2.1;
}

.hero-market-brillo {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 58%
  );
  animation: market-brillo 5.2s ease-in-out infinite !important;
  pointer-events: none;
  z-index: 3;
}

html:not([data-tema="oscuro"]) .hero-market-sat {
  color: #5b21b6;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(109, 40, 217, 0.22);
}

@keyframes market-orbitar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes market-anti-orbitar {
  from {
    transform:
      rotate(calc(var(--i) * 360deg / var(--n)))
      translate(calc(var(--orbit) * 0.42))
      rotate(calc(var(--i) * -360deg / var(--n)));
  }
  to {
    transform:
      rotate(calc(var(--i) * 360deg / var(--n) + 360deg))
      translate(calc(var(--orbit) * 0.42))
      rotate(calc(var(--i) * -360deg / var(--n) - 360deg));
  }
}

@keyframes market-pulso {
  0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1); }
  50% { transform: translate3d(-50%, -50%, 0) scale(1.07); }
}

@keyframes market-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes market-anillo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes market-brillo {
  0% { transform: translateX(-30%) rotate(15deg); opacity: 0; }
  35% { opacity: 0.9; }
  70% { transform: translateX(30%) rotate(15deg); opacity: 0; }
  100% { transform: translateX(30%) rotate(15deg); opacity: 0; }
}

.hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.7;
  animation: orb-drift 7s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

.hero-orb-a {
  width: 340px;
  height: 340px;
  right: 8%;
  top: 12%;
  background: rgba(91, 33, 182, 0.38);
  opacity: 0.55;
}

.hero-orb-b {
  width: 240px;
  height: 240px;
  right: 24%;
  bottom: 10%;
  background: rgba(76, 29, 149, 0.42);
  opacity: 0.5;
  animation-delay: -1.6s;
  animation-duration: 9.5s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(36px, -40px, 0) scale(1.14); }
  66% { transform: translate3d(-26px, 24px, 0) scale(0.92); }
}

/* No pausar el marketplace: debe verse siempre en movimiento */
.hero-inicio.fuera .hero-orb,
.hero-inicio.fuera .hero-inicio-plano,
.hero-inicio.fuera .titulo-letra-viva {
  animation-play-state: paused !important;
}

.hero-inicio-vineta {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--fondo) 0%, transparent 42%),
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--fondo) 70%, transparent) 100%);
  pointer-events: none;
}

html[data-tema="oscuro"] .hero-inicio-vineta {
  background:
    linear-gradient(90deg, #03040a 0%, transparent 38%),
    linear-gradient(180deg, transparent 45%, rgba(3, 4, 10, 0.72) 100%);
}

.hero-inicio-copia {
  position: relative;
  z-index: 4;
  max-width: 38rem;
}

.hero-inicio-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.hero-inicio-titulo {
  --titulo-fill: linear-gradient(120deg, #1a1028 0%, #4c1d95 42%, #7c3aed 72%, #2e1065 100%);
  --titulo-glow: rgba(91, 33, 182, 0.26);
  --titulo-stroke: rgba(76, 29, 149, 0.16);
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-size: clamp(2.55rem, 7.4vw, 5rem);
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0.26em;
  perspective: 1000px;
  transform-style: preserve-3d;
  max-width: 14ch;
  color: #4c1d95;
}

html[data-tema="oscuro"] .hero-inicio-titulo {
  --titulo-fill: linear-gradient(120deg, #f8fafc 0%, #e2e8f0 28%, #c4b5fd 58%, #a78bfa 82%, #f1f5f9 100%);
  --titulo-glow: rgba(139, 92, 246, 0.32);
  --titulo-stroke: rgba(226, 232, 240, 0.1);
  color: #ede9fe;
}

.titulo-palabra {
  display: inline-flex;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.titulo-letra {
  display: inline-block;
  position: relative;
  font-weight: 800;
  background-image: var(--titulo-fill);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.4px var(--titulo-stroke);
  filter: drop-shadow(0 8px 22px var(--titulo-glow));
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}

.titulo-letra-viva {
  animation: titulo-flotar 4.8s ease-in-out infinite;
}

@keyframes titulo-flotar {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

.titulo-letra::before {
  content: attr(data-ch);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  text-shadow: 0 10px 26px var(--titulo-glow);
  opacity: 0.55;
  pointer-events: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .titulo-letra {
    color: var(--principal);
    background: none;
  }
}

.hero-inicio-linea {
  color: var(--texto-2);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 1.75rem;
  font-weight: 450;
}

.hero-inicio-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.hero-inicio-ctas .btn {
  padding: 0.95rem 1.45rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-magnet {
  will-change: transform;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hero-btn-principal {
  background: linear-gradient(165deg, #8b5cf6 0%, #6d28d9 100%);
  border: 1px solid rgba(196, 181, 253, 0.22);
  color: #fff;
  box-shadow: 0 14px 34px rgba(91, 33, 182, 0.38);
}

.hero-btn-principal:hover {
  background: linear-gradient(165deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 16px 38px rgba(109, 40, 217, 0.45);
}

.hero-btn-secundario {
  background: transparent;
  border: 1px solid var(--borde-fuerte);
  color: var(--texto);
}

.hero-btn-secundario:hover {
  border-color: var(--principal-borde);
  background: var(--principal-suave);
  color: var(--principal);
  box-shadow: none;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-3);
  opacity: 1;
}

.hero-scroll-hint span {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--principal), transparent);
  animation: hint-fall 1.8s ease-in-out infinite;
}

@keyframes hint-fall {
  0% { transform: scaleY(0.35); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.35); opacity: 0.3; transform-origin: bottom; }
}

.inicio-marquee {
  overflow: hidden;
  contain: paint layout;
  width: 100%;
  max-width: 100%;
  border-block: 1px solid var(--borde);
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.06), transparent 30%, transparent 70%, rgba(76, 29, 149, 0.08)),
    var(--fondo-2);
  padding: 1.25rem 0 1.4rem;
  isolation: isolate;
}

.inicio-marquee[hidden] {
  display: none !important;
}

.inicio-marquee-pista {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}

.inicio-marquee-grupo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.65rem;
  padding-right: 1.65rem;
}

.inicio-marquee.carrusel .inicio-marquee-pista {
  animation: marquee-deslizar 28s linear infinite;
}

.inicio-marquee.unico {
  display: flex;
  justify-content: center;
}

.inicio-marquee.unico .inicio-marquee-pista {
  width: auto;
  animation: none !important;
  transform: none !important;
}

.inicio-marquee-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 96px;
  color: var(--texto-2);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.inicio-marquee-item:hover {
  color: var(--principal);
  transform: translateY(-2px);
}

.inicio-marquee-item::after {
  content: none;
}

.inicio-marquee-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--fondo-3);
  border: 2px solid color-mix(in srgb, var(--principal) 25%, transparent);
}

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

.inicio-marquee-avatar.es-icono {
  background: var(--principal-suave);
  color: var(--principal);
}

.inicio-marquee-avatar svg {
  width: 28px;
  height: 28px;
}

.inicio-marquee-nombre {
  width: 100%;
  text-align: center;
  font-family: var(--fuente);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes marquee-deslizar {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-deslizar-px {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

.inicio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.inicio-kicker::before {
  content: "";
  width: 1.15rem;
  height: 1px;
  background: var(--principal);
  opacity: 0.7;
}

.inicio-cabecera {
  margin-bottom: 2.1rem;
  max-width: 40rem;
}

.inicio-cabecera h2 {
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.6rem;
  line-height: 1.12;
  color: var(--texto);
}

.inicio-cabecera p:not(.inicio-kicker) {
  color: var(--texto-2);
  font-size: 1.06rem;
  line-height: 1.58;
}

.inicio-flujo {
  position: relative;
  background:
    radial-gradient(640px 260px at 92% 100%, rgba(76, 29, 149, 0.1), transparent 65%),
    var(--fondo-2);
}

html[data-tema="oscuro"] .inicio-flujo {
  background:
    radial-gradient(700px 300px at 94% 100%, rgba(67, 20, 140, 0.2), transparent 64%),
    var(--fondo-2);
}

.inicio-cabecera-fila {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.flujo-compra {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  perspective: 1400px;
}

.flujo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--borde-fuerte);
  border-radius: 16px;
  background: var(--tarjeta);
  padding: 1.55rem 1.4rem 1.6rem;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform;
  min-height: 100%;
  box-shadow: var(--sombra-suave);
  cursor: pointer;
}

.flujo-card:hover {
  border-color: var(--principal-borde);
  box-shadow: 0 20px 44px rgba(49, 22, 98, 0.22);
}

.card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 58, 237, 0.12), transparent 48%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.flujo-card:hover .card-spotlight {
  opacity: 1;
}

.flujo-card:hover .card-linea {
  transform: scaleX(1);
}

.flujo-icono {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--principal-borde);
  background: var(--principal-suave);
  color: var(--principal);
  margin: 0;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.flujo-card:hover .flujo-icono {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(91, 33, 182, 0.16);
}

.flujo-card h3 {
  position: relative;
  z-index: 1;
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.flujo-card p {
  position: relative;
  z-index: 1;
  color: var(--texto-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.flujo-card-hint {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--principal);
}

.flujo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.flujo-num {
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--principal);
}

.card-linea {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--principal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.flujo-modal-fondo {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--overlay) 88%, transparent);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.flujo-modal-fondo.abierto {
  opacity: 1;
  visibility: visible;
}

.flujo-modal-fondo[hidden] {
  display: none !important;
}

.flujo-modal-fondo.abierto[hidden] {
  display: grid !important;
}

.flujo-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--borde-fuerte);
  background: var(--tarjeta);
  box-shadow: 0 24px 50px rgba(20, 14, 40, 0.28);
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.flujo-modal-fondo.abierto .flujo-modal {
  transform: translateY(0);
}

.flujo-modal-cerrar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--texto) 6%, transparent);
  color: var(--texto-2);
  cursor: pointer;
}

.flujo-modal-cerrar:hover {
  color: var(--texto);
  background: color-mix(in srgb, var(--texto) 10%, transparent);
}

.flujo-modal-cerrar svg {
  width: 1.05rem;
  height: 1.05rem;
}

.flujo-modal-media {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--borde);
  background: var(--fondo-2);
}

.flujo-modal-galeria {
  display: grid;
  gap: 0.55rem;
}

.flujo-modal-item {
  margin: 0;
}

.flujo-modal-media img,
.flujo-modal-media video,
.flujo-modal-item img,
.flujo-modal-item video {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.flujo-modal-num {
  margin: 0 0 0.35rem;
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--principal);
  font-weight: 700;
}

.flujo-modal h3 {
  margin: 0 0 0.55rem;
  padding-right: 2rem;
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.flujo-modal #flujo-modal-texto {
  margin: 0;
  color: var(--texto-2);
  font-size: 0.98rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

body.flujo-modal-bloqueado {
  overflow: hidden;
}

.inicio-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.inicio-cierre {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
  border-top: 1px solid var(--borde);
  background: var(--fondo-2);
}

.inicio-cierre-glow {
  position: absolute;
  left: 50%;
  top: -18%;
  width: 680px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 45%, rgba(109, 40, 217, 0.22), transparent 68%);
  filter: blur(12px);
  animation: orb-drift 12s ease-in-out infinite;
}

.inicio-cierre-interno {
  position: relative;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.inicio-cierre h2 {
  font-family: "Unbounded", var(--fuente-display), sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.55rem;
  color: var(--texto);
}

.inicio-cierre p:not(.inicio-kicker) {
  color: var(--texto-2);
  margin-bottom: 1.6rem;
}

.inicio-cierre .hero-inicio-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* Hero visible al instante; el resto espera scroll/GSAP */
.hero-inicio-linea,
.hero-inicio-ctas,
.hero-scroll-hint {
  opacity: 1;
}

.flujo-card,
.reveal-cab,
.faq-item,
.inicio-cierre-interno > * {
  opacity: 0;
}

.inicio-listo .flujo-card,
.inicio-listo .reveal-cab,
.inicio-listo .faq-item,
.inicio-listo .inicio-cierre-interno > * {
  opacity: 1;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .flujo-compra,
  .inicio-faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-inicio {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-inicio-vineta {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--fondo) 25%, transparent) 0%, var(--fondo) 82%);
  }
}

@media (max-width: 640px) {
  .hero-inicio-titulo {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    letter-spacing: -0.04em;
    max-width: 12ch;
  }

  .hero-inicio-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inicio-intro,
  .hero-scroll-hint {
    display: none !important;
  }

  .hero-inicio-linea,
  .hero-inicio-ctas,
  .flujo-card,
  .reveal-cab,
  .faq-item,
  .inicio-cierre-interno > * {
    opacity: 1;
  }

  .titulo-letra {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .inicio-intro-marca {
    animation: none !important;
  }

  .inicio-marquee.carrusel .inicio-marquee-pista {
    animation: marquee-deslizar 22s linear infinite !important;
  }

  .hero-orb,
  .hero-inicio .btn-principal::after,
  .hero-inicio-plano {
    animation: none !important;
  }

  /* El marketplace SÍ se mueve aunque el SO tenga “reducir movimiento” */
  .hero-market-pista,
  .hero-market-sat,
  .hero-market-centro,
  .hero-market-halo,
  .hero-market-anillo,
  .hero-market-brillo {
    animation-play-state: running !important;
  }
}

/* Móvil */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .hero-inicio-plano {
    animation: none !important;
    background-size: 100% 100% !important;
  }

  .hero-orb {
    opacity: 0.4;
  }

  .hero-market {
    --orbit: min(300px, 82vw);
    right: -2%;
    top: 58%;
  }

  .hero-market-centro {
    width: 7.25rem;
    height: 7.25rem;
  }

  .hero-market-icono svg {
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero-market-sat {
    width: 2.35rem;
    height: 2.35rem;
    margin: -1.175rem;
  }

  .hero-market-pista,
  .hero-market-sat {
    animation-duration: 11s !important;
  }
}
