:root {
  --bg: #F8FAFC;              /* Fondo claro clínico */
  --panel: #FFFFFF;           /* Panel blanco */
  --border: #E2E8F0;          /* Bordes suaves */
  --text: #0F172A;            /* Texto principal */
  --muted: #64748B;           /* Texto secundario */
  --primary: #38BDF8;         /* Azul celeste */
  --primary-strong: #0EA5E9;  /* Azul celeste fuerte */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 960px;
  margin: auto;
  padding: 1.5rem;
}

/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-strong);
}

/* =========================
   HEADER
========================= */

.app-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* =========================
   PANEL
========================= */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.05);
}

.panel h2 {
  color: var(--text);
  margin-top: 1.5rem;
}

.panel h2:first-child {
  margin-top: 0;
}

/* =========================
   LISTS
========================= */

ol {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

ol li {
  margin-bottom: 0.7rem;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--panel);
}

.footer-nav a {
  color: var(--primary-strong);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.language-switcher a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.4rem;
  transition: color 0.2s ease;
}

.language-switcher a:hover {
  color: var(--primary);
}

.language-switcher a.active,
.language-switcher a[aria-current="page"] {
  color: var(--primary-strong);
  font-weight: 600;
}
