/* Colores de Nexo (web/src/shared/styles/theme.css): trébol verde, verde claro y azul. */
:root {
  --brand-green: #1b7a3d;
  --brand-green-light: #5fb87a;
  --brand-blue: #5b73b8;

  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1c1f1d;
  --muted: #5c6460;
  --border: #dde3df;
  --primary: var(--brand-green);
  --primary-text: #ffffff;
  --link: #1b6a37;
  --notice-bg: #fff6e0;
  --notice-border: #e0b44c;
  --notice-text: #5a4210;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --surface: #1c1f1d;
    --text: #f2f4f3;
    --muted: #a7afab;
    --border: #2f3532;
    --primary: var(--brand-green-light);
    --primary-text: #0f1a13;
    --link: #8fd2a5;
    --notice-bg: #2e2612;
    --notice-border: #8a6a22;
    --notice-text: #f5e2b0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero__logo {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.75rem;
}

.hero__title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero__lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--notice-border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--notice-bg);
  color: var(--notice-text);
}

.notice[hidden] {
  display: none;
}

.notice__title {
  margin: 0;
  font-weight: 700;
}

.notice__text {
  margin: 0.2rem 0 0;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.card:hover {
  border-color: var(--primary);
}

.card:focus-visible,
.secondary a:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.card__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
}

.card__hint {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.card--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-text);
}

.card--primary .card__hint {
  color: inherit;
  opacity: 0.9;
}

.card--primary:hover {
  border-color: var(--brand-blue);
}

.secondary {
  margin: 1.25rem 0 0;
  text-align: center;
}

.secondary a {
  color: var(--link);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.secondary__hint {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-1px);
  }
}
