:root {
  --navy: #122E44;
  --navy-deep: #0d2233;
  --navy-soft: #24486a;
  --ink: #1a232b;
  --paper: #f7f5f1;
  --paper-warm: #efece5;
  --line: #d9d3c8;
  --muted: #6c7681;
  --white: #ffffff;
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.brand__mark { width: 30px; height: 30px; }

/* ---------- Landing (una sola pantalla) ---------- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(18, 46, 68, 0.06), transparent 62%),
    var(--paper);
}

.landing__inner {
  text-align: center;
  max-width: 520px;
}

.landing__logo {
  width: clamp(220px, 40vw, 320px);
  margin: 0 auto;
}

.landing__footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.landing__sep { opacity: 0.5; }

.landing__access {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.landing__access:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  padding: 0.7rem 1.5rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn--ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--solid {
  background: var(--navy);
  color: var(--white);
}
.btn--solid:hover { background: var(--navy-deep); }

.btn--block { width: 100%; padding: 0.85rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 34, 51, 0.55);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: 5px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 24px 60px rgba(13, 34, 51, 0.28);
  text-align: center;
  animation: rise 0.28s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); }

.modal__brand { margin-bottom: 0.75rem; }
.modal__brand .brand__mark { width: 40px; height: 40px; margin: 0 auto; }

.modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--navy);
  margin: 0 0 0.3rem;
}

.modal__subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-form { text-align: left; }

.field { display: block; margin-bottom: 1.1rem; }

.field__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--navy-soft);
}

.login-form__msg {
  min-height: 1.1rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--navy-soft);
}

.modal__footnote {
  margin: 1.5rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}
