/* ==========================================================================
   Jhoel Velasco — marca personal
   Archetype: Mouse-Reactive Gradient (dark) · acento lima de For Traders
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --ink: #f6f6f1;
  --mute: #a3a3a3;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e4f222;      /* lima de los certificados */
  --accent-ink: #0a0a0a;
  --orange: #f5873a;      /* naranja del certificado Top 10% */
  --up: #3ddc84;
  --down: #ff5a5a;
  --g1: #b8c90f;
  --g2: #f5873a;
  --g3: #2b3a12;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

/* ---------- Reveal (con redes de seguridad) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--mute); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(228, 242, 34, .35); }

/* ---------- Ticker ---------- */
.ticker {
  position: absolute; top: 76px; left: 0; right: 0; z-index: 3;
  overflow: hidden; border-block: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  background: rgba(10,10,10,.35);
}
.ticker-track { display: flex; gap: 14px; width: max-content; padding: 8px 0; animation: ticker 40s linear infinite; }
.ticker-track span:nth-child(even) { margin-right: 22px; }
.ticker .up { color: var(--up); }
.ticker .down { color: var(--down); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 150px var(--pad) 80px;
  overflow: hidden;
}
.hero-gradient, .contact-gradient {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 40%), rgba(228, 242, 34, .38) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) - 25%) calc(var(--my, 40%) + 30%), rgba(245, 135, 58, .22) 0%, transparent 60%),
    radial-gradient(circle 900px at 10% 0%, rgba(43, 58, 18, .9) 0%, transparent 70%),
    var(--bg);
  filter: blur(30px) saturate(140%);
  transition: background .25s ease-out;
}
.hero::after {
  /* grilla de puntos, como en los certificados */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-chart { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 45%; z-index: -1; opacity: .5; pointer-events: none; }
.hero-chart path {
  fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: draw 3.2s .4s cubic-bezier(.6,.1,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.04); margin: 0 0 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero-title { font-size: clamp(64px, 12vw, 190px); line-height: .88; letter-spacing: -0.05em; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-title .line:nth-child(2) { animation-delay: .12s; }
.hero-title em { color: var(--accent); font-weight: 400; letter-spacing: -0.03em; padding-right: .05em; }
@keyframes rise { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }

.hero-sub { max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); color: #d6d6cf; margin: 30px 0 36px; animation: rise 1.1s .3s cubic-bezier(.2,.8,.2,1) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(228, 242, 34, .35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.hero-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 480px; animation: rise 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 20%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.badge-float {
  position: absolute; left: -28px; bottom: 36px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(20,20,20,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232,232,232,.45);
  animation: float 5s ease-in-out infinite;
}
.badge-float strong { font-size: 26px; color: #e8e8e8; letter-spacing: -0.02em; line-height: 1; }
.badge-float span { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .04em; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat { padding: 44px var(--pad) 40px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(48px, 5.5vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-unit { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); color: var(--accent); margin-left: 6px; }
.stat-unit.pre { margin: 0 6px 0 0; }
.stat p { margin: 12px 0 0; color: var(--mute); font-size: 15px; max-width: 22ch; }

/* ---------- Sections ---------- */
.about, .proof, .method { padding: clamp(90px, 12vw, 160px) var(--pad); }
section h2 { font-size: clamp(38px, 5.4vw, 80px); max-width: 16ch; margin-bottom: 30px; }
section h2 em { color: var(--accent); }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-text > p:not(.label) { font-size: clamp(17px, 1.3vw, 20px); color: #cfcfc8; max-width: 52ch; }
.tags { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--bg-2); }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(1.05) contrast(1.05); }
.about-photo figcaption { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--mute); max-width: 46ch; }

/* ---------- Logros ---------- */
.proof { background: var(--bg-2); border-block: 1px solid var(--line); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 50px; }
.cert {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .4s;
}
.cert:hover { border-color: rgba(228,242,34,.45); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cert img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cert-meta { padding: 20px 10px 10px; }
.cert-date { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.cert h3 { font-size: 28px; margin: 6px 0 6px; }
.cert p { margin: 0; color: var(--mute); }

/* ---------- Método ---------- */
.steps { margin-top: 50px; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 20px;
  padding: 30px 0; transition: color .25s, padding .3s;
}
.step summary::-webkit-details-marker { display: none; }
.step summary:hover { color: var(--accent); padding-left: 12px; }
.step-n { font-family: var(--mono); color: var(--mute); font-size: 14px; }
.step-t { font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; }
.step-i { font-size: 30px; font-weight: 300; justify-self: end; transition: transform .35s; }
.step[open] .step-i { transform: rotate(45deg); color: var(--accent); }
.step p { margin: -8px 0 30px 100px; max-width: 58ch; color: #cfcfc8; font-size: 18px; }

/* ---------- Contacto ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(100px, 13vw, 180px) var(--pad);
  text-align: center;
}
.contact .label { display: block; }
.contact-title { font-size: clamp(52px, 10vw, 160px); max-width: none; margin: 0 auto 20px; letter-spacing: -0.05em; font-weight: 600; }
.contact-sub { color: #d6d6cf; font-size: 19px; margin: 0 auto 60px; max-width: 40ch; }

.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; text-align: left; }
.social {
  --brand: var(--accent);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 26px 24px; border-radius: 20px;
  background: rgba(20,20,20,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s;
}
.social::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand); transform: translateY(101%);
  transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.social:hover { transform: translateY(-6px); border-color: transparent; }
.social:hover::before { transform: none; }
.social svg { grid-row: 1 / 3; width: 38px; height: 38px; fill: var(--brand); transition: fill .3s; }
.social-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.social-hint { grid-column: 2; font-size: 14px; color: var(--mute); transition: color .3s; }
.social-arrow { grid-row: 1 / 3; grid-column: 3; font-size: 24px; transition: transform .3s; }
.social:hover svg { fill: #fff; }
.social:hover .social-hint { color: rgba(255,255,255,.85); }
.social:hover .social-arrow { transform: translate(4px, -4px); }
.social-wa { --brand: #25d366; }
.social-ig { --brand: #e1306c; }
.social-ig::before { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.social-tt { --brand: #25f4ee; }
.social-tt::before { background: linear-gradient(135deg, #25f4ee, #000 45%, #000 55%, #fe2c55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 50px var(--pad) 100px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.disclaimer { max-width: 90ch; margin: 0 0 30px; font-size: 13px; line-height: 1.6; }
.disclaimer strong { color: var(--ink); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-row a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; text-align: left; }
  .hero-photo { justify-self: start; max-width: 420px; }
  .badge-float { left: auto; right: -8px; bottom: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .socials { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; }
  .ticker { top: 66px; }
  .hero { padding: 130px 16px 60px; min-height: auto; }
  .stat { padding: 30px 16px; }
  .about, .proof, .method, .contact { padding-left: 16px; padding-right: 16px; }
  .certs { grid-template-columns: 1fr; }
  .step summary { grid-template-columns: 44px 1fr 30px; gap: 12px; padding: 24px 0; }
  .step p { margin: -6px 0 24px 56px; font-size: 16px; }
  .footer { padding: 40px 16px 110px; }
  .footer-row { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* Solo efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 120s; }
  .wa-float::after { animation: none; }
}
