/* imaginanet · home 2026 */
:root {
  --bg: #0f2238;
  --text: #a3b9cf;
  --strong: #ffffff;
  --accent: #3d9be9;
  --small: #93abc3;
  --blue: #0081c4;          /* azul imaginanet */
  --mx: 25%; --my: 30%;     /* posición del ratón (la mueve main.js) */
  --r: 900px;               /* alcance del gradiente */
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Gradiente que sigue al ratón */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), var(--blue) 0, var(--bg) var(--r));
}

main {
  max-width: 40rem;
  padding: 4.5rem 2rem 4rem;
  margin-left: clamp(0rem, 8vw, 8rem);
}
.big {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: normal;
  line-height: 1.35;
  margin: 0 0 1.4rem;
}
.big strong { color: var(--strong); font-weight: normal; }

.firma { display: flex; align-items: center; gap: 14px; margin: 2.2rem 0 2.6rem; }
.firma img { display: block; }
.cursor {
  display: inline-block;
  width: 3px; height: 30px;
  background: var(--strong);
  margin-left: -6px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.small {
  font-family: Verdana, Arial, sans-serif;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--small);
  margin: 0 0 1rem;
}
a {
  color: #c9d9ea;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
a:hover, a:focus { color: var(--strong); border-bottom-color: var(--accent); }

/* Selector de idioma */
.lang {
  position: fixed; top: 1.4rem; right: 1.6rem;
  font-family: Verdana, Arial, sans-serif; font-size: .75rem;
  color: var(--small); text-align: right;
}
.lang a { font-style: normal; color: var(--small); letter-spacing: .08em; padding: .2rem .3rem; }
.lang a:hover, .lang a:focus { color: #c9d9ea; }
.lang a[aria-current="page"] { color: var(--strong); }

/* Aviso "Also in English" / "También en español" */
.lang .sugerencia {
  display: block; margin-top: .5rem;
  font-style: italic; letter-spacing: 0;
  color: #c9d9ea;
  animation: in .8s ease 1.4s both;
}
.lang .sugerencia[hidden] { display: none; }

main > * { opacity: 0; animation: in .8s ease forwards; }
main > *:nth-child(2) { animation-delay: .25s; }
main > *:nth-child(3) { animation-delay: .5s; }
main > *:nth-child(4) { animation-delay: .75s; }
main > *:nth-child(5) { animation-delay: 1s; }
main > *:nth-child(6) { animation-delay: 1.25s; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  main > *, .lang .sugerencia { opacity: 1; animation: none; }
  /* el cursor sigue parpadeando: es un detalle mínimo, como en cualquier editor */
}
