/* Landing de InvestorResearch (sobre /ui/styles.css: mismos colores, tipografía y componentes que la app) */

body { user-select: auto; }
main, .lp-nav { transition: opacity .18s, filter .18s; }
.lang-swap main, .lang-swap .lp-nav { opacity: 0; filter: blur(3px); }
a { color: inherit; }
html { scroll-behavior: smooth; }
main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section[id] { scroll-margin-top: 90px; }

/* Entrada al cargar (portada) y al hacer scroll (resto de secciones) */
.up { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; animation-delay: calc(.1s + var(--d, 0) * 90ms); }
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Barra superior ---------- */
.lp-bar { gap: 20px; }
.lp-nav { display: flex; gap: 6px; }
.lp-nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.lp-nav a:hover { color: var(--text); background: var(--field); }
.brand { text-decoration: none; }
.lp-open { height: 40px; padding: 0 16px; font-size: 14.5px; text-decoration: none; }
@media (max-width: 1100px) { .lp-nav { display: none; } }

/* ---------- Portada ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; min-height: calc(100vh - 90px); padding: 28px 0 56px; }
.lp-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; margin: 18px 0 16px; }
.hl { background: linear-gradient(120deg, var(--green), #3DD2A0 60%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: flow 6s linear infinite; }
.lp-hero .lead { font-size: 18.5px; max-width: 560px; }
.lp-search { display: flex; gap: 10px; margin-top: 28px; padding: 8px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); outline: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); max-width: 620px; }
.lp-search .url-field { height: 56px; border-color: transparent; background: transparent; }
.lp-search .url-field.focus { box-shadow: none; background: transparent; border-color: transparent; }
.lp-search .cta { min-width: 0; height: 56px; }
.lp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px "Figtree", sans-serif; color: var(--text); }
.lp-search input::placeholder { color: var(--placeholder); font-weight: 400; }
.lp-search.shake { animation: shake .45s; }
.lp-hint { font-size: 13.5px; color: var(--text-3); margin: 12px 8px 0; }
.lp-hint.err { color: var(--red); }
.lp-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.lp-trust > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.lp-trust svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); stroke-width: 3; }

/* Demostración animada */
.lp-demo { position: relative; }
.demo-card { padding: 20px; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .8s var(--ease); }
.lp-demo:hover .demo-card { transform: perspective(1400px) rotateY(0) rotateX(0); }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-video { display: flex; gap: 12px; align-items: center; min-width: 0; }
.demo-video b { display: block; font-size: 14.5px; }
.demo-video small { color: var(--text-3); font-size: 12.5px; }
.demo-thumb { width: 74px; aspect-ratio: 16 / 9; border-radius: 9px; flex: none; position: relative; background: linear-gradient(135deg, #0D3572, #18AA7B); }
.demo-thumb i { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: translateX(2px); }
.demo-steps { list-style: none; margin: 18px 0 14px; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.demo-steps li { display: flex; align-items: center; gap: 7px; transition: color .3s; }
.dnode { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface); border: 1.5px solid var(--line-2); transition: background .4s, border-color .4s, color .4s, transform .5s var(--spring); }
.demo-steps li.active { color: var(--text); }
.demo-steps li.active .dnode { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 5px rgba(42, 78, 140, .18); }
.demo-steps li.done { color: var(--text); }
.demo-steps li.done .dnode { background: var(--green); border-color: var(--green); color: #fff; }
.dtrack { flex: 1; height: 3px; border-radius: 3px; background: var(--navy-soft); overflow: hidden; }
.dtrack i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1.2s var(--ease); }
.dtrack.fill i { width: 100%; }
.demo-feed { list-style: none; margin: 0; padding: 10px 12px; min-height: 150px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); color: var(--text-2); }
.demo-feed li { display: flex; gap: 10px; align-items: baseline; animation: slide-in .45s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-feed li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex: none; transform: translateY(-2px); }
.demo-feed li.q::before { background: var(--green); }
.demo-feed .q b { font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.demo-result { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.demo-result > * { min-height: 0; overflow: hidden; }
.demo-result.show { grid-template-rows: auto auto; opacity: 1; margin-top: 14px; }
.demo-headline { border-radius: 14px; padding: 12px 16px; background: linear-gradient(120deg, #022454, #0D3572); color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.demo-headline small { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #7FE0BD; }
.demo-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 10px; }
.demo-tile { border-radius: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); }
.demo-tile small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.demo-bar { display: flex; gap: 2px; height: 9px; border-radius: 5px; overflow: hidden; margin-top: 8px; background: var(--navy-soft); }
.demo-bar i { width: 0; background: var(--c); transition: width 1s var(--ease); }
.demo-result.show .demo-bar i { width: var(--w); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.demo-actions .a { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.a.buy { color: #11966B; background: rgba(24, 170, 123, .14); }
.a.hold { color: var(--hold); background: rgba(60, 100, 170, .14); }
.a.watch { color: var(--amber); background: rgba(224, 164, 59, .16); }
.demo-float {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: var(--drawer); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: float 5s ease-in-out infinite;
}
.demo-float svg { width: 18px; height: 18px; color: var(--green-2); }
.f1 { top: -18px; right: 18px; }
.f2 { bottom: -20px; left: -12px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* ---------- Cifras ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 26px 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--card-edge); outline: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-stats div { display: flex; flex-direction: column; gap: 2px; }
.lp-stats b { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.lp-stats b small { font-size: 18px; color: var(--text-3); }
.lp-stats span { color: var(--text-2); font-size: 14.5px; }

/* ---------- Secciones ---------- */
.lp-section { padding: 96px 0 0; }
.lp-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.lp-h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin: 10px 0 34px; max-width: 760px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-step { padding: 26px; position: relative; overflow: hidden; }
.lp-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-step-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); transition: transform .5s var(--spring); }
.lp-step:hover .lp-step-ic { transform: rotate(-8deg) scale(1.08); }
.lp-step-ic svg { width: 24px; height: 24px; stroke-width: 2; }
.lp-step-n { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 700; color: var(--line-2); letter-spacing: -.03em; }
.lp-step h3 { font-size: 20px; margin: 18px 0 8px; }
.lp-step p { color: var(--text-2); line-height: 1.6; }

/* Informe de muestra */
.lp-report { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-list li { display: flex; gap: 12px; color: var(--text-2); line-height: 1.55; animation: rise .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms); }
.lp-list li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311966B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.lp-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.lp-paper { position: relative; perspective: 1600px; }
.lp-paper img {
  display: block; width: 100%; height: auto; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 6px rgba(2, 36, 84, .08), 0 40px 80px -30px rgba(2, 36, 84, .45);
  transform: rotateY(-8deg) rotateX(4deg) rotate(1deg); transition: transform .8s var(--ease), opacity .3s;
}
.lp-paper:hover img { transform: none; }
.lp-paper img.swap { opacity: 0; }

/* Web o Windows */
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-plan { padding: 30px; display: flex; flex-direction: column; }
.lp-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-plan-pro { position: relative; outline: 2px solid rgba(24, 170, 123, .45); }
.lp-plan-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--field); padding: 5px 10px; border-radius: 999px; }
.lp-plan-pro .lp-plan-tag { color: var(--green-2); background: var(--green-soft); }
.lp-plan h3 { font-size: 26px; letter-spacing: -.02em; margin: 14px 0 18px; }
.lp-feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lp-feats li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; }
.lp-feats .dd-badge { min-width: 76px; }
.lp-dot { width: 76px; flex: none; display: grid; place-items: center; }
.lp-dot::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311966B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.lp-feats li.no { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.lp-feats li.no .lp-dot::before { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239199B0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-plan-cta { align-self: flex-start; text-decoration: none; }
.lp-plan-cta.off { filter: grayscale(.7); opacity: .7; pointer-events: none; }
.lp-dl-meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* Preguntas */
.lp-qs { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.lp-qs details { padding: 0; overflow: hidden; }
.lp-qs summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 17px; font-weight: 600; position: relative;
}
.lp-qs summary::-webkit-details-marker { display: none; }
.lp-qs summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--text-3); border-bottom: 2.5px solid var(--text-3); transform: rotate(45deg); transition: transform .35s var(--spring);
}
.lp-qs details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.lp-qs details p { padding: 0 24px 22px; color: var(--text-2); line-height: 1.65; animation: rise .4s var(--ease); }

/* Cierre y pie */
.lp-final {
  margin: 110px 0 0; padding: 60px 40px; border-radius: 30px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 0% 0%, rgba(24, 170, 123, .55), transparent 60%), linear-gradient(135deg, #022454, #0D3572 60%, #0B4A5A);
}
.lp-final h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.lp-final p { color: rgba(255, 255, 255, .78); margin: 10px 0 26px; font-size: 17px; }
.lp-final .cta { text-decoration: none; }
.lp-foot { max-width: 1240px; margin: 0 auto; padding: 40px 32px 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.lp-foot .brand-logo { height: 30px; }
.lp-foot .wordmark { font-size: 18px; color: var(--text); }
.lp-foot nav { display: flex; gap: 18px; }
.lp-foot a { text-decoration: none; }
.lp-foot a:hover { color: var(--green-2); }

@media (max-width: 960px) {
  main { padding: 0 18px; }
  .lp-hero, .lp-report, .lp-plans { grid-template-columns: 1fr; }
  .lp-hero { min-height: 0; gap: 40px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-card { transform: none; }
  .lp-open .cta-label { display: none; }
}
@media (max-width: 560px) {
  .lp-search { flex-direction: column; }
  .lp-search .cta { width: 100%; }
  .wordmark { display: none; }
  .lp-foot .wordmark { display: inline; }
  .lp-bar .lp-open { display: none; }
}
