/* BTraders · identidad: negro y dorado del logo oficial (Logo_black_gold) */
:root, :root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #151517; --surface2: #1c1c1f; --border: #2c2b29; --text: #ece7dc; --muted: #9a9387;
  --accent: #d7ac58; --accent-2: #f3d27a; --hover: #222125; --pos: #3fb950; --neg: #f85149; --link: #e2bb6c;
  --oro: linear-gradient(100deg, #c17f2b 0%, #f9e07f 45%, #c88b36 75%, #f5d77a 100%); --on-accent: #17130a;
}
:root[data-theme="light"] {
  --bg: #faf8f3; --surface: #ffffff; --surface2: #f3efe6; --border: #e1d9c8; --text: #1c1a16; --muted: #6b6457;
  --accent: #9a6b1c; --accent-2: #b8862f; --hover: #f1ebde; --pos: #1a7f37; --neg: #cf222e; --link: #8a5d12;
  --oro: linear-gradient(100deg, #b5741f 0%, #e9c45f 45%, #b9802c 75%, #e3bf5e 100%); --on-accent: #17130a;
}
/* Escala global al 80 % en computador y celular, como si el navegador tuviera el zoom al 80 % (pedido del usuario, 2026-10-13).
   CSS zoom también reduce vh/vw: las alturas y anchos de pantalla completa usan --pantalla y --ancho, que lo compensan.
   Los scripts que convierten coordenadas del mouse a px dividen por la escala (luz.js, inicio.js, rendimientos.js). */
html { zoom: .8; }
:root { --zoom: .8; }
:root { --pantalla: calc(100vh / var(--zoom)); --pantalla-d: calc(100dvh / var(--zoom)); --ancho: calc(100vw / var(--zoom)); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: var(--pantalla); display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
a { color: var(--link); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px;
       border: 0; background: var(--oro); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.danger { background: transparent; color: var(--neg); border: 1px solid var(--border); font-weight: 600; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
main { flex: 1; padding: 36px 0 56px; }
.narrow { max-width: 520px; }
h1 { font-size: 26px; margin-bottom: 6px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.lead { color: var(--muted); margin-bottom: 20px; }
form.f { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.fl { display: grid; align-content: start; gap: 5px; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border);
       background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.phone { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.err { color: var(--neg); font-size: 12px; font-weight: 400; }
.notice { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; }
.notice.ok { border-color: var(--pos); color: var(--pos); }
.notice.error { border-color: var(--neg); color: var(--neg); }
.notice.info { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.code { text-align: center; letter-spacing: 8px; font-size: 24px; }
.sec { padding: 16px 0; border-top: 1px solid var(--border); }
dl.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
dl.kv dt { color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: var(--tc); background: color-mix(in srgb, var(--tc) 15%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions form { display: inline; }
footer.legal { border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); }
footer.legal .wrap { padding: 28px 16px 22px; display: grid; gap: 16px; }
/* pie ejecutivo: tres columnas iguales separadas por líneas finas. Columna 1 = escudo + enlaces de la empresa;
   columnas 2 y 3 = servicios repartidos. Cada bloque va centrado en su columna y sus elementos alineados entre sí. */
footer.legal .wrap { padding: 40px 16px 44px; }
.pie-g { display: grid; grid-template-columns: 1fr 2fr; align-items: stretch; }
.pie-col { display: flex; flex-direction: column; align-items: center; }
.pie-marca { padding: 0 28px; justify-content: flex-start; gap: 22px; }
.pie-logo img { display: block; width: 123px; height: auto; }
.pie-dos { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.pie-servicios { border-left: 1px solid var(--border); }
.pie-tit { margin: 0 0 22px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.pie-tit::after { content: ""; display: block; width: 28px; height: 2px; margin: 9px auto 0; border-radius: 2px; background: var(--accent); }
.pie-cols { display: grid; grid-template-columns: 1fr 1fr; }
.pie-cols > .pie-col + .pie-col { border-left: 1px solid var(--border); }
.pie-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.legal a { color: var(--muted); text-decoration: none; transition: color .15s; } footer.legal a:hover { color: var(--accent); }
.pie-dos a, .pie-cols a { font-size: 13.5px; }
.pie-cols a { display: grid; grid-template-columns: 30px auto; align-items: baseline; }
.pie-cols .num { font-size: 12.5px; text-align: left; }
.pie-cols li.sub { margin: -3px 0 0 34px; padding-left: 12px; border-left: 1px solid var(--border); }
.pie-cols li.sub a { display: block; font-size: 13px; }
@media (max-width: 760px) {
  footer.legal .wrap { padding: 32px 16px 36px; }
  .pie-g { grid-template-columns: 1fr; gap: 30px; }
  .pie-servicios { border-left: 0; border-top: 1px solid var(--border); padding-top: 26px; }
  .pie-cols > .pie-col + .pie-col { border-left: 0; }
  .pie-cols ul { justify-items: start; } .pie-dos { column-gap: 26px; }
}
/* Aviso de cookies: ventana central obligatoria con fondo difuminado (solo se cierra con «Entendido») */
.cookies { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 10, 12, .46); backdrop-filter: blur(9px) saturate(.9); -webkit-backdrop-filter: blur(9px) saturate(.9); animation: ck-velo .4s ease both; }
.cookies[hidden] { display: none; }
html.con-cookies { overflow: hidden; }
.cookies-caja { position: relative; width: 100%; max-width: 440px; padding: 34px 32px 28px; border-radius: 22px; text-align: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: ck-caja .55s cubic-bezier(.22, .9, .24, 1) both; }
.cookies-caja::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, #d7ac58, transparent); }
.cookies-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.cookies-ico svg { width: 26px; height: 26px; }
.cookies-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cookies-caja h2 { margin: 0 0 10px; font-size: 23px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.cookies-caja p#cookies-d { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cookies-caja a { color: var(--accent); }
.cookies-ok { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; color: #f3ead6; background: #1c1a16; box-shadow: inset 0 0 0 1px rgba(215, 172, 88, .55); transition: box-shadow .2s, background .2s; }
:root[data-theme="dark"] .cookies-ok { background: #222125; box-shadow: inset 0 0 0 1px #d7ac58; }
.cookies-ok:hover { box-shadow: inset 0 0 0 1px #d7ac58, 0 10px 26px rgba(0, 0, 0, .25); }
.cookies-ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cookies-ok .punto { width: 7px; height: 7px; border-radius: 50%; background: #d7ac58; }
.cookies.saliendo { animation: ck-velo-sale .32s ease both; } .cookies.saliendo .cookies-caja { animation: ck-caja-sale .32s ease both; }
@keyframes ck-velo { from { opacity: 0; } to { opacity: 1; } }
@keyframes ck-velo-sale { to { opacity: 0; } }
@keyframes ck-caja { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ck-caja-sale { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cookies, .cookies-caja { animation: none !important; } }
/* documentos legales */
.migas { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ldoc { max-width: 820px; }
.ldoc h1 { font-size: 24px; line-height: 1.3; }
.lver { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; padding: 10px 0 14px;
        border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.lver-acc { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.lindice { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 14px 18px; margin: 0 0 22px; }
.lindice summary { cursor: pointer; list-style: none; } .lindice summary::-webkit-details-marker { display: none; }
.lindice summary h2 { display: inline; margin: 0; font-size: 15px; font-weight: 700; }
.lindice summary::after { content: " ▾"; color: var(--muted); } .lindice:not([open]) summary::after { content: " ▸"; }
.lindice nav { margin-top: 8px; }
.lindice ol { list-style: none; display: grid; gap: 3px; font-size: 14px; }
.lindice ol ol { margin: 3px 0 6px 22px; font-size: 13px; }
.lindice a { color: var(--text); text-decoration: none; }
.lindice a:hover { color: var(--accent); }
.lindice .num, .lcuerpo .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.lcuerpo { line-height: 1.7; }
.lcuerpo h2 { font-weight: 700; font-size: 18px; margin: 30px 0 10px; scroll-margin-top: 14px; }
.lcuerpo h3 { font-weight: 700; font-size: 15px; margin: 18px 0 6px; scroll-margin-top: 14px; }
.lcuerpo p { margin: 0 0 10px; }
.lcuerpo p.meta { color: var(--muted); font-size: 14px; }
.lcuerpo p.lit { padding-left: 22px; text-indent: -22px; }
.tabla { overflow-x: auto; margin: 6px 0 16px; }
.tabla table, .lhist table, .ltabla { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabla th, .tabla td, .lhist th, .lhist td, .ltabla th, .ltabla td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.tabla th, .lhist th, .ltabla th { background: var(--surface); }
.lhist { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--border); }
.lhist tr.actual td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lhist code { word-break: break-all; }
.limp { display: none; }
.arriba { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center;
          background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .row, .phone { grid-template-columns: 1fr; } dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }  }
/* páginas públicas */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; padding: 18px 0 30px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin-bottom: 12px; }
.hero h1 .dorado, .dorado { background: var(--oro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero img { width: 100%; max-width: 340px; height: auto; justify-self: center; filter: drop-shadow(0 18px 40px rgba(215,172,88,.18)); }
.page-h { padding: 6px 0 18px; } .page-h h1 { font-size: clamp(26px, 3.6vw, 36px); } .page-h p { color: var(--muted); font-size: 16px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.card h3 { font-size: 17px; margin-bottom: 6px; } .card p { color: var(--muted); font-size: 14px; }
.card.link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .precio { font-size: 22px; font-weight: 800; margin-top: 10px; } .card .precio small { font-size: 12px; color: var(--muted); font-weight: 600; }
.seccion { padding: 26px 0; border-top: 1px solid var(--border); } .seccion > h2 { font-size: 22px; margin: 0 0 14px; }
.prosa { max-width: 760px; line-height: 1.7; } .prosa p { margin: 0 0 12px; } .prosa ul, .prosa ol { margin: 0 0 14px 20px; }
.prosa li { margin-bottom: 6px; } .prosa h2 { font-size: 19px; margin: 22px 0 8px; } .prosa h3 { font-size: 16px; margin: 18px 0 6px; }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lado { position: sticky; top: 84px; }
.planes { width: 100%; border-collapse: collapse; font-size: 14px; }
.planes th, .planes td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.planes td.p { text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.planes th { color: var(--muted); font-size: 12px; font-weight: 600; } .planes .det { color: var(--muted); font-size: 12px; display: block; }
.iva { color: var(--muted); font-size: 12px; margin-top: 8px; }
.pronto { display: block; text-align: center; margin-top: 12px; padding: 10px; border-radius: 8px; border: 1px dashed var(--border);
          color: var(--muted); font-size: 13px; }
.rangos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rango { text-align: center; } .rango img { width: 120px; height: auto; margin: 4px auto 8px; display: block; }
.rango .sin-img { width: 96px; height: 96px; margin: 10px auto 12px; border-radius: 50%; display: grid; place-items: center;
                  border: 2px dashed var(--border); color: var(--muted); font-weight: 800; font-size: 22px; }
.rango .vip { border: 2px solid var(--accent); color: var(--accent); }
.rango .rol { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.no-hace { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.no-hace div { padding: 14px; border-radius: 12px; background: var(--surface2); font-size: 14px; }
.no-hace b { display: block; margin-bottom: 4px; }
.pasos { counter-reset: p; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pasos .card::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
                       background: var(--oro); color: var(--on-accent); font-weight: 800; margin-bottom: 10px; }
.aviso-r { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); font-size: 13px; color: var(--muted); }
.lista-inf { display: grid; gap: 10px; } .lista-inf a { text-decoration: none; color: inherit; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 12px; background: #000; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input[type=file] { height: auto; padding: 8px; }
@media (max-width: 900px) { .hero, .dos { grid-template-columns: 1fr; } .hero img { max-width: 220px; order: -1; } .lado { position: static; }
  .g3, .pasos { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2 { grid-template-columns: 1fr; } }
@media print {
  header.top, footer.legal, .cookies, .no-print { display: none !important; }
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --border: #999; --text: #000; --muted: #333; --accent: #000; --link: #000; }
  body { background: #fff; color: #000; font-size: 11pt; } main { padding: 0; } .wrap, .ldoc { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .lindice { break-after: page; border: 0; padding: 0; } .lindice summary::after { content: none; }
  .lcuerpo h2, .lcuerpo h3 { break-after: avoid; } .lcuerpo p, .tabla tr { break-inside: avoid; }
  .lhist { break-before: page; }
  .limp { display: block; margin-top: 18px; font-size: 9pt; color: #333; }
}


/* Luz que sigue al puntero en todas las páginas (static/js/luz.js) */
body { isolation: isolate; }
.luz-global { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(480px circle at var(--lx, 50%) var(--ly, 30%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%); }
.luz-global.on { opacity: 1; }
:root[data-theme="light"] .luz-global { background: radial-gradient(480px circle at var(--lx, 50%) var(--ly, 30%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%); }

/* Capas fijas a pantalla completa: con la escala global, en Safari/iPhone «inset: 0» solo cubre el 80 % de la ventana.
   Se dimensionan con --ancho / --pantalla, medidas en tema_head.html para cada navegador. */
.ix-fondo, .luz-global, .cookies, .nav-velo, .pnl-velo { inset: 0 auto auto 0 !important; width: var(--ancho) !important; height: var(--pantalla) !important; }


/* Información del servicio del Portal (contenido generado por el Portal) */
.portal-info .lead { color: var(--muted); } .portal-info .note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.portal-info table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.portal-info th, .portal-info td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.portal-info ul { margin: 0 0 12px 20px; }

/* Web pública e ingreso (no el panel): se selecciona el texto, no las imágenes; el arrastre y el clic derecho los frena js/imagenes.js */
:is(body[data-zona="publica"], body.au-body) :is(img, picture, svg, video, canvas) {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
