/* ==========================================
   ESTILOS - REGISTRAR COMIDA
   ========================================== */

.input-agregar {
  display: flex;
  gap: 8px;
}

.input-agregar input {
  flex: 1;
  border-radius: var(--borde-radio-full);
  padding: 13px 18px;
}

#btn-agregar-alimento {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-rosa) 0%, var(--color-rosa-oscuro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(209, 50, 126, 0.3);
  cursor: pointer;
  transition: transform 0.15s var(--rebote);
}

#btn-agregar-alimento:active {
  transform: scale(0.88);
}

.lista-alimentos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--espaciado-sm);
  margin-top: var(--espaciado-md);
}

.lista-alimentos:empty {
  display: none;
}

.alimento-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--borde-radio-full);
  font-size: var(--font-tamaño-pequeño);
  font-weight: 700;
  animation: popIn 0.25s var(--rebote) both;
}

.alimento-chip button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.alimento-chip button svg {
  width: 11px;
  height: 11px;
}

.chip-group-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-group-scroll .chip-item label {
  white-space: nowrap;
}
