:root {
  --fondo: #f7f7f5;
  --superficie: #ffffff;
  --texto: #1f2328;
  --texto-suave: #5b6470;
  --borde: #d8dbe0;
  --acento: #1f5fbf;
  --acento-texto: #ffffff;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #14171a;
    --superficie: #1d2126;
    --texto: #e8eaed;
    --texto-suave: #9aa3ad;
    --borde: #343a41;
    --acento: #6ea2f0;
    --acento-texto: #10151b;
    --error: #f08b80;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.5;
}

.cabecera,
.contenido {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.cabecera h1 {
  margin: 0 0 0.25rem;
}

.cabecera p {
  margin: 0;
  color: var(--texto-suave);
}

.form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-fila {
  display: flex;
  gap: 0.5rem;
}

input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--superficie);
  color: inherit;
  font: inherit;
}

button {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--acento);
  color: var(--acento-texto);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

.estado {
  min-height: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--texto-suave);
}

.estado.es-error {
  color: var(--error);
}

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

.lista li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--borde);
}

.lista time {
  display: block;
  font-size: 0.85rem;
  color: var(--texto-suave);
}
