/* Estilo mínimo y funcional. Primero que funcione; el diseño vendrá después. */
body {
  font-family: system-ui, sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.5;
  color: #1b1b1b;
}

h1 { margin-bottom: 0; }
.nota { color: #666; margin-top: .25rem; font-size: .9rem; }

.bloque {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}
.bloque h2 { margin-top: 0; font-size: 1.1rem; }

input {
  padding: .5rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-right: .5rem;
}
button {
  padding: .5rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #2c6e49;
  color: #fff;
  cursor: pointer;
}
button:hover { background: #245a3c; }

.error {
  background: #fde2e2;
  border: 1px solid #f5b5b5;
  color: #8a1f1f;
  padding: .6rem .8rem;
  border-radius: 6px;
}

.tarjeta {
  border: 2px solid #2c6e49;
  border-radius: 8px;
  padding: 1rem;
}
.tarjeta ul { list-style: none; padding: 0; }
.tarjeta li { padding: .15rem 0; }

/* Recursos: lista en dos columnas, fácil de leer. */
.tarjeta h3 { margin: .8rem 0 .3rem; font-size: 1rem; }
.recursos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .1rem .8rem;
}
.recursos li {
  background: #f3f6f4;
  border-radius: 4px;
  padding: .2rem .5rem;
}

/* Expediciones: lista simple en una columna. */
.expediciones { list-style: none; padding: 0; margin: .2rem 0; }
.expediciones li {
  background: #eef4f0;
  border-left: 3px solid #2c6e49;
  border-radius: 4px;
  padding: .3rem .6rem;
  margin-bottom: .3rem;
  font-size: .95rem;
}
.expediciones li.vacia {
  background: #f6f6f6;
  border-left-color: #ccc;
  color: #777;
}

/* Formulario de mandar expedición. */
.mandar-expedicion {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px dashed #cbd8d0;
}
.mandar-expedicion h4 { margin: 0 0 .5rem; font-size: 1rem; }
.mandar-expedicion .campos {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .5rem;
}
.mandar-expedicion label { font-size: .85rem; color: #444; }
.mandar-expedicion select {
  display: block;
  margin-top: .15rem;
  padding: .45rem;
  border: 1px solid #bbb;
  border-radius: 6px;
}

/* Mensaje del formulario: rojo si es error, verde si es confirmación. */
.mensaje { padding: .5rem .7rem; border-radius: 6px; margin-top: .6rem; }
.mensaje.error { background: #fde2e2; border: 1px solid #f5b5b5; color: #8a1f1f; }
.mensaje.ok { background: #e3f3e8; border: 1px solid #b6ddc3; color: #1f5a33; }
