/* Estilos generales */

dialog article footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.error-message {
  color: var(--pico-form-element-invalid-border-color);
  font-size: 0.8em;
  height: 1em;
}

.btn-editar,
.btn-borrar {
  background-color: transparent;
  border: 1px solid var(--pico-form-element-invalid-border-color);
  color: var(--pico-form-element-invalid-border-color);
  cursor: pointer;
  padding: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-editar:hover,
.btn-borrar:hover {
  background-color: var(--pico-form-element-invalid-border-color);
  color: var(--pico-primary-inverse);
}

#btn-agregar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

article footer {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
}

#lista-contactos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

article {
  margin-bottom: 0;
  padding: 1rem;
  border: 1px solid var(--pico-border-color);
  border-radius: var(--pico-border-radius);
}

article header {
  margin-bottom: 1rem;
  font-size: 1.15em;
}

article p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pico-secondary-foreground);
}

article svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

article p svg {
  stroke: var(--pico-secondary);
}
