:root {
  --night: #14092E;
  --deep: #241052;
  --brand: #6F46DA;
  --brand-ink: #5530C2;
  --lilac: #F4EFFF;
  --lilac-line: #DED2FA;
  --coral: #FF4F8B;
  --alert-ink: #A3002B;
  --ink: #1C1530;
  --text: #4A4458;
  --bg: #F7F4FD;
  --card: #FFFFFF;
  --line: #E7E1F5;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.lg-wrap { width: min(100% - 40px, 860px); margin-inline: auto; }

.lg-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 26px 0 120px;
  background:
    radial-gradient(45% 70% at 12% 10%, rgba(111, 70, 218, .6), transparent 70%),
    radial-gradient(40% 70% at 95% 100%, rgba(255, 51, 68, .25), transparent 70%),
    linear-gradient(115deg, var(--night) 0%, var(--deep) 50%, #120709 100%);
}
.lg-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
}
.lg-hero .lg-wrap { position: relative; }
.lg-logo { display: inline-block; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .01em; text-decoration: none; margin-bottom: 56px; }
.lg-logo:hover { text-decoration: underline; }
.lg-hero h1 { margin: 0; color: #fff; font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; }

.lg-main { margin-top: -84px; padding-bottom: 72px; position: relative; }
.lg-card { background: var(--card); border-radius: var(--radius); padding: 44px 52px 34px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 9, 46, .12); }

.updated { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand-ink); background: var(--lilac); border: 1px solid var(--lilac-line); padding: 4px 12px; border-radius: 999px; margin: 0 0 28px; }
p { margin: 0 0 14px; }
h2 { position: relative; margin: 44px 0 14px; padding-left: 16px; color: var(--ink); font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--coral)); }
h3 { margin: 26px 0 8px; color: var(--ink); font-size: 17px; font-weight: 700; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--brand); }
strong { color: var(--ink); font-weight: 700; }

.tablewrap { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 700; background: var(--lilac); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #FCFAFF; }

.box { border: 1px solid var(--lilac-line); background: var(--lilac); border-radius: 18px; padding: 18px 20px; margin: 6px 0 18px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.alert { border-color: #F7C4D4; background: #FFF4F7; }
.alert strong { color: var(--alert-ink); }
.pendiente { background: #FFE58A; color: #6B4B00; font-weight: 800; padding: 1px 7px; border-radius: 5px; }

footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--text); }

@media (max-width: 640px) {
  .lg-hero { padding-bottom: 108px; }
  .lg-logo { margin-bottom: 40px; }
  .lg-card { padding: 30px 22px 26px; border-radius: 20px; }
  .lg-wrap { width: min(100% - 24px, 860px); }
  h2 { font-size: 20px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-color-scheme: dark) {
  :root { --ink: #FFFFFF; --text: #CFC7E0; --bg: #100B1C; --card: #1B1430; --line: #322849; --brand-ink: #B9A2FF; --lilac: #251B42; --lilac-line: #3A2D5C; --alert-ink: #FF9DB8; }
  .lg-card { box-shadow: none; }
  tbody tr:nth-child(even) td { background: #1F1736; }
  .alert { border-color: #5A2238; background: #2A1324; }
}
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .lg-hero { background: none; color: #000; padding: 0 0 12px; }
  .lg-hero::before { display: none; }
  .lg-logo, .lg-hero h1 { color: #000; }
  .lg-logo { margin-bottom: 8px; }
  .lg-main { margin-top: 0; padding-bottom: 0; }
  .lg-card { border: 0; box-shadow: none; padding: 0; }
  a { color: #000; }
}
