:root {
  --fondo: #0e0e0e;
  --tinta: #f2ece0;
  --tenue: #8a857b;
  --acento: #f2ece0;
}

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

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.6s ease;
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.titulo {
  font-size: clamp(3.5rem, 16vw, 11rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.puertas {
  list-style: none;
  margin-top: clamp(2rem, 6vh, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.puertas a, .volver, footer a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.puertas a {
  color: var(--tenue);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.puertas a:hover, .puertas a:focus-visible {
  color: var(--acento);
  border-color: var(--acento);
  outline: none;
}

.nota {
  margin-top: 1.5rem;
  color: var(--tenue);
  font-style: italic;
  font-size: 1.1rem;
}

.volver {
  position: fixed;
  top: 20px;
  left: 20px;
  color: var(--tenue);
}

.volver:hover { color: var(--tinta); }

footer {
  padding: 20px 16px;
  text-align: center;
  color: var(--tenue);
}

/* Color propio de cada proyecto */
body.lysergic   { --fondo: #1a0b2e; --acento: #c8ff3d; }
body.museo      { --fondo: #efe8da; --tinta: #1c1a17; --tenue: #7d766a; --acento: #b3402a; }
body.artehumano { --fondo: #b3402a; --tinta: #f6efe2; --tenue: #f0c9b8; --acento: #f6efe2; }

body.lysergic .titulo, body.museo .titulo { color: var(--acento); }

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