:root {
  --bg: #0c0914;
  --bg-2: #140d1f;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4effa;
  --muted: #b5aac6;
  --dim: #7f7591;
  --sun-1: #ff4f3a;
  --sun-2: #ff7a30;
  --sun-3: #ffb347;
  --sun-4: #ffd770;
  --violet: #8b5cf6;
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-3); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  word-break: break-word;
}
kbd { border-bottom-width: 2px; }
h1, h2, h3 { font-family: "Outfit", "Inter", system-ui, sans-serif; line-height: 1.1; margin: 0; }
.grad {
  background: linear-gradient(100deg, var(--sun-2), var(--sun-3) 45%, var(--sun-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Fondo: brillo de sol y cuadricula ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow-a {
  width: 720px; height: 720px; top: -260px; right: -160px;
  background: radial-gradient(circle, var(--sun-2), rgba(255, 79, 58, 0) 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  width: 640px; height: 640px; bottom: -280px; left: -220px;
  background: radial-gradient(circle, var(--violet), rgba(139, 92, 246, 0) 70%);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 40px) scale(1.08); }
}

/* ---------- Barra de arriba ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(12, 9, 20, 0.85), rgba(12, 9, 20, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Outfit", sans-serif; font-size: 1.3rem; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--sun-3); font-weight: 800; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: 0.01em;
  color: #1b0c0a;
  background: linear-gradient(100deg, var(--sun-1), var(--sun-2) 40%, var(--sun-3));
  border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(255, 110, 50, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 36px -10px rgba(255, 110, 50, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-small { padding: 9px 18px; font-size: 0.95rem; }
.btn-big { padding: 16px 28px; font-size: 1.15rem; }
.btn-ghost {
  padding: 15px 24px; font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

/* ---------- Portada ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 70px); padding: 40px 0 30px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 140, 60, 0.12); border: 1px solid rgba(255, 150, 70, 0.3);
  color: var(--sun-4); font-size: 0.9rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-3); box-shadow: 0 0 12px var(--sun-3); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 18px 0 30px; max-width: 34em; }
.lead strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { color: var(--dim); font-size: 0.88rem; margin-top: 16px; }
.hero-shot { perspective: 1400px; }
.frame {
  position: relative; border-radius: 16px; padding: 8px;
  background: linear-gradient(135deg, rgba(255, 140, 60, 0.55), rgba(139, 92, 246, 0.45));
  box-shadow: 0 40px 80px -30px rgba(255, 100, 50, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform 0.5s ease;
}
.frame:hover { transform: rotateY(0) rotateX(0); }
.frame img { border-radius: 10px; }

/* ---------- Cifras ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--card-border); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); margin: 10px 0 40px;
}
.stats div { background: rgba(18, 12, 28, 0.92); padding: 22px; text-align: center; }
.stats b { display: block; font-family: "Outfit", sans-serif; font-size: 1.9rem; }
.stats span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Secciones ---------- */
.section { padding: 70px 0 20px; scroll-margin-top: 70px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 150, 70, 0.4); background: rgba(255, 255, 255, 0.06); }
.card h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 110, 50, 0.25), rgba(255, 190, 80, 0.12));
  border: 1px solid rgba(255, 150, 70, 0.35);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sun-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; border: 1px solid var(--card-border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.gallery figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 10px; text-align: center; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; position: relative; }
.steps h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.steps p { color: var(--muted); margin: 0; }
.num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.2rem; color: #1b0c0a;
  background: linear-gradient(135deg, var(--sun-2), var(--sun-4));
}
.note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255, 190, 80, 0.07); border: 1px solid rgba(255, 190, 80, 0.25);
}
.note svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: var(--sun-4); stroke-width: 2; stroke-linecap: round; margin-top: 2px; }
.note p { margin: 0; color: var(--muted); }
.note b { color: var(--text); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 4px 20px; }
.faq details[open] { border-color: rgba(255, 150, 70, 0.35); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun-3); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 16px; }

.final { text-align: center; padding: 90px 0 70px; display: grid; justify-items: center; gap: 18px; }
.final img { filter: drop-shadow(0 0 28px rgba(255, 140, 60, 0.6)); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.final h2 { font-size: clamp(2rem, 4vw, 2.7rem); }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 30px 20px 40px; max-width: var(--max); margin: 0 auto; color: var(--dim); font-size: 0.85rem; }
.hashes p { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hash {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px;
  padding: 3px 8px; cursor: pointer; word-break: break-all; text-align: left; max-width: 100%;
}
.hash:hover { color: var(--text); border-color: rgba(255, 150, 70, 0.4); }
.hash.copied { color: #7ee2a0; border-color: rgba(126, 226, 160, 0.5); }
.legal { margin-top: 18px; }

/* ---------- Animacion al aparecer ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .dot, .final img { animation: none; }
  .frame { transform: none; }
}

/* ---------- Pantallas pequenas ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-top: 30px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .frame { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav { gap: 12px; }
  .nav .btn-small { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .gallery { grid-template-columns: 1fr; }
  .btn-big { width: 100%; }
  .btn-ghost { width: 100%; }
}
