@font-face { font-family: "ROS Serif"; src: url("fonts/texgyrepagella-regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ROS Serif"; src: url("fonts/texgyrepagella-bold.otf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.otf"); font-weight: 600; font-display: swap; }

:root {
  --fondo: #0b0f15;
  --panel: #121822;
  --panel-2: #18202c;
  --borde: #253042;
  --acento: #4a90e2;
  --texto: #e9eef5;
  --suave: #8d9bb0;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(74, 144, 226, .14), transparent 70%),
    var(--fondo);
  color: var(--texto);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.portada {
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Marca ---------- */
.marca { text-align: center; }
.crono img {
  width: clamp(150px, 22vw, 210px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(74, 144, 226, .18));
}
h1 {
  margin: 22px 0 0;
  font-family: "ROS Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: .16em;
  line-height: 1;
  padding-left: .16em; /* compensa el espaciado de la última letra */
  background: linear-gradient(180deg, #ffffff 0%, #d6dde7 45%, #8d9bb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lema {
  margin: 14px 0 0;
  color: var(--suave);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Botones grandes ---------- */
.accesos {
  width: 100%;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.acceso {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--borde);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.acceso:hover, .acceso:focus-visible {
  transform: translateY(-4px);
  border-color: var(--acento);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px var(--acento);
  outline: none;
}
.acceso img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6));
}
.titulo {
  margin-top: 20px;
  font-family: "ROS Serif", Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .03em;
}
.texto {
  margin-top: 8px;
  color: var(--suave);
  font-size: 15px;
  line-height: 1.45;
}
.entrar {
  margin-top: 22px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--acento);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}

.pie {
  margin-top: auto;
  padding-top: 44px;
  color: var(--suave);
  font-size: 13px;
  letter-spacing: .12em;
}

@media (max-width: 640px) {
  .portada { padding-top: 32px; }
  .lema { font-size: 12px; letter-spacing: .06em; }
  .accesos { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .acceso { padding: 26px 18px 22px; }
  .acceso img { width: 120px; height: 120px; }
  .titulo { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .acceso { transition: none; }
  .acceso:hover { transform: none; }
}
