/* Web pública de AulaTrack. La misma paleta que la aplicación
   (src/index.css), en claro y en oscuro según el dispositivo. */

:root {
  --navy: #054a91;
  --navy-dark: #043b75;
  --blue: #3e7cb1;
  --sky: #81a4cd;
  --mist: #dbe4ee;
  --orange: #f17300;

  --canvas: #fafafa;
  --surface: #ffffff;
  --fg: #171717;
  --fg-muted: #525252;
  --fg-subtle: #737373;
  --line: #e5e5e5;
  --brand: var(--navy);
  --primary: var(--navy);
  --primary-hover: var(--navy-dark);
  --on-primary: #ffffff;
  --soft: var(--mist);
  --soft-fg: var(--navy);
  --hero: linear-gradient(180deg, #eef3f8 0%, var(--canvas) 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a0a0a;
    --surface: #171717;
    --fg: #f5f5f5;
    --fg-muted: #a3a3a3;
    --fg-subtle: #8a8a8a;
    --line: #2a2a2a;
    --brand: var(--sky);
    --primary: #336a9b;
    --primary-hover: var(--blue);
    --soft: color-mix(in oklab, var(--blue) 25%, transparent);
    --soft-fg: var(--mist);
    --hero: linear-gradient(180deg, #0f1a26 0%, var(--canvas) 100%);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--brand);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Cabecera */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo img {
  width: 2rem;
  height: 2rem;
}

/* Botones */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--fg);
}

.button-secondary:hover {
  border-color: var(--fg-subtle);
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Portada */

.hero {
  background: var(--hero);
  padding: 3.5rem 0 3rem;
}

@media (min-width: 56rem) {
  .hero {
    padding: 5.5rem 0 4.5rem;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-fg);
  font-size: 0.85rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 .accent {
  color: var(--brand);
}

.lead {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--fg-muted);
  font-size: 1.15rem;
}

.notice {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--fg-subtle);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Ejemplo de la aplicación: pasar lista */

.preview {
  margin: 3rem 0 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: 0 24px 48px -24px rgb(5 74 145 / 0.25);
}

@media (min-width: 56rem) {
  .preview {
    margin-top: 0;
  }
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.preview-title {
  margin: 0;
  font-weight: 700;
}

.preview-meta {
  margin: 0.1rem 0 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.preview-count {
  align-self: start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-fg);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.preview li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status {
  padding: 0.2rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-present {
  background: #dcfce7;
  color: #166534;
}

.status-late {
  background: #fef3c7;
  color: #92400e;
}

.status-absent {
  background: #fee2e2;
  color: #991b1b;
}

@media (prefers-color-scheme: dark) {
  .status-present {
    background: rgb(34 197 94 / 0.18);
    color: #86efac;
  }

  .status-late {
    background: rgb(245 158 11 / 0.18);
    color: #fcd34d;
  }

  .status-absent {
    background: rgb(239 68 68 / 0.18);
    color: #fca5a5;
  }
}

/* Secciones */

.section {
  padding: 3.5rem 0;
}

@media (min-width: 56rem) {
  .section {
    padding: 5rem 0;
  }
}

.section-title {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: var(--fg-muted);
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 1.4rem;
}

.feature h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--soft);
  color: var(--soft-fg);
}

.icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.points {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .points {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
  }
}

.points li {
  display: flex;
  gap: 0.75rem;
}

.points svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  color: var(--brand);
}

.points p {
  margin: 0;
}

.points strong {
  display: block;
}

.points span {
  color: var(--fg-muted);
}

.band {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Llamada final */

.cta {
  border-radius: 1.25rem;
  background: var(--navy);
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .cta {
    padding: 3.5rem 2.5rem;
  }
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  line-height: 1.2;
}

.cta p {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  color: var(--mist);
}

.cta .actions {
  justify-content: center;
}

.cta .button-primary {
  background: #ffffff;
  color: var(--navy);
}

.cta .button-primary:hover {
  background: var(--mist);
}

.cta a:focus-visible {
  outline-color: #ffffff;
}

/* Pie */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--fg-subtle);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--fg-muted);
}

/* Páginas de texto: aviso legal y 404 */

.prose {
  max-width: 44rem;
  padding: 3rem 0 4rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--fg-muted);
}

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1rem 0 0;
}

.prose dt {
  font-weight: 600;
}

.prose dd {
  margin: 0;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
