/* Landing pública y páginas del servidor: sobrias, accesibles, en claro y oscuro.
   Colores de la SPA (src/styles/tokens.css): fondo azul noche y acento ámbar. */

:root {
  color-scheme: light dark;
  --fondo: #f3f5fa;
  --panel: #ffffff;
  --linea: #d3d9e6;
  --texto: #141c2f;
  --tenue: #5a6580;
  --acento: #e08600;
  --acento-texto: #1f1200;
  --enlace: #a35f00;
  --foco: #0b8ec2;
  --error: #b42318;
  --brillo-1: rgba(224, 134, 0, 0.12);
  --brillo-2: rgba(11, 142, 194, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #070b16;
    --panel: #0f1629;
    --linea: #243152;
    --texto: #e6ecff;
    --tenue: #8f9bbd;
    --acento: #ffb347;
    --acento-texto: #231400;
    --enlace: #ffb347;
    --foco: #5ad1ff;
    --error: #ff8a80;
    --brillo-1: rgba(255, 179, 71, 0.1);
    --brillo-2: rgba(90, 209, 255, 0.08);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 12% -10%, var(--brillo-1), transparent 70%),
    radial-gradient(50rem 40rem at 110% 110%, var(--brillo-2), transparent 70%), var(--fondo);
  background-attachment: fixed;
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--enlace);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--panel);
}

.saltar:focus {
  left: 1rem;
  top: 1rem;
}

.cabecera,
.pie {
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.cabecera {
  border-bottom: 1px solid var(--linea);
}

.marca {
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.marca em {
  color: var(--acento);
  font-style: normal;
}

.marca-icono {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--acento);
}

.contenido {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.portada h1,
.tarjeta h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
}

.entradilla {
  max-width: 44rem;
  color: var(--tenue);
  font-size: 1.15rem;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.boton {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--acento);
  border-radius: 0.5rem;
  background: var(--acento);
  color: var(--acento-texto);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.boton:hover {
  filter: brightness(1.08);
}

.boton.secundario {
  background: transparent;
  color: var(--enlace);
}

.nota {
  color: var(--tenue);
  font-size: 0.95rem;
  max-width: 44rem;
}

.rasgos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.rasgo,
.tarjeta {
  background: var(--panel);
  border: 1px solid var(--linea);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.rasgo h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.rasgo p {
  margin: 0;
  color: var(--tenue);
}

.tarjeta {
  max-width: 40rem;
  margin: 0 auto;
}

.tarjeta.error h1 {
  color: var(--error);
}

.pie {
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 0.9rem;
}

.pie p {
  margin: 0;
}
