/* Sin Juicio · estilos comunes de las páginas interiores (acceso, ajustes, legales, app)
   Mismos tokens que la portada (landing.css). */

:root {
  --bg: #eef0f6;
  --surface: #f8f9fc;
  --white: #ffffff;
  --ink: #1d2136;
  --ink-soft: #4d5270;
  --muted: #7c8099;
  --line: #dcdfea;
  --lilac: #c8c1ec;
  --lilac-soft: #e6e2f8;
  --dawn: #f5c7b4;
  --dawn-soft: #fbe6dc;
  --sage: #b9d5cb;
  --sage-soft: #e0eee8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Luz difusa de fondo, la misma que en la portada */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38rem 38rem at 92% 8%, rgba(200, 193, 236, 0.55), transparent 60%),
    radial-gradient(30rem 30rem at 4% 92%, rgba(245, 199, 180, 0.45), transparent 60%),
    radial-gradient(26rem 26rem at 70% 100%, rgba(185, 213, 203, 0.4), transparent 60%);
}

a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.02em; }

/* Cabecera en píldora */
.top {
  max-width: 64rem; width: calc(100% - 2 * var(--gutter));
  margin: 0.75rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  background: rgba(248, 249, 252, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 6px 24px -14px rgba(29, 33, 54, 0.25);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1; text-decoration: none; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, var(--dawn), var(--lilac) 60%, var(--sage)); }
.top-link { font-size: 0.9375rem; text-decoration: none; background: var(--ink); color: var(--surface); padding: 0.6rem 1.15rem; border-radius: 999px; }
.top-link:hover { background: #2e3352; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 1rem/1 var(--sans);
  padding: 1rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--surface);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #2e3352; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

/* Registro y acceso: una tarjeta centrada */
.auth {
  width: calc(100% - 2 * var(--gutter)); max-width: 32rem;
  margin: clamp(2rem, 6vw, 4rem) auto 2rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: 0 30px 70px -45px rgba(29, 33, 54, 0.45);
}
.auth h1 { font-size: clamp(2.5rem, 7vw, 3.25rem); line-height: 1; margin-bottom: 0.75rem; }
.auth-lead { color: var(--ink-soft); margin: 0 0 1.5rem; }
.auth-error, .auth-ok { border-radius: 16px; padding: 0.85rem 1.1rem; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.auth-error { background: var(--dawn-soft); color: #7a3f2a; }
.auth-ok { background: var(--sage-soft); color: #2f5d4f; }

.auth-form label { display: block; font-size: 0.9375rem; font-weight: 500; margin: 1.1rem 0 0.4rem; }
.auth-form .opt { color: var(--muted); font-weight: 400; }
.auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=text], .auth-form select {
  width: 100%;
  font: 400 1.0625rem var(--sans);
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--ink); }
.consents { position: relative; border: 0; padding: 3.4rem 1.25rem 1.25rem; margin: 1.75rem 0 0; background: var(--lilac-soft); border-radius: 20px; }
.consents legend { position: absolute; top: 1.1rem; left: 1.25rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1; padding: 0; }
.auth-form .check { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0.8rem 0 0; font-weight: 400; font-size: 0.9375rem; color: var(--ink-soft); }
.auth-form .check input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--ink); }
.auth-form > .btn { width: 100%; margin-top: 1.75rem; }

/* Línea de ayuda al pie */
.crisis-line {
  width: calc(100% - 2 * var(--gutter)); max-width: 32rem;
  margin: 0 auto 2.5rem; padding: 0.9rem 1.25rem;
  background: var(--dawn-soft); border-radius: 18px;
  font-size: 0.875rem; color: var(--ink-soft); text-align: center;
}
.crisis-line a { color: var(--ink); font-weight: 600; }

/* Páginas legales */
.page {
  width: calc(100% - 2 * var(--gutter)); max-width: 46rem;
  margin: clamp(2rem, 6vw, 3.5rem) auto 3rem;
  background: var(--surface); border-radius: 32px;
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 30px 70px -50px rgba(29, 33, 54, 0.4);
}
.page h1 { font-size: clamp(2.5rem, 6vw, 3.25rem); line-height: 1.05; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.75rem; margin: 2.25rem 0 0.5rem; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.2rem; }
.todo { background: #fff1a8; color: var(--ink); padding: 0 0.25em; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.legal-links { display: flex; justify-content: center; gap: 1.25rem; margin: -1.25rem auto 2.5rem; font-size: 0.8125rem; color: var(--muted); }
.page ul { list-style: none; padding: 0; }
.page ul li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.page small { color: var(--muted); }
