/* ============================================================
   FUNDED MARKETS - LANDING  (estilo Cruip "Open")
   ============================================================ */

.landing {
  --bg: #050a08;
  --bg-2: #0b1411;
  --card: #0d1714;
  --card-2: #12201b;
  --borde: rgba(255, 255, 255, .08);
  --borde-2: rgba(255, 255, 255, .14);
  --verde: #16c784;
  --verde-2: #29e39a;
  --verde-suave: rgba(22, 199, 132, .14);
  --texto: #f1f7f4;
  --muted: #93a8a0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--bg);
  overflow-x: hidden;
}

.landing * { box-sizing: border-box; }
.landing a { text-decoration: none; }
.landing .cont { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.landing .flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.landing .flash-ok { background: var(--verde-suave); border: 1px solid var(--verde); color: #bbf7d0; }
.landing .flash-error { background: rgba(239,68,68,.15); border: 1px solid #ef4444; color: #fca5a5; }

.landing h1, .landing h2, .landing h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.landing p { line-height: 1.65; }
.landing .grad {
  background: linear-gradient(105deg, #e2e8f0, #86efac, #f8fafc, #6ee7b7, #e2e8f0);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradmove 6s linear infinite;
}
@keyframes gradmove { to { background-position: 200% center; } }

/* etiqueta numerica de seccion (temporal, para editar) */
.sec-num {
  position: absolute; top: 16px; left: 16px; z-index: 40;
  background: rgba(5,10,8,.7); border: 1px dashed var(--verde); color: var(--verde);
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  letter-spacing: 1px; backdrop-filter: blur(6px);
}
.landing-nav { position: sticky; }
.landing-nav .sec-num { left: 50%; transform: translateX(-50%); }
.landing-footer { position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--verde);
}

/* ---------- BOTONES ---------- */
.landing .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s ease; font-family: inherit;
}
.landing .btn-verde { background: var(--verde); color: #04170f; }
.landing .btn-verde:hover { background: var(--verde-2); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(22,199,132,.28); }
.landing .btn-fantasma { background: var(--card-2); border-color: var(--borde-2); color: #e8eeeb; }
.landing .btn-fantasma:hover { border-color: var(--verde); color: var(--verde); }
.landing .btn-grande { padding: 15px 30px; font-size: 16px; }

/* ---------- NAV ---------- */
.landing-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 13, 12, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}
.landing-nav .cont { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.landing-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.landing-logo .logo-img { height: 26px; width: auto; display: block; }
.logo-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .22); }
.logo-name { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 14px; letter-spacing: 1.5px; color: #fff; }
.logo-name span { display: block; }
.landing-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--verde); color: #04170f; font-weight: 900; font-size: 14px;
}
.landing-nav .links { display: flex; align-items: center; gap: 24px; }
.landing-nav .links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.landing-nav .links a:hover { color: #fff; }
.landing-nav .links a.btn { color: #fff; }
.landing-nav .links a.btn-blanco { color: #04170f; }
.landing-nav .links a.nav-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: var(--texto); font-weight: 600;
  transition: all .2s ease;
}
.landing-nav .links a.nav-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--verde); box-shadow: 0 0 8px rgba(22, 199, 132, .9);
}
.landing-nav .links a.nav-pill:hover {
  color: var(--verde-2); border-color: rgba(22, 199, 132, .55);
  background: rgba(22, 199, 132, .1); box-shadow: 0 0 0 3px rgba(22, 199, 132, .08);
  text-decoration: none;
}

/* ---------- DECOR (manchas difuminadas) ---------- */
.shape { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 92px 0 70px; text-align: center; overflow: hidden; }
.canvas-simbolos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-canvas { opacity: .85; }
.cta-canvas { opacity: .55; }
.hero .shape.a { top: -120px; left: 50%; transform: translateX(-50%); width: 680px; height: 420px; background: rgba(22,199,132,.20); }
.hero .shape.b { top: 40px; right: 6%; width: 340px; height: 340px; background: rgba(56,189,248,.10); }
.hero .cont { position: relative; z-index: 2; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--verde-suave); border: 1px solid rgba(22,199,132,.3); color: var(--verde);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: 60px; font-weight: 800; max-width: 860px; margin: 0 auto; }
.hero p.sub { color: var(--muted); font-size: 19px; max-width: 600px; margin: 22px auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* mockup del dashboard */
.mockup {
  position: relative; z-index: 2; max-width: 940px; margin: 58px auto 0;
  border-radius: 18px; border: 1px solid var(--borde-2); overflow: hidden;
  background: var(--card); box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.mockup .bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--borde); }
.mockup .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3630; display: block; }
.mockup img { width: 100%; display: block; }

/* ---------- TICKER DE DIVISAS ---------- */
.ticker {
  position: relative; z-index: 2; max-width: 960px; margin: 36px auto 0; overflow: hidden;
  border: 1px solid var(--borde); border-radius: 12px; background: rgba(255, 255, 255, .02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: inline-flex; gap: 36px; padding: 13px 0; white-space: nowrap; will-change: transform; }
.ticker-item { font-size: 14px; color: #cfd8d3; font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.ticker-item b { font-weight: 700; }
.ticker-item b.up { color: var(--verde); }
.ticker-item b.down { color: #f87171; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECCIONES ---------- */
.seccion { position: relative; padding: 84px 0; }
.seccion-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.seccion-head h2 { font-size: 38px; font-weight: 800; margin-top: 14px; }
.seccion-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- PASOS (workflows) ---------- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.paso {
  background: var(--card); border: 1px solid var(--borde); border-radius: 16px; overflow: hidden;
  transition: .25s;
}
.paso:hover { border-color: rgba(22,199,132,.5); transform: translateY(-4px); }
.paso img { width: 100%; height: auto; display: block; }
.paso .txt { padding: 22px; }
.paso .num { color: var(--verde); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.paso h3 { font-size: 19px; margin: 8px 0; }
.paso p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- FEATURES ---------- */
.features-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.features-img img { width: 100%; border-radius: 16px; border: 1px solid var(--borde); display: block; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.features-txt h2 { font-size: 34px; font-weight: 800; margin: 14px 0 16px; }
.features-txt > p { color: var(--muted); font-size: 16px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.fg-item { display: flex; gap: 12px; }
.fg-item .dot {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--verde-suave); color: var(--verde); font-size: 16px;
}
.fg-item h4 { font-size: 15.5px; margin: 0 0 4px; }
.fg-item p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- STATS (3D + velas) ---------- */
.estadisticas {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 440px at 50% 0%, rgba(22, 199, 132, .13), transparent 70%),
    linear-gradient(180deg, #050a08 0%, #071510 45%, #050a08 100%);
}
.estadisticas::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 10, 8, 0) 100%);
}
.velas-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; pointer-events: none; }
.estadisticas .cont { position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1100px; }
.stat {
  position: relative; overflow: hidden; text-align: center; padding: 34px 20px; border-radius: 20px;
  background: linear-gradient(165deg, rgba(22, 199, 132, .22) 0%, rgba(9, 18, 15, .94) 58%);
  border: 1px solid rgba(22, 199, 132, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -26px 46px rgba(0, 0, 0, .5),
    0 34px 60px rgba(0, 0, 0, .6);
  transition: transform .3s ease, box-shadow .3s ease;
  transform: translateZ(0);
}
.stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(150px 70px at 50% -10%, rgba(22, 199, 132, .35), transparent 70%);
}
.stat::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
}
.stat:hover { transform: translateY(-10px) scale(1.04); box-shadow: 0 40px 70px rgba(22, 199, 132, .28), inset 0 1px 0 rgba(255, 255, 255, .25); }
.stat .n { font-size: 48px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 0 28px rgba(22, 199, 132, .7); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 8px; letter-spacing: .3px; }

/* ---------- PLANES ---------- */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan {
  background: var(--card); border: 1px solid var(--borde); border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; transition: .25s; position: relative; cursor: pointer;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes girarBorde { to { --ang: 360deg; } }
.plan::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), #16c784, #34d399, #22d3ee, #a3e635, #16c784);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: girarBorde 6s linear infinite; opacity: .45; transition: opacity .3s;
}
.plan:hover::before { opacity: 1; animation-duration: 2.2s; }
.plan.sel::before { opacity: 1; animation-duration: 1.2s; }
.plan.sel { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(22, 199, 132, .22); }
.plan:hover { border-color: rgba(22,199,132,.5); }
.plan.destacado { border: 1.5px solid var(--verde); box-shadow: 0 24px 60px rgba(22,199,132,.16); background: var(--card-2); }
.plan .badge-plan {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--verde); color: #04170f; font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.plan .monto { font-size: 34px; font-weight: 800; }
.plan .nombre { color: var(--muted); font-size: 14px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 14px; color: #c4d0cb; display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--verde); font-weight: 800; }
.plan .precio { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 16px; }
.plan .precio b { font-size: 28px; font-weight: 800; color: var(--verde); }
.plan .precio span { color: var(--muted); font-size: 13px; }
.plan .btn { width: 100%; }

/* ---------- TESTIMONIOS ---------- */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  position: relative; background: var(--card); border: 1px solid var(--borde); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.testi::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(22,199,132,.15), #16c784, rgba(34,211,238,.7), #16c784, rgba(22,199,132,.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: girarBorde 7s linear infinite; opacity: .85;
}
.testi .stars { color: var(--verde); font-size: 14px; letter-spacing: 2px; }
.testi p { color: #c4d0cb; font-size: 15px; margin: 0; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi .who .av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde-suave); color: var(--verde); font-weight: 800;
}
.testi .who b { font-size: 14.5px; display: block; }
.testi .who span { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--borde); border-radius: 14px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--verde); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA FINAL ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 199, 132, .5), transparent);
}
.cta-final .shape.a { bottom: -220px; left: 50%; transform: translateX(-50%); width: 760px; height: 460px; background: rgba(22,199,132,.22); }
.cta-final .cont { position: relative; z-index: 2; }
.cta-final h2 { font-size: 42px; font-weight: 800; max-width: 720px; margin: 0 auto; }
.cta-final p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 18px auto 30px; }
.cta-final .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.landing-footer { position: relative; background: #070a09; color: var(--muted); padding: 54px 0 30px; }
.landing-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 199, 132, .5), transparent);
}
.landing-footer .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.landing-footer .col b { color: #fff; font-size: 14px; }
.landing-footer a { color: var(--muted); display: block; margin-top: 9px; font-size: 14px; }
.landing-footer a:hover { color: var(--verde); }
.landing-footer .legal { font-size: 12px; line-height: 1.6; color: #55635d; border-top: 1px solid var(--borde); padding-top: 22px; }

/* ---------- ANIMACION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .pasos, .testis { grid-template-columns: 1fr; }
  .features-wrap { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .seccion { padding: 60px 0; }
  .seccion-head h2 { font-size: 30px; }
  .cta-final h2 { font-size: 30px; }
  .landing-nav .links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .stats, .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cta-final .cta { flex-direction: column; align-items: stretch; gap: 14px; max-width: 320px; margin: 0 auto; }
  .cta-final .cta .btn { width: 100%; }
}
