:root {
  --bg: #020617;
  --texto: #f8fafc;
  --apagado: #94a3b8;
  --primary: #38bdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 50% -8%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(50rem 30rem at 100% 100%, rgba(99,102,241,0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.pantalla-portada {
  position: relative; z-index: 1;
  flex: 1;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.portada-logo {
  width: min(94vw, 820px);
  height: min(78vh, 638px);
  border: 0;
  pointer-events: none;
  user-select: none;
}
.pie {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: center;
  padding: 1rem 1rem 1.5rem;
  color: var(--apagado);
  font-size: .8rem;
}
.pie-links { display: flex; gap: 1.25rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Páginas de texto (privacidad) */
.documento {
  position: relative; z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  line-height: 1.65;
}
.documento h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
.documento h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; color: var(--primary); }
.documento p, .documento li { color: #cbd5e1; }
.documento .volver { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; }
.documento table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .75rem 0; }
.documento th, .documento td { border: 1px solid rgba(148,163,184,.25); padding: .5rem .6rem; text-align: left; vertical-align: top; color: #cbd5e1; }
.documento th { color: var(--texto); background: rgba(56,189,248,.08); }
.documento h3 { font-size: 1rem; margin: 1.25rem 0 .35rem; color: var(--texto); }
.documento small { color: var(--apagado); }
.documento .indice { columns: 2; font-size: .9rem; }
@media (max-width: 640px) { .documento .indice { columns: 1; } }

/* Modal de la política (portada) */
.modal-politica {
  width: min(880px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid rgba(56,189,248,.26);
  border-radius: 14px;
  background: #0b1424;
  color: var(--texto);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  overflow: hidden;
}
.modal-politica[open] { display: flex; flex-direction: column; }
.modal-politica::backdrop { background: rgba(2,6,23,.72); backdrop-filter: blur(3px); }
.modal-politica-cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem .85rem 1.25rem;
  border-bottom: 1px solid rgba(148,163,184,.14);
  font-weight: 700;
}
.modal-politica-cerrar {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(148,163,184,.25); border-radius: 10px;
  background: transparent; color: var(--apagado);
  font-size: 1rem; cursor: pointer;
}
.modal-politica-cerrar:hover { color: var(--primary); border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.12); }
.modal-politica-cuerpo.documento {
  max-width: none; margin: 0;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-politica-cuerpo.documento h1 { font-size: 1.5rem; }
@media (max-width: 640px) {
  .modal-politica { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-politica-cuerpo.documento { padding: 1rem 1rem 2rem; }
}
