/* Mar Cripto Terminal — página de inicio, bienvenida guiada, perfil y ajustes responsive.
   Dirección: simple y calmada. Mucho aire, tipografía grande, un solo acento cian y el dorado solo para Pro y dinero. */
.lp-body { --lpw: 1120px; background: var(--bg); overflow-x: hidden; }
.lp-body main { display: block; }
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - var(--lpw)) / 2)); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lp-logo img { height: 28px; width: auto; display: block; }
:root[data-theme="light"] .logo-d, :root:not([data-theme="light"]) .lp-logo .logo-l { display: none; }
.lp-nav nav { display: flex; gap: 22px; margin-left: auto; }
.lp-nav nav a { color: var(--fg2); text-decoration: none; font-size: 13.5px; } .lp-nav nav a:hover { color: var(--fg); }
.lp-nav-r { display: flex; gap: 8px; }
.eyebrow { font: 600 12px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lp-hero { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center; padding: 72px 20px 56px; overflow: hidden; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 42%, color-mix(in srgb, var(--bg) 82%, transparent), transparent 70%); pointer-events: none; }
.lp-hero-in { position: relative; z-index: 1; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lp-hero h1 { font-size: clamp(38px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.lp-hero h1 span { background: linear-gradient(90deg, var(--accent), #7b61ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg2); max-width: 40em; }
.lp-cta { justify-content: center; gap: 12px; margin-top: 6px; }
.lp-big { padding: 13px 22px; font-size: 15px; border-radius: 999px; }
/* Logo interactivo: se inclina hacia el cursor y brilla. */
.lp-mark { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel2) 90%, #fff 4%), var(--panel)); border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(31, 208, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; overflow: hidden; }
.lp-mark img { width: 64px; height: 64px; image-rendering: pixelated; position: relative; z-index: 1; }
.lp-mark .glare { position: absolute; inset: 0; background: radial-gradient(120px 120px at var(--gx) var(--gy), rgba(31, 208, 255, .35), transparent 60%); }
.lp-mark.pop { animation: lpPop .5s ease; }
@keyframes lpPop { 40% { transform: perspective(600px) scale(1.08) rotateZ(-4deg); } 100% { transform: perspective(600px) scale(1); } }
.lp-sec { max-width: var(--lpw); margin: 0 auto; padding: 88px 20px; opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.lp-sec.in { opacity: 1; transform: none; }
.lp-head { max-width: 720px; margin: 0 auto 40px; text-align: center; display: grid; gap: 12px; }
.lp-head h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.lp-head .lede { color: var(--fg2); font-size: 17px; }
/* Ventana de vista previa */
.lp-window { border: 1px solid var(--line2); border-radius: 18px; background: var(--panel); box-shadow: 0 40px 120px rgba(0, 0, 0, .45), 0 0 0 1px rgba(31, 208, 255, .04); overflow: hidden; }
.lp-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.lp-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); } .lp-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.lp-win-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; padding: 26px; }
.lp-controls { display: grid; gap: 18px; align-content: start; }
.lp-range { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 13px; color: var(--fg2); } .lp-range b { color: var(--fg); font-variant-numeric: tabular-nums; }
.lp-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.lp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.lp-figs > div { background: var(--panel); padding: 14px 16px; display: grid; gap: 2px; }
.lp-figs span { font-size: 12px; color: var(--muted); } .lp-figs b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .lp-figs em { font-style: normal; font-size: 12px; color: var(--muted); }
.lp-why { margin-top: 12px; font-size: 13px; color: var(--fg2); min-height: 20px; }
.lp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-three article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel), transparent); display: grid; gap: 10px; align-content: start; }
.lp-three h3 { font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--fg); }
.lp-three p { color: var(--fg2); } .lp-n { font: 600 12px var(--f-mono); color: var(--accent); }
.lp-convo { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.msg { padding: 12px 16px; border-radius: 16px; max-width: 88%; line-height: 1.5; font-size: 14.5px; }
.msg.me { justify-self: end; background: var(--deep); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.typing { display: flex; gap: 4px; } .msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; }
.lp-plan { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; align-content: start; background: var(--panel); }
.lp-plan.pro { border-color: color-mix(in srgb, var(--amber) 55%, transparent); box-shadow: 0 20px 60px rgba(224, 154, 49, .08); }
.lp-plan h3 { font-size: 15px; color: var(--fg); display: flex; gap: 8px; align-items: center; letter-spacing: .04em; }
.lp-price { font: 700 44px var(--f-display); letter-spacing: -.03em; } .lp-price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.lp-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; } .lp-plan li { padding-left: 22px; position: relative; color: var(--fg2); }
.lp-plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.lp-plan button { justify-content: center; padding: 12px; border-radius: 999px; }
.lp-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.lp-book { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); align-items: start; }
.lp-book h3 { font-size: 17px; text-transform: none; letter-spacing: -.01em; color: var(--fg); margin-bottom: 6px; } .lp-book .row { margin-top: 14px; }
.lp-bprice { font: 700 20px var(--f-display); }
.lp-cover { aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; color: #fff; box-shadow: 8px 12px 30px rgba(0, 0, 0, .4), inset 4px 0 0 rgba(255, 255, 255, .12); }
.lp-cover span { font: 600 9px var(--f-display); letter-spacing: .18em; text-transform: uppercase; opacity: .8; } .lp-cover b { font: 700 15px/1.15 var(--f-display); position: relative; z-index: 1; }
.lp-cover i { position: absolute; right: -30%; bottom: -20%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 60%); }
.lp-cover.c0 { background: linear-gradient(160deg, #075296, #0b1b30 70%); } .lp-cover.c1 { background: linear-gradient(160deg, #3a1f78, #0b1b30 70%); } .lp-cover.c2 { background: linear-gradient(160deg, #0e6f8f, #0b1b30 70%); }
.lp-install, .lp-final { text-align: center; display: grid; justify-items: center; gap: 16px; }
.lp-final h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.025em; }
.lp-legal { max-width: 640px; margin-top: 14px; }
.sf-legal { display: flex; gap: 14px; } .sf-legal a { color: var(--muted); text-decoration: none; }
/* Asistente */
.lp-chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; border-radius: 999px; padding: 12px 18px; background: var(--panel2); border-color: var(--line2); box-shadow: var(--shadow); }
.lp-chat-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--goodbg); }
.lp-chat { position: fixed; right: 18px; bottom: 18px; z-index: 41; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.lp-chat header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lp-chat header .x { background: none; border: 0; font-size: 22px; padding: 0 4px; color: var(--muted); }
.lp-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; } .lp-msgs .msg { font-size: 14px; }
.lp-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .lp-sugg button { font-size: 12px; padding: 6px 10px; border-radius: 999px; font-weight: 500; background: transparent; }
.lp-chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); } .lp-chat form input { flex: 1; min-width: 0; }
.auth-f { display: grid; gap: 14px; } .auth-f .btn-pri { justify-content: center; padding: 12px; } .auth-alt { text-align: center; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg2); } .check input { margin-top: 3px; }
/* Bienvenida guiada */
.ob { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: obIn .35s ease; }
@keyframes obIn { from { opacity: 0; } }
.ob-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 24px; padding: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); display: grid; gap: 20px; }
.ob-body { display: grid; gap: 16px; } .ob-body h2 { font-size: 30px; letter-spacing: -.02em; } .ob-body .lede { color: var(--fg2); }
.ob-dots { display: flex; gap: 6px; } .ob-dots i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); } .ob-dots i.on { background: var(--accent); }
.ob-card footer { display: flex; justify-content: space-between; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; } .ob-chips button { border-radius: 999px; min-width: 64px; justify-content: center; }
.ob-chips button[aria-pressed="true"], .seg.wide button[aria-pressed="true"] { background: var(--deep); border-color: var(--accent); color: #fff; }
.seg.wide { display: flex; width: 100%; } .seg.wide button { flex: 1; justify-content: center; }
.ob-go { display: grid; gap: 10px; } .ob-go button { display: grid; gap: 4px; text-align: left; white-space: normal; padding: 16px; border-radius: 14px; } .ob-go span { font-weight: 400; color: var(--fg2); font-size: 13px; } .ob-go button:hover { border-color: var(--accent); }
.av-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.av-opt { padding: 3px; border-radius: 50%; background: transparent; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; width: 54px; height: 54px; }
.av-opt.on { border-color: var(--accent); } .av-up { border: 2px dashed var(--line2); color: var(--muted); } .av-up.on { border-style: solid; }
.av-opt .avatar { border-radius: 50%; }
details.report { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; } details.report summary { cursor: pointer; color: var(--fg2); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 14px; color: var(--fg2); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.adm-books { display: grid; gap: 12px; margin: 12px 0; } textarea { width: 100%; }
table.cohort td { min-width: 52px; }
/* Responsive: tablet */
@media (max-width: 1024px) {
  .lp-win-in { grid-template-columns: minmax(0, 1fr); }
  .lp-three { grid-template-columns: minmax(0, 1fr); }
}
/* Responsive: teléfono */
@media (max-width: 700px) {
  .lp-nav { gap: 10px; } .lp-nav nav { display: none; } .lp-nav-r { margin-left: auto; } .lp-logo img { height: 24px; }
  .lp-hero { min-height: auto; padding: 56px 16px 40px; } .lp-cta { flex-direction: column; width: 100%; } .lp-cta > * { width: 100%; justify-content: center; }
  .lp-sec { padding: 56px 16px; } .lp-head { margin-bottom: 28px; }
  .lp-win-in { padding: 16px; gap: 18px; } .lp-figs b { font-size: 19px; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-book { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .lp-chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .lp-chat-fab { right: 12px; bottom: 12px; }
  .ob-card { padding: 22px; border-radius: 20px; } .ob-body h2 { font-size: 24px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head .actions { width: 100%; }
  .modal { width: 100% !important; max-width: 100% !important; max-height: 92vh; border-radius: 18px 18px 0 0 !important; align-self: end; }
  .modal-bg { align-items: flex-end !important; padding: 0 !important; }
  .tickers { mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .fields { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .site-foot { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) { .lp-mark { transition: transform .4s ease; } }
@media (prefers-reduced-motion: reduce) { .lp-sec { opacity: 1; transform: none; } }
/* En teléfono el asistente queda como un botón redondo que no tapa el contenido. */
@media (max-width: 700px) {
  .lp-chat-fab { width: 52px; height: 52px; padding: 0; justify-content: center; gap: 0; border-radius: 50%; }
  .lp-chat-fab .fab-t { display: none; }
  .lp-chat-fab .dot { display: none; }
  .lp-chat-fab::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .lp-mark { width: 80px; height: 80px; border-radius: 22px; } .lp-mark img { width: 54px; height: 54px; }
}
