:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #ede8e2;
  --text-secondary: #8a8278;
  --accent-orange: #f7931a;
  --accent-amber: #e8a430;
  --accent-red: #d94f4f;
  --accent-orange-hover: #ffb347;
  --border-color: #2a2520;
  --border-hover: #3d3529;
  --glow-orange: rgba(247, 147, 26, 0.15);
  --glow-orange-strong: rgba(247, 147, 26, 0.35);
  --section-gap: 6rem;
  --container-width: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-orange-hover);
}

a.btn {
  color: inherit;
}

a.btn-primary,
a.btn-primary:hover {
  color: #0a0a0a;
}

a.btn-secondary:hover {
  color: var(--accent-orange);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(42, 37, 32, 0.5);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6), 0 0 80px rgba(247, 147, 26, 0.03);
  border-bottom-color: var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.3));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow-orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(247, 147, 26, 0.1) 0%, rgba(247, 147, 26, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-logo {
  width: 170px;
  height: 170px;
  margin-bottom: 2rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(247, 147, 26, 0.25));
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.hero h1 .highlight {
  color: var(--accent-orange);
  text-shadow: 0 0 40px rgba(247, 147, 26, 0.3), 0 0 80px rgba(247, 147, 26, 0.1);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-orange);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  box-shadow: 0 8px 40px rgba(247, 147, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #0a0a0a;
}

.btn-secondary {
  background: rgba(247, 147, 26, 0.08);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(247, 147, 26, 0.12);
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.15);
}

/* ── SECTIONS ── */
section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── QUE ES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(247, 147, 26, 0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--accent-orange);
  filter: drop-shadow(0 0 6px rgba(247, 147, 26, 0.3));
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── COMO FUNCIONA ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.3) 15%, rgba(247, 147, 26, 0.3) 85%, transparent);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-orange);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step:hover .step-number {
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.3);
  transform: scale(1.08);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── CONECTAR ── */
.connect-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.connect-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.connect-box h3 {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.npub-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
}

.npub-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-orange);
  word-break: break-all;
  text-align: left;
  user-select: all;
  text-shadow: 0 0 12px rgba(247, 147, 26, 0.15);
}

.btn-copy {
  background: var(--accent-orange);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.btn-copy:hover {
  background: var(--accent-orange-hover);
  box-shadow: 0 0 16px rgba(247, 147, 26, 0.3);
}

.connect-instructions {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
}

.connect-instructions ol {
  text-align: left;
  display: inline-block;
  padding-left: 1.2rem;
}

/* ── CLIENTES ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.client-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.client-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.client-card .badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  width: fit-content;
  letter-spacing: 0.02em;
}

.badge-available {
  background: rgba(34, 197, 94, 0.12);
  color: #34d058;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-soon {
  background: rgba(247, 147, 26, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(247, 147, 26, 0.2);
}

.client-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.client-card a.client-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── METODOS DE PAGO ── */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.payment-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.payment-tag:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.payment-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── SEGURIDAD ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.tip-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(217, 79, 79, 0.05);
}

.tip-card .tip-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--accent-red);
  filter: drop-shadow(0 0 6px rgba(217, 79, 79, 0.2));
}

.tip-card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── COMUNIDAD ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.community-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(247, 147, 26, 0.06);
}

.community-card:hover::before {
  opacity: 1;
}

.community-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.15);
  color: var(--accent-orange);
  transition: box-shadow 0.35s ease;
}

.community-card:hover .community-card-icon {
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.2);
}

.community-card-icon svg {
  width: 26px;
  height: 26px;
}

.community-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.community-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
}

.community-card .node-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.5;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  width: 100%;
  text-align: left;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-credit {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .community-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 4rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .connect-box {
    padding: 1.5rem;
  }
}
