:root {
  --bg: #070b22;
  --text: #f4f6fb;
  --muted: #7c85a6;
  --faint: #4a5275;
  --line: #161d3d;
  --gold: #f5b83d;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #0e1638 0%, var(--bg) 70%) fixed;
  background-color: var(--bg);
  color: var(--text);
  /* Fuentes del sistema: sin peticiones a terceros */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Portada */
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  animation: in 1.2s ease both;
}
.logo { width: clamp(96px, 18vw, 150px); height: auto; }
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; letter-spacing: -0.02em; }

.discreet {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .3s ease;
  animation: in 1.2s .6s ease both;
}
.discreet:hover { color: var(--gold); }

/* Principios */
.doc {
  max-width: 980px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: in 1s ease both;
}
.doc__head { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.doc__head a { display: flex; opacity: .9; transition: opacity .2s; }
.doc__head a:hover { opacity: 1; }
.doc__title { font-size: clamp(28px, 4vw, 36px); line-height: 1; }

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}
.principles li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.num {
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding-top: 3px;
  min-width: 22px;
}
.principles h2 { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.principles p { color: var(--muted); font-size: 15px; line-height: 1.55; }

@media (max-width: 760px) {
  .doc { justify-content: flex-start; padding: 40px 24px 64px; }
  .principles { grid-template-columns: 1fr; }
  .principles li:last-child { border-bottom: 1px solid var(--line); }
}

@keyframes in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.discreet { animation-name: in-fixed; }
@keyframes in-fixed {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Portada: logo enlazado */
.logo-link { display: flex; border-radius: 50%; transition: transform .3s ease; }
.logo-link:hover { transform: scale(1.03); }
.logo-link:focus-visible, .btn:focus-visible, .app:focus-visible, .doc__head a:focus-visible {
  outline: 1px solid var(--gold); outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.doc__back { transition: color .2s; }
.doc__back:hover { color: var(--gold); }

/* Selector de idioma */
.lang {
  position: fixed; top: 20px; right: 24px; z-index: 20;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(7, 11, 34, .6); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px #1b2346;
}
.lang a {
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .14em; color: var(--muted); transition: color .2s, background .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: #1b2744; color: var(--text); }
.lang a:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
@media (max-width: 560px) { .lang { top: 12px; right: 12px; } }
