/* The entry pages of UNIR-OASIS: the landing and "Este proyecto". Dark, over the sky of sky.js. */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

:root {
  --brand: #0098cd;
  --brand-strong: #29abdb;
  --ink: #e9edf2;
  --muted: #a4b0c0;
  --line: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #04060b;
  color: var(--ink);
  font: 16px/1.55 "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

#sky { position: fixed; inset: 0; z-index: 0; display: block; }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 28px;
}

/* ---- top: language */
.top { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 34px; }
.lang { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; margin-left: auto; }
.lang button {
  padding: 6px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1 "Montserrat", "Albert Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.back { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.15s; }
.back:hover { color: #fff; }

/* ---- landing */
.hero { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 32px 0; text-align: center; }
.mark { display: flex; align-items: center; gap: 22px; }
.mark img { display: block; height: 62px; width: auto; user-select: none; }
.mark .rule { width: 1px; height: 52px; background: rgba(255, 255, 255, 0.28); }
.mark .word { color: var(--brand-strong); font-size: 46px; font-weight: 700; letter-spacing: -0.015em; line-height: 1; }

.enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: 600 17px/1.2 "Montserrat", "Albert Sans", system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 12px 40px -12px rgba(0, 152, 205, 0.75);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.enter:hover { background: #12a6da; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 16px 46px -12px rgba(0, 152, 205, 0.95); }
.enter:focus-visible, .links a:focus-visible, .lang button:focus-visible, .back:focus-visible, .list a:focus-visible { outline: 2px solid #7fd4f3; outline-offset: 3px; }
.enter svg { width: 20px; height: 20px; flex: none; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.links a:hover { color: #fff; }

/* ---- "Este proyecto" */
.sheet {
  width: 100%;
  max-width: 660px;
  margin: auto 0;
  padding: 38px 40px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 13, 22, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet .mark { gap: 14px; margin-bottom: 26px; }
.sheet .mark img { height: 34px; }
.sheet .mark .rule { height: 28px; }
.sheet .mark .word { font-size: 24px; }
.sheet h1 { margin: 0 0 18px; font-size: 27px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.sheet p { margin: 0 0 14px; color: #cfd7e1; }
.sheet p strong { color: #fff; font-weight: 600; }
.sheet p a { color: var(--brand-strong); text-decoration: none; }
.sheet p a:hover { text-decoration: underline; }
.list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.list a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.list a.main { border-color: var(--brand); background: var(--brand); color: #fff; }
.list a.main:hover { background: #12a6da; color: #fff; }
.list svg { width: 14px; height: 14px; flex: none; opacity: 0.75; }

@media (max-width: 560px) {
  .hero { gap: 36px; }
  .mark { gap: 14px; }
  .mark img { height: 42px; }
  .mark .rule { height: 36px; }
  .mark .word { font-size: 31px; }
  .enter { padding: 15px 22px; font-size: 15.5px; }
  .links { gap: 6px 24px; }
  .sheet { padding: 28px 22px 24px; }
  .sheet h1 { font-size: 23px; }
}
