/* Custom CSS Variables */
:root {
  --primary-color: #ffe900; /* Titulares y acentos principales */
  --accent-color: #ffe900; /* Botones y detalles */
  --text-color: #ffffff; /* Texto por defecto en fondo oscuro */
  --light-bg: #0e0e0e; /* Fondos oscuros suaves */
  --white: #ffffff;
  --border-color: #2a2a2a;
}

/* Fondo global oscuro y texto claro */
body {
  background-color: #000;
  color: var(--text-color);
}

/* Typography */
.font-heading {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Source Sans Pro', sans-serif;
}

/* Custom Colors */
.text-primary {
  color: var(--primary-color) !important; /* Amarillo */
}

.text-accent {
  color: var(--accent-color) !important; /* Amarillo */
}

/* Botón acento con texto negro para contraste */
.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000; /* Mejor contraste sobre #FFE900 */
}

.btn-accent:hover {
  background-color: #e6d200;
  border-color: #e6d200;
  color: #000;
}

/* Gradients: hero en negro */
.gradient-hero {
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Showcase (lado derecho del hero) */
.hero-showcase {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Halo animado */
.orb-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 233, 0, 0.25), transparent 60%), radial-gradient(closest-side, rgba(255, 233, 0, 0.12), transparent 70%);
  filter: blur(14px);
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Círculo destacado simple (hero derecho) */
.highlight-ring {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 2px solid rgba(255, 233, 0, 0.5);
  box-shadow: 0 0 60px rgba(255, 233, 0, 0.15), inset 0 0 40px rgba(255, 233, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: floatY 4s ease-in-out infinite;
}

.highlight-ring i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.highlight-ring .brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Tarjeta principal con profundidad y sutil borde brillante */
.showcase-card {
  position: relative;
  width: 320px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  transform: rotateY(-8deg) rotateX(6deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 233, 0, 0.06);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 233, 0, 0.35), rgba(255, 233, 0, 0) 40%, rgba(255, 233, 0, 0.35));
  mask: radial-gradient(100% 100% at 0 0, #000 60%, transparent 61%) subtract, radial-gradient(100% 100% at 100% 100%, #000 60%, transparent 61%);
  opacity: 0.5;
}

/* Link destacado dentro de la tarjeta */
.showcase-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: #0b0b0b;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 0, 0.06);
}

.showcase-link .prefix {
  color: #cfcfcf;
}

.showcase-link .slug {
  color: var(--accent-color);
  font-weight: 700;
}

/* Badges flotantes */
.showcase-badge {
  position: absolute;
  background: #000;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  animation: floatY 4s ease-in-out infinite;
}

.badge-1 {
  top: 28px;
  left: 20px;
  color: #000;
  background: var(--accent-color);
  border-color: rgba(255, 233, 0, 0.6);
  animation-delay: 0.2s;
}

.badge-2 {
  right: 16px;
  bottom: 36px;
  animation-delay: 1s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(132, 204, 22, 0.6);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Floating Elements */
.hero-image {
  position: relative;
  height: 400px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

.floating-card i {
  font-size: 1.2em;
  color: var(--accent-color);
}

.card-1 {
  top: 20%;
  left: 10%;
  animation: float 3s ease-in-out infinite;
}

.card-2 {
  top: 60%;
  right: 20%;
  animation: float 3s ease-in-out infinite 1s;
}

.card-3 {
  bottom: 20%;
  left: 20%;
  animation: float 3s ease-in-out infinite 2s;
}

.hero-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
}

/* Stats */
.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.stat-item h3 {
  font-size: 2rem;
  margin: 0;
}

/* Cards blancas con texto oscuro para legibilidad */
.benefit-card,
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #111;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.benefit-icon i {
  font-size: 3rem;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps */
.step-card {
  position: relative;
  background: #0e0e0e;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 233, 0, 0.12);
  border-color: rgba(255, 233, 0, 0.5);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: #000; /* Mayor contraste sobre #FFE900 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 0 0 6px rgba(255, 233, 0, 0.15), 0 8px 20px rgba(255, 233, 0, 0.15);
}

.step-card .text-muted {
  color: #cfcfcf !important;
}

/* Testimonials */
.stars i {
  font-size: 1.1rem;
}

.avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* Modal */
/* Mantener modal blanco por contraste con el resto oscuro */
.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-buttons .btn {
  flex: 1;
  min-width: 100px;
}

/* Referral Form */
.referral-form-card {
  color: #111;
}

.referral-form-card .form-control:focus,
.referral-form-card .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 233, 0, 0.25);
}

/* Download App Section */
.download-section {
  position: relative;
}

.download-card {
  position: relative;
  border: 1px solid var(--border-color);
  background: radial-gradient(1200px 400px at 0% 0%, rgba(255, 233, 0, 0.06), transparent 40%),
    radial-gradient(1200px 400px at 100% 100%, rgba(255, 233, 0, 0.06), transparent 40%), linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
  box-shadow: 0 10px 40px rgba(255, 233, 0, 0.08), inset 0 0 0 1px rgba(255, 233, 0, 0.05);
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-btn i {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-btn .label small {
  color: #cfcfcf;
}

.store-btn .label span {
  font-weight: 800;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 233, 0, 0.5);
  box-shadow: 0 12px 30px rgba(255, 233, 0, 0.12);
}

/* QR Panel */
.qr-panel {
  position: relative;
  background: #0b0b0b;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 0 1px rgba(255, 233, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.qr-panel .qr-glow {
  position: absolute;
  inset: -6%;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(255, 233, 0, 0.1), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.qr-img {
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .qr-panel {
    margin-top: 8px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .hero-illustration {
    font-size: 4rem;
  }

  .floating-card {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .share-buttons .d-flex {
    flex-direction: column;
  }

  .share-buttons .btn {
    margin-bottom: 10px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
/* Navbar oscura con enlaces claros y hover amarillo */
.navbar {
  transition: all 0.3s ease;
  background-color: #000 !important;
}

.navbar .nav-link {
  color: #fff !important;
}

.navbar .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Navbar al hacer scroll: negro translúcido */
.navbar-scrolled {
  background-color: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
}

/* Toggler icon en blanco sin cambiar el HTML */
.navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Loading animation for stats */
.stat-item h3 {
  transition: all 0.3s ease;
}

/* Success message: amarillo con texto negro */
.success-message {
  background: var(--accent-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 15px;
  display: none;
}

/* Secciones claras a oscuro */
.bg-light {
  background-color: #0e0e0e !important;
}

/* Contenedor destacado para "¿Cómo funciona?" */
.how-it-works {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  background: radial-gradient(1200px 400px at 0% 0%, rgba(255, 233, 0, 0.06), transparent 40%),
    radial-gradient(1200px 400px at 100% 100%, rgba(255, 233, 0, 0.06), transparent 40%), #000;
  box-shadow: 0 10px 40px rgba(255, 233, 0, 0.08), inset 0 0 0 1px rgba(255, 233, 0, 0.05);
}

/* Título con leve brillo */
.glow-title {
  text-shadow: 0 0 12px rgba(255, 233, 0, 0.3);
}

/* Mejorar legibilidad del texto tenue en fondos oscuros */
.step-card .text-muted {
  color: #cfcfcf !important;
}
