/* ============================================================
   Servicios MAU — páginas legales (HTML estático, sin JS requerido)
   Mismos tokens que landing/src/index.css. Tema por
   prefers-color-scheme; data-theme (preferencia guardada en la
   landing) lo sobrescribe si está disponible.
   ============================================================ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg: #0B1220;
  --bg-2: #131C2E;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --line: rgba(148, 163, 184, 0.2);
  --accent: #E05661;
  --accent-deep: #C02A34;
  --header-bg: rgba(11, 18, 32, 0.92);
  --note-bg: rgba(224, 86, 97, 0.08);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #EEF1F3;
    --bg-2: #FFFFFF;
    --text: #1E293B;
    --muted: #5B6B80;
    --line: rgba(30, 41, 59, 0.14);
    --accent: #C02A34;
    --accent-deep: #C02A34;
    --header-bg: rgba(255, 255, 255, 0.94);
    --note-bg: rgba(192, 42, 52, 0.06);
    color-scheme: light;
  }
}

:root[data-theme='light'] {
  --bg: #EEF1F3;
  --bg-2: #FFFFFF;
  --text: #1E293B;
  --muted: #5B6B80;
  --line: rgba(30, 41, 59, 0.14);
  --accent: #C02A34;
  --accent-deep: #C02A34;
  --header-bg: rgba(255, 255, 255, 0.94);
  --note-bg: rgba(192, 42, 52, 0.06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--bg-2); color: var(--text);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 72px; width: auto; display: block;
  /* mismo resplandor blanco que el logo de la landing (.nav-brand img) */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55))
          drop-shadow(0 0 26px rgba(255, 255, 255, 0.3));
}
.back {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; white-space: nowrap;
}
.back:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Document ---------- */
main { padding: 56px 0 72px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }

h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 300; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 14px;
}
.updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

.lead { font-size: 17px; color: var(--text); opacity: 0.92; }

h2 {
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  margin: 48px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 8px;
}
.toc p { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; font-size: 14.5px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--accent-deep);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
th { background: var(--bg-2); font-weight: 600; }
td:first-child { font-weight: 600; width: 32%; }

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 18px;
}
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.foot-contact, .foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
.foot-contact li, .foot-legal li { margin: 0; }
.foot-legal a[aria-current='page'] { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 60px; }
  .back { padding: 8px 14px; letter-spacing: 0.1em; }
  main { padding: 36px 0 56px; }
  .toc ol { columns: 1; }
  td:first-child { width: 38%; }
}

@media print {
  .site-header, .skip, .back, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
