/*
 * Sistema visual para las experiencias HTML del proyecto.
 * Referencia: aula de Luz Rodríguez / Especialización en Constelaciones Familiares.
 */

@font-face {
  font-family: 'LR Roboto Condensed';
  src: url('/fonts/roboto-condensed.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: 'LR Roboto Slab';
  src: url('/fonts/roboto-slab.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: 'LR Roboto Mono';
  src: url('/fonts/roboto-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;

  --lr-coral-700: #c93629;
  --lr-coral-600: #df4032;
  --lr-coral-500: #ef4b3a;
  --lr-coral-100: #fff0ed;
  --lr-ink-900: #2b170d;
  --lr-ink-700: #4b362b;
  --lr-slate-700: #4d5b63;
  --lr-slate-500: #718087;
  --lr-slate-300: #cfd7de;
  --lr-slate-200: #dde4ea;
  --lr-slate-100: #eef2f5;
  --lr-blue-500: #55abe6;
  --lr-white: #ffffff;

  --lr-font-display: 'LR Roboto Slab', 'Roboto Slab', Rockwell, Georgia, serif;
  --lr-font-body: 'LR Roboto Condensed', 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --lr-font-mono: 'LR Roboto Mono', 'Roboto Mono', Consolas, monospace;

  --lr-text-xs: 0.75rem;
  --lr-text-sm: 0.875rem;
  --lr-text-md: 1rem;
  --lr-text-lg: 1.25rem;
  --lr-text-xl: 1.625rem;
  --lr-text-2xl: clamp(2.5rem, 5vw, 4.25rem);

  --lr-space-1: 0.25rem;
  --lr-space-2: 0.5rem;
  --lr-space-3: 0.75rem;
  --lr-space-4: 1rem;
  --lr-space-5: 1.5rem;
  --lr-space-6: 2rem;
  --lr-space-7: 3rem;
  --lr-space-8: 4rem;

  --lr-radius-sm: 0.25rem;
  --lr-radius-md: 0.5rem;
  --lr-radius-pill: 999px;
  --lr-border: 1px solid var(--lr-slate-200);
  --lr-shadow: 0 0.75rem 2rem rgb(43 23 13 / 8%);
  --lr-content-width: 74rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lr-white);
  color: var(--lr-ink-900);
  font-family: var(--lr-font-body);
  font-size: var(--lr-text-md);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--lr-ink-900);
  font-family: var(--lr-font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--lr-text-2xl);
  line-height: 1.04;
}

h2 {
  font-size: var(--lr-text-xl);
  line-height: 1.15;
}

a {
  color: var(--lr-coral-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--lr-blue-500);
  outline-offset: 3px;
}

::selection {
  background: var(--lr-coral-100);
  color: var(--lr-ink-900);
}

.lr-shell {
  width: min(100% - 2rem, var(--lr-content-width));
  margin-inline: auto;
}

.lr-panel {
  border: var(--lr-border);
  border-radius: var(--lr-radius-md);
  background: var(--lr-white);
}

.lr-panel--muted {
  background: var(--lr-slate-100);
}

.lr-course-banner {
  padding: var(--lr-space-5);
  background: var(--lr-coral-500);
  color: var(--lr-white);
  font-weight: 800;
}

.lr-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lr-space-4);
  padding: var(--lr-space-4) var(--lr-space-5);
  border-radius: var(--lr-radius-md);
  background: var(--lr-slate-100);
  color: var(--lr-coral-600);
  font-weight: 700;
}

.lr-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 1rem;
  border-radius: var(--lr-radius-pill);
  background: var(--lr-coral-500);
  color: var(--lr-white);
  font-size: var(--lr-text-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lr-progress {
  height: 0.5rem;
  overflow: hidden;
  border-radius: var(--lr-radius-pill);
  background: var(--lr-slate-200);
}

.lr-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lr-coral-500);
}

.lr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--lr-coral-500);
  border-radius: var(--lr-radius-sm);
  background: var(--lr-coral-500);
  color: var(--lr-white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.lr-button:hover {
  border-color: var(--lr-coral-700);
  background: var(--lr-coral-700);
}

.lr-button--secondary {
  background: var(--lr-white);
  color: var(--lr-coral-600);
}

.lr-section-title {
  display: flex;
  align-items: baseline;
  gap: var(--lr-space-3);
  color: var(--lr-coral-600);
  font-family: var(--lr-font-body);
  font-size: var(--lr-text-lg);
  font-weight: 800;
  letter-spacing: 0;
}

.lr-divider {
  height: 1px;
  border: 0;
  background: var(--lr-slate-200);
}

.lr-muted {
  color: var(--lr-slate-500);
}

@media (max-width: 48rem) {
  :root {
    --lr-space-7: 2rem;
    --lr-space-8: 2.75rem;
  }

  .lr-breadcrumb {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
