/* Páginas legales — Asis Consultores
   HTML estático (sin JavaScript) para que cualquier robot, incluido el de Meta,
   lea el contenido completo. Estética alineada con el sitio, priorizando lectura. */

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

:root {
  --bg: #020617;
  --panel: #070d1f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #c9cdd8;
  --muted: #8a91a6;
  --head: #f5f5f7;
  --accent: #2997ff;
  --accent-2: #22d3ee;
}

html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(41, 151, 255, 0.10), transparent 60%), var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Cabecera ── */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--head); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(41, 151, 255, 0.4)); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.brand small { margin-top: 4px; font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.legal-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.85rem; }
.legal-nav a { color: var(--muted); }
.legal-nav a:hover { color: var(--head); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--head); font-weight: 600; }

/* ── Documento ── */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.15rem, 4vw, 1.5rem) 4rem; }

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em;
  font-weight: 800; color: var(--head);
}
.updated { margin-top: 0.75rem; font-size: 0.88rem; color: var(--muted); }
.lead { margin-top: 1.5rem; font-size: 1.08rem; color: #d6d9e2; }

.toc {
  margin: 2.25rem 0 0.5rem; padding: 1.25rem 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.toc p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { list-style: none; columns: 2; column-gap: 1.5rem; }
.toc li { break-inside: avoid; font-size: 0.92rem; padding: 0.18rem 0; }
.toc a { color: #b8c2dc; }

.doc section { margin-top: 2.6rem; scroll-margin-top: 90px; }
.doc h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.42rem); line-height: 1.3; letter-spacing: -0.02em;
  font-weight: 700; color: var(--head); margin-bottom: 0.8rem;
}
.doc h3 { font-size: 1.02rem; font-weight: 700; color: #e4e7ee; margin: 1.3rem 0 0.4rem; }
.doc p + p { margin-top: 0.85rem; }
.doc ul, .doc ol.steps { margin: 0.75rem 0 0 1.2rem; }
.doc li { margin-top: 0.4rem; }
.doc li::marker { color: var(--accent); }
.doc strong { color: #e8eaf0; font-weight: 600; }

/* Tabla de datos */
.table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
th { background: var(--panel); color: var(--head); font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: none; }

/* Recuadros */
.note, .contact-card {
  margin-top: 1.25rem; padding: 1.1rem 1.3rem; border-radius: 14px;
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.07), rgba(41, 151, 255, 0.03));
  border: 1px solid rgba(41, 151, 255, 0.22);
}
.note strong { color: var(--head); }
.contact-card p + p { margin-top: 0.35rem; }

/* Pasos (eliminación de datos) */
.option {
  margin-top: 1.1rem; padding: 1.25rem 1.4rem; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.option h3 { margin-top: 0; color: var(--head); }
.btn {
  display: inline-block; margin-top: 0.9rem; padding: 0.6rem 1.15rem; border-radius: 9999px;
  background: #0071e3; color: #fff; font-weight: 600; font-size: 0.92rem;
}
.btn:hover { background: #2997ff; text-decoration: none; }
.btn.wa { background: #1f9d55; }
.btn.wa:hover { background: #25b864; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06); padding: 0.1rem 0.4rem; border-radius: 6px; color: #e4e7ee;
}

/* ── Pie ── */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  font-size: 0.85rem; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--head); text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .toc ol { columns: 1; }
}

@media print {
  .top, .foot, .toc { display: none; }
  body { background: #fff; color: #111; }
  .doc h1, .doc h2, .doc h3, .doc strong { color: #000; }
}
