/* ===========================================================
   NEXXUS HUB — Landing Custom Styles
   Solo estilos que Tailwind no resuelve cómodo: gradientes,
   grid de fondo, glassmorphism, animaciones, micro-componentes.
   =========================================================== */

:root {
  --ink-900: #0b1226;
  --ink-800: #111a35;
  --brand-600: #4f46e5;
  --brand-accent: #a78bfa;
  --brand-cyan: #22d3ee;
}

html, body {
  scroll-behavior: smooth;
}

body {
  background: var(--ink-900);
}

/* ----- HERO gradient (azul → violeta) ----- */
.hero-gradient {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 30%, rgba(34, 211, 238, 0.18), transparent 65%),
    linear-gradient(180deg, #0b1226 0%, #131c3d 50%, #0b1226 100%);
}

.cta-final-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, 0.25), transparent 65%),
    linear-gradient(180deg, #0b1226 0%, #1a2547 100%);
}

/* ----- Grid sutil de fondo ----- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* ----- CHIPS selector ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.chip:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* ----- PRODUCT CARDS ----- */
.product-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 30px 60px -25px rgba(99, 102, 241, 0.4);
}
.product-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.5);
}
.product-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
  font-weight: 600;
}
.product-desc {
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.product-footer {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.product-price {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.product-price strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Fraunces', Georgia, serif;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.product-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.product-cta-primary {
  background: #fff;
  color: #0b1226;
  border-color: #fff;
}
.product-cta-primary:hover {
  background: #f1f5f9;
  color: #0b1226;
  transform: translateX(2px);
}

/* ----- BUNDLE CARDS ----- */
.bundle-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: all 0.2s ease;
}
.bundle-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}
.bundle-card-featured {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(167, 139, 250, 0.08));
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 25px 60px -25px rgba(99, 102, 241, 0.5);
}
.bundle-discount {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}
.bundle-label {
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.bundle-desc {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ----- AUDIENCE CARDS ----- */
.audience-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
.audience-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
}
.audience-card-featured {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.04));
  border-color: rgba(34, 211, 238, 0.25);
}

/* ----- DIFFERENTIATORS ----- */
.differentiator {
  text-align: center;
  padding: 1.5rem;
}
.diff-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: #a78bfa;
}
.diff-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.diff-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ----- FORM messages ----- */
#newsletter-msg.success {
  display: block;
  color: #34d399;
}
#newsletter-msg.error {
  display: block;
  color: #f87171;
}

/* ----- Subtle scroll-triggered fade ----- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ----- Reduce motion ----- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ----- Mobile polish ----- */
@media (max-width: 640px) {
  .hero-grid { background-size: 40px 40px; }
  .product-card { padding: 1.5rem; }
}
