/* ===================== Sitio público ===================== */

body.landing { overflow-x: hidden; width: 100%; }

/* ---------- NAV ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 16px;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
@media (max-width: 600px) { .nav { padding: 12px 18px; } }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 13, 0.88); }

.nav .brand-lockup .mark { width: 30px; height: 30px; }
.nav .brand-lockup .name { font-size: 14px; }
.nav .brand-lockup .tag { display: none; }

.nav-rate {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 100px; white-space: nowrap;
  margin-right: auto; margin-left: 18px;
}
.nav-rate .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulseDot 1.7s ease-in-out infinite; flex-shrink: 0; }
.nav-rate .val { color: var(--text); }
@media (max-width: 960px) { .nav-rate { display: none; } }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.nav-menu a:hover { color: var(--text); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: 0; cursor: pointer; padding: 0; flex-shrink: 0;
}
.hamburger span { width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: 360px; }
  .nav-menu a { padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .nav-menu .btn { margin: 14px 24px; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 24px 90px;
}
@media (max-width: 600px) { .hero { padding: 100px 18px 56px; } }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% -5%, rgba(43, 143, 230, 0.22), transparent 60%),
    radial-gradient(900px 620px at 92% 8%, rgba(43, 230, 168, 0.16), transparent 55%),
    radial-gradient(700px 500px at 50% 105%, rgba(28, 95, 199, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 80%);
  animation: bgDrift 22s ease-in-out infinite alternate;
}
@keyframes bgDrift { 0% { filter: hue-rotate(0deg) brightness(1); } 100% { filter: hue-rotate(6deg) brightness(1.08); } }

.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 80%);
}

.candle-row {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 6%;
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  height: 260px; opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
@media (max-width: 600px) { .candle-row { height: 150px; gap: 5px; bottom: 4%; } }
.candle {
  flex: 1 1 0; min-width: 3px; max-width: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  transform-origin: bottom; animation: candlePulse 4.5s ease-in-out infinite;
}
.candle.down { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); }
@keyframes candlePulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.glow-orb {
  position: absolute; z-index: 1; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle, rgba(43, 230, 168, 0.35), transparent 70%);
  animation: orbDrift ease-in-out infinite;
}
.glow-orb.o1 { width: 10px; height: 10px; top: 30%; left: 20%; animation-duration: 9s; }
.glow-orb.o2 { width: 6px; height: 6px; top: 45%; left: 75%; background: radial-gradient(circle, rgba(47, 143, 230, 0.4), transparent 70%); animation-duration: 12s; animation-delay: 1s; }
.glow-orb.o3 { width: 8px; height: 8px; top: 70%; left: 35%; animation-duration: 10s; animation-delay: 2s; }
.glow-orb.o4 { width: 5px; height: 5px; top: 20%; left: 55%; background: radial-gradient(circle, rgba(47, 143, 230, 0.4), transparent 70%); animation-duration: 8s; animation-delay: 0.5s; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(24px, -30px) scale(1.6); opacity: 1; }
}
@media (max-width: 760px) { .glow-orb { display: none; } }

.coin-float {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(47, 143, 230, 0.35), rgba(6, 10, 21, 0.9));
  border: 1px solid rgba(120, 180, 240, 0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  font-family: var(--display); font-weight: 800; font-size: 20px;
  animation: floatY 7s ease-in-out infinite;
}
.coin-float.c1 { top: 16%; left: 7%; color: #f7c873; }
.coin-float.c2 { top: 60%; left: 4%; color: #9fb8ff; font-size: 17px; animation-delay: 1.4s; }
.coin-float.c3 { top: 20%; right: 8%; color: #4fe0b0; animation-delay: 0.7s; }
.coin-float.c4 { top: 66%; right: 5%; color: #f7c873; font-size: 16px; animation-delay: 2.1s; }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
@media (max-width: 980px) { .coin-float { display: none; } }

.hero-content { position: relative; z-index: 3; max-width: 800px; text-align: center; margin: 0 auto; }

.hero-rate {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 100px;
  background: rgba(13, 21, 38, 0.65); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(43, 230, 168, 0.06), 0 10px 30px -14px rgba(47, 143, 230, 0.5);
  opacity: 0; animation: fadeUp 0.8s ease forwards;
}
.hero-rate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulseDot 1.7s ease-in-out infinite; flex-shrink: 0; }
.hero-rate .label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-rate .value { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 3.5vw, 16px); white-space: nowrap; }
.hero-rate .value .num { color: var(--teal); }
.hero-rate .value.bump { animation: bumpVal 0.4s ease; }
@media (max-width: 430px) { .hero-rate { flex-wrap: wrap; justify-content: center; padding: 10px 16px; } .hero-rate .label { display: none; } }

.hero-mark { width: 84px; height: 84px; margin: 0 auto 18px; }
@media (max-width: 600px) { .hero-mark { width: 60px; height: 60px; margin-bottom: 14px; } }
.hero-mark .ring, .hero-mark .peak, .hero-mark .tail {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: drawIn 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.hero-mark .peak { animation-delay: 0.25s; }
.hero-mark .tail { animation-delay: 0.45s; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); background: rgba(43, 230, 168, 0.08); border: 1px solid rgba(43, 230, 168, 0.25);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 18px;
  opacity: 0; animation: fadeUp 0.8s ease forwards; animation-delay: 0.15s;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulseDot 1.8s ease-in-out infinite; }

.hero h1 {
  font-size: clamp(29px, 6.5vw, 56px); font-weight: 700; line-height: 1.08;
  margin: 0 0 16px; opacity: 0; animation: fadeUp 0.9s ease forwards; animation-delay: 0.3s;
}
.hero p.lead {
  font-size: clamp(14.5px, 2.6vw, 17px); color: var(--muted); line-height: 1.6;
  max-width: 580px; margin: 0 auto 26px;
  opacity: 0; animation: fadeUp 0.9s ease forwards; animation-delay: 0.45s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bumpVal { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s ease forwards; animation-delay: 0.6s;
}
@media (max-width: 480px) { .hero-ctas { flex-direction: column; width: 100%; } .hero-ctas .btn { width: 100%; } }

.hero-particle-wrap {
  width: 100%; max-width: 640px; margin: 8px auto 0;
  opacity: 0; animation: fadeUp 1s ease forwards; animation-delay: 0.75s;
}
#particleCanvas { width: 100%; height: auto; display: block; }

.scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted-2); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@media (max-width: 600px) { .scroll-cue { display: none; } }
.scroll-cue svg { width: 16px; height: 16px; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- secciones ---------- */

section { position: relative; padding: 90px 24px; }
@media (max-width: 600px) { section { padding: 56px 18px; } }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow-line { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 13px; }
.section-head h2 { font-size: clamp(24px, 4.5vw, 36px); font-weight: 700; margin: 0 0 13px; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- cotización + calculadora ---------- */

.quote-section { padding-top: 0; margin-top: -56px; z-index: 4; }
@media (max-width: 600px) { .quote-section { margin-top: -30px; } }

.quote-card { max-width: 700px; margin: 0 auto; padding: 24px 26px 22px; }
@media (max-width: 480px) { .quote-card { padding: 20px 16px 18px; } }

.quote-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.quote-title { display: flex; align-items: center; gap: 10px; }
.quote-title .coin-mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--usdt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #04241b; flex-shrink: 0;
}
.quote-title .pair { font-family: var(--display); font-weight: 700; font-size: 16px; }
.quote-title .sub { font-size: 11.5px; color: var(--muted-2); }

.value-box {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; max-width: 440px; margin: 0 auto 8px; text-align: center;
}
.value-box .label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.value-box .amount {
  font-family: var(--display); font-size: clamp(28px, 7vw, 40px); font-weight: 700;
  color: #7fe6c4; font-variant-numeric: tabular-nums;
}
.value-box .amount.bump { animation: bumpVal 0.4s ease; }
.value-box .amount .cur { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 5px; }

.quote-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted-2); margin-top: 14px;
}

.calc-block { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.calc-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.calc-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }
.calc-arrow { color: var(--muted-2); font-size: 18px; padding-bottom: 14px; text-align: center; }
@media (max-width: 560px) { .calc-arrow { transform: rotate(90deg); padding: 2px 0; } }

.calc-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.calc-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px;
  transition: border-color 0.15s ease;
}
.calc-input-wrap:focus-within { border-color: var(--blue); }
.calc-input-wrap.result { border-color: rgba(43, 230, 168, 0.35); background: rgba(43, 230, 168, 0.05); }
.calc-input-wrap input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text);
  font-family: var(--display); font-size: 19px; font-weight: 700; padding: 12px 0;
}
.calc-input-wrap #calcOutput {
  flex: 1; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--teal);
  padding: 12px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calc-unit { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; flex-shrink: 0; }
.calc-rate-note { font-size: 11.5px; color: var(--muted-2); margin-top: 12px; text-align: center; }
.calc-cta { margin-top: 16px; }

/* ---------- redes ---------- */

.networks-strip {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
}
.networks-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.networks-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.network-pill {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line-strong); background: rgba(43, 143, 230, 0.06);
  padding: 7px 14px; border-radius: 100px; white-space: nowrap;
}

/* ---------- features ---------- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: linear-gradient(180deg, rgba(19, 30, 54, 0.55), rgba(10, 17, 32, 0.55));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(43, 230, 168, 0.08); border: 1px solid rgba(43, 230, 168, 0.25);
  display: flex; align-items: center; justify-content: center; color: var(--teal);
  transition: transform 0.25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- pasos ---------- */

.steps { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 26px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--teal) 50%, var(--line-strong) 80%, transparent);
  background-size: 220% 100%; animation: lineShimmer 5s linear infinite; opacity: 0.6;
}
@keyframes lineShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; text-align: center; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  background: var(--bg-1); border: 1px solid var(--line-strong); color: var(--teal);
  position: relative; z-index: 2;
}
.step h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 auto; max-width: 230px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.015);
  padding: 4px 20px; transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: var(--line-strong); background: rgba(43, 143, 230, 0.04); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14.5px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-plus {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { font-size: 13.5px; color: var(--muted); line-height: 1.65; padding: 0 0 18px; }

/* ---------- CTA + footer ---------- */

.cta-band {
  text-align: center; max-width: 660px; margin: 0 auto;
  background: radial-gradient(600px 300px at 50% 0%, rgba(43, 143, 230, 0.16), transparent 65%);
  border: 1px solid var(--line); border-radius: 24px; padding: 50px 28px;
}
@media (max-width: 480px) { .cta-band { padding: 40px 20px; border-radius: 18px; } }
.cta-band h2 { font-size: clamp(22px, 5vw, 32px); margin: 0 0 13px; }
.cta-band p { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }

footer {
  border-top: 1px solid var(--line); padding: 34px 24px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
@media (max-width: 520px) { footer { flex-direction: column; text-align: center; padding: 30px 18px 24px; } }
.footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--teal); text-decoration: none; }
.footer-wa svg { width: 14px; height: 14px; fill: currentColor; }
footer .fine { color: var(--muted-2); font-size: 11.5px; }
footer .admin-link { font-size: 11.5px; color: var(--muted-2); text-decoration: none; }
footer .admin-link:hover { color: var(--muted); }
