:root {
  --fondo: #081324;
  --texto: #f1f6ff;
  --suave: #c3d2e7;
  --apagado: #91a7c2;
  --acento: #78b7ff;
  --borde: rgba(120, 183, 255, 0.34);
  --linea: rgba(195, 214, 239, 0.2);
  --fuente: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  background: var(--fondo);
  color: var(--texto);
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1;
  font-synthesis: none;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

.saltar {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--acento);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-200%);
}

.saltar:focus { transform: translateY(0); }

/* ---------- Fondo ---------- */
#fondo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  image-rendering: pixelated;
  object-fit: cover;
  object-position: center bottom;
}

#brasas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#brasas span {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  background: #a8d3ff;
  box-shadow: 0 0 8px 2px rgba(101, 171, 255, 0.8);
  opacity: 0;
  animation: subir linear infinite;
}

@keyframes subir {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(24px, -75vh); opacity: 0; }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(16px + env(safe-area-inset-top, 0)) clamp(16px, 5vw, 72px) 16px;
  background: linear-gradient(rgba(4, 8, 16, 0.88), rgba(4, 8, 16, 0));
}

.logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.nav nav a {
  color: var(--suave);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav nav a:hover { color: var(--texto); }

.nav nav a[aria-current="true"] {
  color: var(--texto);
  border-bottom-color: var(--acento);
}

/* ---------- Portada ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px clamp(16px, 8vw, 110px) clamp(56px, 12vh, 120px);
}

.hero h1 {
  font-size: clamp(4.5rem, 20vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hero p {
  margin-top: 20px;
  max-width: 34ch;
  color: var(--suave);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.boton {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--acento);
  color: #081324;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--acento);
  transition: transform 0.15s ease;
}

.boton:hover { transform: translateY(-2px); }

.boton.secundario {
  background: rgba(7, 16, 28, 0.6);
  color: var(--texto);
  border-color: var(--borde);
}

/* ---------- Tarjeta ---------- */
.tarjeta {
  display: grid;
  grid-template-columns: 300px 1fr;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--borde);
  border-radius: 24px;
  background: rgba(7, 16, 28, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tarjeta { background: rgba(7, 16, 28, 0.97); }
}

.lateral {
  padding: 32px;
  border-right: 1px solid var(--borde);
}

.avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  overflow: hidden;
  background: #0f2a3d;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lateral-nombre {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lateral-rol {
  color: var(--suave);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.lateral dt {
  color: var(--apagado);
  font-size: 0.8rem;
  margin-top: 16px;
}

.lateral dd {
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.lateral dd a {
  text-decoration-color: var(--acento);
  text-underline-offset: 3px;
}

/* ---------- Contenido ---------- */
.contenido {
  padding: 40px clamp(20px, 4vw, 48px);
  min-width: 0;
}

.contenido section {
  scroll-margin-top: 90px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--linea);
}

.contenido section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contenido h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.destacado {
  font-size: 1.2rem;
  color: var(--suave);
  max-width: 62ch;
}

.suave {
  margin-top: 16px;
  color: var(--apagado);
  max-width: 62ch;
}

/* Lo que hago */
.rejilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.rejilla h3,
.fila-datos h3 {
  font-size: 1rem;
  font-weight: 800;
}

.rejilla h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--acento);
  margin-right: 10px;
}

.sub { color: var(--suave); margin-top: 8px; }
.det { color: var(--apagado); font-size: 0.9rem; margin-top: 6px; }

/* Proyectos */
.proyectos {
  display: grid;
  gap: 16px;
}

.proyecto {
  padding: 20px 22px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease;
}

.proyecto:hover { border-color: var(--borde); }

.proyecto h3 { font-size: 1.1rem; font-weight: 800; }

.proyecto p {
  color: var(--suave);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 68ch;
}

.etiquetas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.etiquetas li {
  padding: 3px 12px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--texto);
}

.etiquetas.grande li { font-size: 0.9rem; padding: 5px 14px; }

.enlace {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Habilidades y contacto */
.fila-datos {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 32px;
}

.fila-datos.separada { margin-top: 28px; }

.meta { color: var(--apagado); font-size: 0.9rem; }

.fila-datos ul:not(.etiquetas) { list-style: none; }

.fila-datos ul:not(.etiquetas) li {
  padding: 12px 0;
  border-top: 1px solid var(--linea);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  color: var(--suave);
}

.fila-datos ul:not(.etiquetas) li:first-child { border-top: 0; padding-top: 0; }

.fila-datos li strong { color: var(--texto); font-weight: 600; }
.fila-datos li span { font-size: 0.9rem; color: var(--apagado); }

.enlaces a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.copiar {
  font: inherit;
  font-size: 0.8rem;
  color: var(--suave);
  background: transparent;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
}

.copiar:hover { color: var(--texto); border-color: var(--acento); }

.estado {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--suave);
  font-size: 0.9rem;
}

/* ---------- Pie ---------- */
.pie {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--apagado);
  font-size: 0.85rem;
}

.pie a { text-decoration: none; color: var(--suave); }
.pie a:hover { color: var(--texto); }

/* ---------- Aviso bajo el pie ---------- */
.pie .aviso { flex-basis: 100%; }

/* ---------- Páginas simples (privacidad y error 404) ---------- */
body.simple {
  background: linear-gradient(180deg, #040810 0%, #0b2540 45%, #14506a 100%) fixed;
  min-height: 100vh;
}

.simple .tarjeta { grid-template-columns: 1fr; margin-top: 110px; }

.simple h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.simple .contenido h2 { margin: 32px 0 10px; font-size: 1.25rem; }

.simple .contenido p,
.simple .contenido li { max-width: 70ch; color: var(--suave); margin-top: 8px; }

.simple .contenido ul { padding-left: 20px; }

.simple .contenido a {
  color: var(--texto);
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.simple .acciones { margin-top: 24px; }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .tarjeta { grid-template-columns: 1fr; }
  .lateral { border-right: 0; border-bottom: 1px solid var(--borde); }
  .rejilla { grid-template-columns: 1fr; }
  .fila-datos { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav nav { gap: 6px 14px; }
  .nav nav a { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .proyecto { transition: none; }
}

html[data-theme="light"] {
  color-scheme: light;
  --fondo: #f4f7fc;
  --texto: #12213a;
  --suave: #314560;
  --apagado: #526984;
  --acento: #1768c4;
  --borde: rgba(23, 104, 196, 0.28);
  --linea: rgba(24, 51, 84, 0.16);
}

html[data-theme="light"] .staff-page {
  background:
    radial-gradient(ellipse at 78% 26%, rgba(133, 190, 255, 0.3), transparent 35%),
    linear-gradient(145deg, #f4f8ff, #e8f1fc 58%, #f7f5ff);
}

html[data-theme="light"] .staff-page #fondo { opacity: 0.12; filter: saturate(0.45) brightness(1.35); }

html[data-theme="light"] .staff-page .nav {
  background: linear-gradient(rgba(245, 249, 255, 0.94), rgba(245, 249, 255, 0.55));
  border-bottom: 1px solid rgba(24, 51, 84, 0.12);
}

html[data-theme="light"] .staff-page .tarjeta {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(30, 67, 115, 0.12);
}

html[data-theme="light"] .staff-page .proyecto { background: rgba(255, 255, 255, 0.72); }
html[data-theme="light"] .staff-page .boton:not(.secundario) { color: #f4f7fc; }
html[data-theme="light"] .staff-page .hero h1 { color: #12213a; text-shadow: 0 12px 40px rgba(30, 67, 115, 0.12); }
html[data-theme="light"] .staff-page .hero-etiqueta { color: #314560; }
html[data-theme="light"] .staff-page .hero-datos { border-top-color: rgba(24, 51, 84, 0.2); }
html[data-theme="light"] .staff-page .hero::after { border-color: rgba(23, 104, 196, 0.2); }
html[data-theme="light"] .staff-page .boton.secundario { border-color: rgba(23, 104, 196, 0.28); background: rgba(255, 255, 255, 0.8); color: #12213a; }
html[data-theme="light"] .staff-legal .legal-etiqueta { color: #1768c4; }

html[data-theme="light"] body.simple {
  background: linear-gradient(145deg, #f4f8ff, #e8f1fc 58%, #f7f5ff) fixed;
}

html[data-theme="light"] body.simple .nav {
  border-bottom-color: rgba(24, 51, 84, 0.14);
  background: rgba(247, 250, 255, 0.84);
}

html[data-theme="light"] body.simple .tarjeta {
  border-color: rgba(23, 104, 196, 0.2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(30, 67, 115, 0.1);
}

/* Portal de comunidad: una noche pixelada con energía en movimiento */
.staff-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 78% 26%, rgba(43, 108, 194, 0.22), transparent 35%),
    linear-gradient(145deg, #050b16, #0a1c35 58%, #0a1429);
}

.staff-page #fondo { opacity: 0.68; filter: saturate(0.78) contrast(1.12); }

.staff-page #brasas::before,
.staff-page #brasas::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.staff-page #brasas::before {
  top: 3%;
  right: -19%;
  width: min(74vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(120, 183, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 183, 255, 0.15), transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 57%, rgba(120, 183, 255, 0.13) 57.2%, transparent 57.7%);
  box-shadow: 0 0 110px rgba(52, 119, 222, 0.2), inset 0 0 100px rgba(52, 119, 222, 0.1);
  animation: portal-latido 12s ease-in-out infinite alternate;
}

.staff-page #brasas::after {
  inset: -20%;
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(120, 183, 255, 0.08) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(120, 183, 255, 0.08) 40px);
  mask-image: linear-gradient(120deg, transparent 15%, #000 55%, transparent 92%);
  animation: portal-cuadricula 38s linear infinite;
}

@keyframes portal-latido {
  to { transform: translate3d(-3%, 2%, 0) scale(1.07); opacity: 0.62; }
}

@keyframes portal-cuadricula {
  to { transform: translate3d(40px, -40px, 0); }
}

.staff-page .nav {
  border-bottom: 1px solid rgba(120, 183, 255, 0.18);
  background: linear-gradient(rgba(4, 8, 16, 0.78), rgba(4, 8, 16, 0.12));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.staff-page .logo { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.staff-page .logo::before { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--borde); border-radius: 9px 9px 9px 2px; background: rgba(120, 183, 255, 0.14); color: var(--acento); content: "D"; }
.staff-page .nav nav a { transition: color 0.2s ease, border-color 0.2s ease; }

.staff-page .hero {
  position: relative;
  isolation: isolate;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 70px;
}

.staff-page .hero::after {
  position: absolute;
  top: 20%;
  right: clamp(20px, 10vw, 150px);
  z-index: -1;
  width: min(39vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(120, 183, 255, 0.21);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(120, 183, 255, 0.14), transparent 43%),
    radial-gradient(circle, transparent 63%, rgba(120, 183, 255, 0.14) 63.2%, transparent 63.8%);
  box-shadow: 0 0 90px rgba(72, 143, 232, 0.18), inset 0 0 65px rgba(72, 143, 232, 0.08);
  content: "";
  animation: portal-latido 10s ease-in-out infinite alternate-reverse;
}

.staff-page .hero-etiqueta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #c2ddff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.staff-page .hero-etiqueta span { width: 7px; height: 7px; border-radius: 2px; background: var(--acento); box-shadow: 0 0 14px var(--acento); }
.staff-page .hero h1 { color: #f1f6ff; font-size: clamp(5.8rem, 17vw, 13rem); letter-spacing: -0.065em; text-shadow: 0 14px 55px rgba(0, 0, 0, 0.38); }
.staff-page .hero > p:not(.hero-etiqueta) { margin-top: 14px; font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.staff-page .acciones { gap: 14px; }
.staff-page .boton { border-radius: 7px; padding: 12px 18px; }
.staff-page .boton.secundario { background: rgba(5, 16, 26, 0.62); }

.staff-page .hero-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 65px;
  padding-top: 16px;
  border-top: 1px solid rgba(188, 216, 232, 0.17);
  color: var(--apagado);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.staff-page .tarjeta {
  border-color: rgba(120, 183, 255, 0.32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5, 16, 27, 0.94), rgba(7, 24, 32, 0.88));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.35);
}

.staff-page .lateral { background: linear-gradient(160deg, rgba(120, 183, 255, 0.07), transparent 56%); }
.staff-page .avatar { border-radius: 12px 12px 12px 3px; background: linear-gradient(145deg, #12345a, #0d1b31); box-shadow: 0 0 35px rgba(85, 151, 239, 0.2); }
.staff-page .contenido section { padding-bottom: 36px; }
.staff-page .contenido h2 { text-wrap: balance; }
.staff-page .fila-datos ul:not(.etiquetas) li { transition: padding-left 0.2s ease, border-color 0.2s ease; }
.staff-page .fila-datos ul:not(.etiquetas) li:hover { padding-left: 8px; border-color: var(--acento); }
.staff-page .enlaces a { text-decoration-thickness: 1px; }

.discord-profile { display: grid; gap: 16px; margin-top: 20px; }
.discord-identidad { display: flex; align-items: center; gap: 16px; }
.discord-avatar {
  position: relative;
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--borde);
  border-radius: 50%;
  background: rgba(120, 183, 255, 0.12);
  font-size: 1.8rem;
  font-weight: 800;
}
.discord-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-identidad h3 { font-size: 1.1rem; font-weight: 800; }
.discord-username,.discord-status,.discord-activity,.discord-custom-status,.discord-devices { color: var(--apagado); font-size: 0.9rem; }
.discord-bio { color: var(--suave); white-space: pre-line; overflow-wrap: anywhere; }
.discord-bio a { text-decoration-color: var(--acento); text-underline-offset: 3px; }
.discord-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--apagado);
}
.discord-indicator.online { background: #3ddc84; }
.discord-indicator.idle { background: #ffb020; }
.discord-indicator.dnd { background: #ff5d5d; }
.discord-custom-status:empty,.discord-devices:empty,.discord-activity:empty { display: none; }
.discord-custom-status { color: var(--suave); }
.discord-custom-status img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.discord-activity { display: grid; gap: 8px; }
.discord-activity-item { padding: 10px 14px; border: 1px solid var(--linea); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.discord-activity-item strong { color: var(--texto); }
.discord-activity-item span { display: block; }
.discord-live-label { display: flex; align-items: center; gap: 8px; color: var(--apagado); font-size: 0.8rem; }
.discord-live-label[hidden],.discord-avatar img[hidden] { display: none; }
.discord-live-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.discord-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.discord-acciones .boton { width: max-content; }
.staff-page .pie { padding-top: 34px; }

@media (max-width: 700px) {
  .staff-page .hero { min-height: 92svh; padding-top: 145px; padding-bottom: 44px; }
  .staff-page .hero::after { top: 22%; right: -25%; width: 65vw; opacity: 0.7; }
  .staff-page .hero-datos { margin-top: 45px; }
}

@media (max-width: 520px) {
  .staff-page .hero { min-height: 100svh; }
  .staff-page .hero h1 { font-size: clamp(5rem, 25vw, 8rem); }
  .staff-page .hero-datos { flex-direction: column; gap: 8px; }
  .staff-page #brasas::before { top: 12%; right: -40%; width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .staff-page #brasas::before,
  .staff-page #brasas::after,
  .staff-page .hero::after { animation: none !important; }
}

.legal-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #050b16;
}

.legal-page::before {
  position: fixed;
  inset: -18%;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 24%, rgba(73, 144, 232, 0.18), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(46, 102, 160, 0.16), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 49px, rgba(120, 183, 255, 0.035) 50px),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(120, 183, 255, 0.035) 50px);
  content: "";
  pointer-events: none;
  animation: portal-latido 28s ease-in-out infinite alternate;
}

.legal-page .nav {
  border-bottom: 1px solid rgba(120, 183, 255, 0.18);
  background: rgba(4, 8, 16, 0.64);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.legal-page .tarjeta {
  display: block;
  width: min(850px, calc(100% - 40px));
  margin: 115px auto 42px;
  border: 1px solid rgba(120, 183, 255, 0.29);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5, 16, 27, 0.95), rgba(7, 24, 32, 0.9));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.32);
}

.legal-page .contenido { padding: clamp(22px, 5vw, 52px); }
.legal-page .contenido h1 { margin-bottom: 8px; }
.legal-page .legal-etiqueta { margin-bottom: 14px; color: var(--acento); font-size: 0.67rem; font-weight: 750; letter-spacing: 0.15em; }
.legal-page .contenido h2 { padding-left: 14px; border-left: 2px solid var(--acento); }
.legal-page .contenido p { max-width: 70ch; line-height: 1.8; }
.legal-page .pie { margin-top: 0; }

.staff-legal::before {
  background:
    radial-gradient(ellipse at 80% 22%, rgba(95, 154, 215, 0.2), transparent 31%),
    radial-gradient(ellipse at 14% 78%, rgba(72, 123, 172, 0.15), transparent 35%),
    repeating-linear-gradient(135deg, transparent 0 58px, rgba(159, 202, 239, 0.03) 59px, transparent 60px);
  animation-duration: 32s;
}

.staff-legal .legal-etiqueta { color: #b4d5ff; }
.staff-legal .tarjeta { border-color: rgba(125, 179, 226, 0.24); }
.staff-legal .contenido h2 { border-left-color: #87bfff; }

@media (prefers-reduced-motion: reduce) {
  .legal-page::before,
  .staff-page #brasas::before,
  .staff-page #brasas::after { animation: none !important; }
}

html { overflow-x: clip; }
