/* SOLARIS · Páginas legales (Términos y condiciones, Política de privacidad, Política de cookies) */
:root {
  --space: #02040a; --line: rgba(160, 190, 235, .14); --line-2: rgba(160, 190, 235, .28);
  --text: #e7ebf3; --text-2: #d6dce6; --text-3: #c3cad8; --muted: #94a0b6; --dim: #6f7b92;
  --sun: #f2c879; --sun-dim: rgba(242, 200, 121, .14); --ice: #8fc3ff; --warn: #ffcf8a;
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--space); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word;
  background-image: radial-gradient(90% 50% at 50% 0%, rgba(242, 200, 121, .07), transparent 60%), radial-gradient(70% 45% at 100% 100%, rgba(143, 195, 255, .05), transparent 70%); background-attachment: fixed; }
a { color: var(--ice); text-underline-offset: 3px; text-decoration-color: rgba(143, 195, 255, .45); }
a:hover { color: var(--sun); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: .86em; color: var(--text-2); background: rgba(160, 190, 235, .08); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--sun); color: #10131a; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
/* cabecera */
.lg-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(2, 4, 10, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lg-brand { display: inline-flex; align-items: center; }
.lg-brand img { height: 26px; width: auto; display: block; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 15px; background: rgba(10, 15, 27, .6); }
.lg-back:hover { color: var(--sun); border-color: rgba(242, 200, 121, .5); }
.lg-back svg { flex: none; }
/* estructura */
.lg-wrap { max-width: 1120px; margin: 0 auto; padding: 28px max(18px, env(safe-area-inset-right, 0px)) 40px max(18px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.lg-hero { grid-column: 1 / -1; }
.lg-kicker { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.lg-hero h1 { margin: 6px 0 10px; font-size: clamp(30px, 4.6vw, 44px); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.lg-meta li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 15, 27, .5); }
.lg-meta b { color: var(--text-2); font-weight: 500; }
.lg-draft { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 207, 138, .4); background: rgba(255, 207, 138, .07); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.lg-draft strong { color: var(--warn); font-weight: 500; }
.lg-summary { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 15, 27, .62); }
.lg-summary h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; color: var(--ice); }
.lg-summary ul { margin: 0; padding-left: 20px; color: var(--text-3); font-size: 15.5px; }
.lg-summary li { margin: 3px 0; }
/* índice */
.lg-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 15, 27, .62); }
.lg-toc summary { list-style: none; cursor: pointer; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--text); display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 10px; transition: transform .2s; }
.lg-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lg-toc ol { margin: 0; padding: 0 10px 12px 10px; list-style: none; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text-3); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.lg-toc a::before { content: counter(toc) '.'; flex: none; min-width: 1.6em; color: var(--dim); font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.lg-toc a:hover, .lg-toc a[aria-current="true"] { color: var(--sun); background: var(--sun-dim); }
/* documento */
.lg-doc { min-width: 0; }
.lg-doc > section { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.lg-doc > section:first-child { padding-top: 0; }
.lg-doc > section:last-child { border-bottom: 0; }
.lg-doc { counter-reset: sec; }
.lg-doc > section > h2 { counter-increment: sec; position: relative; margin: 0 0 12px; padding-left: 18px; font-size: 23px; font-weight: 400; line-height: 1.3; }
.lg-doc > section > h2::before { content: ''; position: absolute; left: 0; top: .3em; width: 4px; height: .95em; border-radius: 2px; background: var(--sun); }
.lg-doc > section > h2 .n { color: var(--muted); font-family: var(--mono); font-size: .7em; margin-right: 8px; }
.lg-doc h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 500; color: var(--ice); }
.lg-doc p, .lg-doc li { color: var(--text-3); }
.lg-doc p { margin: 0 0 12px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 14px; padding-left: 22px; }
.lg-doc li { margin: 4px 0; }
.lg-doc b, .lg-doc strong { color: var(--text); font-weight: 500; }
.lg-note { padding: 12px 16px; border-left: 3px solid var(--sun); background: rgba(242, 200, 121, .06); border-radius: 0 12px 12px 0; color: var(--text-2) !important; }
.lg-pending { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: .86em; color: #10131a; background: var(--warn); font-weight: 500; }
.lg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(242, 200, 121, .5); background: var(--sun-dim); color: var(--sun); font-size: 15.5px; }
.lg-btn:hover { background: rgba(242, 200, 121, .24); }
dl.lg-facts { display: grid; grid-template-columns: minmax(150px, 32%) minmax(0, 1fr); gap: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
dl.lg-facts dt, dl.lg-facts dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
dl.lg-facts dt { color: var(--muted); background: rgba(10, 15, 27, .5); }
dl.lg-facts dd { color: var(--text-2); }
dl.lg-facts dt:nth-last-of-type(1), dl.lg-facts dd:last-of-type { border-bottom: 0; }
/* tablas: en pantallas pequeñas cada fila se convierte en una tarjeta (sin desplazamiento horizontal) */
.lg-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.lg-table caption { text-align: left; padding: 0 0 8px; color: var(--muted); font-size: 14px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lg-table thead th { color: var(--muted); font-weight: 500; font-size: 13.5px; background: rgba(10, 15, 27, .55); }
.lg-table td { color: var(--text-3); }
.lg-table td:first-child { color: var(--text); }
/* pie */
.lg-foot { max-width: 1120px; margin: 0 auto; padding: 22px max(18px, env(safe-area-inset-right, 0px)) max(30px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14.5px; color: var(--muted); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lg-foot nav a, .lg-foot .lg-link { color: var(--text-3); padding: 6px 0; }
.lg-foot a[aria-current="page"] { color: var(--sun); text-decoration: none; }
.lg-link { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: rgba(160, 190, 235, .4); text-underline-offset: 3px; }
.lg-link:hover { color: var(--sun); }
.lg-foot p { margin: 0; }
.lg-top-btn { justify-self: start; }
@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 20px; }
  .lg-toc { position: static; max-height: none; }
  html { scroll-padding-top: 74px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lg-brand img { height: 22px; }
  .lg-back span.lg-long { display: none; }
  .lg-doc > section > h2 { font-size: 21px; }
  dl.lg-facts { grid-template-columns: minmax(0, 1fr); }
  dl.lg-facts dt { border-bottom: 0; padding-bottom: 2px; }
  dl.lg-facts dd { padding-top: 2px; }
  .lg-table thead { display: none; }   /* cada celda muestra su encabezado con data-label */
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(10, 15, 27, .5); }
  .lg-table td { border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .lg-table td:last-child { border-bottom: 0; }
  .lg-table td::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .lg-top, .lg-toc, .lg-foot nav, .skip, .lg-btn { display: none !important; }
  .lg-wrap { display: block; }
  .lg-doc p, .lg-doc li, .lg-doc b, .lg-hero h1, .lg-doc h2, .lg-doc h3, dl.lg-facts dd, .lg-table td { color: #000 !important; }
  a { color: #000; }
}
